[562] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[20853] | 3 | # Generated by GNU Autoconf 2.59.
|
---|
[562] | 4 | #
|
---|
[20853] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[562] | 6 | # This configure script is free software; the Free Software Foundation
|
---|
| 7 | # gives unlimited permission to copy, distribute and modify it.
|
---|
[8756] | 8 | ## --------------------- ##
|
---|
| 9 | ## M4sh Initialization. ##
|
---|
| 10 | ## --------------------- ##
|
---|
[562] | 11 |
|
---|
[20853] | 12 | # Be Bourne compatible
|
---|
[8756] | 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 14 | emulate sh
|
---|
| 15 | NULLCMD=:
|
---|
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 17 | # is contrary to our usage. Disable this feature.
|
---|
| 18 | alias -g '${1+"$@"}'='"$@"'
|
---|
[20853] | 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 20 | set -o posix
|
---|
[8756] | 21 | fi
|
---|
[20853] | 22 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[8756] | 23 |
|
---|
| 24 | # Support unset when possible.
|
---|
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 26 | as_unset=unset
|
---|
| 27 | else
|
---|
| 28 | as_unset=false
|
---|
| 29 | fi
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
[20853] | 33 | $as_unset ENV MAIL MAILPATH
|
---|
[8756] | 34 | PS1='$ '
|
---|
| 35 | PS2='> '
|
---|
| 36 | PS4='+ '
|
---|
| 37 |
|
---|
| 38 | # NLS nuisances.
|
---|
| 39 | for as_var in \
|
---|
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 42 | LC_TELEPHONE LC_TIME
|
---|
| 43 | do
|
---|
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 45 | eval $as_var=C; export $as_var
|
---|
| 46 | else
|
---|
[20853] | 47 | $as_unset $as_var
|
---|
[8756] | 48 | fi
|
---|
| 49 | done
|
---|
| 50 |
|
---|
| 51 | # Required to use basename.
|
---|
[20853] | 52 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
[8756] | 53 | as_expr=expr
|
---|
| 54 | else
|
---|
| 55 | as_expr=false
|
---|
| 56 | fi
|
---|
| 57 |
|
---|
[20853] | 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
[8756] | 59 | as_basename=basename
|
---|
| 60 | else
|
---|
| 61 | as_basename=false
|
---|
| 62 | fi
|
---|
| 63 |
|
---|
| 64 |
|
---|
| 65 | # Name of the executable.
|
---|
[20853] | 66 | as_me=`$as_basename "$0" ||
|
---|
[8756] | 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 68 | X"$0" : 'X\(//\)$' \| \
|
---|
[20853] | 69 | X"$0" : 'X\(/\)$' \| \
|
---|
| 70 | . : '\(.\)' 2>/dev/null ||
|
---|
[8756] | 71 | echo X/"$0" |
|
---|
[20853] | 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 74 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 75 | s/.*/./; q'`
|
---|
[8756] | 76 |
|
---|
| 77 |
|
---|
[20853] | 78 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 79 | # Avoid depending upon Character Ranges.
|
---|
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 83 | as_cr_digits='0123456789'
|
---|
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
[8756] | 85 |
|
---|
[20853] | 86 | # The user is always right.
|
---|
| 87 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 88 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 89 | echo "exit 0" >>conf$$.sh
|
---|
| 90 | chmod +x conf$$.sh
|
---|
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 92 | PATH_SEPARATOR=';'
|
---|
| 93 | else
|
---|
| 94 | PATH_SEPARATOR=:
|
---|
| 95 | fi
|
---|
| 96 | rm -f conf$$.sh
|
---|
[8756] | 97 | fi
|
---|
| 98 |
|
---|
| 99 |
|
---|
[20853] | 100 | as_lineno_1=$LINENO
|
---|
| 101 | as_lineno_2=$LINENO
|
---|
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 105 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 106 | # relative or not.
|
---|
| 107 | case $0 in
|
---|
| 108 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 110 | for as_dir in $PATH
|
---|
| 111 | do
|
---|
| 112 | IFS=$as_save_IFS
|
---|
| 113 | test -z "$as_dir" && as_dir=.
|
---|
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 115 | done
|
---|
[8756] | 116 |
|
---|
[20853] | 117 | ;;
|
---|
| 118 | esac
|
---|
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 120 | # in which case we are not to be found in the path.
|
---|
| 121 | if test "x$as_myself" = x; then
|
---|
| 122 | as_myself=$0
|
---|
| 123 | fi
|
---|
| 124 | if test ! -f "$as_myself"; then
|
---|
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
|
---|
| 126 | { (exit 1); exit 1; }; }
|
---|
| 127 | fi
|
---|
| 128 | case $CONFIG_SHELL in
|
---|
| 129 | '')
|
---|
[8756] | 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 132 | do
|
---|
| 133 | IFS=$as_save_IFS
|
---|
| 134 | test -z "$as_dir" && as_dir=.
|
---|
[20853] | 135 | for as_base in sh bash ksh sh5; do
|
---|
| 136 | case $as_dir in
|
---|
[8756] | 137 | /*)
|
---|
[20853] | 138 | if ("$as_dir/$as_base" -c '
|
---|
[8756] | 139 | as_lineno_1=$LINENO
|
---|
| 140 | as_lineno_2=$LINENO
|
---|
[20853] | 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
[8756] | 142 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
[20853] | 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 146 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 147 | export CONFIG_SHELL
|
---|
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 149 | fi;;
|
---|
| 150 | esac
|
---|
| 151 | done
|
---|
| 152 | done
|
---|
| 153 | ;;
|
---|
| 154 | esac
|
---|
[8756] | 155 |
|
---|
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
[20853] | 158 | # line-number line before each line; the second 'sed' does the real
|
---|
| 159 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 160 | # with the numbered line, and appends trailing '-' during
|
---|
| 161 | # substitution so that $LINENO is not a special case at line end.
|
---|
[8756] | 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
[20853] | 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 164 | sed '=' <$as_myself |
|
---|
[8756] | 165 | sed '
|
---|
| 166 | N
|
---|
[20853] | 167 | s,$,-,
|
---|
| 168 | : loop
|
---|
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
[8756] | 170 | t loop
|
---|
[20853] | 171 | s,-$,,
|
---|
| 172 | s,^['$as_cr_digits']*\n,,
|
---|
[8756] | 173 | ' >$as_me.lineno &&
|
---|
[20853] | 174 | chmod +x $as_me.lineno ||
|
---|
[8756] | 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
| 176 | { (exit 1); exit 1; }; }
|
---|
| 177 |
|
---|
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 179 | # (the dirname of $[0] is not the place where we might find the
|
---|
[20853] | 180 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 181 | . ./$as_me.lineno
|
---|
[8756] | 182 | # Exit status is that of the last command.
|
---|
| 183 | exit
|
---|
| 184 | }
|
---|
| 185 |
|
---|
| 186 |
|
---|
[20853] | 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 188 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 189 | ' ECHO_T=' ' ;;
|
---|
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
[8756] | 192 | esac
|
---|
| 193 |
|
---|
[20853] | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
[8756] | 195 | as_expr=expr
|
---|
| 196 | else
|
---|
| 197 | as_expr=false
|
---|
| 198 | fi
|
---|
| 199 |
|
---|
| 200 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 201 | echo >conf$$.file
|
---|
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
[20853] | 203 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 205 | if test -f conf$$.exe; then
|
---|
| 206 | # Don't use ln at all; we don't have any links
|
---|
[8756] | 207 | as_ln_s='cp -p'
|
---|
[20853] | 208 | else
|
---|
| 209 | as_ln_s='ln -s'
|
---|
| 210 | fi
|
---|
[8756] | 211 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 212 | as_ln_s=ln
|
---|
| 213 | else
|
---|
| 214 | as_ln_s='cp -p'
|
---|
| 215 | fi
|
---|
[20853] | 216 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
[8756] | 217 |
|
---|
| 218 | if mkdir -p . 2>/dev/null; then
|
---|
| 219 | as_mkdir_p=:
|
---|
| 220 | else
|
---|
| 221 | test -d ./-p && rmdir ./-p
|
---|
| 222 | as_mkdir_p=false
|
---|
| 223 | fi
|
---|
| 224 |
|
---|
[20853] | 225 | as_executable_p="test -f"
|
---|
[8756] | 226 |
|
---|
| 227 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 229 |
|
---|
| 230 | # Sed expression to map a string onto a valid variable name.
|
---|
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 232 |
|
---|
| 233 |
|
---|
[20853] | 234 | # IFS
|
---|
| 235 | # We need space, tab and new line, in precisely that order.
|
---|
| 236 | as_nl='
|
---|
| 237 | '
|
---|
| 238 | IFS=" $as_nl"
|
---|
[8756] | 239 |
|
---|
[20853] | 240 | # CDPATH.
|
---|
| 241 | $as_unset CDPATH
|
---|
[8756] | 242 |
|
---|
[20853] | 243 |
|
---|
[8756] | 244 | # Name of the host.
|
---|
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
| 246 | # so uname gets run too.
|
---|
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 248 |
|
---|
[20853] | 249 | exec 6>&1
|
---|
| 250 |
|
---|
[8756] | 251 | #
|
---|
| 252 | # Initializations.
|
---|
| 253 | #
|
---|
[562] | 254 | ac_default_prefix=/usr/local
|
---|
[8756] | 255 | ac_config_libobj_dir=.
|
---|
| 256 | cross_compiling=no
|
---|
| 257 | subdirs=
|
---|
| 258 | MFLAGS=
|
---|
| 259 | MAKEFLAGS=
|
---|
| 260 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
[562] | 261 |
|
---|
[20853] | 262 | # Maximum number of lines to put in a shell here document.
|
---|
| 263 | # This variable seems obsolete. It should probably be removed, and
|
---|
| 264 | # only ac_max_sed_lines should be used.
|
---|
| 265 | : ${ac_max_here_lines=38}
|
---|
| 266 |
|
---|
[8756] | 267 | # Identity of this package.
|
---|
| 268 | PACKAGE_NAME=
|
---|
| 269 | PACKAGE_TARNAME=
|
---|
| 270 | PACKAGE_VERSION=
|
---|
| 271 | PACKAGE_STRING=
|
---|
| 272 | PACKAGE_BUGREPORT=
|
---|
| 273 |
|
---|
| 274 | # Factoring default headers for most tests.
|
---|
| 275 | ac_includes_default="\
|
---|
| 276 | #include <stdio.h>
|
---|
[20853] | 277 | #if HAVE_SYS_TYPES_H
|
---|
[8756] | 278 | # include <sys/types.h>
|
---|
| 279 | #endif
|
---|
[20853] | 280 | #if HAVE_SYS_STAT_H
|
---|
[8756] | 281 | # include <sys/stat.h>
|
---|
| 282 | #endif
|
---|
[20853] | 283 | #if STDC_HEADERS
|
---|
[8756] | 284 | # include <stdlib.h>
|
---|
| 285 | # include <stddef.h>
|
---|
| 286 | #else
|
---|
[20853] | 287 | # if HAVE_STDLIB_H
|
---|
[8756] | 288 | # include <stdlib.h>
|
---|
| 289 | # endif
|
---|
| 290 | #endif
|
---|
[20853] | 291 | #if HAVE_STRING_H
|
---|
| 292 | # if !STDC_HEADERS && HAVE_MEMORY_H
|
---|
[8756] | 293 | # include <memory.h>
|
---|
| 294 | # endif
|
---|
| 295 | # include <string.h>
|
---|
| 296 | #endif
|
---|
[20853] | 297 | #if HAVE_STRINGS_H
|
---|
[8756] | 298 | # include <strings.h>
|
---|
| 299 | #endif
|
---|
[20853] | 300 | #if HAVE_INTTYPES_H
|
---|
[8756] | 301 | # include <inttypes.h>
|
---|
[20853] | 302 | #else
|
---|
| 303 | # if HAVE_STDINT_H
|
---|
| 304 | # include <stdint.h>
|
---|
| 305 | # endif
|
---|
[8756] | 306 | #endif
|
---|
[20853] | 307 | #if HAVE_UNISTD_H
|
---|
[8756] | 308 | # include <unistd.h>
|
---|
| 309 | #endif"
|
---|
| 310 |
|
---|
[20853] | 311 | ac_subdirs_all="$ac_subdirs_all common-src build-src runtime-src"
|
---|
[21330] | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_ACCENTFOLD USE_SQLITE USE_APACHE_HTTPD ENABLE_MG ENABLE_MGPP ENABLE_LUCENE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC gsdlos MODULEDIRS subdirs LTLIBOBJS'
|
---|
[8756] | 313 | ac_subst_files=''
|
---|
| 314 |
|
---|
[562] | 315 | # Initialize some variables set by options.
|
---|
[8756] | 316 | ac_init_help=
|
---|
| 317 | ac_init_version=false
|
---|
[562] | 318 | # The variables have the same names as the options, with
|
---|
| 319 | # dashes changed to underlines.
|
---|
[8756] | 320 | cache_file=/dev/null
|
---|
[562] | 321 | exec_prefix=NONE
|
---|
| 322 | no_create=
|
---|
| 323 | no_recursion=
|
---|
| 324 | prefix=NONE
|
---|
| 325 | program_prefix=NONE
|
---|
| 326 | program_suffix=NONE
|
---|
| 327 | program_transform_name=s,x,x,
|
---|
| 328 | silent=
|
---|
| 329 | site=
|
---|
| 330 | srcdir=
|
---|
| 331 | verbose=
|
---|
| 332 | x_includes=NONE
|
---|
| 333 | x_libraries=NONE
|
---|
[8756] | 334 |
|
---|
| 335 | # Installation directory options.
|
---|
| 336 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 337 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 338 | # by default will actually change.
|
---|
| 339 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
[562] | 340 | bindir='${exec_prefix}/bin'
|
---|
| 341 | sbindir='${exec_prefix}/sbin'
|
---|
| 342 | libexecdir='${exec_prefix}/libexec'
|
---|
[20853] | 343 | datadir='${prefix}/share'
|
---|
[562] | 344 | sysconfdir='${prefix}/etc'
|
---|
| 345 | sharedstatedir='${prefix}/com'
|
---|
| 346 | localstatedir='${prefix}/var'
|
---|
[20853] | 347 | libdir='${exec_prefix}/lib'
|
---|
[562] | 348 | includedir='${prefix}/include'
|
---|
| 349 | oldincludedir='/usr/include'
|
---|
[20853] | 350 | infodir='${prefix}/info'
|
---|
| 351 | mandir='${prefix}/man'
|
---|
[562] | 352 |
|
---|
| 353 | ac_prev=
|
---|
| 354 | for ac_option
|
---|
| 355 | do
|
---|
| 356 | # If the previous option needs an argument, assign it.
|
---|
| 357 | if test -n "$ac_prev"; then
|
---|
[20853] | 358 | eval "$ac_prev=\$ac_option"
|
---|
[562] | 359 | ac_prev=
|
---|
| 360 | continue
|
---|
| 361 | fi
|
---|
| 362 |
|
---|
[20853] | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
[562] | 364 |
|
---|
| 365 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 366 |
|
---|
[20853] | 367 | case $ac_option in
|
---|
[562] | 368 |
|
---|
| 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 370 | ac_prev=bindir ;;
|
---|
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
[8756] | 372 | bindir=$ac_optarg ;;
|
---|
[562] | 373 |
|
---|
| 374 | -build | --build | --buil | --bui | --bu)
|
---|
[8756] | 375 | ac_prev=build_alias ;;
|
---|
[562] | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
[8756] | 377 | build_alias=$ac_optarg ;;
|
---|
[562] | 378 |
|
---|
| 379 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 381 | ac_prev=cache_file ;;
|
---|
| 382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
[8756] | 384 | cache_file=$ac_optarg ;;
|
---|
[562] | 385 |
|
---|
[8756] | 386 | --config-cache | -C)
|
---|
| 387 | cache_file=config.cache ;;
|
---|
| 388 |
|
---|
[20853] | 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
[562] | 390 | ac_prev=datadir ;;
|
---|
[20853] | 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
| 392 | | --da=*)
|
---|
[8756] | 393 | datadir=$ac_optarg ;;
|
---|
[562] | 394 |
|
---|
| 395 | -disable-* | --disable-*)
|
---|
[8756] | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
[562] | 397 | # Reject names that are not valid shell variable names.
|
---|
[20853] | 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[8756] | 399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 400 | { (exit 1); exit 1; }; }
|
---|
[20853] | 401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 402 | eval "enable_$ac_feature=no" ;;
|
---|
[562] | 403 |
|
---|
| 404 | -enable-* | --enable-*)
|
---|
[8756] | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
[562] | 406 | # Reject names that are not valid shell variable names.
|
---|
[20853] | 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[8756] | 408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 409 | { (exit 1); exit 1; }; }
|
---|
[20853] | 410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 411 | case $ac_option in
|
---|
| 412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
| 413 | *) ac_optarg=yes ;;
|
---|
| 414 | esac
|
---|
| 415 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
[562] | 416 |
|
---|
| 417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 419 | | --exec | --exe | --ex)
|
---|
| 420 | ac_prev=exec_prefix ;;
|
---|
| 421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 423 | | --exec=* | --exe=* | --ex=*)
|
---|
[8756] | 424 | exec_prefix=$ac_optarg ;;
|
---|
[562] | 425 |
|
---|
| 426 | -gas | --gas | --ga | --g)
|
---|
| 427 | # Obsolete; use --with-gas.
|
---|
| 428 | with_gas=yes ;;
|
---|
| 429 |
|
---|
[8756] | 430 | -help | --help | --hel | --he | -h)
|
---|
| 431 | ac_init_help=long ;;
|
---|
| 432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 433 | ac_init_help=recursive ;;
|
---|
| 434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 435 | ac_init_help=short ;;
|
---|
[562] | 436 |
|
---|
| 437 | -host | --host | --hos | --ho)
|
---|
[8756] | 438 | ac_prev=host_alias ;;
|
---|
[562] | 439 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
[8756] | 440 | host_alias=$ac_optarg ;;
|
---|
[562] | 441 |
|
---|
| 442 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 443 | | --includ | --inclu | --incl | --inc)
|
---|
| 444 | ac_prev=includedir ;;
|
---|
| 445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 446 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
[8756] | 447 | includedir=$ac_optarg ;;
|
---|
[562] | 448 |
|
---|
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 450 | ac_prev=infodir ;;
|
---|
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
[8756] | 452 | infodir=$ac_optarg ;;
|
---|
[562] | 453 |
|
---|
| 454 | -libdir | --libdir | --libdi | --libd)
|
---|
| 455 | ac_prev=libdir ;;
|
---|
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
[8756] | 457 | libdir=$ac_optarg ;;
|
---|
[562] | 458 |
|
---|
| 459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 460 | | --libexe | --libex | --libe)
|
---|
| 461 | ac_prev=libexecdir ;;
|
---|
| 462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 463 | | --libexe=* | --libex=* | --libe=*)
|
---|
[8756] | 464 | libexecdir=$ac_optarg ;;
|
---|
[562] | 465 |
|
---|
| 466 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
[20853] | 467 | | --localstate | --localstat | --localsta | --localst \
|
---|
| 468 | | --locals | --local | --loca | --loc | --lo)
|
---|
[562] | 469 | ac_prev=localstatedir ;;
|
---|
| 470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
[20853] | 471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
| 472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
[8756] | 473 | localstatedir=$ac_optarg ;;
|
---|
[562] | 474 |
|
---|
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 476 | ac_prev=mandir ;;
|
---|
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
[8756] | 478 | mandir=$ac_optarg ;;
|
---|
[562] | 479 |
|
---|
| 480 | -nfp | --nfp | --nf)
|
---|
| 481 | # Obsolete; use --without-fp.
|
---|
| 482 | with_fp=no ;;
|
---|
| 483 |
|
---|
| 484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
[8756] | 485 | | --no-cr | --no-c | -n)
|
---|
[562] | 486 | no_create=yes ;;
|
---|
| 487 |
|
---|
| 488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 490 | no_recursion=yes ;;
|
---|
| 491 |
|
---|
| 492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 494 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 495 | ac_prev=oldincludedir ;;
|
---|
| 496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
[8756] | 499 | oldincludedir=$ac_optarg ;;
|
---|
[562] | 500 |
|
---|
| 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 502 | ac_prev=prefix ;;
|
---|
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
[8756] | 504 | prefix=$ac_optarg ;;
|
---|
[562] | 505 |
|
---|
| 506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 507 | | --program-pre | --program-pr | --program-p)
|
---|
| 508 | ac_prev=program_prefix ;;
|
---|
| 509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
[8756] | 511 | program_prefix=$ac_optarg ;;
|
---|
[562] | 512 |
|
---|
| 513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 514 | | --program-suf | --program-su | --program-s)
|
---|
| 515 | ac_prev=program_suffix ;;
|
---|
| 516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
[8756] | 518 | program_suffix=$ac_optarg ;;
|
---|
[562] | 519 |
|
---|
| 520 | -program-transform-name | --program-transform-name \
|
---|
| 521 | | --program-transform-nam | --program-transform-na \
|
---|
| 522 | | --program-transform-n | --program-transform- \
|
---|
| 523 | | --program-transform | --program-transfor \
|
---|
| 524 | | --program-transfo | --program-transf \
|
---|
| 525 | | --program-trans | --program-tran \
|
---|
| 526 | | --progr-tra | --program-tr | --program-t)
|
---|
| 527 | ac_prev=program_transform_name ;;
|
---|
| 528 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 529 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 530 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 531 | | --program-transform=* | --program-transfor=* \
|
---|
| 532 | | --program-transfo=* | --program-transf=* \
|
---|
| 533 | | --program-trans=* | --program-tran=* \
|
---|
| 534 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
[8756] | 535 | program_transform_name=$ac_optarg ;;
|
---|
[562] | 536 |
|
---|
| 537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 538 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 539 | silent=yes ;;
|
---|
| 540 |
|
---|
| 541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 542 | ac_prev=sbindir ;;
|
---|
| 543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 544 | | --sbi=* | --sb=*)
|
---|
[8756] | 545 | sbindir=$ac_optarg ;;
|
---|
[562] | 546 |
|
---|
| 547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 549 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 550 | | --sha | --sh)
|
---|
| 551 | ac_prev=sharedstatedir ;;
|
---|
| 552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 555 | | --sha=* | --sh=*)
|
---|
[8756] | 556 | sharedstatedir=$ac_optarg ;;
|
---|
[562] | 557 |
|
---|
| 558 | -site | --site | --sit)
|
---|
| 559 | ac_prev=site ;;
|
---|
| 560 | -site=* | --site=* | --sit=*)
|
---|
[8756] | 561 | site=$ac_optarg ;;
|
---|
[562] | 562 |
|
---|
| 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 564 | ac_prev=srcdir ;;
|
---|
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
[8756] | 566 | srcdir=$ac_optarg ;;
|
---|
[562] | 567 |
|
---|
| 568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 569 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 570 | ac_prev=sysconfdir ;;
|
---|
| 571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
[8756] | 573 | sysconfdir=$ac_optarg ;;
|
---|
[562] | 574 |
|
---|
| 575 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
[8756] | 576 | ac_prev=target_alias ;;
|
---|
[562] | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
[8756] | 578 | target_alias=$ac_optarg ;;
|
---|
[562] | 579 |
|
---|
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 581 | verbose=yes ;;
|
---|
| 582 |
|
---|
[8756] | 583 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 584 | ac_init_version=: ;;
|
---|
[562] | 585 |
|
---|
| 586 | -with-* | --with-*)
|
---|
[8756] | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
[562] | 588 | # Reject names that are not valid shell variable names.
|
---|
[20853] | 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[8756] | 590 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 591 | { (exit 1); exit 1; }; }
|
---|
[20853] | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
| 593 | case $ac_option in
|
---|
| 594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
| 595 | *) ac_optarg=yes ;;
|
---|
| 596 | esac
|
---|
| 597 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
[562] | 598 |
|
---|
| 599 | -without-* | --without-*)
|
---|
[8756] | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
[562] | 601 | # Reject names that are not valid shell variable names.
|
---|
[20853] | 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[8756] | 603 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 604 | { (exit 1); exit 1; }; }
|
---|
[20853] | 605 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
| 606 | eval "with_$ac_package=no" ;;
|
---|
[562] | 607 |
|
---|
| 608 | --x)
|
---|
| 609 | # Obsolete; use --with-x.
|
---|
| 610 | with_x=yes ;;
|
---|
| 611 |
|
---|
| 612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 613 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 614 | ac_prev=x_includes ;;
|
---|
| 615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
[8756] | 617 | x_includes=$ac_optarg ;;
|
---|
[562] | 618 |
|
---|
| 619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 621 | ac_prev=x_libraries ;;
|
---|
| 622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
[8756] | 624 | x_libraries=$ac_optarg ;;
|
---|
[562] | 625 |
|
---|
[8756] | 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
| 627 | Try \`$0 --help' for more information." >&2
|
---|
| 628 | { (exit 1); exit 1; }; }
|
---|
[562] | 629 | ;;
|
---|
| 630 |
|
---|
[8756] | 631 | *=*)
|
---|
| 632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 633 | # Reject names that are not valid shell variable names.
|
---|
| 634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
| 635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
| 636 | { (exit 1); exit 1; }; }
|
---|
[20853] | 637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
| 638 | eval "$ac_envvar='$ac_optarg'"
|
---|
[8756] | 639 | export $ac_envvar ;;
|
---|
| 640 |
|
---|
[562] | 641 | *)
|
---|
[8756] | 642 | # FIXME: should be removed in autoconf 3.0.
|
---|
| 643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
| 644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
| 645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
| 646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
[562] | 647 | ;;
|
---|
| 648 |
|
---|
| 649 | esac
|
---|
| 650 | done
|
---|
| 651 |
|
---|
| 652 | if test -n "$ac_prev"; then
|
---|
[8756] | 653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
| 654 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
| 655 | { (exit 1); exit 1; }; }
|
---|
[562] | 656 | fi
|
---|
| 657 |
|
---|
[20853] | 658 | # Be sure to have absolute paths.
|
---|
| 659 | for ac_var in exec_prefix prefix
|
---|
[8756] | 660 | do
|
---|
[20853] | 661 | eval ac_val=$`echo $ac_var`
|
---|
[8756] | 662 | case $ac_val in
|
---|
[20853] | 663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
| 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 665 | { (exit 1); exit 1; }; };;
|
---|
[8756] | 666 | esac
|
---|
| 667 | done
|
---|
[8200] | 668 |
|
---|
[20853] | 669 | # Be sure to have absolute paths.
|
---|
| 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
| 671 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
| 672 | do
|
---|
| 673 | eval ac_val=$`echo $ac_var`
|
---|
| 674 | case $ac_val in
|
---|
| 675 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
| 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 677 | { (exit 1); exit 1; }; };;
|
---|
| 678 | esac
|
---|
| 679 | done
|
---|
| 680 |
|
---|
[8756] | 681 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 682 | # used to hold the argument of --host etc.
|
---|
| 683 | # FIXME: To remove some day.
|
---|
| 684 | build=$build_alias
|
---|
| 685 | host=$host_alias
|
---|
| 686 | target=$target_alias
|
---|
[562] | 687 |
|
---|
[8756] | 688 | # FIXME: To remove some day.
|
---|
| 689 | if test "x$host_alias" != x; then
|
---|
| 690 | if test "x$build_alias" = x; then
|
---|
| 691 | cross_compiling=maybe
|
---|
| 692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
| 693 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
| 694 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 695 | cross_compiling=yes
|
---|
| 696 | fi
|
---|
| 697 | fi
|
---|
[562] | 698 |
|
---|
[8756] | 699 | ac_tool_prefix=
|
---|
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
[562] | 701 |
|
---|
[8756] | 702 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 703 |
|
---|
| 704 |
|
---|
[562] | 705 | # Find the source files, if location was not specified.
|
---|
| 706 | if test -z "$srcdir"; then
|
---|
| 707 | ac_srcdir_defaulted=yes
|
---|
[20853] | 708 | # Try the directory containing this script, then its parent.
|
---|
| 709 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
[8756] | 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 711 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
| 712 | X"$0" : 'X\(//\)$' \| \
|
---|
[20853] | 713 | X"$0" : 'X\(/\)' \| \
|
---|
| 714 | . : '\(.\)' 2>/dev/null ||
|
---|
[8756] | 715 | echo X"$0" |
|
---|
[20853] | 716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 718 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 719 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 720 | s/.*/./; q'`
|
---|
[562] | 721 | srcdir=$ac_confdir
|
---|
[20853] | 722 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
[562] | 723 | srcdir=..
|
---|
| 724 | fi
|
---|
| 725 | else
|
---|
| 726 | ac_srcdir_defaulted=no
|
---|
| 727 | fi
|
---|
[20853] | 728 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 729 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
| 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
[8756] | 731 | { (exit 1); exit 1; }; }
|
---|
[20853] | 732 | else
|
---|
| 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
| 734 | { (exit 1); exit 1; }; }
|
---|
| 735 | fi
|
---|
[20842] | 736 | fi
|
---|
[20853] | 737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
---|
| 738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
---|
[8756] | 739 | { (exit 1); exit 1; }; }
|
---|
[20853] | 740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
| 741 | ac_env_build_alias_set=${build_alias+set}
|
---|
| 742 | ac_env_build_alias_value=$build_alias
|
---|
| 743 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
| 744 | ac_cv_env_build_alias_value=$build_alias
|
---|
| 745 | ac_env_host_alias_set=${host_alias+set}
|
---|
| 746 | ac_env_host_alias_value=$host_alias
|
---|
| 747 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
| 748 | ac_cv_env_host_alias_value=$host_alias
|
---|
| 749 | ac_env_target_alias_set=${target_alias+set}
|
---|
| 750 | ac_env_target_alias_value=$target_alias
|
---|
| 751 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
| 752 | ac_cv_env_target_alias_value=$target_alias
|
---|
| 753 | ac_env_CC_set=${CC+set}
|
---|
| 754 | ac_env_CC_value=$CC
|
---|
| 755 | ac_cv_env_CC_set=${CC+set}
|
---|
| 756 | ac_cv_env_CC_value=$CC
|
---|
| 757 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 758 | ac_env_CFLAGS_value=$CFLAGS
|
---|
| 759 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 760 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
| 761 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 762 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
| 763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 764 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
| 765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 766 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 769 | ac_env_CXX_set=${CXX+set}
|
---|
| 770 | ac_env_CXX_value=$CXX
|
---|
| 771 | ac_cv_env_CXX_set=${CXX+set}
|
---|
| 772 | ac_cv_env_CXX_value=$CXX
|
---|
| 773 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 774 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 775 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 776 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 777 | ac_env_CPP_set=${CPP+set}
|
---|
| 778 | ac_env_CPP_value=$CPP
|
---|
| 779 | ac_cv_env_CPP_set=${CPP+set}
|
---|
| 780 | ac_cv_env_CPP_value=$CPP
|
---|
[562] | 781 |
|
---|
[8756] | 782 | #
|
---|
| 783 | # Report the --help message.
|
---|
| 784 | #
|
---|
| 785 | if test "$ac_init_help" = "long"; then
|
---|
| 786 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 787 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
| 788 | cat <<_ACEOF
|
---|
| 789 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
| 790 |
|
---|
| 791 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 792 |
|
---|
| 793 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 794 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 795 |
|
---|
| 796 | Defaults for the options are specified in brackets.
|
---|
| 797 |
|
---|
| 798 | Configuration:
|
---|
| 799 | -h, --help display this help and exit
|
---|
| 800 | --help=short display options specific to this package
|
---|
| 801 | --help=recursive display the short help of all the included packages
|
---|
| 802 | -V, --version display version information and exit
|
---|
| 803 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
| 804 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 805 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 806 | -n, --no-create do not create output files
|
---|
| 807 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 808 |
|
---|
[20853] | 809 | _ACEOF
|
---|
| 810 |
|
---|
| 811 | cat <<_ACEOF
|
---|
[8756] | 812 | Installation directories:
|
---|
| 813 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
| 814 | [$ac_default_prefix]
|
---|
| 815 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
| 816 | [PREFIX]
|
---|
| 817 |
|
---|
| 818 | By default, \`make install' will install all the files in
|
---|
| 819 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 820 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 821 | for instance \`--prefix=\$HOME'.
|
---|
| 822 |
|
---|
| 823 | For better control, use the options below.
|
---|
| 824 |
|
---|
| 825 | Fine tuning of the installation directories:
|
---|
| 826 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 827 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 828 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
[20853] | 829 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
[8756] | 830 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 831 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 832 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 833 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 834 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 835 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
[20853] | 836 | --infodir=DIR info documentation [PREFIX/info]
|
---|
| 837 | --mandir=DIR man documentation [PREFIX/man]
|
---|
[8756] | 838 | _ACEOF
|
---|
| 839 |
|
---|
| 840 | cat <<\_ACEOF
|
---|
| 841 |
|
---|
| 842 | System types:
|
---|
| 843 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 844 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
| 845 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
| 846 | _ACEOF
|
---|
| 847 | fi
|
---|
| 848 |
|
---|
| 849 | if test -n "$ac_init_help"; then
|
---|
| 850 |
|
---|
| 851 | cat <<\_ACEOF
|
---|
| 852 |
|
---|
| 853 | Optional Features:
|
---|
| 854 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 855 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 856 | --enable-corba Enable CORBA support
|
---|
| 857 | --enable-z3950 Enable Z39.50 client support
|
---|
[15816] | 858 | --disable-yaz Disable YAZ compilation
|
---|
| 859 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
[16288] | 860 | --disable-sqlite Disable SQLite support
|
---|
[20853] | 861 | --enable-apache-httpd Enable Apache httpd support
|
---|
[21330] | 862 | --disable-mg Disable MG compilation
|
---|
| 863 | --disable-mgpp Disable MGPP compilation
|
---|
| 864 | --disable-lucene Disable Lucene compilation
|
---|
[8756] | 865 |
|
---|
| 866 | Optional Packages:
|
---|
| 867 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 868 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 869 | --with-micodir Use installed MICO directory
|
---|
| 870 | --with-dmalloc use dmalloc, as in
|
---|
| 871 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 872 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 873 |
|
---|
| 874 | Some influential environment variables:
|
---|
| 875 | CC C compiler command
|
---|
| 876 | CFLAGS C compiler flags
|
---|
| 877 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 878 | nonstandard directory <lib dir>
|
---|
[20853] | 879 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
| 880 | headers in a nonstandard directory <include dir>
|
---|
[8756] | 881 | CXX C++ compiler command
|
---|
| 882 | CXXFLAGS C++ compiler flags
|
---|
| 883 | CPP C preprocessor
|
---|
| 884 |
|
---|
| 885 | Use these variables to override the choices made by `configure' or to help
|
---|
| 886 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 887 |
|
---|
| 888 | _ACEOF
|
---|
| 889 | fi
|
---|
| 890 |
|
---|
| 891 | if test "$ac_init_help" = "recursive"; then
|
---|
| 892 | # If there are subdirs, report their specific --help.
|
---|
[20853] | 893 | ac_popdir=`pwd`
|
---|
[8756] | 894 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
[20853] | 895 | test -d $ac_dir || continue
|
---|
[8756] | 896 | ac_builddir=.
|
---|
| 897 |
|
---|
[20853] | 898 | if test "$ac_dir" != .; then
|
---|
[8756] | 899 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
[20853] | 900 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 901 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 902 | else
|
---|
| 903 | ac_dir_suffix= ac_top_builddir=
|
---|
| 904 | fi
|
---|
[8756] | 905 |
|
---|
| 906 | case $srcdir in
|
---|
[20853] | 907 | .) # No --srcdir option. We are building in place.
|
---|
[8756] | 908 | ac_srcdir=.
|
---|
[20853] | 909 | if test -z "$ac_top_builddir"; then
|
---|
| 910 | ac_top_srcdir=.
|
---|
| 911 | else
|
---|
| 912 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 913 | fi ;;
|
---|
| 914 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
[8756] | 915 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[20853] | 916 | ac_top_srcdir=$srcdir ;;
|
---|
| 917 | *) # Relative path.
|
---|
| 918 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 919 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
[8756] | 920 | esac
|
---|
| 921 |
|
---|
[20853] | 922 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 923 | # the directories may not exist.
|
---|
| 924 | case `pwd` in
|
---|
| 925 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 926 | *)
|
---|
| 927 | case "$ac_dir" in
|
---|
| 928 | .) ac_abs_builddir=`pwd`;;
|
---|
| 929 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 930 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 931 | esac;;
|
---|
| 932 | esac
|
---|
| 933 | case $ac_abs_builddir in
|
---|
| 934 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 935 | *)
|
---|
| 936 | case ${ac_top_builddir}. in
|
---|
| 937 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 938 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 939 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 940 | esac;;
|
---|
| 941 | esac
|
---|
| 942 | case $ac_abs_builddir in
|
---|
| 943 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 944 | *)
|
---|
| 945 | case $ac_srcdir in
|
---|
| 946 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 947 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 948 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 949 | esac;;
|
---|
| 950 | esac
|
---|
| 951 | case $ac_abs_builddir in
|
---|
| 952 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 953 | *)
|
---|
| 954 | case $ac_top_srcdir in
|
---|
| 955 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 956 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 957 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 958 | esac;;
|
---|
| 959 | esac
|
---|
| 960 |
|
---|
| 961 | cd $ac_dir
|
---|
| 962 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
| 963 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 964 | echo
|
---|
| 965 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
| 966 | elif test -f $ac_srcdir/configure; then
|
---|
| 967 | echo
|
---|
| 968 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
| 969 | elif test -f $ac_srcdir/configure.ac ||
|
---|
| 970 | test -f $ac_srcdir/configure.in; then
|
---|
| 971 | echo
|
---|
| 972 | $ac_configure --help
|
---|
[8756] | 973 | else
|
---|
| 974 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
[20853] | 975 | fi
|
---|
| 976 | cd $ac_popdir
|
---|
[8756] | 977 | done
|
---|
| 978 | fi
|
---|
| 979 |
|
---|
[20853] | 980 | test -n "$ac_init_help" && exit 0
|
---|
[8756] | 981 | if $ac_init_version; then
|
---|
| 982 | cat <<\_ACEOF
|
---|
| 983 |
|
---|
[20853] | 984 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[8756] | 985 | This configure script is free software; the Free Software Foundation
|
---|
| 986 | gives unlimited permission to copy, distribute and modify it.
|
---|
| 987 | _ACEOF
|
---|
[20853] | 988 | exit 0
|
---|
[8756] | 989 | fi
|
---|
[20853] | 990 | exec 5>config.log
|
---|
| 991 | cat >&5 <<_ACEOF
|
---|
[8756] | 992 | This file contains any messages produced by compilers while
|
---|
| 993 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 994 |
|
---|
| 995 | It was created by $as_me, which was
|
---|
[20853] | 996 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
[8756] | 997 |
|
---|
| 998 | $ $0 $@
|
---|
| 999 |
|
---|
| 1000 | _ACEOF
|
---|
| 1001 | {
|
---|
| 1002 | cat <<_ASUNAME
|
---|
| 1003 | ## --------- ##
|
---|
| 1004 | ## Platform. ##
|
---|
| 1005 | ## --------- ##
|
---|
| 1006 |
|
---|
| 1007 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1008 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1009 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1010 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1011 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1012 |
|
---|
| 1013 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1014 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1015 |
|
---|
| 1016 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1017 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1018 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
[20853] | 1019 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
[8756] | 1020 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1021 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1022 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1023 |
|
---|
| 1024 | _ASUNAME
|
---|
| 1025 |
|
---|
| 1026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1027 | for as_dir in $PATH
|
---|
| 1028 | do
|
---|
| 1029 | IFS=$as_save_IFS
|
---|
| 1030 | test -z "$as_dir" && as_dir=.
|
---|
| 1031 | echo "PATH: $as_dir"
|
---|
| 1032 | done
|
---|
| 1033 |
|
---|
| 1034 | } >&5
|
---|
| 1035 |
|
---|
| 1036 | cat >&5 <<_ACEOF
|
---|
| 1037 |
|
---|
| 1038 |
|
---|
| 1039 | ## ----------- ##
|
---|
| 1040 | ## Core tests. ##
|
---|
| 1041 | ## ----------- ##
|
---|
| 1042 |
|
---|
| 1043 | _ACEOF
|
---|
| 1044 |
|
---|
| 1045 |
|
---|
| 1046 | # Keep a trace of the command line.
|
---|
| 1047 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 1048 | # Strip out --silent because we don't want to record it for future runs.
|
---|
| 1049 | # Also quote any args containing shell meta-characters.
|
---|
| 1050 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
| 1051 | ac_configure_args=
|
---|
| 1052 | ac_configure_args0=
|
---|
| 1053 | ac_configure_args1=
|
---|
[20853] | 1054 | ac_sep=
|
---|
[8756] | 1055 | ac_must_keep_next=false
|
---|
| 1056 | for ac_pass in 1 2
|
---|
| 1057 | do
|
---|
| 1058 | for ac_arg
|
---|
| 1059 | do
|
---|
| 1060 | case $ac_arg in
|
---|
| 1061 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1062 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1063 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1064 | continue ;;
|
---|
[20853] | 1065 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
[8756] | 1066 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1067 | esac
|
---|
| 1068 | case $ac_pass in
|
---|
| 1069 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
| 1070 | 2)
|
---|
| 1071 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
| 1072 | if test $ac_must_keep_next = true; then
|
---|
| 1073 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1074 | else
|
---|
| 1075 | case $ac_arg in
|
---|
| 1076 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1077 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1078 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1079 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1080 | case "$ac_configure_args0 " in
|
---|
| 1081 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1082 | esac
|
---|
| 1083 | ;;
|
---|
| 1084 | -* ) ac_must_keep_next=true ;;
|
---|
| 1085 | esac
|
---|
| 1086 | fi
|
---|
[20853] | 1087 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
| 1088 | # Get rid of the leading space.
|
---|
| 1089 | ac_sep=" "
|
---|
[8756] | 1090 | ;;
|
---|
| 1091 | esac
|
---|
| 1092 | done
|
---|
| 1093 | done
|
---|
| 1094 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1095 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
| 1096 |
|
---|
| 1097 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1098 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1099 | # would cause problems or look ugly.
|
---|
[20853] | 1100 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
| 1101 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
[8756] | 1102 | trap 'exit_status=$?
|
---|
| 1103 | # Save into config.log some information that might help in debugging.
|
---|
| 1104 | {
|
---|
| 1105 | echo
|
---|
| 1106 |
|
---|
| 1107 | cat <<\_ASBOX
|
---|
| 1108 | ## ---------------- ##
|
---|
| 1109 | ## Cache variables. ##
|
---|
| 1110 | ## ---------------- ##
|
---|
| 1111 | _ASBOX
|
---|
| 1112 | echo
|
---|
| 1113 | # The following way of writing the cache mishandles newlines in values,
|
---|
[20853] | 1114 | {
|
---|
[8756] | 1115 | (set) 2>&1 |
|
---|
[20853] | 1116 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
| 1117 | *ac_space=\ *)
|
---|
[8756] | 1118 | sed -n \
|
---|
[20853] | 1119 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
| 1120 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
| 1121 | ;;
|
---|
[8756] | 1122 | *)
|
---|
[20853] | 1123 | sed -n \
|
---|
| 1124 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[8756] | 1125 | ;;
|
---|
[20853] | 1126 | esac;
|
---|
| 1127 | }
|
---|
[8756] | 1128 | echo
|
---|
| 1129 |
|
---|
| 1130 | cat <<\_ASBOX
|
---|
| 1131 | ## ----------------- ##
|
---|
| 1132 | ## Output variables. ##
|
---|
| 1133 | ## ----------------- ##
|
---|
| 1134 | _ASBOX
|
---|
| 1135 | echo
|
---|
| 1136 | for ac_var in $ac_subst_vars
|
---|
| 1137 | do
|
---|
[20853] | 1138 | eval ac_val=$`echo $ac_var`
|
---|
| 1139 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
[8756] | 1140 | done | sort
|
---|
| 1141 | echo
|
---|
| 1142 |
|
---|
| 1143 | if test -n "$ac_subst_files"; then
|
---|
| 1144 | cat <<\_ASBOX
|
---|
[20853] | 1145 | ## ------------- ##
|
---|
| 1146 | ## Output files. ##
|
---|
| 1147 | ## ------------- ##
|
---|
[8756] | 1148 | _ASBOX
|
---|
| 1149 | echo
|
---|
| 1150 | for ac_var in $ac_subst_files
|
---|
| 1151 | do
|
---|
[20853] | 1152 | eval ac_val=$`echo $ac_var`
|
---|
| 1153 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
[8756] | 1154 | done | sort
|
---|
| 1155 | echo
|
---|
| 1156 | fi
|
---|
| 1157 |
|
---|
| 1158 | if test -s confdefs.h; then
|
---|
| 1159 | cat <<\_ASBOX
|
---|
| 1160 | ## ----------- ##
|
---|
| 1161 | ## confdefs.h. ##
|
---|
| 1162 | ## ----------- ##
|
---|
| 1163 | _ASBOX
|
---|
| 1164 | echo
|
---|
[20853] | 1165 | sed "/^$/d" confdefs.h | sort
|
---|
[8756] | 1166 | echo
|
---|
| 1167 | fi
|
---|
| 1168 | test "$ac_signal" != 0 &&
|
---|
| 1169 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1170 | echo "$as_me: exit $exit_status"
|
---|
| 1171 | } >&5
|
---|
[20853] | 1172 | rm -f core *.core &&
|
---|
| 1173 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[8756] | 1174 | exit $exit_status
|
---|
[20853] | 1175 | ' 0
|
---|
[8756] | 1176 | for ac_signal in 1 2 13 15; do
|
---|
| 1177 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
| 1178 | done
|
---|
| 1179 | ac_signal=0
|
---|
| 1180 |
|
---|
| 1181 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
[20853] | 1182 | rm -rf conftest* confdefs.h
|
---|
| 1183 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 1184 | echo >confdefs.h
|
---|
[8756] | 1185 |
|
---|
| 1186 | # Predefined preprocessor variables.
|
---|
| 1187 |
|
---|
| 1188 | cat >>confdefs.h <<_ACEOF
|
---|
| 1189 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1190 | _ACEOF
|
---|
| 1191 |
|
---|
| 1192 |
|
---|
| 1193 | cat >>confdefs.h <<_ACEOF
|
---|
| 1194 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1195 | _ACEOF
|
---|
| 1196 |
|
---|
| 1197 |
|
---|
| 1198 | cat >>confdefs.h <<_ACEOF
|
---|
| 1199 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1200 | _ACEOF
|
---|
| 1201 |
|
---|
| 1202 |
|
---|
| 1203 | cat >>confdefs.h <<_ACEOF
|
---|
| 1204 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1205 | _ACEOF
|
---|
| 1206 |
|
---|
| 1207 |
|
---|
| 1208 | cat >>confdefs.h <<_ACEOF
|
---|
| 1209 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1210 | _ACEOF
|
---|
| 1211 |
|
---|
| 1212 |
|
---|
| 1213 | # Let the site file select an alternate cache file if it wants to.
|
---|
[562] | 1214 | # Prefer explicitly selected file to automatically selected ones.
|
---|
[20853] | 1215 | if test -z "$CONFIG_SITE"; then
|
---|
| 1216 | if test "x$prefix" != xNONE; then
|
---|
| 1217 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 1218 | else
|
---|
| 1219 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 1220 | fi
|
---|
[562] | 1221 | fi
|
---|
[20853] | 1222 | for ac_site_file in $CONFIG_SITE; do
|
---|
[562] | 1223 | if test -r "$ac_site_file"; then
|
---|
[8756] | 1224 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
| 1225 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
| 1226 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[562] | 1227 | . "$ac_site_file"
|
---|
| 1228 | fi
|
---|
| 1229 | done
|
---|
| 1230 |
|
---|
| 1231 | if test -r "$cache_file"; then
|
---|
[8756] | 1232 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1233 | # files actually), so we avoid doing that.
|
---|
| 1234 | if test -f "$cache_file"; then
|
---|
| 1235 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
| 1236 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
| 1237 | case $cache_file in
|
---|
[20853] | 1238 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
| 1239 | *) . ./$cache_file;;
|
---|
[8756] | 1240 | esac
|
---|
| 1241 | fi
|
---|
[562] | 1242 | else
|
---|
[8756] | 1243 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
| 1244 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
| 1245 | >$cache_file
|
---|
[562] | 1246 | fi
|
---|
| 1247 |
|
---|
[8756] | 1248 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1249 | # value.
|
---|
| 1250 | ac_cache_corrupted=false
|
---|
[20853] | 1251 | for ac_var in `(set) 2>&1 |
|
---|
| 1252 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
[8756] | 1253 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1254 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
[20853] | 1255 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
| 1256 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
[8756] | 1257 | case $ac_old_set,$ac_new_set in
|
---|
| 1258 | set,)
|
---|
| 1259 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1260 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
| 1261 | ac_cache_corrupted=: ;;
|
---|
| 1262 | ,set)
|
---|
| 1263 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1264 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
| 1265 | ac_cache_corrupted=: ;;
|
---|
| 1266 | ,);;
|
---|
| 1267 | *)
|
---|
| 1268 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
| 1269 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1270 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1271 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1272 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1273 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1274 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1275 | ac_cache_corrupted=:
|
---|
| 1276 | fi;;
|
---|
| 1277 | esac
|
---|
| 1278 | # Pass precious variables to config.status.
|
---|
| 1279 | if test "$ac_new_set" = set; then
|
---|
| 1280 | case $ac_new_val in
|
---|
[20853] | 1281 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1282 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[8756] | 1283 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1284 | esac
|
---|
| 1285 | case " $ac_configure_args " in
|
---|
| 1286 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
| 1287 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 1288 | esac
|
---|
| 1289 | fi
|
---|
| 1290 | done
|
---|
| 1291 | if $ac_cache_corrupted; then
|
---|
| 1292 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1293 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1294 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1295 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1296 | { (exit 1); exit 1; }; }
|
---|
| 1297 | fi
|
---|
| 1298 |
|
---|
[20853] | 1299 | ac_ext=c
|
---|
| 1300 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1301 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1302 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1303 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[562] | 1304 |
|
---|
| 1305 |
|
---|
| 1306 |
|
---|
[8200] | 1307 |
|
---|
| 1308 |
|
---|
[8756] | 1309 |
|
---|
| 1310 |
|
---|
| 1311 |
|
---|
| 1312 |
|
---|
| 1313 |
|
---|
| 1314 |
|
---|
| 1315 |
|
---|
| 1316 |
|
---|
| 1317 |
|
---|
| 1318 |
|
---|
| 1319 |
|
---|
| 1320 |
|
---|
| 1321 |
|
---|
| 1322 |
|
---|
[20853] | 1323 | ac_config_headers="$ac_config_headers config.h"
|
---|
[8756] | 1324 |
|
---|
[20853] | 1325 |
|
---|
[562] | 1326 | PACKAGE=gsdl
|
---|
[16572] | 1327 | VERSION=2.82-svn
|
---|
[8756] | 1328 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 1329 | #define PACKAGE "$PACKAGE"
|
---|
[8756] | 1330 | _ACEOF
|
---|
[562] | 1331 |
|
---|
[8756] | 1332 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 1333 | #define VERSION "$VERSION"
|
---|
[8756] | 1334 | _ACEOF
|
---|
[562] | 1335 |
|
---|
[8200] | 1336 |
|
---|
| 1337 |
|
---|
| 1338 |
|
---|
[18487] | 1339 |
|
---|
[567] | 1340 | USE_FASTCGI=0
|
---|
| 1341 | if test USE_FASTCGI = 1; then
|
---|
[8756] | 1342 | cat >>confdefs.h <<\_ACEOF
|
---|
[567] | 1343 | #define USE_FASTCGI 1
|
---|
[8756] | 1344 | _ACEOF
|
---|
[567] | 1345 |
|
---|
[8200] | 1346 |
|
---|
[3631] | 1347 | fi
|
---|
[567] | 1348 |
|
---|
[3631] | 1349 | if test USE_LANGACTION = 1; then
|
---|
[8756] | 1350 | cat >>confdefs.h <<\_ACEOF
|
---|
[3631] | 1351 | #define USE_LANGACTION 1
|
---|
[8756] | 1352 | _ACEOF
|
---|
[3631] | 1353 |
|
---|
[8200] | 1354 |
|
---|
[567] | 1355 | fi
|
---|
| 1356 |
|
---|
[20853] | 1357 | # Check whether --enable-corba or --disable-corba was given.
|
---|
[1860] | 1358 | if test "${enable_corba+set}" = set; then
|
---|
[20853] | 1359 | enableval="$enable_corba"
|
---|
| 1360 | USE_CORBA=1
|
---|
[1860] | 1361 | else
|
---|
[2471] | 1362 | USE_CORBA=0
|
---|
[20853] | 1363 | fi;
|
---|
[8756] | 1364 | cat >>confdefs.h <<_ACEOF
|
---|
[2297] | 1365 | #define USE_CORBA $USE_CORBA
|
---|
[8756] | 1366 | _ACEOF
|
---|
[1860] | 1367 |
|
---|
[8200] | 1368 |
|
---|
| 1369 |
|
---|
[8756] | 1370 |
|
---|
[20853] | 1371 | # Check whether --with-micodir or --without-micodir was given.
|
---|
[1860] | 1372 | if test "${with_micodir+set}" = set; then
|
---|
[20853] | 1373 | withval="$with_micodir"
|
---|
[21330] | 1374 | MICO_DIR=$withval
|
---|
[1860] | 1375 | else
|
---|
[2471] | 1376 | MICO_DIR="default"
|
---|
[20853] | 1377 | fi;
|
---|
[8756] | 1378 | cat >>confdefs.h <<_ACEOF
|
---|
[2297] | 1379 | #define MICO_DIR "$MICO_DIR"
|
---|
[8756] | 1380 | _ACEOF
|
---|
[1860] | 1381 |
|
---|
[8200] | 1382 |
|
---|
| 1383 |
|
---|
[20853] | 1384 | # Check whether --enable-z3950 or --disable-z3950 was given.
|
---|
[1938] | 1385 | if test "${enable_z3950+set}" = set; then
|
---|
[20853] | 1386 | enableval="$enable_z3950"
|
---|
| 1387 | USE_Z3950=1
|
---|
[1938] | 1388 | else
|
---|
| 1389 | USE_Z3950=0
|
---|
[20853] | 1390 | fi;
|
---|
[2297] | 1391 | if test USE_Z3950 = 1; then
|
---|
[8756] | 1392 | cat >>confdefs.h <<\_ACEOF
|
---|
[2297] | 1393 | #define USE_Z3950 $USE_Z3950
|
---|
[8756] | 1394 | _ACEOF
|
---|
[1938] | 1395 |
|
---|
[8200] | 1396 |
|
---|
[2297] | 1397 | fi
|
---|
[1938] | 1398 |
|
---|
[20853] | 1399 | # Check whether --enable-yaz or --disable-yaz was given.
|
---|
[12492] | 1400 | if test "${enable_yaz+set}" = set; then
|
---|
[20853] | 1401 | enableval="$enable_yaz"
|
---|
| 1402 | USE_YAZ=0
|
---|
[12492] | 1403 | else
|
---|
| 1404 | USE_YAZ=1
|
---|
[20853] | 1405 | fi;
|
---|
[12492] | 1406 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1407 | #define USE_YAZ $USE_YAZ
|
---|
| 1408 | _ACEOF
|
---|
[8756] | 1409 |
|
---|
[12492] | 1410 |
|
---|
| 1411 |
|
---|
[20853] | 1412 | # Check whether --enable-accentfold or --disable-accentfold was given.
|
---|
[12922] | 1413 | if test "${enable_accentfold+set}" = set; then
|
---|
[20853] | 1414 | enableval="$enable_accentfold"
|
---|
| 1415 | ENABLE_ACCENTFOLD=0
|
---|
[12922] | 1416 | else
|
---|
| 1417 | ENABLE_ACCENTFOLD=1
|
---|
[20853] | 1418 | fi;
|
---|
[12922] | 1419 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1420 | #define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
|
---|
| 1421 | _ACEOF
|
---|
| 1422 |
|
---|
| 1423 |
|
---|
[15901] | 1424 |
|
---|
[20853] | 1425 | # Check whether --enable-sqlite or --disable-sqlite was given.
|
---|
[15794] | 1426 | if test "${enable_sqlite+set}" = set; then
|
---|
[20853] | 1427 | enableval="$enable_sqlite"
|
---|
| 1428 | USE_SQLITE=0
|
---|
[16288] | 1429 | else
|
---|
[15794] | 1430 | USE_SQLITE=1
|
---|
[20853] | 1431 | fi;
|
---|
[15794] | 1432 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1433 | #define USE_SQLITE $USE_SQLITE
|
---|
| 1434 | _ACEOF
|
---|
[12922] | 1435 |
|
---|
[15794] | 1436 |
|
---|
[15901] | 1437 |
|
---|
[20853] | 1438 | # Check whether --enable-apache-httpd or --disable-apache-httpd was given.
|
---|
[18487] | 1439 | if test "${enable_apache_httpd+set}" = set; then
|
---|
[20853] | 1440 | enableval="$enable_apache_httpd"
|
---|
| 1441 | USE_APACHE_HTTPD=1
|
---|
[19263] | 1442 | else
|
---|
[20853] | 1443 | USE_APACHE_HTTPD=0
|
---|
| 1444 | fi;
|
---|
[18487] | 1445 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1446 | #define USE_APACHE_HTTPD $USE_APACHE_HTTPD
|
---|
| 1447 | _ACEOF
|
---|
| 1448 |
|
---|
| 1449 |
|
---|
| 1450 |
|
---|
| 1451 |
|
---|
[21330] | 1452 | # Check whether --enable-mg or --disable-mg was given.
|
---|
| 1453 | if test "${enable_mg+set}" = set; then
|
---|
| 1454 | enableval="$enable_mg"
|
---|
| 1455 | ENABLE_MG=$enableval
|
---|
| 1456 | else
|
---|
| 1457 | ENABLE_MG=yes
|
---|
| 1458 | fi;
|
---|
| 1459 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
| 1460 | ENABLE_MG=1
|
---|
| 1461 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1462 | #define ENABLE_MG
|
---|
| 1463 | _ACEOF
|
---|
| 1464 |
|
---|
| 1465 | else
|
---|
| 1466 | ENABLE_MG=0
|
---|
| 1467 | fi
|
---|
| 1468 |
|
---|
| 1469 |
|
---|
| 1470 |
|
---|
| 1471 | # Check whether --enable-mgpp or --disable-mgpp was given.
|
---|
| 1472 | if test "${enable_mgpp+set}" = set; then
|
---|
| 1473 | enableval="$enable_mgpp"
|
---|
| 1474 | ENABLE_MGPP=$enableval
|
---|
| 1475 | else
|
---|
| 1476 | ENABLE_MGPP=yes
|
---|
| 1477 | fi;
|
---|
| 1478 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
| 1479 | ENABLE_MGPP=1
|
---|
| 1480 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1481 | #define ENABLE_MGPP
|
---|
| 1482 | _ACEOF
|
---|
| 1483 |
|
---|
| 1484 | else
|
---|
| 1485 | ENABLE_MGPP=0
|
---|
| 1486 | fi
|
---|
| 1487 |
|
---|
| 1488 |
|
---|
| 1489 | # Check whether --enable-lucene or --disable-lucene was given.
|
---|
| 1490 | if test "${enable_lucene+set}" = set; then
|
---|
| 1491 | enableval="$enable_lucene"
|
---|
| 1492 | ENABLE_LUCENE=$enableval
|
---|
| 1493 | else
|
---|
| 1494 | ENABLE_LUCENE=yes
|
---|
| 1495 | fi;
|
---|
| 1496 | if test $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" ; then
|
---|
| 1497 | ENABLE_LUCENE=1
|
---|
| 1498 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1499 | #define ENABLE_LUCENE
|
---|
| 1500 | _ACEOF
|
---|
| 1501 |
|
---|
| 1502 | else
|
---|
| 1503 | ENABLE_LUCENE=0
|
---|
| 1504 | fi
|
---|
| 1505 |
|
---|
| 1506 |
|
---|
| 1507 |
|
---|
[14169] | 1508 | LDFLAGS=$LDFLAGS
|
---|
[15551] | 1509 |
|
---|
[1722] | 1510 | if test -z "$CFLAGS"; then
|
---|
[794] | 1511 | CFLAGS=-O2
|
---|
[1722] | 1512 | fi
|
---|
[576] | 1513 |
|
---|
| 1514 |
|
---|
[15551] | 1515 |
|
---|
[8756] | 1516 | ac_ext=c
|
---|
| 1517 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1518 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1519 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1520 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1521 | if test -n "$ac_tool_prefix"; then
|
---|
| 1522 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 1523 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[20853] | 1524 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[8756] | 1526 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1527 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1528 | else
|
---|
| 1529 | if test -n "$CC"; then
|
---|
| 1530 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1531 | else
|
---|
| 1532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1533 | for as_dir in $PATH
|
---|
| 1534 | do
|
---|
| 1535 | IFS=$as_save_IFS
|
---|
| 1536 | test -z "$as_dir" && as_dir=.
|
---|
| 1537 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[20853] | 1538 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 1539 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
| 1540 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1541 | break 2
|
---|
| 1542 | fi
|
---|
| 1543 | done
|
---|
| 1544 | done
|
---|
| 1545 |
|
---|
| 1546 | fi
|
---|
| 1547 | fi
|
---|
| 1548 | CC=$ac_cv_prog_CC
|
---|
| 1549 | if test -n "$CC"; then
|
---|
[20853] | 1550 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1551 | echo "${ECHO_T}$CC" >&6
|
---|
[8756] | 1552 | else
|
---|
[20853] | 1553 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1554 | echo "${ECHO_T}no" >&6
|
---|
[8756] | 1555 | fi
|
---|
| 1556 |
|
---|
| 1557 | fi
|
---|
| 1558 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1559 | ac_ct_CC=$CC
|
---|
| 1560 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
[562] | 1561 | set dummy gcc; ac_word=$2
|
---|
[20853] | 1562 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1563 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[8756] | 1564 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1565 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1566 | else
|
---|
[8756] | 1567 | if test -n "$ac_ct_CC"; then
|
---|
| 1568 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1569 | else
|
---|
| 1570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1571 | for as_dir in $PATH
|
---|
| 1572 | do
|
---|
| 1573 | IFS=$as_save_IFS
|
---|
| 1574 | test -z "$as_dir" && as_dir=.
|
---|
| 1575 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[20853] | 1576 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 1577 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
| 1578 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1579 | break 2
|
---|
| 1580 | fi
|
---|
| 1581 | done
|
---|
| 1582 | done
|
---|
| 1583 |
|
---|
| 1584 | fi
|
---|
| 1585 | fi
|
---|
| 1586 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1587 | if test -n "$ac_ct_CC"; then
|
---|
[20853] | 1588 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1589 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
[8756] | 1590 | else
|
---|
[20853] | 1591 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1592 | echo "${ECHO_T}no" >&6
|
---|
[8756] | 1593 | fi
|
---|
| 1594 |
|
---|
[20853] | 1595 | CC=$ac_ct_CC
|
---|
[8756] | 1596 | else
|
---|
| 1597 | CC="$ac_cv_prog_CC"
|
---|
| 1598 | fi
|
---|
| 1599 |
|
---|
| 1600 | if test -z "$CC"; then
|
---|
[20853] | 1601 | if test -n "$ac_tool_prefix"; then
|
---|
| 1602 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
[8756] | 1603 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[20853] | 1604 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1605 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[8756] | 1606 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1607 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1608 | else
|
---|
[562] | 1609 | if test -n "$CC"; then
|
---|
| 1610 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1611 | else
|
---|
[8756] | 1612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1613 | for as_dir in $PATH
|
---|
| 1614 | do
|
---|
| 1615 | IFS=$as_save_IFS
|
---|
| 1616 | test -z "$as_dir" && as_dir=.
|
---|
| 1617 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[20853] | 1618 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 1619 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
| 1620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1621 | break 2
|
---|
| 1622 | fi
|
---|
| 1623 | done
|
---|
| 1624 | done
|
---|
| 1625 |
|
---|
[562] | 1626 | fi
|
---|
| 1627 | fi
|
---|
[8756] | 1628 | CC=$ac_cv_prog_CC
|
---|
[562] | 1629 | if test -n "$CC"; then
|
---|
[20853] | 1630 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1631 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1632 | else
|
---|
[20853] | 1633 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1634 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1635 | fi
|
---|
| 1636 |
|
---|
[20853] | 1637 | fi
|
---|
| 1638 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1639 | ac_ct_CC=$CC
|
---|
| 1640 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1641 | set dummy cc; ac_word=$2
|
---|
| 1642 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1643 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1644 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1645 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1646 | else
|
---|
| 1647 | if test -n "$ac_ct_CC"; then
|
---|
| 1648 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1649 | else
|
---|
| 1650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1651 | for as_dir in $PATH
|
---|
| 1652 | do
|
---|
| 1653 | IFS=$as_save_IFS
|
---|
| 1654 | test -z "$as_dir" && as_dir=.
|
---|
| 1655 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1656 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1657 | ac_cv_prog_ac_ct_CC="cc"
|
---|
| 1658 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1659 | break 2
|
---|
| 1660 | fi
|
---|
| 1661 | done
|
---|
| 1662 | done
|
---|
[20842] | 1663 |
|
---|
[8756] | 1664 | fi
|
---|
[20853] | 1665 | fi
|
---|
| 1666 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1667 | if test -n "$ac_ct_CC"; then
|
---|
| 1668 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1669 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1670 | else
|
---|
| 1671 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1672 | echo "${ECHO_T}no" >&6
|
---|
| 1673 | fi
|
---|
| 1674 |
|
---|
| 1675 | CC=$ac_ct_CC
|
---|
| 1676 | else
|
---|
| 1677 | CC="$ac_cv_prog_CC"
|
---|
| 1678 | fi
|
---|
| 1679 |
|
---|
| 1680 | fi
|
---|
[562] | 1681 | if test -z "$CC"; then
|
---|
| 1682 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1683 | set dummy cc; ac_word=$2
|
---|
[20853] | 1684 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1685 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[8756] | 1686 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1687 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1688 | else
|
---|
| 1689 | if test -n "$CC"; then
|
---|
| 1690 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1691 | else
|
---|
| 1692 | ac_prog_rejected=no
|
---|
[8756] | 1693 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1694 | for as_dir in $PATH
|
---|
| 1695 | do
|
---|
| 1696 | IFS=$as_save_IFS
|
---|
| 1697 | test -z "$as_dir" && as_dir=.
|
---|
| 1698 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[20853] | 1699 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 1700 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 1701 | ac_prog_rejected=yes
|
---|
| 1702 | continue
|
---|
| 1703 | fi
|
---|
| 1704 | ac_cv_prog_CC="cc"
|
---|
| 1705 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1706 | break 2
|
---|
| 1707 | fi
|
---|
| 1708 | done
|
---|
| 1709 | done
|
---|
| 1710 |
|
---|
[562] | 1711 | if test $ac_prog_rejected = yes; then
|
---|
| 1712 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 1713 | set dummy $ac_cv_prog_CC
|
---|
| 1714 | shift
|
---|
[8756] | 1715 | if test $# != 0; then
|
---|
[562] | 1716 | # We chose a different compiler from the bogus one.
|
---|
| 1717 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 1718 | # first if we set CC to just the basename; use the full file name.
|
---|
| 1719 | shift
|
---|
[8756] | 1720 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[562] | 1721 | fi
|
---|
| 1722 | fi
|
---|
| 1723 | fi
|
---|
| 1724 | fi
|
---|
[8756] | 1725 | CC=$ac_cv_prog_CC
|
---|
[562] | 1726 | if test -n "$CC"; then
|
---|
[20853] | 1727 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1728 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1729 | else
|
---|
[20853] | 1730 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1731 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1732 | fi
|
---|
| 1733 |
|
---|
[8756] | 1734 | fi
|
---|
| 1735 | if test -z "$CC"; then
|
---|
| 1736 | if test -n "$ac_tool_prefix"; then
|
---|
[20853] | 1737 | for ac_prog in cl
|
---|
[8756] | 1738 | do
|
---|
| 1739 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 1740 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[20853] | 1741 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1742 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[8756] | 1743 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1744 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1745 | else
|
---|
| 1746 | if test -n "$CC"; then
|
---|
| 1747 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1748 | else
|
---|
[8756] | 1749 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1750 | for as_dir in $PATH
|
---|
| 1751 | do
|
---|
| 1752 | IFS=$as_save_IFS
|
---|
| 1753 | test -z "$as_dir" && as_dir=.
|
---|
| 1754 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[20853] | 1755 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 1756 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
| 1757 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1758 | break 2
|
---|
| 1759 | fi
|
---|
| 1760 | done
|
---|
| 1761 | done
|
---|
| 1762 |
|
---|
[562] | 1763 | fi
|
---|
| 1764 | fi
|
---|
[8756] | 1765 | CC=$ac_cv_prog_CC
|
---|
[562] | 1766 | if test -n "$CC"; then
|
---|
[20853] | 1767 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1768 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1769 | else
|
---|
[20853] | 1770 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1771 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1772 | fi
|
---|
[8756] | 1773 |
|
---|
| 1774 | test -n "$CC" && break
|
---|
| 1775 | done
|
---|
| 1776 | fi
|
---|
| 1777 | if test -z "$CC"; then
|
---|
| 1778 | ac_ct_CC=$CC
|
---|
[20853] | 1779 | for ac_prog in cl
|
---|
[8756] | 1780 | do
|
---|
| 1781 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 1782 | set dummy $ac_prog; ac_word=$2
|
---|
[20853] | 1783 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1784 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[8756] | 1785 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1786 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1787 | else
|
---|
| 1788 | if test -n "$ac_ct_CC"; then
|
---|
| 1789 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1790 | else
|
---|
| 1791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1792 | for as_dir in $PATH
|
---|
| 1793 | do
|
---|
| 1794 | IFS=$as_save_IFS
|
---|
| 1795 | test -z "$as_dir" && as_dir=.
|
---|
| 1796 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[20853] | 1797 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 1798 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
| 1799 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1800 | break 2
|
---|
[8200] | 1801 | fi
|
---|
[8756] | 1802 | done
|
---|
| 1803 | done
|
---|
| 1804 |
|
---|
[562] | 1805 | fi
|
---|
[8756] | 1806 | fi
|
---|
| 1807 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1808 | if test -n "$ac_ct_CC"; then
|
---|
[20853] | 1809 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1810 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
[8756] | 1811 | else
|
---|
[20853] | 1812 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1813 | echo "${ECHO_T}no" >&6
|
---|
[8756] | 1814 | fi
|
---|
[562] | 1815 |
|
---|
[8756] | 1816 | test -n "$ac_ct_CC" && break
|
---|
| 1817 | done
|
---|
[562] | 1818 |
|
---|
[20853] | 1819 | CC=$ac_ct_CC
|
---|
[8756] | 1820 | fi
|
---|
[562] | 1821 |
|
---|
[8756] | 1822 | fi
|
---|
[562] | 1823 |
|
---|
| 1824 |
|
---|
[8756] | 1825 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 1826 | See \`config.log' for more details." >&5
|
---|
| 1827 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 1828 | See \`config.log' for more details." >&2;}
|
---|
| 1829 | { (exit 1); exit 1; }; }
|
---|
| 1830 |
|
---|
| 1831 | # Provide some information about the compiler.
|
---|
[20853] | 1832 | echo "$as_me:$LINENO:" \
|
---|
| 1833 | "checking for C compiler version" >&5
|
---|
[8756] | 1834 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
[20853] | 1835 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 1836 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
[8756] | 1837 | ac_status=$?
|
---|
| 1838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1839 | (exit $ac_status); }
|
---|
[20853] | 1840 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 1841 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
[8756] | 1842 | ac_status=$?
|
---|
| 1843 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1844 | (exit $ac_status); }
|
---|
[20853] | 1845 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 1846 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
[8756] | 1847 | ac_status=$?
|
---|
| 1848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1849 | (exit $ac_status); }
|
---|
| 1850 |
|
---|
| 1851 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1852 | /* confdefs.h. */
|
---|
| 1853 | _ACEOF
|
---|
| 1854 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1855 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1856 | /* end confdefs.h. */
|
---|
| 1857 |
|
---|
| 1858 | int
|
---|
| 1859 | main ()
|
---|
| 1860 | {
|
---|
| 1861 |
|
---|
| 1862 | ;
|
---|
| 1863 | return 0;
|
---|
| 1864 | }
|
---|
| 1865 | _ACEOF
|
---|
| 1866 | ac_clean_files_save=$ac_clean_files
|
---|
| 1867 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
| 1868 | # Try to create an executable without -o first, disregard a.out.
|
---|
| 1869 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
| 1870 | # of exeext.
|
---|
[20853] | 1871 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
| 1872 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
[8756] | 1873 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
[20853] | 1874 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
| 1875 | (eval $ac_link_default) 2>&5
|
---|
[8756] | 1876 | ac_status=$?
|
---|
| 1877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1878 | (exit $ac_status); }; then
|
---|
[20853] | 1879 | # Find the output, starting from the most likely. This scheme is
|
---|
| 1880 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
| 1881 | # resort.
|
---|
| 1882 |
|
---|
| 1883 | # Be careful to initialize this variable, since it used to be cached.
|
---|
| 1884 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
| 1885 | ac_cv_exeext=
|
---|
| 1886 | # b.out is created by i960 compilers.
|
---|
| 1887 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
[8756] | 1888 | do
|
---|
| 1889 | test -f "$ac_file" || continue
|
---|
| 1890 | case $ac_file in
|
---|
[20853] | 1891 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
[8756] | 1892 | ;;
|
---|
[20853] | 1893 | conftest.$ac_ext )
|
---|
| 1894 | # This is the source file.
|
---|
| 1895 | ;;
|
---|
[8756] | 1896 | [ab].out )
|
---|
| 1897 | # We found the default executable, but exeext='' is most
|
---|
| 1898 | # certainly right.
|
---|
| 1899 | break;;
|
---|
| 1900 | *.* )
|
---|
[20853] | 1901 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1902 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
| 1903 | # but it would be cool to find out if it's true. Does anybody
|
---|
| 1904 | # maintain Libtool? --akim.
|
---|
| 1905 | export ac_cv_exeext
|
---|
[8756] | 1906 | break;;
|
---|
| 1907 | * )
|
---|
| 1908 | break;;
|
---|
| 1909 | esac
|
---|
| 1910 | done
|
---|
| 1911 | else
|
---|
| 1912 | echo "$as_me: failed program was:" >&5
|
---|
| 1913 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1914 |
|
---|
| 1915 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
| 1916 | See \`config.log' for more details." >&5
|
---|
| 1917 | echo "$as_me: error: C compiler cannot create executables
|
---|
| 1918 | See \`config.log' for more details." >&2;}
|
---|
| 1919 | { (exit 77); exit 77; }; }
|
---|
| 1920 | fi
|
---|
| 1921 |
|
---|
| 1922 | ac_exeext=$ac_cv_exeext
|
---|
[20853] | 1923 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
| 1924 | echo "${ECHO_T}$ac_file" >&6
|
---|
[8756] | 1925 |
|
---|
[20853] | 1926 | # Check the compiler produces executables we can run. If not, either
|
---|
[8756] | 1927 | # the compiler is broken, or we cross compile.
|
---|
[20853] | 1928 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
| 1929 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
[8756] | 1930 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 1931 | # If not cross compiling, check that we can run a simple program.
|
---|
| 1932 | if test "$cross_compiling" != yes; then
|
---|
| 1933 | if { ac_try='./$ac_file'
|
---|
[20853] | 1934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1935 | (eval $ac_try) 2>&5
|
---|
[8756] | 1936 | ac_status=$?
|
---|
| 1937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1938 | (exit $ac_status); }; }; then
|
---|
| 1939 | cross_compiling=no
|
---|
[562] | 1940 | else
|
---|
[8756] | 1941 | if test "$cross_compiling" = maybe; then
|
---|
| 1942 | cross_compiling=yes
|
---|
| 1943 | else
|
---|
| 1944 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
| 1945 | If you meant to cross compile, use \`--host'.
|
---|
| 1946 | See \`config.log' for more details." >&5
|
---|
| 1947 | echo "$as_me: error: cannot run C compiled programs.
|
---|
| 1948 | If you meant to cross compile, use \`--host'.
|
---|
| 1949 | See \`config.log' for more details." >&2;}
|
---|
| 1950 | { (exit 1); exit 1; }; }
|
---|
| 1951 | fi
|
---|
[562] | 1952 | fi
|
---|
| 1953 | fi
|
---|
[20853] | 1954 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 1955 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 1956 |
|
---|
[8756] | 1957 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
| 1958 | ac_clean_files=$ac_clean_files_save
|
---|
[20853] | 1959 | # Check the compiler produces executables we can run. If not, either
|
---|
[8756] | 1960 | # the compiler is broken, or we cross compile.
|
---|
[20853] | 1961 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
| 1962 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
| 1963 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
| 1964 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
[8756] | 1965 |
|
---|
[20853] | 1966 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 1967 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
| 1968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 1969 | (eval $ac_link) 2>&5
|
---|
[8756] | 1970 | ac_status=$?
|
---|
| 1971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1972 | (exit $ac_status); }; then
|
---|
| 1973 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 1974 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 1975 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 1976 | # `rm'.
|
---|
| 1977 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 1978 | test -f "$ac_file" || continue
|
---|
| 1979 | case $ac_file in
|
---|
[20853] | 1980 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
[8756] | 1981 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
[20853] | 1982 | export ac_cv_exeext
|
---|
[8756] | 1983 | break;;
|
---|
| 1984 | * ) break;;
|
---|
| 1985 | esac
|
---|
| 1986 | done
|
---|
| 1987 | else
|
---|
| 1988 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1989 | See \`config.log' for more details." >&5
|
---|
| 1990 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1991 | See \`config.log' for more details." >&2;}
|
---|
| 1992 | { (exit 1); exit 1; }; }
|
---|
[562] | 1993 | fi
|
---|
| 1994 |
|
---|
[8756] | 1995 | rm -f conftest$ac_cv_exeext
|
---|
[20853] | 1996 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
| 1997 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
[8756] | 1998 |
|
---|
| 1999 | rm -f conftest.$ac_ext
|
---|
| 2000 | EXEEXT=$ac_cv_exeext
|
---|
| 2001 | ac_exeext=$EXEEXT
|
---|
[20853] | 2002 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 2003 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
[8756] | 2004 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 2005 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 2006 | else
|
---|
[8756] | 2007 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2008 | /* confdefs.h. */
|
---|
| 2009 | _ACEOF
|
---|
| 2010 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2011 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2012 | /* end confdefs.h. */
|
---|
| 2013 |
|
---|
| 2014 | int
|
---|
| 2015 | main ()
|
---|
| 2016 | {
|
---|
| 2017 |
|
---|
| 2018 | ;
|
---|
| 2019 | return 0;
|
---|
| 2020 | }
|
---|
| 2021 | _ACEOF
|
---|
| 2022 | rm -f conftest.o conftest.obj
|
---|
[20853] | 2023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2024 | (eval $ac_compile) 2>&5
|
---|
[8756] | 2025 | ac_status=$?
|
---|
| 2026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2027 | (exit $ac_status); }; then
|
---|
[20853] | 2028 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
[8756] | 2029 | case $ac_file in
|
---|
[20853] | 2030 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
[8756] | 2031 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 2032 | break;;
|
---|
| 2033 | esac
|
---|
| 2034 | done
|
---|
[562] | 2035 | else
|
---|
[8756] | 2036 | echo "$as_me: failed program was:" >&5
|
---|
| 2037 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2038 |
|
---|
| 2039 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 2040 | See \`config.log' for more details." >&5
|
---|
| 2041 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 2042 | See \`config.log' for more details." >&2;}
|
---|
| 2043 | { (exit 1); exit 1; }; }
|
---|
[562] | 2044 | fi
|
---|
[8756] | 2045 |
|
---|
| 2046 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
[562] | 2047 | fi
|
---|
[20853] | 2048 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
| 2049 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
[8756] | 2050 | OBJEXT=$ac_cv_objext
|
---|
| 2051 | ac_objext=$OBJEXT
|
---|
[20853] | 2052 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
| 2053 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
[8756] | 2054 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 2055 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2056 | else
|
---|
| 2057 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2058 | /* confdefs.h. */
|
---|
| 2059 | _ACEOF
|
---|
| 2060 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2061 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2062 | /* end confdefs.h. */
|
---|
[562] | 2063 |
|
---|
[8756] | 2064 | int
|
---|
| 2065 | main ()
|
---|
| 2066 | {
|
---|
| 2067 | #ifndef __GNUC__
|
---|
| 2068 | choke me
|
---|
| 2069 | #endif
|
---|
[562] | 2070 |
|
---|
[8756] | 2071 | ;
|
---|
| 2072 | return 0;
|
---|
| 2073 | }
|
---|
| 2074 | _ACEOF
|
---|
| 2075 | rm -f conftest.$ac_objext
|
---|
[20853] | 2076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2077 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 2078 | ac_status=$?
|
---|
| 2079 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2080 | rm -f conftest.er1
|
---|
| 2081 | cat conftest.err >&5
|
---|
| 2082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 2083 | (exit $ac_status); } &&
|
---|
| 2084 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2085 | || test ! -s conftest.err'
|
---|
| 2086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2087 | (eval $ac_try) 2>&5
|
---|
| 2088 | ac_status=$?
|
---|
| 2089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2090 | (exit $ac_status); }; } &&
|
---|
| 2091 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2093 | (eval $ac_try) 2>&5
|
---|
| 2094 | ac_status=$?
|
---|
| 2095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2096 | (exit $ac_status); }; }; then
|
---|
[8756] | 2097 | ac_compiler_gnu=yes
|
---|
[562] | 2098 | else
|
---|
[8756] | 2099 | echo "$as_me: failed program was:" >&5
|
---|
| 2100 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2101 |
|
---|
[20853] | 2102 | ac_compiler_gnu=no
|
---|
[562] | 2103 | fi
|
---|
[20853] | 2104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 2105 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
[562] | 2106 |
|
---|
[8756] | 2107 | fi
|
---|
[20853] | 2108 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 2109 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
[8756] | 2110 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2111 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2112 | ac_save_CFLAGS=$CFLAGS
|
---|
[20853] | 2113 | CFLAGS="-g"
|
---|
| 2114 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
| 2115 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
[8756] | 2116 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2117 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 2118 | else
|
---|
[20853] | 2119 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 2120 | /* confdefs.h. */
|
---|
| 2121 | _ACEOF
|
---|
| 2122 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2123 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2124 | /* end confdefs.h. */
|
---|
| 2125 |
|
---|
| 2126 | int
|
---|
| 2127 | main ()
|
---|
| 2128 | {
|
---|
| 2129 |
|
---|
| 2130 | ;
|
---|
| 2131 | return 0;
|
---|
| 2132 | }
|
---|
| 2133 | _ACEOF
|
---|
| 2134 | rm -f conftest.$ac_objext
|
---|
[20853] | 2135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2136 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 2137 | ac_status=$?
|
---|
| 2138 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2139 | rm -f conftest.er1
|
---|
| 2140 | cat conftest.err >&5
|
---|
| 2141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 2142 | (exit $ac_status); } &&
|
---|
| 2143 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2144 | || test ! -s conftest.err'
|
---|
| 2145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2146 | (eval $ac_try) 2>&5
|
---|
[8756] | 2147 | ac_status=$?
|
---|
| 2148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 2149 | (exit $ac_status); }; } &&
|
---|
| 2150 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2152 | (eval $ac_try) 2>&5
|
---|
[8756] | 2153 | ac_status=$?
|
---|
| 2154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 2155 | (exit $ac_status); }; }; then
|
---|
[562] | 2156 | ac_cv_prog_cc_g=yes
|
---|
| 2157 | else
|
---|
[8756] | 2158 | echo "$as_me: failed program was:" >&5
|
---|
| 2159 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2160 |
|
---|
[20853] | 2161 | ac_cv_prog_cc_g=no
|
---|
[562] | 2162 | fi
|
---|
[20853] | 2163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 2164 | fi
|
---|
[20853] | 2165 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
| 2166 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
[562] | 2167 | if test "$ac_test_CFLAGS" = set; then
|
---|
[8756] | 2168 | CFLAGS=$ac_save_CFLAGS
|
---|
[562] | 2169 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2170 | if test "$GCC" = yes; then
|
---|
| 2171 | CFLAGS="-g -O2"
|
---|
| 2172 | else
|
---|
| 2173 | CFLAGS="-g"
|
---|
| 2174 | fi
|
---|
| 2175 | else
|
---|
| 2176 | if test "$GCC" = yes; then
|
---|
| 2177 | CFLAGS="-O2"
|
---|
| 2178 | else
|
---|
| 2179 | CFLAGS=
|
---|
| 2180 | fi
|
---|
| 2181 | fi
|
---|
[20853] | 2182 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
| 2183 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
| 2184 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
[8756] | 2185 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2186 | else
|
---|
[20853] | 2187 | ac_cv_prog_cc_stdc=no
|
---|
[8756] | 2188 | ac_save_CC=$CC
|
---|
| 2189 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2190 | /* confdefs.h. */
|
---|
| 2191 | _ACEOF
|
---|
| 2192 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2193 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2194 | /* end confdefs.h. */
|
---|
| 2195 | #include <stdarg.h>
|
---|
| 2196 | #include <stdio.h>
|
---|
| 2197 | #include <sys/types.h>
|
---|
| 2198 | #include <sys/stat.h>
|
---|
| 2199 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2200 | struct buf { int x; };
|
---|
| 2201 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2202 | static char *e (p, i)
|
---|
| 2203 | char **p;
|
---|
| 2204 | int i;
|
---|
| 2205 | {
|
---|
| 2206 | return p[i];
|
---|
| 2207 | }
|
---|
| 2208 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2209 | {
|
---|
| 2210 | char *s;
|
---|
| 2211 | va_list v;
|
---|
| 2212 | va_start (v,p);
|
---|
| 2213 | s = g (p, va_arg (v,int));
|
---|
| 2214 | va_end (v);
|
---|
| 2215 | return s;
|
---|
| 2216 | }
|
---|
[8200] | 2217 |
|
---|
[8756] | 2218 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2219 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2220 | These don't provoke an error unfortunately, instead are silently treated
|
---|
[20853] | 2221 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
[8756] | 2222 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2223 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
[20853] | 2224 | that's true only with -std1. */
|
---|
[8756] | 2225 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2226 |
|
---|
| 2227 | int test (int i, double x);
|
---|
| 2228 | struct s1 {int (*f) (int a);};
|
---|
| 2229 | struct s2 {int (*f) (double a);};
|
---|
| 2230 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2231 | int argc;
|
---|
| 2232 | char **argv;
|
---|
| 2233 | int
|
---|
| 2234 | main ()
|
---|
| 2235 | {
|
---|
| 2236 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2237 | ;
|
---|
| 2238 | return 0;
|
---|
| 2239 | }
|
---|
| 2240 | _ACEOF
|
---|
[20853] | 2241 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 2242 | # breaks some systems' header files.
|
---|
| 2243 | # AIX -qlanglvl=ansi
|
---|
| 2244 | # Ultrix and OSF/1 -std1
|
---|
| 2245 | # HP-UX 10.20 and later -Ae
|
---|
| 2246 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
| 2247 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
| 2248 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[562] | 2249 | do
|
---|
[8756] | 2250 | CC="$ac_save_CC $ac_arg"
|
---|
| 2251 | rm -f conftest.$ac_objext
|
---|
[20853] | 2252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2253 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 2254 | ac_status=$?
|
---|
| 2255 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2256 | rm -f conftest.er1
|
---|
| 2257 | cat conftest.err >&5
|
---|
| 2258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 2259 | (exit $ac_status); } &&
|
---|
| 2260 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2261 | || test ! -s conftest.err'
|
---|
| 2262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2263 | (eval $ac_try) 2>&5
|
---|
| 2264 | ac_status=$?
|
---|
| 2265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2266 | (exit $ac_status); }; } &&
|
---|
| 2267 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2269 | (eval $ac_try) 2>&5
|
---|
| 2270 | ac_status=$?
|
---|
| 2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2272 | (exit $ac_status); }; }; then
|
---|
| 2273 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
| 2274 | break
|
---|
[562] | 2275 | else
|
---|
[8756] | 2276 | echo "$as_me: failed program was:" >&5
|
---|
| 2277 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2278 |
|
---|
[562] | 2279 | fi
|
---|
[20853] | 2280 | rm -f conftest.err conftest.$ac_objext
|
---|
[8756] | 2281 | done
|
---|
[20853] | 2282 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
[8756] | 2283 | CC=$ac_save_CC
|
---|
| 2284 |
|
---|
[562] | 2285 | fi
|
---|
[20853] | 2286 |
|
---|
| 2287 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 2288 | x|xno)
|
---|
| 2289 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2290 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
[8756] | 2291 | *)
|
---|
[20853] | 2292 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 2293 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 2294 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
[8756] | 2295 | esac
|
---|
| 2296 |
|
---|
[20853] | 2297 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
| 2298 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
| 2299 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
| 2300 | # the declaration of exit, since it's the most demanding environment.
|
---|
| 2301 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2302 | #ifndef __cplusplus
|
---|
| 2303 | choke me
|
---|
| 2304 | #endif
|
---|
| 2305 | _ACEOF
|
---|
| 2306 | rm -f conftest.$ac_objext
|
---|
| 2307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2308 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2309 | ac_status=$?
|
---|
| 2310 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2311 | rm -f conftest.er1
|
---|
| 2312 | cat conftest.err >&5
|
---|
| 2313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2314 | (exit $ac_status); } &&
|
---|
| 2315 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2316 | || test ! -s conftest.err'
|
---|
| 2317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2318 | (eval $ac_try) 2>&5
|
---|
| 2319 | ac_status=$?
|
---|
| 2320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2321 | (exit $ac_status); }; } &&
|
---|
| 2322 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2324 | (eval $ac_try) 2>&5
|
---|
| 2325 | ac_status=$?
|
---|
| 2326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2327 | (exit $ac_status); }; }; then
|
---|
| 2328 | for ac_declaration in \
|
---|
| 2329 | '' \
|
---|
| 2330 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2331 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2332 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2333 | 'extern "C" void exit (int);' \
|
---|
| 2334 | 'void exit (int);'
|
---|
| 2335 | do
|
---|
| 2336 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2337 | /* confdefs.h. */
|
---|
| 2338 | _ACEOF
|
---|
| 2339 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2340 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2341 | /* end confdefs.h. */
|
---|
| 2342 | $ac_declaration
|
---|
| 2343 | #include <stdlib.h>
|
---|
| 2344 | int
|
---|
| 2345 | main ()
|
---|
| 2346 | {
|
---|
| 2347 | exit (42);
|
---|
| 2348 | ;
|
---|
| 2349 | return 0;
|
---|
| 2350 | }
|
---|
| 2351 | _ACEOF
|
---|
| 2352 | rm -f conftest.$ac_objext
|
---|
| 2353 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2354 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2355 | ac_status=$?
|
---|
| 2356 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2357 | rm -f conftest.er1
|
---|
| 2358 | cat conftest.err >&5
|
---|
| 2359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2360 | (exit $ac_status); } &&
|
---|
| 2361 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2362 | || test ! -s conftest.err'
|
---|
| 2363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2364 | (eval $ac_try) 2>&5
|
---|
| 2365 | ac_status=$?
|
---|
| 2366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2367 | (exit $ac_status); }; } &&
|
---|
| 2368 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2370 | (eval $ac_try) 2>&5
|
---|
| 2371 | ac_status=$?
|
---|
| 2372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2373 | (exit $ac_status); }; }; then
|
---|
| 2374 | :
|
---|
| 2375 | else
|
---|
| 2376 | echo "$as_me: failed program was:" >&5
|
---|
| 2377 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8756] | 2378 |
|
---|
[20853] | 2379 | continue
|
---|
| 2380 | fi
|
---|
| 2381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2382 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2383 | /* confdefs.h. */
|
---|
| 2384 | _ACEOF
|
---|
| 2385 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2386 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2387 | /* end confdefs.h. */
|
---|
| 2388 | $ac_declaration
|
---|
| 2389 | int
|
---|
| 2390 | main ()
|
---|
| 2391 | {
|
---|
| 2392 | exit (42);
|
---|
| 2393 | ;
|
---|
| 2394 | return 0;
|
---|
| 2395 | }
|
---|
| 2396 | _ACEOF
|
---|
| 2397 | rm -f conftest.$ac_objext
|
---|
| 2398 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2399 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2400 | ac_status=$?
|
---|
| 2401 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2402 | rm -f conftest.er1
|
---|
| 2403 | cat conftest.err >&5
|
---|
| 2404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2405 | (exit $ac_status); } &&
|
---|
| 2406 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2407 | || test ! -s conftest.err'
|
---|
| 2408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2409 | (eval $ac_try) 2>&5
|
---|
| 2410 | ac_status=$?
|
---|
| 2411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2412 | (exit $ac_status); }; } &&
|
---|
| 2413 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2415 | (eval $ac_try) 2>&5
|
---|
| 2416 | ac_status=$?
|
---|
| 2417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2418 | (exit $ac_status); }; }; then
|
---|
| 2419 | break
|
---|
| 2420 | else
|
---|
| 2421 | echo "$as_me: failed program was:" >&5
|
---|
| 2422 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2423 |
|
---|
| 2424 | fi
|
---|
| 2425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2426 | done
|
---|
| 2427 | rm -f conftest*
|
---|
| 2428 | if test -n "$ac_declaration"; then
|
---|
| 2429 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2430 | echo $ac_declaration >>confdefs.h
|
---|
| 2431 | echo '#endif' >>confdefs.h
|
---|
| 2432 | fi
|
---|
| 2433 |
|
---|
| 2434 | else
|
---|
| 2435 | echo "$as_me: failed program was:" >&5
|
---|
| 2436 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2437 |
|
---|
| 2438 | fi
|
---|
| 2439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 2440 | ac_ext=c
|
---|
| 2441 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2442 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2443 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2444 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[8200] | 2445 |
|
---|
[20853] | 2446 | ac_ext=cc
|
---|
[8200] | 2447 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 2448 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2449 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2450 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[20853] | 2451 | if test -n "$ac_tool_prefix"; then
|
---|
| 2452 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[8756] | 2453 | do
|
---|
| 2454 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2455 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[20853] | 2456 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[8756] | 2458 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 2459 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2460 | else
|
---|
| 2461 | if test -n "$CXX"; then
|
---|
| 2462 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 2463 | else
|
---|
| 2464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2465 | for as_dir in $PATH
|
---|
| 2466 | do
|
---|
| 2467 | IFS=$as_save_IFS
|
---|
| 2468 | test -z "$as_dir" && as_dir=.
|
---|
| 2469 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[20853] | 2470 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 2471 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
| 2472 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2473 | break 2
|
---|
| 2474 | fi
|
---|
| 2475 | done
|
---|
| 2476 | done
|
---|
[8200] | 2477 |
|
---|
[8756] | 2478 | fi
|
---|
| 2479 | fi
|
---|
| 2480 | CXX=$ac_cv_prog_CXX
|
---|
| 2481 | if test -n "$CXX"; then
|
---|
[20853] | 2482 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
| 2483 | echo "${ECHO_T}$CXX" >&6
|
---|
[8756] | 2484 | else
|
---|
[20853] | 2485 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2486 | echo "${ECHO_T}no" >&6
|
---|
[8756] | 2487 | fi
|
---|
[8200] | 2488 |
|
---|
[8756] | 2489 | test -n "$CXX" && break
|
---|
| 2490 | done
|
---|
| 2491 | fi
|
---|
| 2492 | if test -z "$CXX"; then
|
---|
| 2493 | ac_ct_CXX=$CXX
|
---|
[20853] | 2494 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[8756] | 2495 | do
|
---|
| 2496 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2497 | set dummy $ac_prog; ac_word=$2
|
---|
[20853] | 2498 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2499 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[8756] | 2500 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 2501 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2502 | else
|
---|
| 2503 | if test -n "$ac_ct_CXX"; then
|
---|
| 2504 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 2505 | else
|
---|
| 2506 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2507 | for as_dir in $PATH
|
---|
| 2508 | do
|
---|
| 2509 | IFS=$as_save_IFS
|
---|
| 2510 | test -z "$as_dir" && as_dir=.
|
---|
| 2511 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[20853] | 2512 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 2513 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
| 2514 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2515 | break 2
|
---|
| 2516 | fi
|
---|
| 2517 | done
|
---|
| 2518 | done
|
---|
[8200] | 2519 |
|
---|
[8756] | 2520 | fi
|
---|
| 2521 | fi
|
---|
| 2522 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 2523 | if test -n "$ac_ct_CXX"; then
|
---|
[20853] | 2524 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
| 2525 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
[3631] | 2526 | else
|
---|
[20853] | 2527 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2528 | echo "${ECHO_T}no" >&6
|
---|
[3631] | 2529 | fi
|
---|
[562] | 2530 |
|
---|
[8756] | 2531 | test -n "$ac_ct_CXX" && break
|
---|
| 2532 | done
|
---|
[20853] | 2533 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
[8756] | 2534 |
|
---|
[20853] | 2535 | CXX=$ac_ct_CXX
|
---|
[3631] | 2536 | fi
|
---|
[562] | 2537 |
|
---|
[20853] | 2538 |
|
---|
[8756] | 2539 | # Provide some information about the compiler.
|
---|
[20853] | 2540 | echo "$as_me:$LINENO:" \
|
---|
| 2541 | "checking for C++ compiler version" >&5
|
---|
[8756] | 2542 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
[20853] | 2543 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 2544 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
[8756] | 2545 | ac_status=$?
|
---|
| 2546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2547 | (exit $ac_status); }
|
---|
[20853] | 2548 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 2549 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
[8756] | 2550 | ac_status=$?
|
---|
| 2551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2552 | (exit $ac_status); }
|
---|
[20853] | 2553 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 2554 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
[8756] | 2555 | ac_status=$?
|
---|
| 2556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2557 | (exit $ac_status); }
|
---|
| 2558 |
|
---|
[20853] | 2559 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
| 2560 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
[8756] | 2561 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 2562 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3631] | 2563 | else
|
---|
[8756] | 2564 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2565 | /* confdefs.h. */
|
---|
| 2566 | _ACEOF
|
---|
| 2567 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2568 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2569 | /* end confdefs.h. */
|
---|
| 2570 |
|
---|
| 2571 | int
|
---|
| 2572 | main ()
|
---|
| 2573 | {
|
---|
| 2574 | #ifndef __GNUC__
|
---|
| 2575 | choke me
|
---|
[3631] | 2576 | #endif
|
---|
[8756] | 2577 |
|
---|
| 2578 | ;
|
---|
| 2579 | return 0;
|
---|
| 2580 | }
|
---|
| 2581 | _ACEOF
|
---|
| 2582 | rm -f conftest.$ac_objext
|
---|
[20853] | 2583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2584 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 2585 | ac_status=$?
|
---|
| 2586 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2587 | rm -f conftest.er1
|
---|
| 2588 | cat conftest.err >&5
|
---|
| 2589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 2590 | (exit $ac_status); } &&
|
---|
| 2591 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2592 | || test ! -s conftest.err'
|
---|
| 2593 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2594 | (eval $ac_try) 2>&5
|
---|
| 2595 | ac_status=$?
|
---|
| 2596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2597 | (exit $ac_status); }; } &&
|
---|
| 2598 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2600 | (eval $ac_try) 2>&5
|
---|
| 2601 | ac_status=$?
|
---|
| 2602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2603 | (exit $ac_status); }; }; then
|
---|
[8756] | 2604 | ac_compiler_gnu=yes
|
---|
[8200] | 2605 | else
|
---|
[8756] | 2606 | echo "$as_me: failed program was:" >&5
|
---|
| 2607 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2608 |
|
---|
[20853] | 2609 | ac_compiler_gnu=no
|
---|
[8200] | 2610 | fi
|
---|
[20853] | 2611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 2612 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 2613 |
|
---|
[8200] | 2614 | fi
|
---|
[20853] | 2615 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
| 2616 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
[8756] | 2617 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2618 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 2619 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
[20853] | 2620 | CXXFLAGS="-g"
|
---|
| 2621 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
| 2622 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
[8756] | 2623 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 2624 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2625 | else
|
---|
[20853] | 2626 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 2627 | /* confdefs.h. */
|
---|
| 2628 | _ACEOF
|
---|
| 2629 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2630 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2631 | /* end confdefs.h. */
|
---|
[3631] | 2632 |
|
---|
[8756] | 2633 | int
|
---|
| 2634 | main ()
|
---|
| 2635 | {
|
---|
[8200] | 2636 |
|
---|
[8756] | 2637 | ;
|
---|
| 2638 | return 0;
|
---|
| 2639 | }
|
---|
| 2640 | _ACEOF
|
---|
| 2641 | rm -f conftest.$ac_objext
|
---|
[20853] | 2642 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2643 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 2644 | ac_status=$?
|
---|
| 2645 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2646 | rm -f conftest.er1
|
---|
| 2647 | cat conftest.err >&5
|
---|
| 2648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 2649 | (exit $ac_status); } &&
|
---|
| 2650 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2651 | || test ! -s conftest.err'
|
---|
| 2652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2653 | (eval $ac_try) 2>&5
|
---|
| 2654 | ac_status=$?
|
---|
| 2655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2656 | (exit $ac_status); }; } &&
|
---|
| 2657 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2659 | (eval $ac_try) 2>&5
|
---|
| 2660 | ac_status=$?
|
---|
| 2661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2662 | (exit $ac_status); }; }; then
|
---|
[562] | 2663 | ac_cv_prog_cxx_g=yes
|
---|
| 2664 | else
|
---|
[8756] | 2665 | echo "$as_me: failed program was:" >&5
|
---|
| 2666 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2667 |
|
---|
[20853] | 2668 | ac_cv_prog_cxx_g=no
|
---|
| 2669 | fi
|
---|
| 2670 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2671 | fi
|
---|
| 2672 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
| 2673 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
| 2674 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 2675 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 2676 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 2677 | if test "$GXX" = yes; then
|
---|
| 2678 | CXXFLAGS="-g -O2"
|
---|
| 2679 | else
|
---|
| 2680 | CXXFLAGS="-g"
|
---|
| 2681 | fi
|
---|
| 2682 | else
|
---|
| 2683 | if test "$GXX" = yes; then
|
---|
| 2684 | CXXFLAGS="-O2"
|
---|
| 2685 | else
|
---|
| 2686 | CXXFLAGS=
|
---|
| 2687 | fi
|
---|
| 2688 | fi
|
---|
| 2689 | for ac_declaration in \
|
---|
| 2690 | '' \
|
---|
| 2691 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2692 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2693 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2694 | 'extern "C" void exit (int);' \
|
---|
| 2695 | 'void exit (int);'
|
---|
| 2696 | do
|
---|
| 2697 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 2698 | /* confdefs.h. */
|
---|
| 2699 | _ACEOF
|
---|
| 2700 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2701 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2702 | /* end confdefs.h. */
|
---|
[20853] | 2703 | $ac_declaration
|
---|
| 2704 | #include <stdlib.h>
|
---|
[8756] | 2705 | int
|
---|
| 2706 | main ()
|
---|
| 2707 | {
|
---|
[20853] | 2708 | exit (42);
|
---|
[8756] | 2709 | ;
|
---|
| 2710 | return 0;
|
---|
| 2711 | }
|
---|
| 2712 | _ACEOF
|
---|
| 2713 | rm -f conftest.$ac_objext
|
---|
[20853] | 2714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2715 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 2716 | ac_status=$?
|
---|
| 2717 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2718 | rm -f conftest.er1
|
---|
| 2719 | cat conftest.err >&5
|
---|
| 2720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 2721 | (exit $ac_status); } &&
|
---|
| 2722 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2723 | || test ! -s conftest.err'
|
---|
| 2724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2725 | (eval $ac_try) 2>&5
|
---|
| 2726 | ac_status=$?
|
---|
| 2727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2728 | (exit $ac_status); }; } &&
|
---|
| 2729 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2731 | (eval $ac_try) 2>&5
|
---|
| 2732 | ac_status=$?
|
---|
| 2733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2734 | (exit $ac_status); }; }; then
|
---|
[8756] | 2735 | :
|
---|
| 2736 | else
|
---|
| 2737 | echo "$as_me: failed program was:" >&5
|
---|
| 2738 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[3063] | 2739 |
|
---|
[20853] | 2740 | continue
|
---|
| 2741 | fi
|
---|
| 2742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2743 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[8756] | 2744 | /* confdefs.h. */
|
---|
| 2745 | _ACEOF
|
---|
| 2746 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2747 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2748 | /* end confdefs.h. */
|
---|
[20853] | 2749 | $ac_declaration
|
---|
[8756] | 2750 | int
|
---|
| 2751 | main ()
|
---|
| 2752 | {
|
---|
[20853] | 2753 | exit (42);
|
---|
[8756] | 2754 | ;
|
---|
| 2755 | return 0;
|
---|
| 2756 | }
|
---|
| 2757 | _ACEOF
|
---|
| 2758 | rm -f conftest.$ac_objext
|
---|
[20853] | 2759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2760 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 2761 | ac_status=$?
|
---|
| 2762 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2763 | rm -f conftest.er1
|
---|
| 2764 | cat conftest.err >&5
|
---|
| 2765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 2766 | (exit $ac_status); } &&
|
---|
| 2767 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2768 | || test ! -s conftest.err'
|
---|
| 2769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2770 | (eval $ac_try) 2>&5
|
---|
| 2771 | ac_status=$?
|
---|
| 2772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2773 | (exit $ac_status); }; } &&
|
---|
| 2774 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2776 | (eval $ac_try) 2>&5
|
---|
| 2777 | ac_status=$?
|
---|
| 2778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2779 | (exit $ac_status); }; }; then
|
---|
| 2780 | break
|
---|
[8756] | 2781 | else
|
---|
| 2782 | echo "$as_me: failed program was:" >&5
|
---|
| 2783 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2784 |
|
---|
| 2785 | fi
|
---|
[20853] | 2786 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2787 | done
|
---|
| 2788 | rm -f conftest*
|
---|
| 2789 | if test -n "$ac_declaration"; then
|
---|
| 2790 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2791 | echo $ac_declaration >>confdefs.h
|
---|
| 2792 | echo '#endif' >>confdefs.h
|
---|
[8756] | 2793 | fi
|
---|
| 2794 |
|
---|
| 2795 | ac_ext=c
|
---|
| 2796 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2797 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2798 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2799 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2800 |
|
---|
| 2801 | for ac_prog in gawk mawk nawk awk
|
---|
[3063] | 2802 | do
|
---|
[8756] | 2803 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 2804 | set dummy $ac_prog; ac_word=$2
|
---|
[20853] | 2805 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2806 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[8756] | 2807 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 2808 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 2809 | else
|
---|
| 2810 | if test -n "$AWK"; then
|
---|
| 2811 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 2812 | else
|
---|
[8756] | 2813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2814 | for as_dir in $PATH
|
---|
| 2815 | do
|
---|
| 2816 | IFS=$as_save_IFS
|
---|
| 2817 | test -z "$as_dir" && as_dir=.
|
---|
| 2818 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[20853] | 2819 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 2820 | ac_cv_prog_AWK="$ac_prog"
|
---|
| 2821 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2822 | break 2
|
---|
| 2823 | fi
|
---|
| 2824 | done
|
---|
| 2825 | done
|
---|
| 2826 |
|
---|
[687] | 2827 | fi
|
---|
| 2828 | fi
|
---|
[8756] | 2829 | AWK=$ac_cv_prog_AWK
|
---|
[687] | 2830 | if test -n "$AWK"; then
|
---|
[20853] | 2831 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
| 2832 | echo "${ECHO_T}$AWK" >&6
|
---|
[687] | 2833 | else
|
---|
[20853] | 2834 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2835 | echo "${ECHO_T}no" >&6
|
---|
[687] | 2836 | fi
|
---|
| 2837 |
|
---|
[8756] | 2838 | test -n "$AWK" && break
|
---|
[687] | 2839 | done
|
---|
| 2840 |
|
---|
| 2841 | for ac_prog in 'bison -y' byacc
|
---|
| 2842 | do
|
---|
[8756] | 2843 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 2844 | set dummy $ac_prog; ac_word=$2
|
---|
[20853] | 2845 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2846 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[8756] | 2847 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 2848 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 2849 | else
|
---|
| 2850 | if test -n "$YACC"; then
|
---|
| 2851 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 2852 | else
|
---|
[8756] | 2853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2854 | for as_dir in $PATH
|
---|
| 2855 | do
|
---|
| 2856 | IFS=$as_save_IFS
|
---|
| 2857 | test -z "$as_dir" && as_dir=.
|
---|
| 2858 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[20853] | 2859 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 2860 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 2861 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2862 | break 2
|
---|
| 2863 | fi
|
---|
| 2864 | done
|
---|
| 2865 | done
|
---|
| 2866 |
|
---|
[687] | 2867 | fi
|
---|
| 2868 | fi
|
---|
[8756] | 2869 | YACC=$ac_cv_prog_YACC
|
---|
[687] | 2870 | if test -n "$YACC"; then
|
---|
[20853] | 2871 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
| 2872 | echo "${ECHO_T}$YACC" >&6
|
---|
[687] | 2873 | else
|
---|
[20853] | 2874 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2875 | echo "${ECHO_T}no" >&6
|
---|
[687] | 2876 | fi
|
---|
| 2877 |
|
---|
[8756] | 2878 | test -n "$YACC" && break
|
---|
[687] | 2879 | done
|
---|
| 2880 | test -n "$YACC" || YACC="yacc"
|
---|
| 2881 |
|
---|
[703] | 2882 | ac_aux_dir=
|
---|
[20853] | 2883 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 2884 | if test -f $ac_dir/install-sh; then
|
---|
[703] | 2885 | ac_aux_dir=$ac_dir
|
---|
| 2886 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 2887 | break
|
---|
[20853] | 2888 | elif test -f $ac_dir/install.sh; then
|
---|
[703] | 2889 | ac_aux_dir=$ac_dir
|
---|
| 2890 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 2891 | break
|
---|
[20853] | 2892 | elif test -f $ac_dir/shtool; then
|
---|
[8756] | 2893 | ac_aux_dir=$ac_dir
|
---|
| 2894 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 2895 | break
|
---|
[703] | 2896 | fi
|
---|
| 2897 | done
|
---|
| 2898 | if test -z "$ac_aux_dir"; then
|
---|
[20853] | 2899 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
| 2900 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
[8756] | 2901 | { (exit 1); exit 1; }; }
|
---|
[703] | 2902 | fi
|
---|
[20853] | 2903 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
| 2904 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
| 2905 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
[703] | 2906 |
|
---|
[8756] | 2907 | # Make sure we can run config.sub.
|
---|
[20853] | 2908 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
| 2909 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
| 2910 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
[8756] | 2911 | { (exit 1); exit 1; }; }
|
---|
[2279] | 2912 |
|
---|
[20853] | 2913 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
| 2914 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
[8756] | 2915 | if test "${ac_cv_build+set}" = set; then
|
---|
| 2916 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2917 | else
|
---|
[20853] | 2918 | ac_cv_build_alias=$build_alias
|
---|
| 2919 | test -z "$ac_cv_build_alias" &&
|
---|
| 2920 | ac_cv_build_alias=`$ac_config_guess`
|
---|
| 2921 | test -z "$ac_cv_build_alias" &&
|
---|
[8756] | 2922 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
| 2923 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
| 2924 | { (exit 1); exit 1; }; }
|
---|
[20853] | 2925 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
| 2926 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
| 2927 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
[8756] | 2928 | { (exit 1); exit 1; }; }
|
---|
[2279] | 2929 |
|
---|
| 2930 | fi
|
---|
[20853] | 2931 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
| 2932 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
[8756] | 2933 | build=$ac_cv_build
|
---|
[20853] | 2934 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2935 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2936 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[2279] | 2937 |
|
---|
| 2938 |
|
---|
[20853] | 2939 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
| 2940 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
[8756] | 2941 | if test "${ac_cv_host+set}" = set; then
|
---|
| 2942 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2943 | else
|
---|
[20853] | 2944 | ac_cv_host_alias=$host_alias
|
---|
| 2945 | test -z "$ac_cv_host_alias" &&
|
---|
| 2946 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
| 2947 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
| 2948 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
| 2949 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
[8756] | 2950 | { (exit 1); exit 1; }; }
|
---|
[2279] | 2951 |
|
---|
[8756] | 2952 | fi
|
---|
[20853] | 2953 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
| 2954 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
[8756] | 2955 | host=$ac_cv_host
|
---|
[20853] | 2956 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2957 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2958 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[8200] | 2959 |
|
---|
| 2960 |
|
---|
[20853] | 2961 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
| 2962 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
[8756] | 2963 | if test "${ac_cv_target+set}" = set; then
|
---|
| 2964 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2965 | else
|
---|
[20853] | 2966 | ac_cv_target_alias=$target_alias
|
---|
| 2967 | test "x$ac_cv_target_alias" = "x" &&
|
---|
| 2968 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
| 2969 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
| 2970 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
| 2971 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
[8756] | 2972 | { (exit 1); exit 1; }; }
|
---|
[8200] | 2973 |
|
---|
[8756] | 2974 | fi
|
---|
[20853] | 2975 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
| 2976 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
[8756] | 2977 | target=$ac_cv_target
|
---|
[20853] | 2978 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2979 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2980 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[8200] | 2981 |
|
---|
| 2982 |
|
---|
[8756] | 2983 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 2984 | # will get canonicalized.
|
---|
| 2985 | test -n "$target_alias" &&
|
---|
[2279] | 2986 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 2987 | NONENONEs,x,x, &&
|
---|
| 2988 | program_prefix=${target_alias}-
|
---|
[703] | 2989 | # Find a good install program. We prefer a C program (faster),
|
---|
| 2990 | # so one script is as good as another. But avoid the broken or
|
---|
| 2991 | # incompatible versions:
|
---|
| 2992 | # SysV /etc/install, /usr/sbin/install
|
---|
| 2993 | # SunOS /usr/etc/install
|
---|
| 2994 | # IRIX /sbin/install
|
---|
| 2995 | # AIX /bin/install
|
---|
[8756] | 2996 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
[703] | 2997 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 2998 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 2999 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[8756] | 3000 | # OS/2's system install, which has a completely different semantic
|
---|
[703] | 3001 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[20853] | 3002 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 3003 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
[703] | 3004 | if test -z "$INSTALL"; then
|
---|
[8756] | 3005 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 3006 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[703] | 3007 | else
|
---|
[8756] | 3008 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3009 | for as_dir in $PATH
|
---|
| 3010 | do
|
---|
| 3011 | IFS=$as_save_IFS
|
---|
| 3012 | test -z "$as_dir" && as_dir=.
|
---|
| 3013 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 3014 | case $as_dir/ in
|
---|
| 3015 | ./ | .// | /cC/* | \
|
---|
| 3016 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
| 3017 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
| 3018 | /usr/ucb/* ) ;;
|
---|
| 3019 | *)
|
---|
| 3020 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 3021 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 3022 | # by default.
|
---|
| 3023 | for ac_prog in ginstall scoinst install; do
|
---|
| 3024 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[20853] | 3025 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[703] | 3026 | if test $ac_prog = install &&
|
---|
[8756] | 3027 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[703] | 3028 | # AIX install. It has an incompatible calling convention.
|
---|
| 3029 | :
|
---|
[8756] | 3030 | elif test $ac_prog = install &&
|
---|
| 3031 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 3032 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 3033 | :
|
---|
[703] | 3034 | else
|
---|
[8756] | 3035 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 3036 | break 3
|
---|
[703] | 3037 | fi
|
---|
| 3038 | fi
|
---|
| 3039 | done
|
---|
[8756] | 3040 | done
|
---|
| 3041 | ;;
|
---|
| 3042 | esac
|
---|
| 3043 | done
|
---|
[703] | 3044 |
|
---|
[8756] | 3045 |
|
---|
[703] | 3046 | fi
|
---|
| 3047 | if test "${ac_cv_path_install+set}" = set; then
|
---|
[8756] | 3048 | INSTALL=$ac_cv_path_install
|
---|
[703] | 3049 | else
|
---|
[20853] | 3050 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 3051 | # path for INSTALL within a source directory, because that will
|
---|
[703] | 3052 | # break other packages using the cache if that directory is
|
---|
[20853] | 3053 | # removed, or if the path is relative.
|
---|
[8756] | 3054 | INSTALL=$ac_install_sh
|
---|
[703] | 3055 | fi
|
---|
| 3056 | fi
|
---|
[20853] | 3057 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
| 3058 | echo "${ECHO_T}$INSTALL" >&6
|
---|
[703] | 3059 |
|
---|
| 3060 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 3061 | # It thinks the first close brace ends the variable substitution.
|
---|
| 3062 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 3063 |
|
---|
[8756] | 3064 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
[703] | 3065 |
|
---|
| 3066 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 3067 |
|
---|
[20853] | 3068 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
| 3069 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
[8756] | 3070 | LN_S=$as_ln_s
|
---|
| 3071 | if test "$LN_S" = "ln -s"; then
|
---|
[20853] | 3072 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3073 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 3074 | else
|
---|
[20853] | 3075 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
| 3076 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
[562] | 3077 | fi
|
---|
| 3078 |
|
---|
[20853] | 3079 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 3080 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
| 3081 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
| 3082 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
[8756] | 3083 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 3084 | else
|
---|
[8756] | 3085 | cat >conftest.make <<\_ACEOF
|
---|
[562] | 3086 | all:
|
---|
[20853] | 3087 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
[8756] | 3088 | _ACEOF
|
---|
[562] | 3089 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
[20853] | 3090 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
| 3091 | if test -n "$ac_maketemp"; then
|
---|
| 3092 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 3093 | else
|
---|
| 3094 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 3095 | fi
|
---|
[8756] | 3096 | rm -f conftest.make
|
---|
[562] | 3097 | fi
|
---|
[20853] | 3098 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
| 3099 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3100 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 3101 | SET_MAKE=
|
---|
| 3102 | else
|
---|
[20853] | 3103 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3104 | echo "${ECHO_T}no" >&6
|
---|
[562] | 3105 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3106 | fi
|
---|
| 3107 |
|
---|
[8756] | 3108 | if test -n "$ac_tool_prefix"; then
|
---|
| 3109 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3110 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[20853] | 3111 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3112 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[8756] | 3113 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
| 3114 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 3115 | else
|
---|
| 3116 | if test -n "$RANLIB"; then
|
---|
| 3117 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3118 | else
|
---|
[8756] | 3119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3120 | for as_dir in $PATH
|
---|
| 3121 | do
|
---|
| 3122 | IFS=$as_save_IFS
|
---|
| 3123 | test -z "$as_dir" && as_dir=.
|
---|
| 3124 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[20853] | 3125 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 3126 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
| 3127 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3128 | break 2
|
---|
| 3129 | fi
|
---|
| 3130 | done
|
---|
| 3131 | done
|
---|
| 3132 |
|
---|
[562] | 3133 | fi
|
---|
| 3134 | fi
|
---|
[8756] | 3135 | RANLIB=$ac_cv_prog_RANLIB
|
---|
[562] | 3136 | if test -n "$RANLIB"; then
|
---|
[20853] | 3137 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
| 3138 | echo "${ECHO_T}$RANLIB" >&6
|
---|
[562] | 3139 | else
|
---|
[20853] | 3140 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3141 | echo "${ECHO_T}no" >&6
|
---|
[562] | 3142 | fi
|
---|
| 3143 |
|
---|
[8756] | 3144 | fi
|
---|
| 3145 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3146 | ac_ct_RANLIB=$RANLIB
|
---|
| 3147 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3148 | set dummy ranlib; ac_word=$2
|
---|
[20853] | 3149 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3150 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
[8756] | 3151 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 3152 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3153 | else
|
---|
| 3154 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3155 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3156 | else
|
---|
| 3157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3158 | for as_dir in $PATH
|
---|
| 3159 | do
|
---|
| 3160 | IFS=$as_save_IFS
|
---|
| 3161 | test -z "$as_dir" && as_dir=.
|
---|
| 3162 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[20853] | 3163 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[8756] | 3164 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
| 3165 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3166 | break 2
|
---|
| 3167 | fi
|
---|
| 3168 | done
|
---|
| 3169 | done
|
---|
[562] | 3170 |
|
---|
[20853] | 3171 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
[8756] | 3172 | fi
|
---|
| 3173 | fi
|
---|
| 3174 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 3175 | if test -n "$ac_ct_RANLIB"; then
|
---|
[20853] | 3176 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
| 3177 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
[8756] | 3178 | else
|
---|
[20853] | 3179 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3180 | echo "${ECHO_T}no" >&6
|
---|
[8756] | 3181 | fi
|
---|
| 3182 |
|
---|
[20853] | 3183 | RANLIB=$ac_ct_RANLIB
|
---|
[8756] | 3184 | else
|
---|
| 3185 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3186 | fi
|
---|
| 3187 |
|
---|
| 3188 |
|
---|
[20853] | 3189 | echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
|
---|
| 3190 | echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
|
---|
[15551] | 3191 | arch_64bit=no
|
---|
| 3192 | case "$host_cpu" in
|
---|
| 3193 | x86_64) arch_64bit=yes ;;
|
---|
| 3194 | esac
|
---|
| 3195 |
|
---|
| 3196 | if test "$arch_64bit" = yes; then
|
---|
[20853] | 3197 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3198 | echo "${ECHO_T}yes" >&6
|
---|
[15551] | 3199 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3200 | COMPAT32BITFLAGS="-m32"
|
---|
| 3201 | fi
|
---|
| 3202 | else
|
---|
[20853] | 3203 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3204 | echo "${ECHO_T}no" >&6
|
---|
[15551] | 3205 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3206 | COMPAT32BITFLAGS=
|
---|
| 3207 | fi
|
---|
| 3208 | fi
|
---|
| 3209 | export COMPAT32BITFLAGS
|
---|
| 3210 |
|
---|
| 3211 |
|
---|
| 3212 |
|
---|
[2173] | 3213 | #moved CORBA MICO directory test to get version of MICO
|
---|
| 3214 | if test $USE_CORBA = 1; then
|
---|
| 3215 |
|
---|
[2213] | 3216 | if test $MICO_DIR = "default"; then
|
---|
[2173] | 3217 | #do something
|
---|
| 3218 | MICO_INC="-I packages/mico/mico/include"
|
---|
| 3219 | else
|
---|
| 3220 | #build the micotest program
|
---|
| 3221 | MICO_INC= ""
|
---|
| 3222 | if test $MICO_DIR != yes; then
|
---|
| 3223 | MICO_INC="-I $MICO_DIR"
|
---|
| 3224 | fi
|
---|
| 3225 | fi
|
---|
| 3226 |
|
---|
| 3227 | #get MICO_VER value
|
---|
| 3228 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
| 3229 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
[2214] | 3230 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
[2173] | 3231 | sh -c "rm micotest"
|
---|
| 3232 | sh -c "rm micotest.o"
|
---|
| 3233 |
|
---|
| 3234 | #do test of MICO_VER
|
---|
| 3235 | if test MICO_VER != 0; then
|
---|
[8756] | 3236 | cat >>confdefs.h <<\_ACEOF
|
---|
[2173] | 3237 | #define MICO_VER 1
|
---|
[8756] | 3238 | _ACEOF
|
---|
[2173] | 3239 |
|
---|
[8200] | 3240 |
|
---|
[2173] | 3241 | fi
|
---|
| 3242 | #end USE_CORBA test
|
---|
| 3243 | fi
|
---|
| 3244 |
|
---|
[8756] | 3245 |
|
---|
| 3246 | ac_ext=c
|
---|
| 3247 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3248 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3249 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3250 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[20853] | 3251 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
| 3252 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
[687] | 3253 | # On Suns, sometimes $CPP names a directory.
|
---|
| 3254 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 3255 | CPP=
|
---|
| 3256 | fi
|
---|
| 3257 | if test -z "$CPP"; then
|
---|
[8756] | 3258 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 3259 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3260 | else
|
---|
[8756] | 3261 | # Double quotes because CPP needs to be expanded
|
---|
| 3262 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 3263 | do
|
---|
| 3264 | ac_preproc_ok=false
|
---|
| 3265 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3266 | do
|
---|
| 3267 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3268 | # with a fresh cross-compiler works.
|
---|
| 3269 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3270 | # <limits.h> exists even on freestanding compilers.
|
---|
[687] | 3271 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
[8756] | 3272 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3273 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3274 | /* confdefs.h. */
|
---|
| 3275 | _ACEOF
|
---|
| 3276 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3277 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3278 | /* end confdefs.h. */
|
---|
| 3279 | #ifdef __STDC__
|
---|
| 3280 | # include <limits.h>
|
---|
| 3281 | #else
|
---|
| 3282 | # include <assert.h>
|
---|
| 3283 | #endif
|
---|
| 3284 | Syntax error
|
---|
| 3285 | _ACEOF
|
---|
[20853] | 3286 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3287 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
[8756] | 3288 | ac_status=$?
|
---|
| 3289 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3290 | rm -f conftest.er1
|
---|
| 3291 | cat conftest.err >&5
|
---|
| 3292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 3293 | (exit $ac_status); } >/dev/null; then
|
---|
| 3294 | if test -s conftest.err; then
|
---|
| 3295 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3296 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3297 | else
|
---|
| 3298 | ac_cpp_err=
|
---|
| 3299 | fi
|
---|
| 3300 | else
|
---|
| 3301 | ac_cpp_err=yes
|
---|
| 3302 | fi
|
---|
| 3303 | if test -z "$ac_cpp_err"; then
|
---|
[8200] | 3304 | :
|
---|
[687] | 3305 | else
|
---|
[8756] | 3306 | echo "$as_me: failed program was:" >&5
|
---|
| 3307 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3308 |
|
---|
| 3309 | # Broken: fails on valid input.
|
---|
| 3310 | continue
|
---|
| 3311 | fi
|
---|
| 3312 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3313 |
|
---|
[20853] | 3314 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
[8756] | 3315 | # can be detected and how.
|
---|
| 3316 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3317 | /* confdefs.h. */
|
---|
| 3318 | _ACEOF
|
---|
| 3319 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3320 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3321 | /* end confdefs.h. */
|
---|
| 3322 | #include <ac_nonexistent.h>
|
---|
| 3323 | _ACEOF
|
---|
[20853] | 3324 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3325 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
[8756] | 3326 | ac_status=$?
|
---|
| 3327 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3328 | rm -f conftest.er1
|
---|
| 3329 | cat conftest.err >&5
|
---|
| 3330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 3331 | (exit $ac_status); } >/dev/null; then
|
---|
| 3332 | if test -s conftest.err; then
|
---|
| 3333 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3334 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3335 | else
|
---|
| 3336 | ac_cpp_err=
|
---|
| 3337 | fi
|
---|
| 3338 | else
|
---|
| 3339 | ac_cpp_err=yes
|
---|
| 3340 | fi
|
---|
| 3341 | if test -z "$ac_cpp_err"; then
|
---|
[8756] | 3342 | # Broken: success on invalid input.
|
---|
| 3343 | continue
|
---|
| 3344 | else
|
---|
| 3345 | echo "$as_me: failed program was:" >&5
|
---|
| 3346 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3347 |
|
---|
| 3348 | # Passes both tests.
|
---|
| 3349 | ac_preproc_ok=:
|
---|
| 3350 | break
|
---|
| 3351 | fi
|
---|
| 3352 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3353 |
|
---|
| 3354 | done
|
---|
| 3355 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3356 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3357 | if $ac_preproc_ok; then
|
---|
| 3358 | break
|
---|
| 3359 | fi
|
---|
| 3360 |
|
---|
| 3361 | done
|
---|
| 3362 | ac_cv_prog_CPP=$CPP
|
---|
| 3363 |
|
---|
| 3364 | fi
|
---|
| 3365 | CPP=$ac_cv_prog_CPP
|
---|
| 3366 | else
|
---|
| 3367 | ac_cv_prog_CPP=$CPP
|
---|
| 3368 | fi
|
---|
[20853] | 3369 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
| 3370 | echo "${ECHO_T}$CPP" >&6
|
---|
[8756] | 3371 | ac_preproc_ok=false
|
---|
| 3372 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3373 | do
|
---|
| 3374 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3375 | # with a fresh cross-compiler works.
|
---|
| 3376 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3377 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3378 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3379 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3380 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3381 | /* confdefs.h. */
|
---|
| 3382 | _ACEOF
|
---|
| 3383 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3384 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3385 | /* end confdefs.h. */
|
---|
| 3386 | #ifdef __STDC__
|
---|
| 3387 | # include <limits.h>
|
---|
| 3388 | #else
|
---|
| 3389 | # include <assert.h>
|
---|
| 3390 | #endif
|
---|
| 3391 | Syntax error
|
---|
| 3392 | _ACEOF
|
---|
[20853] | 3393 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3394 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
[8756] | 3395 | ac_status=$?
|
---|
| 3396 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3397 | rm -f conftest.er1
|
---|
| 3398 | cat conftest.err >&5
|
---|
| 3399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 3400 | (exit $ac_status); } >/dev/null; then
|
---|
| 3401 | if test -s conftest.err; then
|
---|
| 3402 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3403 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3404 | else
|
---|
| 3405 | ac_cpp_err=
|
---|
| 3406 | fi
|
---|
| 3407 | else
|
---|
| 3408 | ac_cpp_err=yes
|
---|
| 3409 | fi
|
---|
| 3410 | if test -z "$ac_cpp_err"; then
|
---|
[687] | 3411 | :
|
---|
| 3412 | else
|
---|
[8756] | 3413 | echo "$as_me: failed program was:" >&5
|
---|
| 3414 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3415 |
|
---|
| 3416 | # Broken: fails on valid input.
|
---|
| 3417 | continue
|
---|
[687] | 3418 | fi
|
---|
[8756] | 3419 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3420 |
|
---|
[20853] | 3421 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
[8756] | 3422 | # can be detected and how.
|
---|
| 3423 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3424 | /* confdefs.h. */
|
---|
| 3425 | _ACEOF
|
---|
| 3426 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3427 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3428 | /* end confdefs.h. */
|
---|
| 3429 | #include <ac_nonexistent.h>
|
---|
| 3430 | _ACEOF
|
---|
[20853] | 3431 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3432 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
[8756] | 3433 | ac_status=$?
|
---|
| 3434 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3435 | rm -f conftest.er1
|
---|
| 3436 | cat conftest.err >&5
|
---|
| 3437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 3438 | (exit $ac_status); } >/dev/null; then
|
---|
| 3439 | if test -s conftest.err; then
|
---|
| 3440 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3441 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3442 | else
|
---|
| 3443 | ac_cpp_err=
|
---|
| 3444 | fi
|
---|
| 3445 | else
|
---|
| 3446 | ac_cpp_err=yes
|
---|
| 3447 | fi
|
---|
| 3448 | if test -z "$ac_cpp_err"; then
|
---|
[8756] | 3449 | # Broken: success on invalid input.
|
---|
| 3450 | continue
|
---|
| 3451 | else
|
---|
| 3452 | echo "$as_me: failed program was:" >&5
|
---|
| 3453 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3454 |
|
---|
| 3455 | # Passes both tests.
|
---|
| 3456 | ac_preproc_ok=:
|
---|
| 3457 | break
|
---|
[687] | 3458 | fi
|
---|
[8756] | 3459 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3460 |
|
---|
| 3461 | done
|
---|
| 3462 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3463 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3464 | if $ac_preproc_ok; then
|
---|
| 3465 | :
|
---|
| 3466 | else
|
---|
| 3467 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3468 | See \`config.log' for more details." >&5
|
---|
| 3469 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3470 | See \`config.log' for more details." >&2;}
|
---|
| 3471 | { (exit 1); exit 1; }; }
|
---|
[8200] | 3472 | fi
|
---|
[8756] | 3473 |
|
---|
| 3474 | ac_ext=c
|
---|
| 3475 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3476 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3477 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3478 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3479 |
|
---|
| 3480 |
|
---|
[20853] | 3481 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 3482 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
| 3483 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
[8756] | 3484 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3485 | else
|
---|
[20853] | 3486 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
| 3487 | then ac_cv_prog_egrep='grep -E'
|
---|
| 3488 | else ac_cv_prog_egrep='egrep'
|
---|
[8756] | 3489 | fi
|
---|
[687] | 3490 | fi
|
---|
[20853] | 3491 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
| 3492 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
| 3493 | EGREP=$ac_cv_prog_egrep
|
---|
[687] | 3494 |
|
---|
[8756] | 3495 |
|
---|
| 3496 |
|
---|
[20853] | 3497 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
| 3498 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
[8756] | 3499 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3500 | /* confdefs.h. */
|
---|
| 3501 | _ACEOF
|
---|
| 3502 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3503 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3504 | /* end confdefs.h. */
|
---|
[687] | 3505 | #ifdef _AIX
|
---|
| 3506 | yes
|
---|
| 3507 | #endif
|
---|
| 3508 |
|
---|
[8756] | 3509 | _ACEOF
|
---|
[687] | 3510 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 3511 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
[20853] | 3512 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3513 | echo "${ECHO_T}yes" >&6
|
---|
[8756] | 3514 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3515 | #define _ALL_SOURCE 1
|
---|
[8756] | 3516 | _ACEOF
|
---|
[687] | 3517 |
|
---|
| 3518 | else
|
---|
[20853] | 3519 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3520 | echo "${ECHO_T}no" >&6
|
---|
[687] | 3521 | fi
|
---|
| 3522 | rm -f conftest*
|
---|
| 3523 |
|
---|
[8200] | 3524 |
|
---|
[20853] | 3525 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 3526 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
[8756] | 3527 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 3528 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3529 | else
|
---|
| 3530 | ac_func_search_save_LIBS=$LIBS
|
---|
[20853] | 3531 | ac_cv_search_strerror=no
|
---|
[8756] | 3532 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3533 | /* confdefs.h. */
|
---|
| 3534 | _ACEOF
|
---|
| 3535 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3536 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3537 | /* end confdefs.h. */
|
---|
[687] | 3538 |
|
---|
[20853] | 3539 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 3540 | #ifdef __cplusplus
|
---|
| 3541 | extern "C"
|
---|
| 3542 | #endif
|
---|
[20853] | 3543 | /* We use char because int might match the return type of a gcc2
|
---|
| 3544 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 3545 | char strerror ();
|
---|
| 3546 | int
|
---|
| 3547 | main ()
|
---|
| 3548 | {
|
---|
[20853] | 3549 | strerror ();
|
---|
[8756] | 3550 | ;
|
---|
| 3551 | return 0;
|
---|
| 3552 | }
|
---|
| 3553 | _ACEOF
|
---|
[20853] | 3554 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3555 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3556 | (eval $ac_link) 2>conftest.er1
|
---|
[8756] | 3557 | ac_status=$?
|
---|
| 3558 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3559 | rm -f conftest.er1
|
---|
| 3560 | cat conftest.err >&5
|
---|
| 3561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 3562 | (exit $ac_status); } &&
|
---|
| 3563 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3564 | || test ! -s conftest.err'
|
---|
| 3565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3566 | (eval $ac_try) 2>&5
|
---|
| 3567 | ac_status=$?
|
---|
| 3568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3569 | (exit $ac_status); }; } &&
|
---|
| 3570 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3572 | (eval $ac_try) 2>&5
|
---|
| 3573 | ac_status=$?
|
---|
| 3574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3575 | (exit $ac_status); }; }; then
|
---|
| 3576 | ac_cv_search_strerror="none required"
|
---|
[687] | 3577 | else
|
---|
[8756] | 3578 | echo "$as_me: failed program was:" >&5
|
---|
| 3579 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3580 |
|
---|
[687] | 3581 | fi
|
---|
[20853] | 3582 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3583 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3584 | if test "$ac_cv_search_strerror" = no; then
|
---|
| 3585 | for ac_lib in cposix; do
|
---|
| 3586 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 3587 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3588 | /* confdefs.h. */
|
---|
| 3589 | _ACEOF
|
---|
| 3590 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3591 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3592 | /* end confdefs.h. */
|
---|
[687] | 3593 |
|
---|
[20853] | 3594 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3595 | #ifdef __cplusplus
|
---|
| 3596 | extern "C"
|
---|
| 3597 | #endif
|
---|
| 3598 | /* We use char because int might match the return type of a gcc2
|
---|
| 3599 | builtin and then its argument prototype would still apply. */
|
---|
| 3600 | char strerror ();
|
---|
| 3601 | int
|
---|
| 3602 | main ()
|
---|
| 3603 | {
|
---|
| 3604 | strerror ();
|
---|
| 3605 | ;
|
---|
| 3606 | return 0;
|
---|
| 3607 | }
|
---|
| 3608 | _ACEOF
|
---|
| 3609 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3611 | (eval $ac_link) 2>conftest.er1
|
---|
| 3612 | ac_status=$?
|
---|
| 3613 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3614 | rm -f conftest.er1
|
---|
| 3615 | cat conftest.err >&5
|
---|
| 3616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3617 | (exit $ac_status); } &&
|
---|
| 3618 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3619 | || test ! -s conftest.err'
|
---|
| 3620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3621 | (eval $ac_try) 2>&5
|
---|
| 3622 | ac_status=$?
|
---|
| 3623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3624 | (exit $ac_status); }; } &&
|
---|
| 3625 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3627 | (eval $ac_try) 2>&5
|
---|
| 3628 | ac_status=$?
|
---|
| 3629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3630 | (exit $ac_status); }; }; then
|
---|
| 3631 | ac_cv_search_strerror="-l$ac_lib"
|
---|
| 3632 | break
|
---|
[687] | 3633 | else
|
---|
[20853] | 3634 | echo "$as_me: failed program was:" >&5
|
---|
| 3635 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3636 |
|
---|
[8756] | 3637 | fi
|
---|
[20853] | 3638 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3639 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3640 | done
|
---|
| 3641 | fi
|
---|
[8756] | 3642 | LIBS=$ac_func_search_save_LIBS
|
---|
| 3643 | fi
|
---|
[20853] | 3644 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 3645 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
| 3646 | if test "$ac_cv_search_strerror" != no; then
|
---|
| 3647 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
[8756] | 3648 |
|
---|
| 3649 | fi
|
---|
| 3650 |
|
---|
[20853] | 3651 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 3652 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
[8756] | 3653 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 3654 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3655 | else
|
---|
[8756] | 3656 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3657 | /* confdefs.h. */
|
---|
| 3658 | _ACEOF
|
---|
| 3659 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3660 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3661 | /* end confdefs.h. */
|
---|
| 3662 | #include <stdlib.h>
|
---|
| 3663 | #include <stdarg.h>
|
---|
| 3664 | #include <string.h>
|
---|
| 3665 | #include <float.h>
|
---|
| 3666 |
|
---|
| 3667 | int
|
---|
| 3668 | main ()
|
---|
| 3669 | {
|
---|
| 3670 |
|
---|
| 3671 | ;
|
---|
| 3672 | return 0;
|
---|
| 3673 | }
|
---|
| 3674 | _ACEOF
|
---|
| 3675 | rm -f conftest.$ac_objext
|
---|
[20853] | 3676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3677 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 3678 | ac_status=$?
|
---|
| 3679 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3680 | rm -f conftest.er1
|
---|
| 3681 | cat conftest.err >&5
|
---|
| 3682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 3683 | (exit $ac_status); } &&
|
---|
| 3684 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3685 | || test ! -s conftest.err'
|
---|
| 3686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3687 | (eval $ac_try) 2>&5
|
---|
| 3688 | ac_status=$?
|
---|
| 3689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3690 | (exit $ac_status); }; } &&
|
---|
| 3691 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3693 | (eval $ac_try) 2>&5
|
---|
| 3694 | ac_status=$?
|
---|
| 3695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3696 | (exit $ac_status); }; }; then
|
---|
[8756] | 3697 | ac_cv_header_stdc=yes
|
---|
| 3698 | else
|
---|
| 3699 | echo "$as_me: failed program was:" >&5
|
---|
| 3700 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3701 |
|
---|
[20853] | 3702 | ac_cv_header_stdc=no
|
---|
[687] | 3703 | fi
|
---|
[20853] | 3704 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 3705 |
|
---|
| 3706 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3707 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 3708 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3709 | /* confdefs.h. */
|
---|
| 3710 | _ACEOF
|
---|
| 3711 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3712 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3713 | /* end confdefs.h. */
|
---|
| 3714 | #include <string.h>
|
---|
| 3715 |
|
---|
| 3716 | _ACEOF
|
---|
| 3717 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3718 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 3719 | :
|
---|
| 3720 | else
|
---|
| 3721 | ac_cv_header_stdc=no
|
---|
| 3722 | fi
|
---|
[8200] | 3723 | rm -f conftest*
|
---|
[8756] | 3724 |
|
---|
[687] | 3725 | fi
|
---|
[8756] | 3726 |
|
---|
| 3727 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3728 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 3729 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3730 | /* confdefs.h. */
|
---|
| 3731 | _ACEOF
|
---|
| 3732 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3733 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3734 | /* end confdefs.h. */
|
---|
| 3735 | #include <stdlib.h>
|
---|
| 3736 |
|
---|
| 3737 | _ACEOF
|
---|
| 3738 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3739 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 3740 | :
|
---|
| 3741 | else
|
---|
| 3742 | ac_cv_header_stdc=no
|
---|
| 3743 | fi
|
---|
| 3744 | rm -f conftest*
|
---|
| 3745 |
|
---|
| 3746 | fi
|
---|
| 3747 |
|
---|
| 3748 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3749 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 3750 | if test "$cross_compiling" = yes; then
|
---|
| 3751 | :
|
---|
| 3752 | else
|
---|
| 3753 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3754 | /* confdefs.h. */
|
---|
| 3755 | _ACEOF
|
---|
| 3756 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3757 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3758 | /* end confdefs.h. */
|
---|
| 3759 | #include <ctype.h>
|
---|
| 3760 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 3761 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 3762 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 3763 | #else
|
---|
| 3764 | # define ISLOWER(c) \
|
---|
| 3765 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 3766 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 3767 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 3768 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 3769 | #endif
|
---|
| 3770 |
|
---|
| 3771 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 3772 | int
|
---|
| 3773 | main ()
|
---|
| 3774 | {
|
---|
| 3775 | int i;
|
---|
| 3776 | for (i = 0; i < 256; i++)
|
---|
| 3777 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 3778 | || toupper (i) != TOUPPER (i))
|
---|
[20853] | 3779 | exit(2);
|
---|
| 3780 | exit (0);
|
---|
[8756] | 3781 | }
|
---|
| 3782 | _ACEOF
|
---|
| 3783 | rm -f conftest$ac_exeext
|
---|
[20853] | 3784 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3785 | (eval $ac_link) 2>&5
|
---|
[8756] | 3786 | ac_status=$?
|
---|
| 3787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3788 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[20853] | 3789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3790 | (eval $ac_try) 2>&5
|
---|
[8756] | 3791 | ac_status=$?
|
---|
| 3792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3793 | (exit $ac_status); }; }; then
|
---|
| 3794 | :
|
---|
| 3795 | else
|
---|
| 3796 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 3797 | echo "$as_me: failed program was:" >&5
|
---|
| 3798 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3799 |
|
---|
| 3800 | ( exit $ac_status )
|
---|
| 3801 | ac_cv_header_stdc=no
|
---|
| 3802 | fi
|
---|
[20853] | 3803 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 3804 | fi
|
---|
| 3805 | fi
|
---|
| 3806 | fi
|
---|
[20853] | 3807 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 3808 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
[8756] | 3809 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3810 |
|
---|
| 3811 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3812 | #define STDC_HEADERS 1
|
---|
| 3813 | _ACEOF
|
---|
| 3814 |
|
---|
| 3815 | fi
|
---|
| 3816 |
|
---|
| 3817 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 3818 |
|
---|
| 3819 |
|
---|
| 3820 |
|
---|
| 3821 |
|
---|
| 3822 |
|
---|
| 3823 |
|
---|
| 3824 |
|
---|
| 3825 |
|
---|
| 3826 |
|
---|
| 3827 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 3828 | inttypes.h stdint.h unistd.h
|
---|
| 3829 | do
|
---|
| 3830 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
[20853] | 3831 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 3832 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 3833 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[8756] | 3834 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3835 | else
|
---|
| 3836 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3837 | /* confdefs.h. */
|
---|
| 3838 | _ACEOF
|
---|
| 3839 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3840 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3841 | /* end confdefs.h. */
|
---|
| 3842 | $ac_includes_default
|
---|
| 3843 |
|
---|
| 3844 | #include <$ac_header>
|
---|
| 3845 | _ACEOF
|
---|
| 3846 | rm -f conftest.$ac_objext
|
---|
[20853] | 3847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3848 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 3849 | ac_status=$?
|
---|
| 3850 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3851 | rm -f conftest.er1
|
---|
| 3852 | cat conftest.err >&5
|
---|
| 3853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 3854 | (exit $ac_status); } &&
|
---|
| 3855 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3856 | || test ! -s conftest.err'
|
---|
| 3857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3858 | (eval $ac_try) 2>&5
|
---|
| 3859 | ac_status=$?
|
---|
| 3860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3861 | (exit $ac_status); }; } &&
|
---|
| 3862 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3864 | (eval $ac_try) 2>&5
|
---|
| 3865 | ac_status=$?
|
---|
| 3866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3867 | (exit $ac_status); }; }; then
|
---|
[8756] | 3868 | eval "$as_ac_Header=yes"
|
---|
| 3869 | else
|
---|
| 3870 | echo "$as_me: failed program was:" >&5
|
---|
| 3871 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3872 |
|
---|
[20853] | 3873 | eval "$as_ac_Header=no"
|
---|
[8756] | 3874 | fi
|
---|
[20853] | 3875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8756] | 3876 | fi
|
---|
[20853] | 3877 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 3878 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[8756] | 3879 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 3880 | cat >>confdefs.h <<_ACEOF
|
---|
| 3881 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 3882 | _ACEOF
|
---|
| 3883 |
|
---|
| 3884 | fi
|
---|
| 3885 |
|
---|
| 3886 | done
|
---|
| 3887 |
|
---|
| 3888 |
|
---|
| 3889 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
[20853] | 3890 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3891 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
[8756] | 3892 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3893 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3894 | fi
|
---|
[20853] | 3895 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3896 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[8756] | 3897 | else
|
---|
| 3898 | # Is the header compilable?
|
---|
[20853] | 3899 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 3900 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
[8756] | 3901 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3902 | /* confdefs.h. */
|
---|
| 3903 | _ACEOF
|
---|
| 3904 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3905 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3906 | /* end confdefs.h. */
|
---|
| 3907 | $ac_includes_default
|
---|
| 3908 | #include <minix/config.h>
|
---|
| 3909 | _ACEOF
|
---|
| 3910 | rm -f conftest.$ac_objext
|
---|
[20853] | 3911 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3912 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 3913 | ac_status=$?
|
---|
| 3914 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3915 | rm -f conftest.er1
|
---|
| 3916 | cat conftest.err >&5
|
---|
| 3917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 3918 | (exit $ac_status); } &&
|
---|
| 3919 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3920 | || test ! -s conftest.err'
|
---|
| 3921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3922 | (eval $ac_try) 2>&5
|
---|
| 3923 | ac_status=$?
|
---|
| 3924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3925 | (exit $ac_status); }; } &&
|
---|
| 3926 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3928 | (eval $ac_try) 2>&5
|
---|
| 3929 | ac_status=$?
|
---|
| 3930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3931 | (exit $ac_status); }; }; then
|
---|
[8756] | 3932 | ac_header_compiler=yes
|
---|
| 3933 | else
|
---|
| 3934 | echo "$as_me: failed program was:" >&5
|
---|
| 3935 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3936 |
|
---|
[20853] | 3937 | ac_header_compiler=no
|
---|
[8756] | 3938 | fi
|
---|
[20853] | 3939 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3940 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 3941 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
[8756] | 3942 |
|
---|
| 3943 | # Is the header present?
|
---|
[20853] | 3944 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 3945 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
[8756] | 3946 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3947 | /* confdefs.h. */
|
---|
| 3948 | _ACEOF
|
---|
| 3949 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3950 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3951 | /* end confdefs.h. */
|
---|
| 3952 | #include <minix/config.h>
|
---|
| 3953 | _ACEOF
|
---|
[20853] | 3954 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3955 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
[8756] | 3956 | ac_status=$?
|
---|
| 3957 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3958 | rm -f conftest.er1
|
---|
| 3959 | cat conftest.err >&5
|
---|
| 3960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 3961 | (exit $ac_status); } >/dev/null; then
|
---|
| 3962 | if test -s conftest.err; then
|
---|
| 3963 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3964 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3965 | else
|
---|
| 3966 | ac_cpp_err=
|
---|
| 3967 | fi
|
---|
| 3968 | else
|
---|
| 3969 | ac_cpp_err=yes
|
---|
| 3970 | fi
|
---|
| 3971 | if test -z "$ac_cpp_err"; then
|
---|
[8756] | 3972 | ac_header_preproc=yes
|
---|
| 3973 | else
|
---|
| 3974 | echo "$as_me: failed program was:" >&5
|
---|
| 3975 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3976 |
|
---|
| 3977 | ac_header_preproc=no
|
---|
| 3978 | fi
|
---|
| 3979 | rm -f conftest.err conftest.$ac_ext
|
---|
[20853] | 3980 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 3981 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
[8756] | 3982 |
|
---|
| 3983 | # So? What about this header?
|
---|
| 3984 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 3985 | yes:no: )
|
---|
| 3986 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 3987 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 3988 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 3989 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 3990 | ac_header_preproc=yes
|
---|
| 3991 | ;;
|
---|
| 3992 | no:yes:* )
|
---|
| 3993 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 3994 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 3995 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 3996 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 3997 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 3998 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 3999 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 4000 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 4001 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 4002 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 4003 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 4004 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
[20853] | 4005 | (
|
---|
| 4006 | cat <<\_ASBOX
|
---|
| 4007 | ## ------------------------------------------ ##
|
---|
| 4008 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 4009 | ## ------------------------------------------ ##
|
---|
| 4010 | _ASBOX
|
---|
| 4011 | ) |
|
---|
| 4012 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
[8756] | 4013 | ;;
|
---|
| 4014 | esac
|
---|
[20853] | 4015 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 4016 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
[8756] | 4017 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 4018 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4019 | else
|
---|
| 4020 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
| 4021 | fi
|
---|
[20853] | 4022 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 4023 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[8756] | 4024 |
|
---|
| 4025 | fi
|
---|
| 4026 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
[687] | 4027 | MINIX=yes
|
---|
| 4028 | else
|
---|
[8756] | 4029 | MINIX=
|
---|
[687] | 4030 | fi
|
---|
| 4031 |
|
---|
[8756] | 4032 |
|
---|
[687] | 4033 | if test "$MINIX" = yes; then
|
---|
[8756] | 4034 |
|
---|
| 4035 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 4036 | #define _POSIX_SOURCE 1
|
---|
[8756] | 4037 | _ACEOF
|
---|
[687] | 4038 |
|
---|
[8756] | 4039 |
|
---|
| 4040 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 4041 | #define _POSIX_1_SOURCE 2
|
---|
[8756] | 4042 | _ACEOF
|
---|
[687] | 4043 |
|
---|
[8756] | 4044 |
|
---|
| 4045 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 4046 | #define _MINIX 1
|
---|
[8756] | 4047 | _ACEOF
|
---|
[687] | 4048 |
|
---|
| 4049 | fi
|
---|
| 4050 |
|
---|
[20853] | 4051 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
| 4052 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
[8756] | 4053 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 4054 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[700] | 4055 | else
|
---|
| 4056 | ac_cv_prog_cc_stdc=no
|
---|
| 4057 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 4058 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 4059 | # breaks some systems' header files.
|
---|
| 4060 | # AIX -qlanglvl=ansi
|
---|
| 4061 | # Ultrix and OSF/1 -std1
|
---|
| 4062 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 4063 | # SVR4 -Xc
|
---|
| 4064 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 4065 | do
|
---|
| 4066 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[8756] | 4067 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4068 | /* confdefs.h. */
|
---|
| 4069 | _ACEOF
|
---|
| 4070 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4071 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4072 | /* end confdefs.h. */
|
---|
[700] | 4073 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 4074 | choke me
|
---|
[8756] | 4075 | #endif
|
---|
[700] | 4076 |
|
---|
[8756] | 4077 | int
|
---|
| 4078 | main ()
|
---|
| 4079 | {
|
---|
[700] | 4080 | int test (int i, double x);
|
---|
| 4081 | struct s1 {int (*f) (int a);};
|
---|
| 4082 | struct s2 {int (*f) (double a);};
|
---|
[8756] | 4083 | ;
|
---|
| 4084 | return 0;
|
---|
| 4085 | }
|
---|
| 4086 | _ACEOF
|
---|
| 4087 | rm -f conftest.$ac_objext
|
---|
[20853] | 4088 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4089 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 4090 | ac_status=$?
|
---|
| 4091 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4092 | rm -f conftest.er1
|
---|
| 4093 | cat conftest.err >&5
|
---|
| 4094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 4095 | (exit $ac_status); } &&
|
---|
| 4096 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4097 | || test ! -s conftest.err'
|
---|
| 4098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4099 | (eval $ac_try) 2>&5
|
---|
| 4100 | ac_status=$?
|
---|
| 4101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4102 | (exit $ac_status); }; } &&
|
---|
| 4103 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4105 | (eval $ac_try) 2>&5
|
---|
| 4106 | ac_status=$?
|
---|
| 4107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4108 | (exit $ac_status); }; }; then
|
---|
[700] | 4109 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 4110 | else
|
---|
[8756] | 4111 | echo "$as_me: failed program was:" >&5
|
---|
| 4112 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4113 |
|
---|
[700] | 4114 | fi
|
---|
[20853] | 4115 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[700] | 4116 | done
|
---|
| 4117 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 4118 |
|
---|
| 4119 | fi
|
---|
| 4120 |
|
---|
[20853] | 4121 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 4122 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
[700] | 4123 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 4124 | x|xno) ;;
|
---|
| 4125 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 4126 | esac
|
---|
| 4127 |
|
---|
[8200] | 4128 |
|
---|
[20853] | 4129 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
| 4130 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
[700] | 4131 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[20853] | 4132 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 4133 | echo "${ECHO_T}yes" >&6
|
---|
[8756] | 4134 | cat >>confdefs.h <<\_ACEOF
|
---|
[700] | 4135 | #define PROTOTYPES 1
|
---|
[8756] | 4136 | _ACEOF
|
---|
[700] | 4137 |
|
---|
| 4138 | U= ANSI2KNR=
|
---|
| 4139 | else
|
---|
[20853] | 4140 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4141 | echo "${ECHO_T}no" >&6
|
---|
[700] | 4142 | U=_ ANSI2KNR=ansi2knr
|
---|
| 4143 | fi
|
---|
| 4144 |
|
---|
[20853] | 4145 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
| 4146 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
[8756] | 4147 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 4148 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4149 | else
|
---|
[8756] | 4150 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4151 | /* confdefs.h. */
|
---|
| 4152 | _ACEOF
|
---|
| 4153 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4154 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4155 | /* end confdefs.h. */
|
---|
[8200] | 4156 |
|
---|
[8756] | 4157 | int
|
---|
| 4158 | main ()
|
---|
| 4159 | {
|
---|
| 4160 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 4161 | #ifndef __cplusplus
|
---|
| 4162 | /* Ultrix mips cc rejects this. */
|
---|
| 4163 | typedef int charset[2];
|
---|
[20853] | 4164 | const charset x;
|
---|
[8756] | 4165 | /* SunOS 4.1.1 cc rejects this. */
|
---|
[20853] | 4166 | char const *const *ccp;
|
---|
| 4167 | char **p;
|
---|
[8756] | 4168 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 4169 | struct point {int x, y;};
|
---|
| 4170 | static struct point const zero = {0,0};
|
---|
| 4171 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 4172 | It does not let you subtract one const X* pointer from another in
|
---|
| 4173 | an arm of an if-expression whose if-part is not a constant
|
---|
| 4174 | expression */
|
---|
| 4175 | const char *g = "string";
|
---|
[20853] | 4176 | ccp = &g + (g ? g-g : 0);
|
---|
[8756] | 4177 | /* HPUX 7.0 cc rejects these. */
|
---|
[20853] | 4178 | ++ccp;
|
---|
| 4179 | p = (char**) ccp;
|
---|
| 4180 | ccp = (char const *const *) p;
|
---|
[8756] | 4181 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4182 | char *t;
|
---|
| 4183 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
[8200] | 4184 |
|
---|
[8756] | 4185 | *t++ = 0;
|
---|
| 4186 | }
|
---|
| 4187 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4188 | int x[] = {25, 17};
|
---|
| 4189 | const int *foo = &x[0];
|
---|
| 4190 | ++foo;
|
---|
| 4191 | }
|
---|
| 4192 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4193 | typedef const int *iptr;
|
---|
| 4194 | iptr p = 0;
|
---|
| 4195 | ++p;
|
---|
| 4196 | }
|
---|
| 4197 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4198 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4199 | struct s { int j; const int *ap[3]; };
|
---|
| 4200 | struct s *b; b->j = 5;
|
---|
| 4201 | }
|
---|
| 4202 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4203 | const int foo = 10;
|
---|
| 4204 | }
|
---|
| 4205 | #endif
|
---|
[8200] | 4206 |
|
---|
[8756] | 4207 | ;
|
---|
| 4208 | return 0;
|
---|
[3631] | 4209 | }
|
---|
[8756] | 4210 | _ACEOF
|
---|
| 4211 | rm -f conftest.$ac_objext
|
---|
[20853] | 4212 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4213 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 4214 | ac_status=$?
|
---|
| 4215 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4216 | rm -f conftest.er1
|
---|
| 4217 | cat conftest.err >&5
|
---|
| 4218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 4219 | (exit $ac_status); } &&
|
---|
| 4220 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4221 | || test ! -s conftest.err'
|
---|
| 4222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4223 | (eval $ac_try) 2>&5
|
---|
| 4224 | ac_status=$?
|
---|
| 4225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4226 | (exit $ac_status); }; } &&
|
---|
| 4227 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4229 | (eval $ac_try) 2>&5
|
---|
| 4230 | ac_status=$?
|
---|
| 4231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4232 | (exit $ac_status); }; }; then
|
---|
[687] | 4233 | ac_cv_c_const=yes
|
---|
| 4234 | else
|
---|
[8756] | 4235 | echo "$as_me: failed program was:" >&5
|
---|
| 4236 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4237 |
|
---|
[20853] | 4238 | ac_cv_c_const=no
|
---|
[687] | 4239 | fi
|
---|
[20853] | 4240 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4241 | fi
|
---|
[20853] | 4242 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
| 4243 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
[3631] | 4244 | if test $ac_cv_c_const = no; then
|
---|
[687] | 4245 |
|
---|
[8756] | 4246 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4247 | #define const
|
---|
| 4248 | _ACEOF
|
---|
| 4249 |
|
---|
[687] | 4250 | fi
|
---|
| 4251 |
|
---|
[20853] | 4252 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
| 4253 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
[8756] | 4254 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 4255 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4256 | else
|
---|
[8756] | 4257 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4258 | /* confdefs.h. */
|
---|
| 4259 | _ACEOF
|
---|
| 4260 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4261 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4262 | /* end confdefs.h. */
|
---|
| 4263 | $ac_includes_default
|
---|
| 4264 | int
|
---|
| 4265 | main ()
|
---|
| 4266 | {
|
---|
[20853] | 4267 | if ((off_t *) 0)
|
---|
[8756] | 4268 | return 0;
|
---|
[20853] | 4269 | if (sizeof (off_t))
|
---|
[8756] | 4270 | return 0;
|
---|
| 4271 | ;
|
---|
| 4272 | return 0;
|
---|
| 4273 | }
|
---|
| 4274 | _ACEOF
|
---|
| 4275 | rm -f conftest.$ac_objext
|
---|
[20853] | 4276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4277 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 4278 | ac_status=$?
|
---|
| 4279 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4280 | rm -f conftest.er1
|
---|
| 4281 | cat conftest.err >&5
|
---|
| 4282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 4283 | (exit $ac_status); } &&
|
---|
| 4284 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4285 | || test ! -s conftest.err'
|
---|
| 4286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4287 | (eval $ac_try) 2>&5
|
---|
| 4288 | ac_status=$?
|
---|
| 4289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4290 | (exit $ac_status); }; } &&
|
---|
| 4291 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4293 | (eval $ac_try) 2>&5
|
---|
| 4294 | ac_status=$?
|
---|
| 4295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4296 | (exit $ac_status); }; }; then
|
---|
[8756] | 4297 | ac_cv_type_off_t=yes
|
---|
[687] | 4298 | else
|
---|
[8756] | 4299 | echo "$as_me: failed program was:" >&5
|
---|
| 4300 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[687] | 4301 |
|
---|
[20853] | 4302 | ac_cv_type_off_t=no
|
---|
[687] | 4303 | fi
|
---|
[20853] | 4304 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4305 | fi
|
---|
[20853] | 4306 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
| 4307 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
[8756] | 4308 | if test $ac_cv_type_off_t = yes; then
|
---|
[687] | 4309 | :
|
---|
| 4310 | else
|
---|
| 4311 |
|
---|
[8756] | 4312 | cat >>confdefs.h <<_ACEOF
|
---|
[20853] | 4313 | #define off_t long
|
---|
[8756] | 4314 | _ACEOF
|
---|
[687] | 4315 |
|
---|
| 4316 | fi
|
---|
[8200] | 4317 |
|
---|
[20853] | 4318 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
| 4319 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
[8756] | 4320 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4321 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4322 | else
|
---|
[8756] | 4323 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4324 | /* confdefs.h. */
|
---|
| 4325 | _ACEOF
|
---|
| 4326 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4327 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4328 | /* end confdefs.h. */
|
---|
| 4329 | $ac_includes_default
|
---|
| 4330 | int
|
---|
| 4331 | main ()
|
---|
| 4332 | {
|
---|
[20853] | 4333 | if ((size_t *) 0)
|
---|
[8756] | 4334 | return 0;
|
---|
[20853] | 4335 | if (sizeof (size_t))
|
---|
[8756] | 4336 | return 0;
|
---|
| 4337 | ;
|
---|
| 4338 | return 0;
|
---|
| 4339 | }
|
---|
| 4340 | _ACEOF
|
---|
| 4341 | rm -f conftest.$ac_objext
|
---|
[20853] | 4342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4343 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 4344 | ac_status=$?
|
---|
| 4345 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4346 | rm -f conftest.er1
|
---|
| 4347 | cat conftest.err >&5
|
---|
| 4348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 4349 | (exit $ac_status); } &&
|
---|
| 4350 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4351 | || test ! -s conftest.err'
|
---|
| 4352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4353 | (eval $ac_try) 2>&5
|
---|
| 4354 | ac_status=$?
|
---|
| 4355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4356 | (exit $ac_status); }; } &&
|
---|
| 4357 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4359 | (eval $ac_try) 2>&5
|
---|
| 4360 | ac_status=$?
|
---|
| 4361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4362 | (exit $ac_status); }; }; then
|
---|
[8756] | 4363 | ac_cv_type_size_t=yes
|
---|
[687] | 4364 | else
|
---|
[8756] | 4365 | echo "$as_me: failed program was:" >&5
|
---|
| 4366 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4367 |
|
---|
[20853] | 4368 | ac_cv_type_size_t=no
|
---|
[3631] | 4369 | fi
|
---|
[20853] | 4370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4371 | fi
|
---|
[20853] | 4372 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
| 4373 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
[8756] | 4374 | if test $ac_cv_type_size_t = yes; then
|
---|
| 4375 | :
|
---|
[687] | 4376 | else
|
---|
[8200] | 4377 |
|
---|
[8756] | 4378 | cat >>confdefs.h <<_ACEOF
|
---|
[20853] | 4379 | #define size_t unsigned
|
---|
[8756] | 4380 | _ACEOF
|
---|
[687] | 4381 |
|
---|
| 4382 | fi
|
---|
| 4383 |
|
---|
[20853] | 4384 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
| 4385 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
[8756] | 4386 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 4387 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4388 | else
|
---|
[8756] | 4389 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4390 | /* confdefs.h. */
|
---|
| 4391 | _ACEOF
|
---|
| 4392 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4393 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4394 | /* end confdefs.h. */
|
---|
[687] | 4395 | #include <sys/types.h>
|
---|
| 4396 | #include <sys/time.h>
|
---|
| 4397 | #include <time.h>
|
---|
[8756] | 4398 |
|
---|
| 4399 | int
|
---|
| 4400 | main ()
|
---|
| 4401 | {
|
---|
| 4402 | if ((struct tm *) 0)
|
---|
| 4403 | return 0;
|
---|
| 4404 | ;
|
---|
| 4405 | return 0;
|
---|
| 4406 | }
|
---|
| 4407 | _ACEOF
|
---|
| 4408 | rm -f conftest.$ac_objext
|
---|
[20853] | 4409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4410 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 4411 | ac_status=$?
|
---|
| 4412 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4413 | rm -f conftest.er1
|
---|
| 4414 | cat conftest.err >&5
|
---|
| 4415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 4416 | (exit $ac_status); } &&
|
---|
| 4417 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4418 | || test ! -s conftest.err'
|
---|
| 4419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4420 | (eval $ac_try) 2>&5
|
---|
| 4421 | ac_status=$?
|
---|
| 4422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4423 | (exit $ac_status); }; } &&
|
---|
| 4424 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4426 | (eval $ac_try) 2>&5
|
---|
| 4427 | ac_status=$?
|
---|
| 4428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4429 | (exit $ac_status); }; }; then
|
---|
[687] | 4430 | ac_cv_header_time=yes
|
---|
| 4431 | else
|
---|
[8756] | 4432 | echo "$as_me: failed program was:" >&5
|
---|
| 4433 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4434 |
|
---|
[20853] | 4435 | ac_cv_header_time=no
|
---|
[687] | 4436 | fi
|
---|
[20853] | 4437 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4438 | fi
|
---|
[20853] | 4439 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
| 4440 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
[8756] | 4441 | if test $ac_cv_header_time = yes; then
|
---|
[8200] | 4442 |
|
---|
[8756] | 4443 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 4444 | #define TIME_WITH_SYS_TIME 1
|
---|
[8756] | 4445 | _ACEOF
|
---|
[687] | 4446 |
|
---|
| 4447 | fi
|
---|
| 4448 |
|
---|
[20853] | 4449 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
| 4450 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
[8756] | 4451 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 4452 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4453 | else
|
---|
[8756] | 4454 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4455 | /* confdefs.h. */
|
---|
| 4456 | _ACEOF
|
---|
| 4457 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4458 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4459 | /* end confdefs.h. */
|
---|
[687] | 4460 | #include <sys/types.h>
|
---|
| 4461 | #include <time.h>
|
---|
[8756] | 4462 |
|
---|
| 4463 | int
|
---|
| 4464 | main ()
|
---|
| 4465 | {
|
---|
[20853] | 4466 | struct tm *tp; tp->tm_sec;
|
---|
[8756] | 4467 | ;
|
---|
| 4468 | return 0;
|
---|
| 4469 | }
|
---|
| 4470 | _ACEOF
|
---|
| 4471 | rm -f conftest.$ac_objext
|
---|
[20853] | 4472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4473 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 4474 | ac_status=$?
|
---|
| 4475 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4476 | rm -f conftest.er1
|
---|
| 4477 | cat conftest.err >&5
|
---|
| 4478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 4479 | (exit $ac_status); } &&
|
---|
| 4480 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4481 | || test ! -s conftest.err'
|
---|
| 4482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4483 | (eval $ac_try) 2>&5
|
---|
| 4484 | ac_status=$?
|
---|
| 4485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4486 | (exit $ac_status); }; } &&
|
---|
| 4487 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4489 | (eval $ac_try) 2>&5
|
---|
| 4490 | ac_status=$?
|
---|
| 4491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4492 | (exit $ac_status); }; }; then
|
---|
[687] | 4493 | ac_cv_struct_tm=time.h
|
---|
| 4494 | else
|
---|
[8756] | 4495 | echo "$as_me: failed program was:" >&5
|
---|
| 4496 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4497 |
|
---|
[20853] | 4498 | ac_cv_struct_tm=sys/time.h
|
---|
[687] | 4499 | fi
|
---|
[20853] | 4500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4501 | fi
|
---|
[20853] | 4502 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
| 4503 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
[8756] | 4504 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
[8200] | 4505 |
|
---|
[8756] | 4506 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 4507 | #define TM_IN_SYS_TIME 1
|
---|
[8756] | 4508 | _ACEOF
|
---|
[687] | 4509 |
|
---|
| 4510 | fi
|
---|
| 4511 |
|
---|
[8200] | 4512 |
|
---|
[687] | 4513 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[8756] | 4514 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4515 | /* confdefs.h. */
|
---|
| 4516 | _ACEOF
|
---|
| 4517 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4518 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4519 | /* end confdefs.h. */
|
---|
[687] | 4520 | #include <stdio.h>
|
---|
| 4521 |
|
---|
[8756] | 4522 | int
|
---|
| 4523 | main ()
|
---|
| 4524 | {
|
---|
| 4525 | FILE *rubbish = popen("yes", "r");
|
---|
| 4526 | ;
|
---|
| 4527 | return 0;
|
---|
| 4528 | }
|
---|
| 4529 | _ACEOF
|
---|
| 4530 | rm -f conftest.$ac_objext
|
---|
[20853] | 4531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4532 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 4533 | ac_status=$?
|
---|
| 4534 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4535 | rm -f conftest.er1
|
---|
| 4536 | cat conftest.err >&5
|
---|
| 4537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 4538 | (exit $ac_status); } &&
|
---|
| 4539 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4540 | || test ! -s conftest.err'
|
---|
| 4541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4542 | (eval $ac_try) 2>&5
|
---|
| 4543 | ac_status=$?
|
---|
| 4544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4545 | (exit $ac_status); }; } &&
|
---|
| 4546 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4548 | (eval $ac_try) 2>&5
|
---|
| 4549 | ac_status=$?
|
---|
| 4550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4551 | (exit $ac_status); }; }; then
|
---|
[687] | 4552 | :
|
---|
| 4553 | else
|
---|
[8756] | 4554 | echo "$as_me: failed program was:" >&5
|
---|
| 4555 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4556 |
|
---|
[20853] | 4557 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[687] | 4558 | fi
|
---|
[20853] | 4559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4560 | fi
|
---|
| 4561 |
|
---|
[8200] | 4562 |
|
---|
[8756] | 4563 |
|
---|
[20853] | 4564 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
| 4565 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
[8756] | 4566 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
| 4567 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4568 | else
|
---|
[8756] | 4569 | ac_check_lib_save_LIBS=$LIBS
|
---|
[562] | 4570 | LIBS="-lg $LIBS"
|
---|
[8756] | 4571 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4572 | /* confdefs.h. */
|
---|
| 4573 | _ACEOF
|
---|
| 4574 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4575 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4576 | /* end confdefs.h. */
|
---|
[562] | 4577 |
|
---|
[8756] | 4578 |
|
---|
| 4579 | int
|
---|
| 4580 | main ()
|
---|
| 4581 | {
|
---|
[20853] | 4582 | main ();
|
---|
[8756] | 4583 | ;
|
---|
| 4584 | return 0;
|
---|
| 4585 | }
|
---|
| 4586 | _ACEOF
|
---|
| 4587 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[20853] | 4588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4589 | (eval $ac_link) 2>conftest.er1
|
---|
[8756] | 4590 | ac_status=$?
|
---|
| 4591 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4592 | rm -f conftest.er1
|
---|
| 4593 | cat conftest.err >&5
|
---|
| 4594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 4595 | (exit $ac_status); } &&
|
---|
| 4596 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4597 | || test ! -s conftest.err'
|
---|
| 4598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4599 | (eval $ac_try) 2>&5
|
---|
| 4600 | ac_status=$?
|
---|
| 4601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4602 | (exit $ac_status); }; } &&
|
---|
| 4603 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4605 | (eval $ac_try) 2>&5
|
---|
| 4606 | ac_status=$?
|
---|
| 4607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4608 | (exit $ac_status); }; }; then
|
---|
[8756] | 4609 | ac_cv_lib_g_main=yes
|
---|
[562] | 4610 | else
|
---|
[8756] | 4611 | echo "$as_me: failed program was:" >&5
|
---|
| 4612 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4613 |
|
---|
[20853] | 4614 | ac_cv_lib_g_main=no
|
---|
[562] | 4615 | fi
|
---|
[20853] | 4616 | rm -f conftest.err conftest.$ac_objext \
|
---|
[8756] | 4617 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4618 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4619 | fi
|
---|
[20853] | 4620 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
| 4621 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
[8756] | 4622 | if test $ac_cv_lib_g_main = yes; then
|
---|
| 4623 | cat >>confdefs.h <<_ACEOF
|
---|
| 4624 | #define HAVE_LIBG 1
|
---|
| 4625 | _ACEOF
|
---|
[562] | 4626 |
|
---|
| 4627 | LIBS="-lg $LIBS"
|
---|
| 4628 |
|
---|
| 4629 | fi
|
---|
[8756] | 4630 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
[562] | 4631 |
|
---|
| 4632 |
|
---|
[20853] | 4633 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
| 4634 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
[8756] | 4635 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 4636 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4637 | else
|
---|
[8756] | 4638 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4639 | LIBS="-lm $LIBS"
|
---|
| 4640 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4641 | /* confdefs.h. */
|
---|
| 4642 | _ACEOF
|
---|
| 4643 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4644 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4645 | /* end confdefs.h. */
|
---|
[8200] | 4646 |
|
---|
[562] | 4647 |
|
---|
[8756] | 4648 | int
|
---|
| 4649 | main ()
|
---|
| 4650 | {
|
---|
[20853] | 4651 | main ();
|
---|
[8756] | 4652 | ;
|
---|
| 4653 | return 0;
|
---|
| 4654 | }
|
---|
| 4655 | _ACEOF
|
---|
| 4656 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[20853] | 4657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4658 | (eval $ac_link) 2>conftest.er1
|
---|
[8756] | 4659 | ac_status=$?
|
---|
| 4660 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4661 | rm -f conftest.er1
|
---|
| 4662 | cat conftest.err >&5
|
---|
| 4663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 4664 | (exit $ac_status); } &&
|
---|
| 4665 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4666 | || test ! -s conftest.err'
|
---|
| 4667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4668 | (eval $ac_try) 2>&5
|
---|
| 4669 | ac_status=$?
|
---|
| 4670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4671 | (exit $ac_status); }; } &&
|
---|
| 4672 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4674 | (eval $ac_try) 2>&5
|
---|
| 4675 | ac_status=$?
|
---|
| 4676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4677 | (exit $ac_status); }; }; then
|
---|
[8756] | 4678 | ac_cv_lib_m_main=yes
|
---|
[8200] | 4679 | else
|
---|
[8756] | 4680 | echo "$as_me: failed program was:" >&5
|
---|
| 4681 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[562] | 4682 |
|
---|
[20853] | 4683 | ac_cv_lib_m_main=no
|
---|
[562] | 4684 | fi
|
---|
[20853] | 4685 | rm -f conftest.err conftest.$ac_objext \
|
---|
[8756] | 4686 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4687 | LIBS=$ac_check_lib_save_LIBS
|
---|
[562] | 4688 | fi
|
---|
[20853] | 4689 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
| 4690 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
[8756] | 4691 | if test $ac_cv_lib_m_main = yes; then
|
---|
| 4692 | cat >>confdefs.h <<_ACEOF
|
---|
| 4693 | #define HAVE_LIBM 1
|
---|
| 4694 | _ACEOF
|
---|
[562] | 4695 |
|
---|
| 4696 | LIBS="-lm $LIBS"
|
---|
| 4697 |
|
---|
| 4698 | fi
|
---|
[8756] | 4699 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
[562] | 4700 |
|
---|
[8756] | 4701 |
|
---|
[20853] | 4702 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
| 4703 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
[8756] | 4704 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
| 4705 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4706 | else
|
---|
[8756] | 4707 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4708 | LIBS="-lcrypt $LIBS"
|
---|
| 4709 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4710 | /* confdefs.h. */
|
---|
| 4711 | _ACEOF
|
---|
| 4712 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4713 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4714 | /* end confdefs.h. */
|
---|
[562] | 4715 |
|
---|
[8756] | 4716 |
|
---|
| 4717 | int
|
---|
| 4718 | main ()
|
---|
| 4719 | {
|
---|
[20853] | 4720 | main ();
|
---|
[8756] | 4721 | ;
|
---|
| 4722 | return 0;
|
---|
| 4723 | }
|
---|
| 4724 | _ACEOF
|
---|
| 4725 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[20853] | 4726 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4727 | (eval $ac_link) 2>conftest.er1
|
---|
[8756] | 4728 | ac_status=$?
|
---|
| 4729 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4730 | rm -f conftest.er1
|
---|
| 4731 | cat conftest.err >&5
|
---|
| 4732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 4733 | (exit $ac_status); } &&
|
---|
| 4734 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4735 | || test ! -s conftest.err'
|
---|
| 4736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4737 | (eval $ac_try) 2>&5
|
---|
| 4738 | ac_status=$?
|
---|
| 4739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4740 | (exit $ac_status); }; } &&
|
---|
| 4741 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4743 | (eval $ac_try) 2>&5
|
---|
| 4744 | ac_status=$?
|
---|
| 4745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4746 | (exit $ac_status); }; }; then
|
---|
[8756] | 4747 | ac_cv_lib_crypt_main=yes
|
---|
[562] | 4748 | else
|
---|
[8756] | 4749 | echo "$as_me: failed program was:" >&5
|
---|
| 4750 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4751 |
|
---|
[20853] | 4752 | ac_cv_lib_crypt_main=no
|
---|
[562] | 4753 | fi
|
---|
[20853] | 4754 | rm -f conftest.err conftest.$ac_objext \
|
---|
[8756] | 4755 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4756 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4757 | fi
|
---|
[20853] | 4758 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
| 4759 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
[8756] | 4760 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
| 4761 | cat >>confdefs.h <<_ACEOF
|
---|
| 4762 | #define HAVE_LIBCRYPT 1
|
---|
| 4763 | _ACEOF
|
---|
[562] | 4764 |
|
---|
[8756] | 4765 | LIBS="-lcrypt $LIBS"
|
---|
[562] | 4766 |
|
---|
| 4767 | fi
|
---|
[8756] | 4768 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
[562] | 4769 |
|
---|
[20842] | 4770 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
| 4771 | #AC_HAVE_LIBRARY(iconv)
|
---|
| 4772 | #fi
|
---|
[562] | 4773 |
|
---|
[8200] | 4774 |
|
---|
[986] | 4775 |
|
---|
| 4776 |
|
---|
| 4777 |
|
---|
[8200] | 4778 |
|
---|
[687] | 4779 | ac_header_dirent=no
|
---|
[8756] | 4780 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
| 4781 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
[20853] | 4782 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
| 4783 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
| 4784 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[8756] | 4785 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4786 | else
|
---|
[8756] | 4787 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4788 | /* confdefs.h. */
|
---|
| 4789 | _ACEOF
|
---|
| 4790 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4791 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4792 | /* end confdefs.h. */
|
---|
[687] | 4793 | #include <sys/types.h>
|
---|
| 4794 | #include <$ac_hdr>
|
---|
[8756] | 4795 |
|
---|
| 4796 | int
|
---|
| 4797 | main ()
|
---|
| 4798 | {
|
---|
| 4799 | if ((DIR *) 0)
|
---|
| 4800 | return 0;
|
---|
| 4801 | ;
|
---|
| 4802 | return 0;
|
---|
| 4803 | }
|
---|
| 4804 | _ACEOF
|
---|
| 4805 | rm -f conftest.$ac_objext
|
---|
[20853] | 4806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4807 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 4808 | ac_status=$?
|
---|
| 4809 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4810 | rm -f conftest.er1
|
---|
| 4811 | cat conftest.err >&5
|
---|
| 4812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 4813 | (exit $ac_status); } &&
|
---|
| 4814 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4815 | || test ! -s conftest.err'
|
---|
| 4816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4817 | (eval $ac_try) 2>&5
|
---|
| 4818 | ac_status=$?
|
---|
| 4819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4820 | (exit $ac_status); }; } &&
|
---|
| 4821 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4823 | (eval $ac_try) 2>&5
|
---|
| 4824 | ac_status=$?
|
---|
| 4825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4826 | (exit $ac_status); }; }; then
|
---|
[8756] | 4827 | eval "$as_ac_Header=yes"
|
---|
[562] | 4828 | else
|
---|
[8756] | 4829 | echo "$as_me: failed program was:" >&5
|
---|
| 4830 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4831 |
|
---|
[20853] | 4832 | eval "$as_ac_Header=no"
|
---|
[687] | 4833 | fi
|
---|
[20853] | 4834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4835 | fi
|
---|
[20853] | 4836 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4837 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[8756] | 4838 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4839 | cat >>confdefs.h <<_ACEOF
|
---|
| 4840 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
| 4841 | _ACEOF
|
---|
| 4842 |
|
---|
| 4843 | ac_header_dirent=$ac_hdr; break
|
---|
[687] | 4844 | fi
|
---|
[8756] | 4845 |
|
---|
[687] | 4846 | done
|
---|
| 4847 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 4848 | if test $ac_header_dirent = dirent.h; then
|
---|
[20853] | 4849 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4850 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
[8756] | 4851 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 4852 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4853 | else
|
---|
[8756] | 4854 | ac_func_search_save_LIBS=$LIBS
|
---|
[20853] | 4855 | ac_cv_search_opendir=no
|
---|
[8756] | 4856 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4857 | /* confdefs.h. */
|
---|
| 4858 | _ACEOF
|
---|
| 4859 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4860 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4861 | /* end confdefs.h. */
|
---|
| 4862 |
|
---|
[20853] | 4863 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 4864 | #ifdef __cplusplus
|
---|
| 4865 | extern "C"
|
---|
| 4866 | #endif
|
---|
[20853] | 4867 | /* We use char because int might match the return type of a gcc2
|
---|
| 4868 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 4869 | char opendir ();
|
---|
| 4870 | int
|
---|
| 4871 | main ()
|
---|
| 4872 | {
|
---|
[20853] | 4873 | opendir ();
|
---|
[8756] | 4874 | ;
|
---|
| 4875 | return 0;
|
---|
| 4876 | }
|
---|
| 4877 | _ACEOF
|
---|
[20853] | 4878 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4879 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4880 | (eval $ac_link) 2>conftest.er1
|
---|
[8756] | 4881 | ac_status=$?
|
---|
| 4882 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4883 | rm -f conftest.er1
|
---|
| 4884 | cat conftest.err >&5
|
---|
| 4885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 4886 | (exit $ac_status); } &&
|
---|
| 4887 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4888 | || test ! -s conftest.err'
|
---|
| 4889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4890 | (eval $ac_try) 2>&5
|
---|
| 4891 | ac_status=$?
|
---|
| 4892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4893 | (exit $ac_status); }; } &&
|
---|
| 4894 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4896 | (eval $ac_try) 2>&5
|
---|
| 4897 | ac_status=$?
|
---|
| 4898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4899 | (exit $ac_status); }; }; then
|
---|
| 4900 | ac_cv_search_opendir="none required"
|
---|
[8756] | 4901 | else
|
---|
| 4902 | echo "$as_me: failed program was:" >&5
|
---|
| 4903 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4904 |
|
---|
[687] | 4905 | fi
|
---|
[20853] | 4906 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4907 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4908 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4909 | for ac_lib in dir; do
|
---|
| 4910 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4911 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4912 | /* confdefs.h. */
|
---|
| 4913 | _ACEOF
|
---|
| 4914 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4915 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4916 | /* end confdefs.h. */
|
---|
[8200] | 4917 |
|
---|
[20853] | 4918 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4919 | #ifdef __cplusplus
|
---|
| 4920 | extern "C"
|
---|
| 4921 | #endif
|
---|
| 4922 | /* We use char because int might match the return type of a gcc2
|
---|
| 4923 | builtin and then its argument prototype would still apply. */
|
---|
| 4924 | char opendir ();
|
---|
| 4925 | int
|
---|
| 4926 | main ()
|
---|
| 4927 | {
|
---|
| 4928 | opendir ();
|
---|
| 4929 | ;
|
---|
| 4930 | return 0;
|
---|
| 4931 | }
|
---|
| 4932 | _ACEOF
|
---|
| 4933 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4935 | (eval $ac_link) 2>conftest.er1
|
---|
| 4936 | ac_status=$?
|
---|
| 4937 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4938 | rm -f conftest.er1
|
---|
| 4939 | cat conftest.err >&5
|
---|
| 4940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4941 | (exit $ac_status); } &&
|
---|
| 4942 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4943 | || test ! -s conftest.err'
|
---|
| 4944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4945 | (eval $ac_try) 2>&5
|
---|
| 4946 | ac_status=$?
|
---|
| 4947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4948 | (exit $ac_status); }; } &&
|
---|
| 4949 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4951 | (eval $ac_try) 2>&5
|
---|
| 4952 | ac_status=$?
|
---|
| 4953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4954 | (exit $ac_status); }; }; then
|
---|
| 4955 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4956 | break
|
---|
[8200] | 4957 | else
|
---|
[20853] | 4958 | echo "$as_me: failed program was:" >&5
|
---|
| 4959 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4960 |
|
---|
[687] | 4961 | fi
|
---|
[20853] | 4962 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4963 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4964 | done
|
---|
| 4965 | fi
|
---|
[8756] | 4966 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4967 | fi
|
---|
[20853] | 4968 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4969 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4970 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4971 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[687] | 4972 |
|
---|
[8756] | 4973 | fi
|
---|
| 4974 |
|
---|
[687] | 4975 | else
|
---|
[20853] | 4976 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4977 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
[8756] | 4978 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 4979 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4980 | else
|
---|
[8756] | 4981 | ac_func_search_save_LIBS=$LIBS
|
---|
[20853] | 4982 | ac_cv_search_opendir=no
|
---|
[8756] | 4983 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4984 | /* confdefs.h. */
|
---|
| 4985 | _ACEOF
|
---|
| 4986 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4987 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4988 | /* end confdefs.h. */
|
---|
| 4989 |
|
---|
[20853] | 4990 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 4991 | #ifdef __cplusplus
|
---|
| 4992 | extern "C"
|
---|
| 4993 | #endif
|
---|
[20853] | 4994 | /* We use char because int might match the return type of a gcc2
|
---|
| 4995 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 4996 | char opendir ();
|
---|
| 4997 | int
|
---|
| 4998 | main ()
|
---|
| 4999 | {
|
---|
[20853] | 5000 | opendir ();
|
---|
[8756] | 5001 | ;
|
---|
| 5002 | return 0;
|
---|
| 5003 | }
|
---|
| 5004 | _ACEOF
|
---|
[20853] | 5005 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5006 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5007 | (eval $ac_link) 2>conftest.er1
|
---|
[8756] | 5008 | ac_status=$?
|
---|
| 5009 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5010 | rm -f conftest.er1
|
---|
| 5011 | cat conftest.err >&5
|
---|
| 5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 5013 | (exit $ac_status); } &&
|
---|
| 5014 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5015 | || test ! -s conftest.err'
|
---|
| 5016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5017 | (eval $ac_try) 2>&5
|
---|
| 5018 | ac_status=$?
|
---|
| 5019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5020 | (exit $ac_status); }; } &&
|
---|
| 5021 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5023 | (eval $ac_try) 2>&5
|
---|
| 5024 | ac_status=$?
|
---|
| 5025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5026 | (exit $ac_status); }; }; then
|
---|
| 5027 | ac_cv_search_opendir="none required"
|
---|
[8756] | 5028 | else
|
---|
| 5029 | echo "$as_me: failed program was:" >&5
|
---|
| 5030 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 5031 |
|
---|
[562] | 5032 | fi
|
---|
[20853] | 5033 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5034 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5035 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 5036 | for ac_lib in x; do
|
---|
| 5037 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5038 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5039 | /* confdefs.h. */
|
---|
| 5040 | _ACEOF
|
---|
| 5041 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5042 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5043 | /* end confdefs.h. */
|
---|
[8200] | 5044 |
|
---|
[20853] | 5045 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5046 | #ifdef __cplusplus
|
---|
| 5047 | extern "C"
|
---|
| 5048 | #endif
|
---|
| 5049 | /* We use char because int might match the return type of a gcc2
|
---|
| 5050 | builtin and then its argument prototype would still apply. */
|
---|
| 5051 | char opendir ();
|
---|
| 5052 | int
|
---|
| 5053 | main ()
|
---|
| 5054 | {
|
---|
| 5055 | opendir ();
|
---|
| 5056 | ;
|
---|
| 5057 | return 0;
|
---|
| 5058 | }
|
---|
| 5059 | _ACEOF
|
---|
| 5060 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5061 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5062 | (eval $ac_link) 2>conftest.er1
|
---|
| 5063 | ac_status=$?
|
---|
| 5064 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5065 | rm -f conftest.er1
|
---|
| 5066 | cat conftest.err >&5
|
---|
| 5067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5068 | (exit $ac_status); } &&
|
---|
| 5069 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5070 | || test ! -s conftest.err'
|
---|
| 5071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5072 | (eval $ac_try) 2>&5
|
---|
| 5073 | ac_status=$?
|
---|
| 5074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5075 | (exit $ac_status); }; } &&
|
---|
| 5076 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5078 | (eval $ac_try) 2>&5
|
---|
| 5079 | ac_status=$?
|
---|
| 5080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5081 | (exit $ac_status); }; }; then
|
---|
| 5082 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 5083 | break
|
---|
[8200] | 5084 | else
|
---|
[20853] | 5085 | echo "$as_me: failed program was:" >&5
|
---|
| 5086 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5087 |
|
---|
[562] | 5088 | fi
|
---|
[20853] | 5089 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5090 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5091 | done
|
---|
| 5092 | fi
|
---|
[8756] | 5093 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5094 | fi
|
---|
[20853] | 5095 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 5096 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 5097 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 5098 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[562] | 5099 |
|
---|
[687] | 5100 | fi
|
---|
| 5101 |
|
---|
[8756] | 5102 | fi
|
---|
| 5103 |
|
---|
[20853] | 5104 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 5105 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
[8756] | 5106 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 5107 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5108 | else
|
---|
[8756] | 5109 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5110 | /* confdefs.h. */
|
---|
| 5111 | _ACEOF
|
---|
| 5112 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5113 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5114 | /* end confdefs.h. */
|
---|
[562] | 5115 | #include <stdlib.h>
|
---|
| 5116 | #include <stdarg.h>
|
---|
| 5117 | #include <string.h>
|
---|
| 5118 | #include <float.h>
|
---|
[8756] | 5119 |
|
---|
| 5120 | int
|
---|
| 5121 | main ()
|
---|
| 5122 | {
|
---|
| 5123 |
|
---|
| 5124 | ;
|
---|
| 5125 | return 0;
|
---|
| 5126 | }
|
---|
| 5127 | _ACEOF
|
---|
| 5128 | rm -f conftest.$ac_objext
|
---|
[20853] | 5129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5130 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 5131 | ac_status=$?
|
---|
| 5132 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5133 | rm -f conftest.er1
|
---|
| 5134 | cat conftest.err >&5
|
---|
| 5135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 5136 | (exit $ac_status); } &&
|
---|
| 5137 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5138 | || test ! -s conftest.err'
|
---|
| 5139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5140 | (eval $ac_try) 2>&5
|
---|
| 5141 | ac_status=$?
|
---|
| 5142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5143 | (exit $ac_status); }; } &&
|
---|
| 5144 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5146 | (eval $ac_try) 2>&5
|
---|
| 5147 | ac_status=$?
|
---|
| 5148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5149 | (exit $ac_status); }; }; then
|
---|
[562] | 5150 | ac_cv_header_stdc=yes
|
---|
| 5151 | else
|
---|
[8756] | 5152 | echo "$as_me: failed program was:" >&5
|
---|
| 5153 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5154 |
|
---|
[20853] | 5155 | ac_cv_header_stdc=no
|
---|
[562] | 5156 | fi
|
---|
[20853] | 5157 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5158 |
|
---|
| 5159 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5160 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[8756] | 5161 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5162 | /* confdefs.h. */
|
---|
| 5163 | _ACEOF
|
---|
| 5164 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5165 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5166 | /* end confdefs.h. */
|
---|
[562] | 5167 | #include <string.h>
|
---|
[8756] | 5168 |
|
---|
| 5169 | _ACEOF
|
---|
[562] | 5170 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5171 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
[562] | 5172 | :
|
---|
| 5173 | else
|
---|
| 5174 | ac_cv_header_stdc=no
|
---|
| 5175 | fi
|
---|
| 5176 | rm -f conftest*
|
---|
| 5177 |
|
---|
| 5178 | fi
|
---|
| 5179 |
|
---|
| 5180 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5181 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[8756] | 5182 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5183 | /* confdefs.h. */
|
---|
| 5184 | _ACEOF
|
---|
| 5185 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5186 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5187 | /* end confdefs.h. */
|
---|
[562] | 5188 | #include <stdlib.h>
|
---|
[8756] | 5189 |
|
---|
| 5190 | _ACEOF
|
---|
[562] | 5191 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5192 | $EGREP "free" >/dev/null 2>&1; then
|
---|
[562] | 5193 | :
|
---|
| 5194 | else
|
---|
| 5195 | ac_cv_header_stdc=no
|
---|
| 5196 | fi
|
---|
| 5197 | rm -f conftest*
|
---|
| 5198 |
|
---|
| 5199 | fi
|
---|
| 5200 |
|
---|
| 5201 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5202 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[8756] | 5203 | if test "$cross_compiling" = yes; then
|
---|
[562] | 5204 | :
|
---|
| 5205 | else
|
---|
[8756] | 5206 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5207 | /* confdefs.h. */
|
---|
| 5208 | _ACEOF
|
---|
| 5209 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5210 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5211 | /* end confdefs.h. */
|
---|
[562] | 5212 | #include <ctype.h>
|
---|
[8756] | 5213 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5214 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5215 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5216 | #else
|
---|
| 5217 | # define ISLOWER(c) \
|
---|
| 5218 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5219 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5220 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 5221 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5222 | #endif
|
---|
| 5223 |
|
---|
[8200] | 5224 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
[8756] | 5225 | int
|
---|
| 5226 | main ()
|
---|
| 5227 | {
|
---|
| 5228 | int i;
|
---|
| 5229 | for (i = 0; i < 256; i++)
|
---|
| 5230 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 5231 | || toupper (i) != TOUPPER (i))
|
---|
[20853] | 5232 | exit(2);
|
---|
| 5233 | exit (0);
|
---|
[8756] | 5234 | }
|
---|
| 5235 | _ACEOF
|
---|
| 5236 | rm -f conftest$ac_exeext
|
---|
[20853] | 5237 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5238 | (eval $ac_link) 2>&5
|
---|
[8756] | 5239 | ac_status=$?
|
---|
| 5240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5241 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[20853] | 5242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5243 | (eval $ac_try) 2>&5
|
---|
[8756] | 5244 | ac_status=$?
|
---|
| 5245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5246 | (exit $ac_status); }; }; then
|
---|
[562] | 5247 | :
|
---|
| 5248 | else
|
---|
[8756] | 5249 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5250 | echo "$as_me: failed program was:" >&5
|
---|
| 5251 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5252 |
|
---|
| 5253 | ( exit $ac_status )
|
---|
| 5254 | ac_cv_header_stdc=no
|
---|
[562] | 5255 | fi
|
---|
[20853] | 5256 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5257 | fi
|
---|
| 5258 | fi
|
---|
| 5259 | fi
|
---|
[20853] | 5260 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 5261 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
[8756] | 5262 | if test $ac_cv_header_stdc = yes; then
|
---|
[8200] | 5263 |
|
---|
[8756] | 5264 | cat >>confdefs.h <<\_ACEOF
|
---|
[562] | 5265 | #define STDC_HEADERS 1
|
---|
[8756] | 5266 | _ACEOF
|
---|
[562] | 5267 |
|
---|
| 5268 | fi
|
---|
| 5269 |
|
---|
[8756] | 5270 |
|
---|
| 5271 |
|
---|
| 5272 |
|
---|
| 5273 |
|
---|
| 5274 |
|
---|
| 5275 |
|
---|
| 5276 |
|
---|
| 5277 |
|
---|
[10181] | 5278 |
|
---|
| 5279 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
|
---|
[562] | 5280 | do
|
---|
[8756] | 5281 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
[20853] | 5282 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5283 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5284 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5285 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[8756] | 5286 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5287 | fi
|
---|
[20853] | 5288 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5289 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[562] | 5290 | else
|
---|
[8756] | 5291 | # Is the header compilable?
|
---|
[20853] | 5292 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5293 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
[8756] | 5294 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5295 | /* confdefs.h. */
|
---|
| 5296 | _ACEOF
|
---|
| 5297 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5298 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5299 | /* end confdefs.h. */
|
---|
| 5300 | $ac_includes_default
|
---|
| 5301 | #include <$ac_header>
|
---|
| 5302 | _ACEOF
|
---|
| 5303 | rm -f conftest.$ac_objext
|
---|
[20853] | 5304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5305 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 5306 | ac_status=$?
|
---|
| 5307 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5308 | rm -f conftest.er1
|
---|
| 5309 | cat conftest.err >&5
|
---|
| 5310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 5311 | (exit $ac_status); } &&
|
---|
| 5312 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5313 | || test ! -s conftest.err'
|
---|
| 5314 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5315 | (eval $ac_try) 2>&5
|
---|
| 5316 | ac_status=$?
|
---|
| 5317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5318 | (exit $ac_status); }; } &&
|
---|
| 5319 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5321 | (eval $ac_try) 2>&5
|
---|
| 5322 | ac_status=$?
|
---|
| 5323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5324 | (exit $ac_status); }; }; then
|
---|
[8756] | 5325 | ac_header_compiler=yes
|
---|
[562] | 5326 | else
|
---|
[8756] | 5327 | echo "$as_me: failed program was:" >&5
|
---|
| 5328 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5329 |
|
---|
[20853] | 5330 | ac_header_compiler=no
|
---|
[562] | 5331 | fi
|
---|
[20853] | 5332 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5333 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 5334 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
[8756] | 5335 |
|
---|
| 5336 | # Is the header present?
|
---|
[20853] | 5337 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 5338 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
[8756] | 5339 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5340 | /* confdefs.h. */
|
---|
| 5341 | _ACEOF
|
---|
| 5342 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5343 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5344 | /* end confdefs.h. */
|
---|
| 5345 | #include <$ac_header>
|
---|
| 5346 | _ACEOF
|
---|
[20853] | 5347 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 5348 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
[8756] | 5349 | ac_status=$?
|
---|
| 5350 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5351 | rm -f conftest.er1
|
---|
| 5352 | cat conftest.err >&5
|
---|
| 5353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 5354 | (exit $ac_status); } >/dev/null; then
|
---|
| 5355 | if test -s conftest.err; then
|
---|
| 5356 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 5357 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 5358 | else
|
---|
| 5359 | ac_cpp_err=
|
---|
| 5360 | fi
|
---|
| 5361 | else
|
---|
| 5362 | ac_cpp_err=yes
|
---|
| 5363 | fi
|
---|
| 5364 | if test -z "$ac_cpp_err"; then
|
---|
[8756] | 5365 | ac_header_preproc=yes
|
---|
[8200] | 5366 | else
|
---|
[8756] | 5367 | echo "$as_me: failed program was:" >&5
|
---|
| 5368 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5369 |
|
---|
| 5370 | ac_header_preproc=no
|
---|
[562] | 5371 | fi
|
---|
[8756] | 5372 | rm -f conftest.err conftest.$ac_ext
|
---|
[20853] | 5373 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 5374 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
[8756] | 5375 |
|
---|
| 5376 | # So? What about this header?
|
---|
| 5377 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 5378 | yes:no: )
|
---|
| 5379 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 5380 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 5381 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 5382 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 5383 | ac_header_preproc=yes
|
---|
| 5384 | ;;
|
---|
| 5385 | no:yes:* )
|
---|
| 5386 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 5387 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 5388 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 5389 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 5390 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 5391 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 5392 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 5393 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 5394 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 5395 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 5396 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 5397 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
[20853] | 5398 | (
|
---|
| 5399 | cat <<\_ASBOX
|
---|
| 5400 | ## ------------------------------------------ ##
|
---|
| 5401 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 5402 | ## ------------------------------------------ ##
|
---|
| 5403 | _ASBOX
|
---|
| 5404 | ) |
|
---|
| 5405 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
[8756] | 5406 | ;;
|
---|
| 5407 | esac
|
---|
[20853] | 5408 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5409 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5410 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[8756] | 5411 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5412 | else
|
---|
| 5413 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
| 5414 | fi
|
---|
[20853] | 5415 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5416 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[8756] | 5417 |
|
---|
| 5418 | fi
|
---|
| 5419 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 5420 | cat >>confdefs.h <<_ACEOF
|
---|
| 5421 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 5422 | _ACEOF
|
---|
| 5423 |
|
---|
| 5424 | fi
|
---|
| 5425 |
|
---|
[562] | 5426 | done
|
---|
| 5427 |
|
---|
[8756] | 5428 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5429 | /* confdefs.h. */
|
---|
| 5430 | _ACEOF
|
---|
| 5431 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5432 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5433 | /* end confdefs.h. */
|
---|
[687] | 5434 | #include <stdio.h>
|
---|
[8756] | 5435 |
|
---|
| 5436 | _ACEOF
|
---|
[687] | 5437 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5438 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 5439 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5440 | #define HAVE_FREAD_DECL 1
|
---|
[8756] | 5441 | _ACEOF
|
---|
[562] | 5442 |
|
---|
[687] | 5443 | fi
|
---|
| 5444 | rm -f conftest*
|
---|
| 5445 |
|
---|
[8756] | 5446 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5447 | /* confdefs.h. */
|
---|
| 5448 | _ACEOF
|
---|
| 5449 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5450 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5451 | /* end confdefs.h. */
|
---|
[687] | 5452 | #include <stdio.h>
|
---|
[8756] | 5453 |
|
---|
| 5454 | _ACEOF
|
---|
[687] | 5455 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5456 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 5457 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5458 | #define HAVE_FGETC_DECL 1
|
---|
[8756] | 5459 | _ACEOF
|
---|
[687] | 5460 |
|
---|
| 5461 | fi
|
---|
| 5462 | rm -f conftest*
|
---|
| 5463 |
|
---|
[8756] | 5464 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5465 | /* confdefs.h. */
|
---|
| 5466 | _ACEOF
|
---|
| 5467 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5468 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5469 | /* end confdefs.h. */
|
---|
[687] | 5470 | #include <sys/procfs.h>
|
---|
[8756] | 5471 |
|
---|
| 5472 | _ACEOF
|
---|
[687] | 5473 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5474 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 5475 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5476 | #define HAVE_PR_BRKSIZE 1
|
---|
[8756] | 5477 | _ACEOF
|
---|
[687] | 5478 |
|
---|
| 5479 | fi
|
---|
| 5480 | rm -f conftest*
|
---|
| 5481 |
|
---|
[8200] | 5482 |
|
---|
[687] | 5483 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5484 | # for constant arguments. Useless!
|
---|
[20853] | 5485 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
| 5486 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
[8756] | 5487 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 5488 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5489 | else
|
---|
[8756] | 5490 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5491 | /* confdefs.h. */
|
---|
| 5492 | _ACEOF
|
---|
| 5493 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5494 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5495 | /* end confdefs.h. */
|
---|
[687] | 5496 | #include <alloca.h>
|
---|
[8756] | 5497 | int
|
---|
| 5498 | main ()
|
---|
| 5499 | {
|
---|
| 5500 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 5501 | ;
|
---|
| 5502 | return 0;
|
---|
| 5503 | }
|
---|
| 5504 | _ACEOF
|
---|
| 5505 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[20853] | 5506 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5507 | (eval $ac_link) 2>conftest.er1
|
---|
[8756] | 5508 | ac_status=$?
|
---|
| 5509 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5510 | rm -f conftest.er1
|
---|
| 5511 | cat conftest.err >&5
|
---|
| 5512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 5513 | (exit $ac_status); } &&
|
---|
| 5514 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5515 | || test ! -s conftest.err'
|
---|
| 5516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5517 | (eval $ac_try) 2>&5
|
---|
| 5518 | ac_status=$?
|
---|
| 5519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5520 | (exit $ac_status); }; } &&
|
---|
| 5521 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5523 | (eval $ac_try) 2>&5
|
---|
| 5524 | ac_status=$?
|
---|
| 5525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5526 | (exit $ac_status); }; }; then
|
---|
[8756] | 5527 | ac_cv_working_alloca_h=yes
|
---|
[562] | 5528 | else
|
---|
[8756] | 5529 | echo "$as_me: failed program was:" >&5
|
---|
| 5530 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5531 |
|
---|
[20853] | 5532 | ac_cv_working_alloca_h=no
|
---|
[562] | 5533 | fi
|
---|
[20853] | 5534 | rm -f conftest.err conftest.$ac_objext \
|
---|
[8756] | 5535 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5536 | fi
|
---|
[20853] | 5537 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
| 5538 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
[8756] | 5539 | if test $ac_cv_working_alloca_h = yes; then
|
---|
[562] | 5540 |
|
---|
[8756] | 5541 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5542 | #define HAVE_ALLOCA_H 1
|
---|
[8756] | 5543 | _ACEOF
|
---|
[562] | 5544 |
|
---|
| 5545 | fi
|
---|
| 5546 |
|
---|
[20853] | 5547 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
| 5548 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
[8756] | 5549 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 5550 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5551 | else
|
---|
[8756] | 5552 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5553 | /* confdefs.h. */
|
---|
| 5554 | _ACEOF
|
---|
| 5555 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5556 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5557 | /* end confdefs.h. */
|
---|
[687] | 5558 | #ifdef __GNUC__
|
---|
| 5559 | # define alloca __builtin_alloca
|
---|
| 5560 | #else
|
---|
| 5561 | # ifdef _MSC_VER
|
---|
| 5562 | # include <malloc.h>
|
---|
| 5563 | # define alloca _alloca
|
---|
| 5564 | # else
|
---|
[20853] | 5565 | # if HAVE_ALLOCA_H
|
---|
[687] | 5566 | # include <alloca.h>
|
---|
| 5567 | # else
|
---|
| 5568 | # ifdef _AIX
|
---|
| 5569 | #pragma alloca
|
---|
| 5570 | # else
|
---|
| 5571 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5572 | char *alloca ();
|
---|
| 5573 | # endif
|
---|
| 5574 | # endif
|
---|
| 5575 | # endif
|
---|
| 5576 | # endif
|
---|
| 5577 | #endif
|
---|
| 5578 |
|
---|
[8756] | 5579 | int
|
---|
| 5580 | main ()
|
---|
| 5581 | {
|
---|
| 5582 | char *p = (char *) alloca (1);
|
---|
| 5583 | ;
|
---|
| 5584 | return 0;
|
---|
| 5585 | }
|
---|
| 5586 | _ACEOF
|
---|
| 5587 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[20853] | 5588 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5589 | (eval $ac_link) 2>conftest.er1
|
---|
[8756] | 5590 | ac_status=$?
|
---|
| 5591 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5592 | rm -f conftest.er1
|
---|
| 5593 | cat conftest.err >&5
|
---|
| 5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 5595 | (exit $ac_status); } &&
|
---|
| 5596 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5597 | || test ! -s conftest.err'
|
---|
| 5598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5599 | (eval $ac_try) 2>&5
|
---|
| 5600 | ac_status=$?
|
---|
| 5601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5602 | (exit $ac_status); }; } &&
|
---|
| 5603 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5605 | (eval $ac_try) 2>&5
|
---|
| 5606 | ac_status=$?
|
---|
| 5607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5608 | (exit $ac_status); }; }; then
|
---|
[687] | 5609 | ac_cv_func_alloca_works=yes
|
---|
[562] | 5610 | else
|
---|
[8756] | 5611 | echo "$as_me: failed program was:" >&5
|
---|
| 5612 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5613 |
|
---|
[20853] | 5614 | ac_cv_func_alloca_works=no
|
---|
[562] | 5615 | fi
|
---|
[20853] | 5616 | rm -f conftest.err conftest.$ac_objext \
|
---|
[8756] | 5617 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5618 | fi
|
---|
[20853] | 5619 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
| 5620 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
[562] | 5621 |
|
---|
[687] | 5622 | if test $ac_cv_func_alloca_works = yes; then
|
---|
[8756] | 5623 |
|
---|
| 5624 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5625 | #define HAVE_ALLOCA 1
|
---|
[8756] | 5626 | _ACEOF
|
---|
[562] | 5627 |
|
---|
[8756] | 5628 | else
|
---|
| 5629 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5630 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5631 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5632 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
[8200] | 5633 |
|
---|
[20853] | 5634 | ALLOCA=alloca.$ac_objext
|
---|
[8756] | 5635 |
|
---|
| 5636 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5637 | #define C_ALLOCA 1
|
---|
[8756] | 5638 | _ACEOF
|
---|
[562] | 5639 |
|
---|
[8200] | 5640 |
|
---|
[20853] | 5641 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
| 5642 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
[8756] | 5643 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 5644 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5645 | else
|
---|
[8756] | 5646 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5647 | /* confdefs.h. */
|
---|
| 5648 | _ACEOF
|
---|
| 5649 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5650 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5651 | /* end confdefs.h. */
|
---|
[20853] | 5652 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
[687] | 5653 | webecray
|
---|
| 5654 | #else
|
---|
| 5655 | wenotbecray
|
---|
| 5656 | #endif
|
---|
[562] | 5657 |
|
---|
[8756] | 5658 | _ACEOF
|
---|
[687] | 5659 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5660 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
[687] | 5661 | ac_cv_os_cray=yes
|
---|
| 5662 | else
|
---|
| 5663 | ac_cv_os_cray=no
|
---|
| 5664 | fi
|
---|
| 5665 | rm -f conftest*
|
---|
[562] | 5666 |
|
---|
[687] | 5667 | fi
|
---|
[20853] | 5668 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
| 5669 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
[687] | 5670 | if test $ac_cv_os_cray = yes; then
|
---|
[8756] | 5671 | for ac_func in _getb67 GETB67 getb67; do
|
---|
| 5672 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[20853] | 5673 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5674 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5675 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8756] | 5676 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5677 | else
|
---|
[8756] | 5678 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5679 | /* confdefs.h. */
|
---|
| 5680 | _ACEOF
|
---|
| 5681 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5682 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5683 | /* end confdefs.h. */
|
---|
| 5684 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5685 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5686 | #define $ac_func innocuous_$ac_func
|
---|
| 5687 |
|
---|
[687] | 5688 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 5689 | which can conflict with char $ac_func (); below.
|
---|
| 5690 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5691 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5692 |
|
---|
| 5693 | #ifdef __STDC__
|
---|
| 5694 | # include <limits.h>
|
---|
| 5695 | #else
|
---|
| 5696 | # include <assert.h>
|
---|
| 5697 | #endif
|
---|
| 5698 |
|
---|
| 5699 | #undef $ac_func
|
---|
| 5700 |
|
---|
[20853] | 5701 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 5702 | #ifdef __cplusplus
|
---|
| 5703 | extern "C"
|
---|
[20853] | 5704 | {
|
---|
[8756] | 5705 | #endif
|
---|
[20853] | 5706 | /* We use char because int might match the return type of a gcc2
|
---|
| 5707 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 5708 | char $ac_func ();
|
---|
[687] | 5709 | /* The GNU C library defines this for functions which it implements
|
---|
| 5710 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5711 | something starting with __ and the normal name is an alias. */
|
---|
[20853] | 5712 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[687] | 5713 | choke me
|
---|
[20853] | 5714 | #else
|
---|
| 5715 | char (*f) () = $ac_func;
|
---|
[687] | 5716 | #endif
|
---|
[20853] | 5717 | #ifdef __cplusplus
|
---|
| 5718 | }
|
---|
| 5719 | #endif
|
---|
[687] | 5720 |
|
---|
[8756] | 5721 | int
|
---|
| 5722 | main ()
|
---|
| 5723 | {
|
---|
[20853] | 5724 | return f != $ac_func;
|
---|
[8756] | 5725 | ;
|
---|
| 5726 | return 0;
|
---|
| 5727 | }
|
---|
| 5728 | _ACEOF
|
---|
| 5729 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[20853] | 5730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5731 | (eval $ac_link) 2>conftest.er1
|
---|
[8756] | 5732 | ac_status=$?
|
---|
| 5733 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5734 | rm -f conftest.er1
|
---|
| 5735 | cat conftest.err >&5
|
---|
| 5736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 5737 | (exit $ac_status); } &&
|
---|
| 5738 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5739 | || test ! -s conftest.err'
|
---|
| 5740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5741 | (eval $ac_try) 2>&5
|
---|
| 5742 | ac_status=$?
|
---|
| 5743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5744 | (exit $ac_status); }; } &&
|
---|
| 5745 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5747 | (eval $ac_try) 2>&5
|
---|
| 5748 | ac_status=$?
|
---|
| 5749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5750 | (exit $ac_status); }; }; then
|
---|
[8756] | 5751 | eval "$as_ac_var=yes"
|
---|
[562] | 5752 | else
|
---|
[8756] | 5753 | echo "$as_me: failed program was:" >&5
|
---|
| 5754 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5755 |
|
---|
[20853] | 5756 | eval "$as_ac_var=no"
|
---|
[562] | 5757 | fi
|
---|
[20853] | 5758 | rm -f conftest.err conftest.$ac_objext \
|
---|
[8756] | 5759 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 5760 | fi
|
---|
[20853] | 5761 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5762 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
[8756] | 5763 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[562] | 5764 |
|
---|
[8756] | 5765 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5766 | #define CRAY_STACKSEG_END $ac_func
|
---|
[8756] | 5767 | _ACEOF
|
---|
[562] | 5768 |
|
---|
[8756] | 5769 | break
|
---|
[687] | 5770 | fi
|
---|
[562] | 5771 |
|
---|
[8756] | 5772 | done
|
---|
[687] | 5773 | fi
|
---|
| 5774 |
|
---|
[20853] | 5775 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
| 5776 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
[8756] | 5777 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 5778 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5779 | else
|
---|
| 5780 | if test "$cross_compiling" = yes; then
|
---|
| 5781 | ac_cv_c_stack_direction=0
|
---|
| 5782 | else
|
---|
[8756] | 5783 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5784 | /* confdefs.h. */
|
---|
| 5785 | _ACEOF
|
---|
| 5786 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5787 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5788 | /* end confdefs.h. */
|
---|
| 5789 | int
|
---|
[687] | 5790 | find_stack_direction ()
|
---|
| 5791 | {
|
---|
| 5792 | static char *addr = 0;
|
---|
| 5793 | auto char dummy;
|
---|
| 5794 | if (addr == 0)
|
---|
| 5795 | {
|
---|
| 5796 | addr = &dummy;
|
---|
| 5797 | return find_stack_direction ();
|
---|
| 5798 | }
|
---|
| 5799 | else
|
---|
| 5800 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5801 | }
|
---|
[8756] | 5802 |
|
---|
| 5803 | int
|
---|
[687] | 5804 | main ()
|
---|
| 5805 | {
|
---|
[20853] | 5806 | exit (find_stack_direction () < 0);
|
---|
[687] | 5807 | }
|
---|
[8756] | 5808 | _ACEOF
|
---|
| 5809 | rm -f conftest$ac_exeext
|
---|
[20853] | 5810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5811 | (eval $ac_link) 2>&5
|
---|
[8756] | 5812 | ac_status=$?
|
---|
| 5813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5814 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[20853] | 5815 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5816 | (eval $ac_try) 2>&5
|
---|
[8756] | 5817 | ac_status=$?
|
---|
| 5818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5819 | (exit $ac_status); }; }; then
|
---|
[687] | 5820 | ac_cv_c_stack_direction=1
|
---|
[562] | 5821 | else
|
---|
[8756] | 5822 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5823 | echo "$as_me: failed program was:" >&5
|
---|
| 5824 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5825 |
|
---|
| 5826 | ( exit $ac_status )
|
---|
| 5827 | ac_cv_c_stack_direction=-1
|
---|
[562] | 5828 | fi
|
---|
[20853] | 5829 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5830 | fi
|
---|
| 5831 | fi
|
---|
[20853] | 5832 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
| 5833 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
[687] | 5834 |
|
---|
[8756] | 5835 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5836 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[8756] | 5837 | _ACEOF
|
---|
[687] | 5838 |
|
---|
[8756] | 5839 |
|
---|
[687] | 5840 | fi
|
---|
| 5841 |
|
---|
[8756] | 5842 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[20853] | 5843 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
| 5844 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
[8756] | 5845 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 5846 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5847 | else
|
---|
| 5848 | ac_pattern="Autoconf.*'x'"
|
---|
[8756] | 5849 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5850 | /* confdefs.h. */
|
---|
| 5851 | _ACEOF
|
---|
| 5852 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5853 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5854 | /* end confdefs.h. */
|
---|
[687] | 5855 | #include <sgtty.h>
|
---|
| 5856 | Autoconf TIOCGETP
|
---|
[8756] | 5857 | _ACEOF
|
---|
[687] | 5858 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5859 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[687] | 5860 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5861 | else
|
---|
| 5862 | ac_cv_prog_gcc_traditional=no
|
---|
| 5863 | fi
|
---|
[562] | 5864 | rm -f conftest*
|
---|
[687] | 5865 |
|
---|
[8200] | 5866 |
|
---|
[687] | 5867 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[8756] | 5868 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5869 | /* confdefs.h. */
|
---|
| 5870 | _ACEOF
|
---|
| 5871 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5872 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5873 | /* end confdefs.h. */
|
---|
[687] | 5874 | #include <termio.h>
|
---|
| 5875 | Autoconf TCGETA
|
---|
[8756] | 5876 | _ACEOF
|
---|
[687] | 5877 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5878 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[687] | 5879 | ac_cv_prog_gcc_traditional=yes
|
---|
[562] | 5880 | fi
|
---|
[687] | 5881 | rm -f conftest*
|
---|
[562] | 5882 |
|
---|
[687] | 5883 | fi
|
---|
| 5884 | fi
|
---|
[20853] | 5885 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
| 5886 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
[687] | 5887 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5888 | CC="$CC -traditional"
|
---|
| 5889 | fi
|
---|
| 5890 | fi
|
---|
| 5891 |
|
---|
[20853] | 5892 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
| 5893 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
[8756] | 5894 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 5895 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5896 | else
|
---|
[8756] | 5897 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5898 | /* confdefs.h. */
|
---|
| 5899 | _ACEOF
|
---|
| 5900 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5901 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5902 | /* end confdefs.h. */
|
---|
[687] | 5903 | #include <sys/types.h>
|
---|
| 5904 | #include <signal.h>
|
---|
[20853] | 5905 | #ifdef signal
|
---|
| 5906 | # undef signal
|
---|
| 5907 | #endif
|
---|
| 5908 | #ifdef __cplusplus
|
---|
| 5909 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 5910 | #else
|
---|
| 5911 | void (*signal ()) ();
|
---|
| 5912 | #endif
|
---|
[562] | 5913 |
|
---|
[8756] | 5914 | int
|
---|
| 5915 | main ()
|
---|
| 5916 | {
|
---|
[20853] | 5917 | int i;
|
---|
[8756] | 5918 | ;
|
---|
| 5919 | return 0;
|
---|
| 5920 | }
|
---|
| 5921 | _ACEOF
|
---|
| 5922 | rm -f conftest.$ac_objext
|
---|
[20853] | 5923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5924 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 5925 | ac_status=$?
|
---|
| 5926 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5927 | rm -f conftest.er1
|
---|
| 5928 | cat conftest.err >&5
|
---|
| 5929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 5930 | (exit $ac_status); } &&
|
---|
| 5931 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5932 | || test ! -s conftest.err'
|
---|
| 5933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5934 | (eval $ac_try) 2>&5
|
---|
| 5935 | ac_status=$?
|
---|
| 5936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5937 | (exit $ac_status); }; } &&
|
---|
| 5938 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5940 | (eval $ac_try) 2>&5
|
---|
| 5941 | ac_status=$?
|
---|
| 5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5943 | (exit $ac_status); }; }; then
|
---|
| 5944 | ac_cv_type_signal=void
|
---|
[562] | 5945 | else
|
---|
[8756] | 5946 | echo "$as_me: failed program was:" >&5
|
---|
| 5947 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5948 |
|
---|
[20853] | 5949 | ac_cv_type_signal=int
|
---|
[562] | 5950 | fi
|
---|
[20853] | 5951 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5952 | fi
|
---|
[20853] | 5953 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
| 5954 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
[562] | 5955 |
|
---|
[8756] | 5956 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5957 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[8756] | 5958 | _ACEOF
|
---|
[562] | 5959 |
|
---|
[8200] | 5960 |
|
---|
[8756] | 5961 |
|
---|
| 5962 | for ac_func in vprintf
|
---|
| 5963 | do
|
---|
| 5964 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[20853] | 5965 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5966 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5967 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8756] | 5968 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5969 | else
|
---|
[8756] | 5970 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5971 | /* confdefs.h. */
|
---|
| 5972 | _ACEOF
|
---|
| 5973 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5974 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5975 | /* end confdefs.h. */
|
---|
| 5976 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5977 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5978 | #define $ac_func innocuous_$ac_func
|
---|
| 5979 |
|
---|
[562] | 5980 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 5981 | which can conflict with char $ac_func (); below.
|
---|
| 5982 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5983 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5984 |
|
---|
| 5985 | #ifdef __STDC__
|
---|
| 5986 | # include <limits.h>
|
---|
| 5987 | #else
|
---|
| 5988 | # include <assert.h>
|
---|
| 5989 | #endif
|
---|
| 5990 |
|
---|
| 5991 | #undef $ac_func
|
---|
| 5992 |
|
---|
[20853] | 5993 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 5994 | #ifdef __cplusplus
|
---|
| 5995 | extern "C"
|
---|
[20853] | 5996 | {
|
---|
[8756] | 5997 | #endif
|
---|
[20853] | 5998 | /* We use char because int might match the return type of a gcc2
|
---|
| 5999 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 6000 | char $ac_func ();
|
---|
[562] | 6001 | /* The GNU C library defines this for functions which it implements
|
---|
| 6002 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6003 | something starting with __ and the normal name is an alias. */
|
---|
[20853] | 6004 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[562] | 6005 | choke me
|
---|
[20853] | 6006 | #else
|
---|
| 6007 | char (*f) () = $ac_func;
|
---|
[562] | 6008 | #endif
|
---|
[20853] | 6009 | #ifdef __cplusplus
|
---|
| 6010 | }
|
---|
| 6011 | #endif
|
---|
[562] | 6012 |
|
---|
[8756] | 6013 | int
|
---|
| 6014 | main ()
|
---|
| 6015 | {
|
---|
[20853] | 6016 | return f != $ac_func;
|
---|
[8756] | 6017 | ;
|
---|
| 6018 | return 0;
|
---|
| 6019 | }
|
---|
| 6020 | _ACEOF
|
---|
| 6021 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[20853] | 6022 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6023 | (eval $ac_link) 2>conftest.er1
|
---|
[8756] | 6024 | ac_status=$?
|
---|
| 6025 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6026 | rm -f conftest.er1
|
---|
| 6027 | cat conftest.err >&5
|
---|
| 6028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 6029 | (exit $ac_status); } &&
|
---|
| 6030 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6031 | || test ! -s conftest.err'
|
---|
| 6032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6033 | (eval $ac_try) 2>&5
|
---|
| 6034 | ac_status=$?
|
---|
| 6035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6036 | (exit $ac_status); }; } &&
|
---|
| 6037 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6039 | (eval $ac_try) 2>&5
|
---|
| 6040 | ac_status=$?
|
---|
| 6041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6042 | (exit $ac_status); }; }; then
|
---|
[8756] | 6043 | eval "$as_ac_var=yes"
|
---|
[562] | 6044 | else
|
---|
[8756] | 6045 | echo "$as_me: failed program was:" >&5
|
---|
| 6046 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6047 |
|
---|
[20853] | 6048 | eval "$as_ac_var=no"
|
---|
[562] | 6049 | fi
|
---|
[20853] | 6050 | rm -f conftest.err conftest.$ac_objext \
|
---|
[8756] | 6051 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 6052 | fi
|
---|
[20853] | 6053 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6054 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
[8756] | 6055 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6056 | cat >>confdefs.h <<_ACEOF
|
---|
| 6057 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6058 | _ACEOF
|
---|
[8200] | 6059 |
|
---|
[20853] | 6060 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
| 6061 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
[8756] | 6062 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 6063 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 6064 | else
|
---|
[8756] | 6065 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6066 | /* confdefs.h. */
|
---|
| 6067 | _ACEOF
|
---|
| 6068 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6069 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6070 | /* end confdefs.h. */
|
---|
| 6071 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 6072 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6073 | #define _doprnt innocuous__doprnt
|
---|
[8200] | 6074 |
|
---|
[562] | 6075 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6076 | which can conflict with char _doprnt (); below.
|
---|
| 6077 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6078 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6079 |
|
---|
| 6080 | #ifdef __STDC__
|
---|
| 6081 | # include <limits.h>
|
---|
| 6082 | #else
|
---|
| 6083 | # include <assert.h>
|
---|
| 6084 | #endif
|
---|
| 6085 |
|
---|
| 6086 | #undef _doprnt
|
---|
| 6087 |
|
---|
[20853] | 6088 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6089 | #ifdef __cplusplus
|
---|
| 6090 | extern "C"
|
---|
[20853] | 6091 | {
|
---|
[8756] | 6092 | #endif
|
---|
[20853] | 6093 | /* We use char because int might match the return type of a gcc2
|
---|
| 6094 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 6095 | char _doprnt ();
|
---|
[562] | 6096 | /* The GNU C library defines this for functions which it implements
|
---|
| 6097 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6098 | something starting with __ and the normal name is an alias. */
|
---|
[20853] | 6099 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
[562] | 6100 | choke me
|
---|
[20853] | 6101 | #else
|
---|
| 6102 | char (*f) () = _doprnt;
|
---|
[562] | 6103 | #endif
|
---|
[20853] | 6104 | #ifdef __cplusplus
|
---|
| 6105 | }
|
---|
| 6106 | #endif
|
---|
[562] | 6107 |
|
---|
[8756] | 6108 | int
|
---|
| 6109 | main ()
|
---|
| 6110 | {
|
---|
[20853] | 6111 | return f != _doprnt;
|
---|
[8756] | 6112 | ;
|
---|
| 6113 | return 0;
|
---|
| 6114 | }
|
---|
| 6115 | _ACEOF
|
---|
| 6116 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[20853] | 6117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6118 | (eval $ac_link) 2>conftest.er1
|
---|
[8756] | 6119 | ac_status=$?
|
---|
| 6120 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6121 | rm -f conftest.er1
|
---|
| 6122 | cat conftest.err >&5
|
---|
| 6123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 6124 | (exit $ac_status); } &&
|
---|
| 6125 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6126 | || test ! -s conftest.err'
|
---|
| 6127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6128 | (eval $ac_try) 2>&5
|
---|
| 6129 | ac_status=$?
|
---|
| 6130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6131 | (exit $ac_status); }; } &&
|
---|
| 6132 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6134 | (eval $ac_try) 2>&5
|
---|
| 6135 | ac_status=$?
|
---|
| 6136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6137 | (exit $ac_status); }; }; then
|
---|
[8756] | 6138 | ac_cv_func__doprnt=yes
|
---|
[562] | 6139 | else
|
---|
[8756] | 6140 | echo "$as_me: failed program was:" >&5
|
---|
| 6141 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6142 |
|
---|
[20853] | 6143 | ac_cv_func__doprnt=no
|
---|
[562] | 6144 | fi
|
---|
[20853] | 6145 | rm -f conftest.err conftest.$ac_objext \
|
---|
[8756] | 6146 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 6147 | fi
|
---|
[20853] | 6148 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
| 6149 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
[8756] | 6150 | if test $ac_cv_func__doprnt = yes; then
|
---|
[562] | 6151 |
|
---|
[8756] | 6152 | cat >>confdefs.h <<\_ACEOF
|
---|
[562] | 6153 | #define HAVE_DOPRNT 1
|
---|
[8756] | 6154 | _ACEOF
|
---|
[562] | 6155 |
|
---|
| 6156 | fi
|
---|
| 6157 |
|
---|
| 6158 | fi
|
---|
[8756] | 6159 | done
|
---|
[562] | 6160 |
|
---|
[8756] | 6161 |
|
---|
| 6162 |
|
---|
| 6163 |
|
---|
| 6164 |
|
---|
| 6165 |
|
---|
| 6166 |
|
---|
| 6167 |
|
---|
| 6168 |
|
---|
| 6169 |
|
---|
| 6170 |
|
---|
| 6171 |
|
---|
[788] | 6172 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
[687] | 6173 | do
|
---|
[8756] | 6174 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[20853] | 6175 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6176 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6177 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8756] | 6178 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6179 | else
|
---|
[8756] | 6180 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6181 | /* confdefs.h. */
|
---|
| 6182 | _ACEOF
|
---|
| 6183 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6184 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6185 | /* end confdefs.h. */
|
---|
| 6186 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6187 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6188 | #define $ac_func innocuous_$ac_func
|
---|
| 6189 |
|
---|
[687] | 6190 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6191 | which can conflict with char $ac_func (); below.
|
---|
| 6192 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6193 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6194 |
|
---|
| 6195 | #ifdef __STDC__
|
---|
| 6196 | # include <limits.h>
|
---|
| 6197 | #else
|
---|
| 6198 | # include <assert.h>
|
---|
| 6199 | #endif
|
---|
| 6200 |
|
---|
| 6201 | #undef $ac_func
|
---|
| 6202 |
|
---|
[20853] | 6203 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6204 | #ifdef __cplusplus
|
---|
| 6205 | extern "C"
|
---|
[20853] | 6206 | {
|
---|
[8756] | 6207 | #endif
|
---|
[20853] | 6208 | /* We use char because int might match the return type of a gcc2
|
---|
| 6209 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 6210 | char $ac_func ();
|
---|
[687] | 6211 | /* The GNU C library defines this for functions which it implements
|
---|
| 6212 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6213 | something starting with __ and the normal name is an alias. */
|
---|
[20853] | 6214 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[687] | 6215 | choke me
|
---|
[20853] | 6216 | #else
|
---|
| 6217 | char (*f) () = $ac_func;
|
---|
[687] | 6218 | #endif
|
---|
[20853] | 6219 | #ifdef __cplusplus
|
---|
| 6220 | }
|
---|
| 6221 | #endif
|
---|
[687] | 6222 |
|
---|
[8756] | 6223 | int
|
---|
| 6224 | main ()
|
---|
| 6225 | {
|
---|
[20853] | 6226 | return f != $ac_func;
|
---|
[8756] | 6227 | ;
|
---|
| 6228 | return 0;
|
---|
| 6229 | }
|
---|
| 6230 | _ACEOF
|
---|
| 6231 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[20853] | 6232 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6233 | (eval $ac_link) 2>conftest.er1
|
---|
[8756] | 6234 | ac_status=$?
|
---|
| 6235 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6236 | rm -f conftest.er1
|
---|
| 6237 | cat conftest.err >&5
|
---|
| 6238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 6239 | (exit $ac_status); } &&
|
---|
| 6240 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6241 | || test ! -s conftest.err'
|
---|
| 6242 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6243 | (eval $ac_try) 2>&5
|
---|
| 6244 | ac_status=$?
|
---|
| 6245 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6246 | (exit $ac_status); }; } &&
|
---|
| 6247 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6249 | (eval $ac_try) 2>&5
|
---|
| 6250 | ac_status=$?
|
---|
| 6251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6252 | (exit $ac_status); }; }; then
|
---|
[8756] | 6253 | eval "$as_ac_var=yes"
|
---|
[687] | 6254 | else
|
---|
[8756] | 6255 | echo "$as_me: failed program was:" >&5
|
---|
| 6256 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6257 |
|
---|
[20853] | 6258 | eval "$as_ac_var=no"
|
---|
[687] | 6259 | fi
|
---|
[20853] | 6260 | rm -f conftest.err conftest.$ac_objext \
|
---|
[8756] | 6261 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 6262 | fi
|
---|
[20853] | 6263 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6264 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
[8756] | 6265 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6266 | cat >>confdefs.h <<_ACEOF
|
---|
| 6267 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6268 | _ACEOF
|
---|
[8200] | 6269 |
|
---|
[687] | 6270 | fi
|
---|
| 6271 | done
|
---|
| 6272 |
|
---|
[8756] | 6273 |
|
---|
| 6274 |
|
---|
| 6275 |
|
---|
[687] | 6276 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6277 | do
|
---|
[8756] | 6278 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[20853] | 6279 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6280 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6281 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8756] | 6282 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6283 | else
|
---|
[8756] | 6284 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6285 | /* confdefs.h. */
|
---|
| 6286 | _ACEOF
|
---|
| 6287 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6288 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6289 | /* end confdefs.h. */
|
---|
| 6290 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6291 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6292 | #define $ac_func innocuous_$ac_func
|
---|
| 6293 |
|
---|
[687] | 6294 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6295 | which can conflict with char $ac_func (); below.
|
---|
| 6296 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6297 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6298 |
|
---|
| 6299 | #ifdef __STDC__
|
---|
| 6300 | # include <limits.h>
|
---|
| 6301 | #else
|
---|
| 6302 | # include <assert.h>
|
---|
| 6303 | #endif
|
---|
| 6304 |
|
---|
| 6305 | #undef $ac_func
|
---|
| 6306 |
|
---|
[20853] | 6307 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6308 | #ifdef __cplusplus
|
---|
| 6309 | extern "C"
|
---|
[20853] | 6310 | {
|
---|
[8756] | 6311 | #endif
|
---|
[20853] | 6312 | /* We use char because int might match the return type of a gcc2
|
---|
| 6313 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 6314 | char $ac_func ();
|
---|
[687] | 6315 | /* The GNU C library defines this for functions which it implements
|
---|
| 6316 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6317 | something starting with __ and the normal name is an alias. */
|
---|
[20853] | 6318 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[687] | 6319 | choke me
|
---|
[20853] | 6320 | #else
|
---|
| 6321 | char (*f) () = $ac_func;
|
---|
[687] | 6322 | #endif
|
---|
[20853] | 6323 | #ifdef __cplusplus
|
---|
| 6324 | }
|
---|
| 6325 | #endif
|
---|
[687] | 6326 |
|
---|
[8756] | 6327 | int
|
---|
| 6328 | main ()
|
---|
| 6329 | {
|
---|
[20853] | 6330 | return f != $ac_func;
|
---|
[8756] | 6331 | ;
|
---|
| 6332 | return 0;
|
---|
| 6333 | }
|
---|
| 6334 | _ACEOF
|
---|
| 6335 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[20853] | 6336 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6337 | (eval $ac_link) 2>conftest.er1
|
---|
[8756] | 6338 | ac_status=$?
|
---|
| 6339 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6340 | rm -f conftest.er1
|
---|
| 6341 | cat conftest.err >&5
|
---|
| 6342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 6343 | (exit $ac_status); } &&
|
---|
| 6344 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6345 | || test ! -s conftest.err'
|
---|
| 6346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6347 | (eval $ac_try) 2>&5
|
---|
| 6348 | ac_status=$?
|
---|
| 6349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6350 | (exit $ac_status); }; } &&
|
---|
| 6351 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6353 | (eval $ac_try) 2>&5
|
---|
| 6354 | ac_status=$?
|
---|
| 6355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6356 | (exit $ac_status); }; }; then
|
---|
[8756] | 6357 | eval "$as_ac_var=yes"
|
---|
[687] | 6358 | else
|
---|
[8756] | 6359 | echo "$as_me: failed program was:" >&5
|
---|
| 6360 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6361 |
|
---|
[20853] | 6362 | eval "$as_ac_var=no"
|
---|
[687] | 6363 | fi
|
---|
[20853] | 6364 | rm -f conftest.err conftest.$ac_objext \
|
---|
[8756] | 6365 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 6366 | fi
|
---|
[20853] | 6367 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6368 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
[8756] | 6369 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6370 | cat >>confdefs.h <<_ACEOF
|
---|
| 6371 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6372 | _ACEOF
|
---|
[8200] | 6373 |
|
---|
[687] | 6374 | else
|
---|
[20853] | 6375 | case $LIBOBJS in
|
---|
| 6376 | "$ac_func.$ac_objext" | \
|
---|
| 6377 | *" $ac_func.$ac_objext" | \
|
---|
| 6378 | "$ac_func.$ac_objext "* | \
|
---|
[8756] | 6379 | *" $ac_func.$ac_objext "* ) ;;
|
---|
[20853] | 6380 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
[8756] | 6381 | esac
|
---|
| 6382 |
|
---|
[687] | 6383 | fi
|
---|
| 6384 | done
|
---|
| 6385 |
|
---|
[8200] | 6386 |
|
---|
| 6387 |
|
---|
[20853] | 6388 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
| 6389 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
[8756] | 6390 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
| 6391 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3705] | 6392 | else
|
---|
[8756] | 6393 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6394 | /* confdefs.h. */
|
---|
| 6395 | _ACEOF
|
---|
| 6396 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6397 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6398 | /* end confdefs.h. */
|
---|
| 6399 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 6400 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6401 | #define textdomain innocuous_textdomain
|
---|
| 6402 |
|
---|
[3705] | 6403 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6404 | which can conflict with char textdomain (); below.
|
---|
| 6405 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6406 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6407 |
|
---|
| 6408 | #ifdef __STDC__
|
---|
| 6409 | # include <limits.h>
|
---|
| 6410 | #else
|
---|
| 6411 | # include <assert.h>
|
---|
| 6412 | #endif
|
---|
| 6413 |
|
---|
| 6414 | #undef textdomain
|
---|
| 6415 |
|
---|
[20853] | 6416 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6417 | #ifdef __cplusplus
|
---|
| 6418 | extern "C"
|
---|
[20853] | 6419 | {
|
---|
[8756] | 6420 | #endif
|
---|
[20853] | 6421 | /* We use char because int might match the return type of a gcc2
|
---|
| 6422 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 6423 | char textdomain ();
|
---|
[3705] | 6424 | /* The GNU C library defines this for functions which it implements
|
---|
| 6425 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6426 | something starting with __ and the normal name is an alias. */
|
---|
[20853] | 6427 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
[3705] | 6428 | choke me
|
---|
[20853] | 6429 | #else
|
---|
| 6430 | char (*f) () = textdomain;
|
---|
[3705] | 6431 | #endif
|
---|
[20853] | 6432 | #ifdef __cplusplus
|
---|
| 6433 | }
|
---|
| 6434 | #endif
|
---|
[3705] | 6435 |
|
---|
[8756] | 6436 | int
|
---|
| 6437 | main ()
|
---|
| 6438 | {
|
---|
[20853] | 6439 | return f != textdomain;
|
---|
[8756] | 6440 | ;
|
---|
| 6441 | return 0;
|
---|
| 6442 | }
|
---|
| 6443 | _ACEOF
|
---|
| 6444 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[20853] | 6445 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6446 | (eval $ac_link) 2>conftest.er1
|
---|
[8756] | 6447 | ac_status=$?
|
---|
| 6448 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6449 | rm -f conftest.er1
|
---|
| 6450 | cat conftest.err >&5
|
---|
| 6451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 6452 | (exit $ac_status); } &&
|
---|
| 6453 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6454 | || test ! -s conftest.err'
|
---|
| 6455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6456 | (eval $ac_try) 2>&5
|
---|
| 6457 | ac_status=$?
|
---|
| 6458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6459 | (exit $ac_status); }; } &&
|
---|
| 6460 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6462 | (eval $ac_try) 2>&5
|
---|
| 6463 | ac_status=$?
|
---|
| 6464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6465 | (exit $ac_status); }; }; then
|
---|
[8756] | 6466 | ac_cv_func_textdomain=yes
|
---|
[3705] | 6467 | else
|
---|
[8756] | 6468 | echo "$as_me: failed program was:" >&5
|
---|
| 6469 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6470 |
|
---|
[20853] | 6471 | ac_cv_func_textdomain=no
|
---|
[3705] | 6472 | fi
|
---|
[20853] | 6473 | rm -f conftest.err conftest.$ac_objext \
|
---|
[8756] | 6474 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3705] | 6475 | fi
|
---|
[20853] | 6476 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
| 6477 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
[8756] | 6478 | if test $ac_cv_func_textdomain = yes; then
|
---|
| 6479 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6480 | #define ENABLE_NLS 1
|
---|
| 6481 | _ACEOF
|
---|
[8200] | 6482 |
|
---|
[3705] | 6483 | fi
|
---|
| 6484 |
|
---|
[8200] | 6485 |
|
---|
[687] | 6486 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 6487 | # ---------------------------------------------------------------------------
|
---|
[20853] | 6488 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
| 6489 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
[687] | 6490 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[20853] | 6491 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6492 | echo "${ECHO_T}yes" >&6
|
---|
| 6493 | case $LIBOBJS in
|
---|
| 6494 | "gmalloc.$ac_objext" | \
|
---|
| 6495 | *" gmalloc.$ac_objext" | \
|
---|
| 6496 | "gmalloc.$ac_objext "* | \
|
---|
[8756] | 6497 | *" gmalloc.$ac_objext "* ) ;;
|
---|
[20853] | 6498 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
[8756] | 6499 | esac
|
---|
| 6500 |
|
---|
| 6501 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 6502 | #define HAVE_VALLOC 1
|
---|
[8756] | 6503 | _ACEOF
|
---|
[687] | 6504 |
|
---|
| 6505 | else
|
---|
[20853] | 6506 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6507 | echo "${ECHO_T}no" >&6
|
---|
[8756] | 6508 |
|
---|
| 6509 | for ac_func in valloc
|
---|
[687] | 6510 | do
|
---|
[8756] | 6511 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
[20853] | 6512 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6513 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6514 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8756] | 6515 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6516 | else
|
---|
[8756] | 6517 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6518 | /* confdefs.h. */
|
---|
| 6519 | _ACEOF
|
---|
| 6520 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6521 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6522 | /* end confdefs.h. */
|
---|
| 6523 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6524 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6525 | #define $ac_func innocuous_$ac_func
|
---|
| 6526 |
|
---|
[687] | 6527 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6528 | which can conflict with char $ac_func (); below.
|
---|
| 6529 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6530 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6531 |
|
---|
| 6532 | #ifdef __STDC__
|
---|
| 6533 | # include <limits.h>
|
---|
| 6534 | #else
|
---|
| 6535 | # include <assert.h>
|
---|
| 6536 | #endif
|
---|
| 6537 |
|
---|
| 6538 | #undef $ac_func
|
---|
| 6539 |
|
---|
[20853] | 6540 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6541 | #ifdef __cplusplus
|
---|
| 6542 | extern "C"
|
---|
[20853] | 6543 | {
|
---|
[8756] | 6544 | #endif
|
---|
[20853] | 6545 | /* We use char because int might match the return type of a gcc2
|
---|
| 6546 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 6547 | char $ac_func ();
|
---|
[687] | 6548 | /* The GNU C library defines this for functions which it implements
|
---|
| 6549 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6550 | something starting with __ and the normal name is an alias. */
|
---|
[20853] | 6551 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[687] | 6552 | choke me
|
---|
[20853] | 6553 | #else
|
---|
| 6554 | char (*f) () = $ac_func;
|
---|
[687] | 6555 | #endif
|
---|
[20853] | 6556 | #ifdef __cplusplus
|
---|
| 6557 | }
|
---|
| 6558 | #endif
|
---|
[687] | 6559 |
|
---|
[8756] | 6560 | int
|
---|
| 6561 | main ()
|
---|
| 6562 | {
|
---|
[20853] | 6563 | return f != $ac_func;
|
---|
[8756] | 6564 | ;
|
---|
| 6565 | return 0;
|
---|
| 6566 | }
|
---|
| 6567 | _ACEOF
|
---|
| 6568 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[20853] | 6569 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6570 | (eval $ac_link) 2>conftest.er1
|
---|
[8756] | 6571 | ac_status=$?
|
---|
| 6572 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6573 | rm -f conftest.er1
|
---|
| 6574 | cat conftest.err >&5
|
---|
| 6575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 6576 | (exit $ac_status); } &&
|
---|
| 6577 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6578 | || test ! -s conftest.err'
|
---|
| 6579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6580 | (eval $ac_try) 2>&5
|
---|
| 6581 | ac_status=$?
|
---|
| 6582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6583 | (exit $ac_status); }; } &&
|
---|
| 6584 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6586 | (eval $ac_try) 2>&5
|
---|
| 6587 | ac_status=$?
|
---|
| 6588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6589 | (exit $ac_status); }; }; then
|
---|
[8756] | 6590 | eval "$as_ac_var=yes"
|
---|
[687] | 6591 | else
|
---|
[8756] | 6592 | echo "$as_me: failed program was:" >&5
|
---|
| 6593 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6594 |
|
---|
[20853] | 6595 | eval "$as_ac_var=no"
|
---|
[687] | 6596 | fi
|
---|
[20853] | 6597 | rm -f conftest.err conftest.$ac_objext \
|
---|
[8756] | 6598 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 6599 | fi
|
---|
[20853] | 6600 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6601 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
[8756] | 6602 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6603 | cat >>confdefs.h <<_ACEOF
|
---|
| 6604 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6605 | _ACEOF
|
---|
[8200] | 6606 |
|
---|
[687] | 6607 | fi
|
---|
| 6608 | done
|
---|
| 6609 |
|
---|
| 6610 | fi
|
---|
| 6611 |
|
---|
[8200] | 6612 | # we cannot generate static libraries under Darwin
|
---|
[20853] | 6613 | echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
| 6614 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
|
---|
[8200] | 6615 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[20853] | 6616 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6617 | echo "${ECHO_T}yes" >&6
|
---|
[8200] | 6618 | STATIC=""
|
---|
| 6619 | else
|
---|
[20853] | 6620 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6621 | echo "${ECHO_T}no" >&6
|
---|
[8200] | 6622 | STATIC="-static "
|
---|
| 6623 | fi
|
---|
[3631] | 6624 |
|
---|
[8200] | 6625 |
|
---|
[20853] | 6626 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
| 6627 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
[8756] | 6628 |
|
---|
[20853] | 6629 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
[700] | 6630 | if test "${with_dmalloc+set}" = set; then
|
---|
[20853] | 6631 | withval="$with_dmalloc"
|
---|
| 6632 | if test "$withval" = yes; then
|
---|
| 6633 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6634 | echo "${ECHO_T}yes" >&6
|
---|
[8756] | 6635 | cat >>confdefs.h <<\_ACEOF
|
---|
[700] | 6636 | #define WITH_DMALLOC 1
|
---|
[8756] | 6637 | _ACEOF
|
---|
[687] | 6638 |
|
---|
[700] | 6639 | LIBS="$LIBS -ldmalloc"
|
---|
| 6640 | LDFLAGS="$LDFLAGS -g"
|
---|
| 6641 | else
|
---|
[20853] | 6642 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6643 | echo "${ECHO_T}no" >&6
|
---|
[700] | 6644 | fi
|
---|
| 6645 | else
|
---|
[20853] | 6646 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6647 | echo "${ECHO_T}no" >&6
|
---|
| 6648 | fi;
|
---|
[700] | 6649 |
|
---|
[20853] | 6650 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
| 6651 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
[700] | 6652 |
|
---|
[20853] | 6653 | # Check whether --with-regex or --without-regex was given.
|
---|
[700] | 6654 | if test "${with_regex+set}" = set; then
|
---|
[20853] | 6655 | withval="$with_regex"
|
---|
| 6656 | if test "$withval" = yes; then
|
---|
[700] | 6657 | ac_with_regex=1
|
---|
[20853] | 6658 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
| 6659 | echo "${ECHO_T}regex" >&6
|
---|
[8756] | 6660 | cat >>confdefs.h <<\_ACEOF
|
---|
[700] | 6661 | #define WITH_REGEX 1
|
---|
[8756] | 6662 | _ACEOF
|
---|
[700] | 6663 |
|
---|
[20853] | 6664 | case $LIBOBJS in
|
---|
| 6665 | "regex.$ac_objext" | \
|
---|
| 6666 | *" regex.$ac_objext" | \
|
---|
| 6667 | "regex.$ac_objext "* | \
|
---|
[8756] | 6668 | *" regex.$ac_objext "* ) ;;
|
---|
[20853] | 6669 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
[8756] | 6670 | esac
|
---|
| 6671 |
|
---|
[700] | 6672 | fi
|
---|
[20853] | 6673 | fi;
|
---|
[700] | 6674 | if test -z "$ac_with_regex"; then
|
---|
[20853] | 6675 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
| 6676 | echo "${ECHO_T}rx" >&6
|
---|
| 6677 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
| 6678 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
[8756] | 6679 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
| 6680 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[700] | 6681 | else
|
---|
[8756] | 6682 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6683 | /* confdefs.h. */
|
---|
| 6684 | _ACEOF
|
---|
| 6685 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6686 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6687 | /* end confdefs.h. */
|
---|
| 6688 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 6689 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6690 | #define re_rx_search innocuous_re_rx_search
|
---|
| 6691 |
|
---|
[700] | 6692 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6693 | which can conflict with char re_rx_search (); below.
|
---|
| 6694 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6695 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6696 |
|
---|
| 6697 | #ifdef __STDC__
|
---|
| 6698 | # include <limits.h>
|
---|
| 6699 | #else
|
---|
| 6700 | # include <assert.h>
|
---|
| 6701 | #endif
|
---|
| 6702 |
|
---|
| 6703 | #undef re_rx_search
|
---|
| 6704 |
|
---|
[20853] | 6705 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6706 | #ifdef __cplusplus
|
---|
| 6707 | extern "C"
|
---|
[20853] | 6708 | {
|
---|
[8756] | 6709 | #endif
|
---|
[20853] | 6710 | /* We use char because int might match the return type of a gcc2
|
---|
| 6711 | builtin and then its argument prototype would still apply. */
|
---|
[8756] | 6712 | char re_rx_search ();
|
---|
[700] | 6713 | /* The GNU C library defines this for functions which it implements
|
---|
| 6714 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6715 | something starting with __ and the normal name is an alias. */
|
---|
[20853] | 6716 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
[700] | 6717 | choke me
|
---|
[20853] | 6718 | #else
|
---|
| 6719 | char (*f) () = re_rx_search;
|
---|
[700] | 6720 | #endif
|
---|
[20853] | 6721 | #ifdef __cplusplus
|
---|
| 6722 | }
|
---|
| 6723 | #endif
|
---|
[700] | 6724 |
|
---|
[8756] | 6725 | int
|
---|
| 6726 | main ()
|
---|
| 6727 | {
|
---|
[20853] | 6728 | return f != re_rx_search;
|
---|
[8756] | 6729 | ;
|
---|
| 6730 | return 0;
|
---|
| 6731 | }
|
---|
| 6732 | _ACEOF
|
---|
| 6733 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[20853] | 6734 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6735 | (eval $ac_link) 2>conftest.er1
|
---|
[8756] | 6736 | ac_status=$?
|
---|
| 6737 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6738 | rm -f conftest.er1
|
---|
| 6739 | cat conftest.err >&5
|
---|
| 6740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 6741 | (exit $ac_status); } &&
|
---|
| 6742 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6743 | || test ! -s conftest.err'
|
---|
| 6744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6745 | (eval $ac_try) 2>&5
|
---|
| 6746 | ac_status=$?
|
---|
| 6747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6748 | (exit $ac_status); }; } &&
|
---|
| 6749 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6751 | (eval $ac_try) 2>&5
|
---|
| 6752 | ac_status=$?
|
---|
| 6753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6754 | (exit $ac_status); }; }; then
|
---|
[8756] | 6755 | ac_cv_func_re_rx_search=yes
|
---|
[700] | 6756 | else
|
---|
[8756] | 6757 | echo "$as_me: failed program was:" >&5
|
---|
| 6758 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6759 |
|
---|
[20853] | 6760 | ac_cv_func_re_rx_search=no
|
---|
[700] | 6761 | fi
|
---|
[20853] | 6762 | rm -f conftest.err conftest.$ac_objext \
|
---|
[8756] | 6763 | conftest$ac_exeext conftest.$ac_ext
|
---|
[700] | 6764 | fi
|
---|
[20853] | 6765 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
| 6766 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
[8756] | 6767 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
[700] | 6768 | :
|
---|
| 6769 | else
|
---|
[20853] | 6770 | case $LIBOBJS in
|
---|
| 6771 | "rx.$ac_objext" | \
|
---|
| 6772 | *" rx.$ac_objext" | \
|
---|
| 6773 | "rx.$ac_objext "* | \
|
---|
[8756] | 6774 | *" rx.$ac_objext "* ) ;;
|
---|
[20853] | 6775 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
[8756] | 6776 | esac
|
---|
| 6777 |
|
---|
[700] | 6778 | fi
|
---|
| 6779 |
|
---|
| 6780 | fi
|
---|
| 6781 |
|
---|
[8200] | 6782 |
|
---|
[687] | 6783 | # ---------------------------------------------------------------------------
|
---|
| 6784 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[20853] | 6785 | case $LIBOBJS in
|
---|
| 6786 | "xmalloc.$ac_objext" | \
|
---|
| 6787 | *" xmalloc.$ac_objext" | \
|
---|
| 6788 | "xmalloc.$ac_objext "* | \
|
---|
[8756] | 6789 | *" xmalloc.$ac_objext "* ) ;;
|
---|
[20853] | 6790 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
[8756] | 6791 | esac
|
---|
| 6792 |
|
---|
[20853] | 6793 | case $LIBOBJS in
|
---|
| 6794 | "error.$ac_objext" | \
|
---|
| 6795 | *" error.$ac_objext" | \
|
---|
| 6796 | "error.$ac_objext "* | \
|
---|
[8756] | 6797 | *" error.$ac_objext "* ) ;;
|
---|
[20853] | 6798 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
[8756] | 6799 | esac
|
---|
| 6800 |
|
---|
[687] | 6801 | fi
|
---|
| 6802 |
|
---|
[8200] | 6803 |
|
---|
[687] | 6804 | # ---------------------------------------------------------------------------
|
---|
| 6805 |
|
---|
[20853] | 6806 | ac_ext=cc
|
---|
[687] | 6807 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 6808 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 6809 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 6810 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[687] | 6811 |
|
---|
[8200] | 6812 |
|
---|
[20853] | 6813 | echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
|
---|
| 6814 | echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
|
---|
[687] | 6815 | success="no"
|
---|
| 6816 | pl_path="$PATH"
|
---|
| 6817 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
| 6818 | for pl_dir in $pl_path; do
|
---|
| 6819 | test -z "$pl_dir" && pl_dir=.
|
---|
| 6820 | if test -x $pl_dir/perl; then
|
---|
| 6821 | success="yes"
|
---|
| 6822 | break
|
---|
| 6823 | fi
|
---|
| 6824 | done
|
---|
| 6825 | IFS="$pl_save_ifs"
|
---|
| 6826 |
|
---|
| 6827 | if test $success = "yes"; then
|
---|
| 6828 | try=`perl configtest.pl` || try="0"
|
---|
| 6829 | try=`expr $try \> 5.000`
|
---|
| 6830 | if test $try = "1"; then
|
---|
[20853] | 6831 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 6832 | echo "${ECHO_T}\"yes\"" >&6
|
---|
[687] | 6833 | else
|
---|
| 6834 | success="no"
|
---|
| 6835 | fi
|
---|
| 6836 | fi
|
---|
| 6837 |
|
---|
| 6838 | if test $success = "no"; then
|
---|
[20853] | 6839 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 6840 | echo "${ECHO_T}\"no\"" >&6
|
---|
[8756] | 6841 | { { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5
|
---|
| 6842 | echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
|
---|
| 6843 | { (exit 1); exit 1; }; }
|
---|
[687] | 6844 | fi
|
---|
| 6845 |
|
---|
| 6846 | success=no
|
---|
[20853] | 6847 | echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
| 6848 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
[687] | 6849 |
|
---|
[18214] | 6850 |
|
---|
[8756] | 6851 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6852 | /* confdefs.h. */
|
---|
| 6853 | _ACEOF
|
---|
| 6854 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6855 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6856 | /* end confdefs.h. */
|
---|
[687] | 6857 | #include <vector>
|
---|
| 6858 |
|
---|
[8756] | 6859 | int
|
---|
| 6860 | main ()
|
---|
| 6861 | {
|
---|
[687] | 6862 |
|
---|
[8756] | 6863 | ;
|
---|
| 6864 | return 0;
|
---|
| 6865 | }
|
---|
| 6866 | _ACEOF
|
---|
| 6867 | rm -f conftest.$ac_objext
|
---|
[20853] | 6868 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6869 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 6870 | ac_status=$?
|
---|
| 6871 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6872 | rm -f conftest.er1
|
---|
| 6873 | cat conftest.err >&5
|
---|
| 6874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 6875 | (exit $ac_status); } &&
|
---|
| 6876 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6877 | || test ! -s conftest.err'
|
---|
| 6878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6879 | (eval $ac_try) 2>&5
|
---|
| 6880 | ac_status=$?
|
---|
| 6881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6882 | (exit $ac_status); }; } &&
|
---|
| 6883 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6885 | (eval $ac_try) 2>&5
|
---|
| 6886 | ac_status=$?
|
---|
| 6887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6888 | (exit $ac_status); }; }; then
|
---|
[687] | 6889 | success=yes
|
---|
| 6890 | else
|
---|
[8756] | 6891 | echo "$as_me: failed program was:" >&5
|
---|
| 6892 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6893 |
|
---|
[687] | 6894 | fi
|
---|
[20853] | 6895 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 6896 |
|
---|
| 6897 | if test $success = "no"; then
|
---|
[8756] | 6898 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6899 | /* confdefs.h. */
|
---|
| 6900 | _ACEOF
|
---|
| 6901 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6902 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6903 | /* end confdefs.h. */
|
---|
[687] | 6904 | #include <vector.h>
|
---|
| 6905 |
|
---|
[8756] | 6906 | int
|
---|
| 6907 | main ()
|
---|
| 6908 | {
|
---|
[687] | 6909 |
|
---|
[8756] | 6910 | ;
|
---|
| 6911 | return 0;
|
---|
| 6912 | }
|
---|
| 6913 | _ACEOF
|
---|
| 6914 | rm -f conftest.$ac_objext
|
---|
[20853] | 6915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6916 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 6917 | ac_status=$?
|
---|
| 6918 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6919 | rm -f conftest.er1
|
---|
| 6920 | cat conftest.err >&5
|
---|
| 6921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 6922 | (exit $ac_status); } &&
|
---|
| 6923 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6924 | || test ! -s conftest.err'
|
---|
| 6925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6926 | (eval $ac_try) 2>&5
|
---|
| 6927 | ac_status=$?
|
---|
| 6928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6929 | (exit $ac_status); }; } &&
|
---|
| 6930 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6932 | (eval $ac_try) 2>&5
|
---|
| 6933 | ac_status=$?
|
---|
| 6934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6935 | (exit $ac_status); }; }; then
|
---|
[687] | 6936 | success="yes"
|
---|
| 6937 | else
|
---|
[8756] | 6938 | echo "$as_me: failed program was:" >&5
|
---|
| 6939 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6940 |
|
---|
[687] | 6941 | fi
|
---|
[20853] | 6942 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 6943 | fi
|
---|
| 6944 |
|
---|
| 6945 | if test $success = "no"; then
|
---|
[8756] | 6946 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6947 | /* confdefs.h. */
|
---|
| 6948 | _ACEOF
|
---|
| 6949 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6950 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6951 | /* end confdefs.h. */
|
---|
[687] | 6952 | #include <ospace\\std\\vector>
|
---|
| 6953 |
|
---|
[8756] | 6954 | int
|
---|
| 6955 | main ()
|
---|
| 6956 | {
|
---|
[687] | 6957 |
|
---|
[8756] | 6958 | ;
|
---|
| 6959 | return 0;
|
---|
| 6960 | }
|
---|
| 6961 | _ACEOF
|
---|
| 6962 | rm -f conftest.$ac_objext
|
---|
[20853] | 6963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6964 | (eval $ac_compile) 2>conftest.er1
|
---|
[8756] | 6965 | ac_status=$?
|
---|
| 6966 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6967 | rm -f conftest.er1
|
---|
| 6968 | cat conftest.err >&5
|
---|
| 6969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 6970 | (exit $ac_status); } &&
|
---|
| 6971 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6972 | || test ! -s conftest.err'
|
---|
| 6973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6974 | (eval $ac_try) 2>&5
|
---|
| 6975 | ac_status=$?
|
---|
| 6976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6977 | (exit $ac_status); }; } &&
|
---|
| 6978 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6980 | (eval $ac_try) 2>&5
|
---|
| 6981 | ac_status=$?
|
---|
| 6982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6983 | (exit $ac_status); }; }; then
|
---|
[687] | 6984 | success="yes"
|
---|
| 6985 | else
|
---|
[8756] | 6986 | echo "$as_me: failed program was:" >&5
|
---|
| 6987 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6988 |
|
---|
[687] | 6989 | fi
|
---|
[20853] | 6990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 6991 | fi
|
---|
| 6992 |
|
---|
| 6993 | if test $success = yes; then
|
---|
[20853] | 6994 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 6995 | echo "${ECHO_T}\"no\"" >&6
|
---|
[687] | 6996 | else
|
---|
[20853] | 6997 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 6998 | echo "${ECHO_T}\"yes\"" >&6
|
---|
[8756] | 6999 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
| 7000 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
| 7001 | { (exit 1); exit 1; }; }
|
---|
[687] | 7002 | fi
|
---|
| 7003 |
|
---|
[2950] | 7004 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
[2951] | 7005 | # check for running bash under cygwin
|
---|
| 7006 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 7007 | then
|
---|
| 7008 | gsdlos=windows
|
---|
| 7009 | fi
|
---|
[687] | 7010 |
|
---|
[8200] | 7011 |
|
---|
[10856] | 7012 | # check for endianness
|
---|
[20853] | 7013 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 7014 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
[10856] | 7015 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
| 7016 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7017 | else
|
---|
| 7018 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 7019 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7020 | /* confdefs.h. */
|
---|
| 7021 | _ACEOF
|
---|
| 7022 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7023 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7024 | /* end confdefs.h. */
|
---|
| 7025 | #include <sys/types.h>
|
---|
| 7026 | #include <sys/param.h>
|
---|
| 7027 |
|
---|
| 7028 | int
|
---|
| 7029 | main ()
|
---|
| 7030 | {
|
---|
[20853] | 7031 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
[10856] | 7032 | bogus endian macros
|
---|
| 7033 | #endif
|
---|
| 7034 |
|
---|
| 7035 | ;
|
---|
| 7036 | return 0;
|
---|
| 7037 | }
|
---|
| 7038 | _ACEOF
|
---|
| 7039 | rm -f conftest.$ac_objext
|
---|
[20853] | 7040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7041 | (eval $ac_compile) 2>conftest.er1
|
---|
[10856] | 7042 | ac_status=$?
|
---|
| 7043 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7044 | rm -f conftest.er1
|
---|
| 7045 | cat conftest.err >&5
|
---|
| 7046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 7047 | (exit $ac_status); } &&
|
---|
| 7048 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7049 | || test ! -s conftest.err'
|
---|
| 7050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7051 | (eval $ac_try) 2>&5
|
---|
| 7052 | ac_status=$?
|
---|
| 7053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7054 | (exit $ac_status); }; } &&
|
---|
| 7055 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7057 | (eval $ac_try) 2>&5
|
---|
| 7058 | ac_status=$?
|
---|
| 7059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7060 | (exit $ac_status); }; }; then
|
---|
[10856] | 7061 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
| 7062 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7063 | /* confdefs.h. */
|
---|
| 7064 | _ACEOF
|
---|
| 7065 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7066 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7067 | /* end confdefs.h. */
|
---|
| 7068 | #include <sys/types.h>
|
---|
| 7069 | #include <sys/param.h>
|
---|
| 7070 |
|
---|
| 7071 | int
|
---|
| 7072 | main ()
|
---|
| 7073 | {
|
---|
| 7074 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
| 7075 | not big endian
|
---|
| 7076 | #endif
|
---|
| 7077 |
|
---|
| 7078 | ;
|
---|
| 7079 | return 0;
|
---|
| 7080 | }
|
---|
| 7081 | _ACEOF
|
---|
| 7082 | rm -f conftest.$ac_objext
|
---|
[20853] | 7083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7084 | (eval $ac_compile) 2>conftest.er1
|
---|
[10856] | 7085 | ac_status=$?
|
---|
| 7086 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7087 | rm -f conftest.er1
|
---|
| 7088 | cat conftest.err >&5
|
---|
| 7089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 7090 | (exit $ac_status); } &&
|
---|
| 7091 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7092 | || test ! -s conftest.err'
|
---|
| 7093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7094 | (eval $ac_try) 2>&5
|
---|
| 7095 | ac_status=$?
|
---|
| 7096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7097 | (exit $ac_status); }; } &&
|
---|
| 7098 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7100 | (eval $ac_try) 2>&5
|
---|
| 7101 | ac_status=$?
|
---|
| 7102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7103 | (exit $ac_status); }; }; then
|
---|
[10856] | 7104 | ac_cv_c_bigendian=yes
|
---|
| 7105 | else
|
---|
| 7106 | echo "$as_me: failed program was:" >&5
|
---|
| 7107 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7108 |
|
---|
[20853] | 7109 | ac_cv_c_bigendian=no
|
---|
[10856] | 7110 | fi
|
---|
[20853] | 7111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10856] | 7112 | else
|
---|
| 7113 | echo "$as_me: failed program was:" >&5
|
---|
| 7114 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7115 |
|
---|
[20853] | 7116 | # It does not; compile a test program.
|
---|
[10856] | 7117 | if test "$cross_compiling" = yes; then
|
---|
| 7118 | # try to guess the endianness by grepping values into an object file
|
---|
| 7119 | ac_cv_c_bigendian=unknown
|
---|
| 7120 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7121 | /* confdefs.h. */
|
---|
| 7122 | _ACEOF
|
---|
| 7123 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7124 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7125 | /* end confdefs.h. */
|
---|
[20853] | 7126 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 7127 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
[10856] | 7128 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
[20853] | 7129 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 7130 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
[10856] | 7131 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
| 7132 | int
|
---|
| 7133 | main ()
|
---|
| 7134 | {
|
---|
| 7135 | _ascii (); _ebcdic ();
|
---|
| 7136 | ;
|
---|
| 7137 | return 0;
|
---|
| 7138 | }
|
---|
| 7139 | _ACEOF
|
---|
| 7140 | rm -f conftest.$ac_objext
|
---|
[20853] | 7141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7142 | (eval $ac_compile) 2>conftest.er1
|
---|
[10856] | 7143 | ac_status=$?
|
---|
| 7144 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7145 | rm -f conftest.er1
|
---|
| 7146 | cat conftest.err >&5
|
---|
| 7147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[20853] | 7148 | (exit $ac_status); } &&
|
---|
| 7149 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7150 | || test ! -s conftest.err'
|
---|
| 7151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7152 | (eval $ac_try) 2>&5
|
---|
| 7153 | ac_status=$?
|
---|
| 7154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7155 | (exit $ac_status); }; } &&
|
---|
| 7156 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7158 | (eval $ac_try) 2>&5
|
---|
| 7159 | ac_status=$?
|
---|
| 7160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7161 | (exit $ac_status); }; }; then
|
---|
[10856] | 7162 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
| 7163 | ac_cv_c_bigendian=yes
|
---|
| 7164 | fi
|
---|
| 7165 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 7166 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 7167 | ac_cv_c_bigendian=no
|
---|
| 7168 | else
|
---|
| 7169 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 7170 | ac_cv_c_bigendian=unknown
|
---|
| 7171 | fi
|
---|
| 7172 | fi
|
---|
| 7173 | else
|
---|
| 7174 | echo "$as_me: failed program was:" >&5
|
---|
| 7175 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7176 |
|
---|
| 7177 | fi
|
---|
[20853] | 7178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10856] | 7179 | else
|
---|
| 7180 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7181 | /* confdefs.h. */
|
---|
| 7182 | _ACEOF
|
---|
| 7183 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7184 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7185 | /* end confdefs.h. */
|
---|
| 7186 | int
|
---|
| 7187 | main ()
|
---|
| 7188 | {
|
---|
| 7189 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 7190 | union
|
---|
| 7191 | {
|
---|
[20853] | 7192 | long l;
|
---|
| 7193 | char c[sizeof (long)];
|
---|
[10856] | 7194 | } u;
|
---|
| 7195 | u.l = 1;
|
---|
[20853] | 7196 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
[10856] | 7197 | }
|
---|
| 7198 | _ACEOF
|
---|
| 7199 | rm -f conftest$ac_exeext
|
---|
[20853] | 7200 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7201 | (eval $ac_link) 2>&5
|
---|
[10856] | 7202 | ac_status=$?
|
---|
| 7203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7204 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[20853] | 7205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7206 | (eval $ac_try) 2>&5
|
---|
[10856] | 7207 | ac_status=$?
|
---|
| 7208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7209 | (exit $ac_status); }; }; then
|
---|
| 7210 | ac_cv_c_bigendian=no
|
---|
| 7211 | else
|
---|
| 7212 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7213 | echo "$as_me: failed program was:" >&5
|
---|
| 7214 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7215 |
|
---|
| 7216 | ( exit $ac_status )
|
---|
| 7217 | ac_cv_c_bigendian=yes
|
---|
| 7218 | fi
|
---|
[20853] | 7219 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[10856] | 7220 | fi
|
---|
| 7221 | fi
|
---|
[20853] | 7222 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[10856] | 7223 | fi
|
---|
[20853] | 7224 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 7225 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
[10856] | 7226 | case $ac_cv_c_bigendian in
|
---|
| 7227 | yes)
|
---|
| 7228 |
|
---|
| 7229 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7230 | #define WORDS_BIGENDIAN 1
|
---|
| 7231 | _ACEOF
|
---|
| 7232 | ;;
|
---|
| 7233 | no)
|
---|
| 7234 | ;;
|
---|
| 7235 | *)
|
---|
| 7236 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 7237 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 7238 | echo "$as_me: error: unknown endianness
|
---|
| 7239 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
| 7240 | { (exit 1); exit 1; }; } ;;
|
---|
| 7241 | esac
|
---|
| 7242 |
|
---|
[687] | 7243 | # ---------------------------------------------------------------------------
|
---|
| 7244 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[20853] | 7245 | case $LIBOBJS in
|
---|
| 7246 | "xmalloc.o.$ac_objext" | \
|
---|
| 7247 | *" xmalloc.o.$ac_objext" | \
|
---|
| 7248 | "xmalloc.o.$ac_objext "* | \
|
---|
[8756] | 7249 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
[20853] | 7250 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
|
---|
[8756] | 7251 | esac
|
---|
| 7252 |
|
---|
[20853] | 7253 | case $LIBOBJS in
|
---|
| 7254 | "error.$ac_objext" | \
|
---|
| 7255 | *" error.$ac_objext" | \
|
---|
| 7256 | "error.$ac_objext "* | \
|
---|
[8756] | 7257 | *" error.$ac_objext "* ) ;;
|
---|
[20853] | 7258 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
[8756] | 7259 | esac
|
---|
| 7260 |
|
---|
[687] | 7261 | fi
|
---|
| 7262 |
|
---|
[3063] | 7263 | # ---------------------------------------------------------------------------
|
---|
[687] | 7264 |
|
---|
[3063] | 7265 | moduleDirs=""
|
---|
| 7266 | MODULEDIRS=""
|
---|
[16619] | 7267 | if test -d modules ; then
|
---|
[15300] | 7268 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
| 7269 | if test -d "$x"; then
|
---|
| 7270 | d="$x/Makefile.in"
|
---|
| 7271 | if test -e "$d"; then
|
---|
| 7272 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
| 7273 | MODULEDIRS="$MODULEDIRS $x"
|
---|
| 7274 | fi
|
---|
[3063] | 7275 | fi
|
---|
[15300] | 7276 | done
|
---|
| 7277 | echo "Making $moduleDirs in modules directory"
|
---|
[3063] | 7278 |
|
---|
[15300] | 7279 | fi
|
---|
[8200] | 7280 |
|
---|
[15300] | 7281 |
|
---|
[687] | 7282 | # ---------------------------------------------------------------------------
|
---|
[1675] | 7283 |
|
---|
[13777] | 7284 | # indexers needs a bindir option to get the binaries into the right place
|
---|
| 7285 | gsdlprefix=`pwd`
|
---|
[19264] | 7286 | ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos --libdir=$gsdlprefix/lib/$gsdlos"
|
---|
[20853] | 7287 |
|
---|
| 7288 |
|
---|
[16572] | 7289 | subdirs="$subdirs common-src build-src runtime-src"
|
---|
[8756] | 7290 |
|
---|
[13777] | 7291 |
|
---|
[3063] | 7292 | # the list of folders in the src folder
|
---|
[16572] | 7293 | srclist="common-src/Makefile \
|
---|
| 7294 | build-src/Makefile \
|
---|
| 7295 | runtime-src/Makefile"
|
---|
[3063] | 7296 |
|
---|
[20853] | 7297 | ac_config_files="$ac_config_files Makefile $srclist $moduleDirs"
|
---|
[8756] | 7298 | cat >confcache <<\_ACEOF
|
---|
[562] | 7299 | # This file is a shell script that caches the results of configure
|
---|
| 7300 | # tests run on this system so they can be shared between configure
|
---|
[8756] | 7301 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 7302 | # It is not useful on other systems. If it contains results you don't
|
---|
| 7303 | # want to keep, you may remove or edit it.
|
---|
[562] | 7304 | #
|
---|
[8756] | 7305 | # config.status only pays attention to the cache file if you give it
|
---|
| 7306 | # the --recheck option to rerun configure.
|
---|
[562] | 7307 | #
|
---|
[8756] | 7308 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
| 7309 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 7310 | # following values.
|
---|
| 7311 |
|
---|
| 7312 | _ACEOF
|
---|
| 7313 |
|
---|
[562] | 7314 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 7315 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
[20853] | 7316 | # So, don't put newlines in cache variables' values.
|
---|
[562] | 7317 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 7318 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[20853] | 7319 | {
|
---|
[8756] | 7320 | (set) 2>&1 |
|
---|
[20853] | 7321 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 7322 | *ac_space=\ *)
|
---|
[8756] | 7323 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 7324 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 7325 | sed -n \
|
---|
| 7326 | "s/'/'\\\\''/g;
|
---|
| 7327 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[20853] | 7328 | ;;
|
---|
[8756] | 7329 | *)
|
---|
| 7330 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
[20853] | 7331 | sed -n \
|
---|
| 7332 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[8756] | 7333 | ;;
|
---|
[20853] | 7334 | esac;
|
---|
| 7335 | } |
|
---|
[8756] | 7336 | sed '
|
---|
| 7337 | t clear
|
---|
[20853] | 7338 | : clear
|
---|
[8756] | 7339 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 7340 | t end
|
---|
[20853] | 7341 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 7342 | : end' >>confcache
|
---|
| 7343 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
| 7344 | if test -w $cache_file; then
|
---|
| 7345 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
[8756] | 7346 | cat confcache >$cache_file
|
---|
[562] | 7347 | else
|
---|
[20853] | 7348 | echo "not updating unwritable cache $cache_file"
|
---|
[562] | 7349 | fi
|
---|
| 7350 | fi
|
---|
| 7351 | rm -f confcache
|
---|
| 7352 |
|
---|
| 7353 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 7354 | # Let make expand exec_prefix.
|
---|
| 7355 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 7356 |
|
---|
[20853] | 7357 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 7358 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 7359 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7360 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 7361 | if test "x$srcdir" = x.; then
|
---|
| 7362 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
| 7363 | s/:*\$(srcdir):*/:/;
|
---|
| 7364 | s/:*\${srcdir}:*/:/;
|
---|
| 7365 | s/:*@srcdir@:*/:/;
|
---|
| 7366 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
| 7367 | s/:*$//;
|
---|
| 7368 | s/^[^=]*=[ ]*$//;
|
---|
| 7369 | }'
|
---|
| 7370 | fi
|
---|
| 7371 |
|
---|
[687] | 7372 | DEFS=-DHAVE_CONFIG_H
|
---|
[562] | 7373 |
|
---|
[8756] | 7374 | ac_libobjs=
|
---|
| 7375 | ac_ltlibobjs=
|
---|
| 7376 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 7377 | # 1. Remove the extension, and $U if already installed.
|
---|
[20853] | 7378 | ac_i=`echo "$ac_i" |
|
---|
| 7379 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
| 7380 | # 2. Add them.
|
---|
| 7381 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
| 7382 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
[8756] | 7383 | done
|
---|
| 7384 | LIBOBJS=$ac_libobjs
|
---|
| 7385 |
|
---|
| 7386 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 7387 |
|
---|
| 7388 |
|
---|
| 7389 |
|
---|
[562] | 7390 | : ${CONFIG_STATUS=./config.status}
|
---|
[8756] | 7391 | ac_clean_files_save=$ac_clean_files
|
---|
| 7392 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
| 7393 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
| 7394 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 7395 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
| 7396 | #! $SHELL
|
---|
| 7397 | # Generated by $as_me.
|
---|
[562] | 7398 | # Run this file to recreate the current configuration.
|
---|
| 7399 | # Compiler output produced by configure, useful for debugging
|
---|
[8756] | 7400 | # configure, is in config.log if it exists.
|
---|
[562] | 7401 |
|
---|
[8756] | 7402 | debug=false
|
---|
| 7403 | ac_cs_recheck=false
|
---|
| 7404 | ac_cs_silent=false
|
---|
| 7405 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
| 7406 | _ACEOF
|
---|
| 7407 |
|
---|
| 7408 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7409 | ## --------------------- ##
|
---|
| 7410 | ## M4sh Initialization. ##
|
---|
| 7411 | ## --------------------- ##
|
---|
| 7412 |
|
---|
[20853] | 7413 | # Be Bourne compatible
|
---|
[8756] | 7414 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 7415 | emulate sh
|
---|
| 7416 | NULLCMD=:
|
---|
| 7417 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 7418 | # is contrary to our usage. Disable this feature.
|
---|
| 7419 | alias -g '${1+"$@"}'='"$@"'
|
---|
[20853] | 7420 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 7421 | set -o posix
|
---|
[8756] | 7422 | fi
|
---|
[20853] | 7423 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[8756] | 7424 |
|
---|
| 7425 | # Support unset when possible.
|
---|
| 7426 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 7427 | as_unset=unset
|
---|
| 7428 | else
|
---|
| 7429 | as_unset=false
|
---|
| 7430 | fi
|
---|
| 7431 |
|
---|
| 7432 |
|
---|
| 7433 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
[20853] | 7434 | $as_unset ENV MAIL MAILPATH
|
---|
[8756] | 7435 | PS1='$ '
|
---|
| 7436 | PS2='> '
|
---|
| 7437 | PS4='+ '
|
---|
| 7438 |
|
---|
| 7439 | # NLS nuisances.
|
---|
| 7440 | for as_var in \
|
---|
| 7441 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 7442 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 7443 | LC_TELEPHONE LC_TIME
|
---|
[562] | 7444 | do
|
---|
[8756] | 7445 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 7446 | eval $as_var=C; export $as_var
|
---|
| 7447 | else
|
---|
[20853] | 7448 | $as_unset $as_var
|
---|
[8756] | 7449 | fi
|
---|
[562] | 7450 | done
|
---|
| 7451 |
|
---|
[8756] | 7452 | # Required to use basename.
|
---|
[20853] | 7453 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
[8756] | 7454 | as_expr=expr
|
---|
| 7455 | else
|
---|
| 7456 | as_expr=false
|
---|
| 7457 | fi
|
---|
[562] | 7458 |
|
---|
[20853] | 7459 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
[8756] | 7460 | as_basename=basename
|
---|
| 7461 | else
|
---|
| 7462 | as_basename=false
|
---|
| 7463 | fi
|
---|
[562] | 7464 |
|
---|
| 7465 |
|
---|
[8756] | 7466 | # Name of the executable.
|
---|
[20853] | 7467 | as_me=`$as_basename "$0" ||
|
---|
[8756] | 7468 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 7469 | X"$0" : 'X\(//\)$' \| \
|
---|
[20853] | 7470 | X"$0" : 'X\(/\)$' \| \
|
---|
| 7471 | . : '\(.\)' 2>/dev/null ||
|
---|
[8756] | 7472 | echo X/"$0" |
|
---|
[20853] | 7473 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 7474 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7475 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 7476 | s/.*/./; q'`
|
---|
[3631] | 7477 |
|
---|
| 7478 |
|
---|
[20853] | 7479 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 7480 | # Avoid depending upon Character Ranges.
|
---|
| 7481 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 7482 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 7483 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 7484 | as_cr_digits='0123456789'
|
---|
| 7485 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
[8756] | 7486 |
|
---|
[20853] | 7487 | # The user is always right.
|
---|
| 7488 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 7489 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 7490 | echo "exit 0" >>conf$$.sh
|
---|
| 7491 | chmod +x conf$$.sh
|
---|
| 7492 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 7493 | PATH_SEPARATOR=';'
|
---|
| 7494 | else
|
---|
| 7495 | PATH_SEPARATOR=:
|
---|
| 7496 | fi
|
---|
| 7497 | rm -f conf$$.sh
|
---|
| 7498 | fi
|
---|
[8756] | 7499 |
|
---|
[20853] | 7500 |
|
---|
[8756] | 7501 | as_lineno_1=$LINENO
|
---|
| 7502 | as_lineno_2=$LINENO
|
---|
[20853] | 7503 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
[8756] | 7504 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
[20853] | 7505 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 7506 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 7507 | # relative or not.
|
---|
| 7508 | case $0 in
|
---|
| 7509 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 7510 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7511 | for as_dir in $PATH
|
---|
| 7512 | do
|
---|
| 7513 | IFS=$as_save_IFS
|
---|
| 7514 | test -z "$as_dir" && as_dir=.
|
---|
| 7515 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 7516 | done
|
---|
[8756] | 7517 |
|
---|
[20853] | 7518 | ;;
|
---|
| 7519 | esac
|
---|
| 7520 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 7521 | # in which case we are not to be found in the path.
|
---|
| 7522 | if test "x$as_myself" = x; then
|
---|
| 7523 | as_myself=$0
|
---|
| 7524 | fi
|
---|
| 7525 | if test ! -f "$as_myself"; then
|
---|
| 7526 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
| 7527 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
| 7528 | { (exit 1); exit 1; }; }
|
---|
| 7529 | fi
|
---|
| 7530 | case $CONFIG_SHELL in
|
---|
| 7531 | '')
|
---|
| 7532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7533 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 7534 | do
|
---|
| 7535 | IFS=$as_save_IFS
|
---|
| 7536 | test -z "$as_dir" && as_dir=.
|
---|
| 7537 | for as_base in sh bash ksh sh5; do
|
---|
| 7538 | case $as_dir in
|
---|
| 7539 | /*)
|
---|
| 7540 | if ("$as_dir/$as_base" -c '
|
---|
| 7541 | as_lineno_1=$LINENO
|
---|
| 7542 | as_lineno_2=$LINENO
|
---|
| 7543 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7544 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7545 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 7546 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 7547 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 7548 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 7549 | export CONFIG_SHELL
|
---|
| 7550 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 7551 | fi;;
|
---|
| 7552 | esac
|
---|
| 7553 | done
|
---|
| 7554 | done
|
---|
| 7555 | ;;
|
---|
| 7556 | esac
|
---|
| 7557 |
|
---|
[8756] | 7558 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 7559 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
[20853] | 7560 | # line-number line before each line; the second 'sed' does the real
|
---|
| 7561 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 7562 | # with the numbered line, and appends trailing '-' during
|
---|
| 7563 | # substitution so that $LINENO is not a special case at line end.
|
---|
[8756] | 7564 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
[20853] | 7565 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 7566 | sed '=' <$as_myself |
|
---|
[8756] | 7567 | sed '
|
---|
| 7568 | N
|
---|
[20853] | 7569 | s,$,-,
|
---|
| 7570 | : loop
|
---|
| 7571 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
[8756] | 7572 | t loop
|
---|
[20853] | 7573 | s,-$,,
|
---|
| 7574 | s,^['$as_cr_digits']*\n,,
|
---|
[8756] | 7575 | ' >$as_me.lineno &&
|
---|
[20853] | 7576 | chmod +x $as_me.lineno ||
|
---|
| 7577 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
| 7578 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
[8756] | 7579 | { (exit 1); exit 1; }; }
|
---|
| 7580 |
|
---|
| 7581 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 7582 | # (the dirname of $[0] is not the place where we might find the
|
---|
[20853] | 7583 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 7584 | . ./$as_me.lineno
|
---|
[8756] | 7585 | # Exit status is that of the last command.
|
---|
| 7586 | exit
|
---|
| 7587 | }
|
---|
| 7588 |
|
---|
| 7589 |
|
---|
[20853] | 7590 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 7591 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 7592 | ' ECHO_T=' ' ;;
|
---|
| 7593 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 7594 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
[8756] | 7595 | esac
|
---|
| 7596 |
|
---|
[20853] | 7597 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
[8756] | 7598 | as_expr=expr
|
---|
| 7599 | else
|
---|
| 7600 | as_expr=false
|
---|
| 7601 | fi
|
---|
| 7602 |
|
---|
| 7603 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7604 | echo >conf$$.file
|
---|
| 7605 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
[20853] | 7606 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 7607 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 7608 | if test -f conf$$.exe; then
|
---|
| 7609 | # Don't use ln at all; we don't have any links
|
---|
[8756] | 7610 | as_ln_s='cp -p'
|
---|
[20853] | 7611 | else
|
---|
| 7612 | as_ln_s='ln -s'
|
---|
| 7613 | fi
|
---|
[8756] | 7614 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7615 | as_ln_s=ln
|
---|
| 7616 | else
|
---|
| 7617 | as_ln_s='cp -p'
|
---|
| 7618 | fi
|
---|
[20853] | 7619 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
[8756] | 7620 |
|
---|
| 7621 | if mkdir -p . 2>/dev/null; then
|
---|
| 7622 | as_mkdir_p=:
|
---|
| 7623 | else
|
---|
| 7624 | test -d ./-p && rmdir ./-p
|
---|
| 7625 | as_mkdir_p=false
|
---|
| 7626 | fi
|
---|
| 7627 |
|
---|
[20853] | 7628 | as_executable_p="test -f"
|
---|
[8756] | 7629 |
|
---|
| 7630 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 7631 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7632 |
|
---|
| 7633 | # Sed expression to map a string onto a valid variable name.
|
---|
| 7634 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7635 |
|
---|
| 7636 |
|
---|
[20853] | 7637 | # IFS
|
---|
| 7638 | # We need space, tab and new line, in precisely that order.
|
---|
| 7639 | as_nl='
|
---|
| 7640 | '
|
---|
| 7641 | IFS=" $as_nl"
|
---|
| 7642 |
|
---|
| 7643 | # CDPATH.
|
---|
| 7644 | $as_unset CDPATH
|
---|
| 7645 |
|
---|
[8756] | 7646 | exec 6>&1
|
---|
| 7647 |
|
---|
[20853] | 7648 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
[8756] | 7649 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
[20853] | 7650 | # values after options handling. Logging --version etc. is OK.
|
---|
| 7651 | exec 5>>config.log
|
---|
| 7652 | {
|
---|
| 7653 | echo
|
---|
| 7654 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 7655 | ## Running $as_me. ##
|
---|
| 7656 | _ASBOX
|
---|
| 7657 | } >&5
|
---|
| 7658 | cat >&5 <<_CSEOF
|
---|
| 7659 |
|
---|
[8756] | 7660 | This file was extended by $as_me, which was
|
---|
[20853] | 7661 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
[8756] | 7662 |
|
---|
| 7663 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 7664 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 7665 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 7666 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 7667 | $ $0 $@
|
---|
| 7668 |
|
---|
[20853] | 7669 | _CSEOF
|
---|
| 7670 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
| 7671 | echo >&5
|
---|
[8756] | 7672 | _ACEOF
|
---|
| 7673 |
|
---|
| 7674 | # Files that config.status was made for.
|
---|
[20853] | 7675 | if test -n "$ac_config_files"; then
|
---|
| 7676 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
| 7677 | fi
|
---|
[8756] | 7678 |
|
---|
[20853] | 7679 | if test -n "$ac_config_headers"; then
|
---|
| 7680 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
| 7681 | fi
|
---|
[8756] | 7682 |
|
---|
[20853] | 7683 | if test -n "$ac_config_links"; then
|
---|
| 7684 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
| 7685 | fi
|
---|
| 7686 |
|
---|
| 7687 | if test -n "$ac_config_commands"; then
|
---|
| 7688 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
| 7689 | fi
|
---|
| 7690 |
|
---|
[8756] | 7691 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[20853] | 7692 |
|
---|
[8756] | 7693 | ac_cs_usage="\
|
---|
| 7694 | \`$as_me' instantiates files from templates according to the
|
---|
| 7695 | current configuration.
|
---|
| 7696 |
|
---|
| 7697 | Usage: $0 [OPTIONS] [FILE]...
|
---|
| 7698 |
|
---|
| 7699 | -h, --help print this help, then exit
|
---|
[20853] | 7700 | -V, --version print version number, then exit
|
---|
[8756] | 7701 | -q, --quiet do not print progress messages
|
---|
| 7702 | -d, --debug don't remove temporary files
|
---|
| 7703 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
| 7704 | --file=FILE[:TEMPLATE]
|
---|
| 7705 | instantiate the configuration file FILE
|
---|
| 7706 | --header=FILE[:TEMPLATE]
|
---|
| 7707 | instantiate the configuration header FILE
|
---|
| 7708 |
|
---|
| 7709 | Configuration files:
|
---|
| 7710 | $config_files
|
---|
| 7711 |
|
---|
| 7712 | Configuration headers:
|
---|
| 7713 | $config_headers
|
---|
| 7714 |
|
---|
| 7715 | Report bugs to <[email protected]>."
|
---|
[20853] | 7716 | _ACEOF
|
---|
[20842] | 7717 |
|
---|
[8756] | 7718 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7719 | ac_cs_version="\\
|
---|
| 7720 | config.status
|
---|
[20853] | 7721 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
| 7722 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
[8756] | 7723 |
|
---|
[20853] | 7724 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[8756] | 7725 | This config.status script is free software; the Free Software Foundation
|
---|
| 7726 | gives unlimited permission to copy, distribute and modify it."
|
---|
[20853] | 7727 | srcdir=$srcdir
|
---|
| 7728 | INSTALL="$INSTALL"
|
---|
[8756] | 7729 | _ACEOF
|
---|
| 7730 |
|
---|
| 7731 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7732 | # If no file are specified by the user, then we need to provide default
|
---|
| 7733 | # value. By we need to know if files were specified by the user.
|
---|
| 7734 | ac_need_defaults=:
|
---|
| 7735 | while test $# != 0
|
---|
| 7736 | do
|
---|
| 7737 | case $1 in
|
---|
| 7738 | --*=*)
|
---|
[20853] | 7739 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
| 7740 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
[8756] | 7741 | ac_shift=:
|
---|
| 7742 | ;;
|
---|
[20853] | 7743 | -*)
|
---|
[8756] | 7744 | ac_option=$1
|
---|
| 7745 | ac_optarg=$2
|
---|
| 7746 | ac_shift=shift
|
---|
| 7747 | ;;
|
---|
[20853] | 7748 | *) # This is not an option, so the user has probably given explicit
|
---|
| 7749 | # arguments.
|
---|
| 7750 | ac_option=$1
|
---|
| 7751 | ac_need_defaults=false;;
|
---|
[8756] | 7752 | esac
|
---|
| 7753 |
|
---|
| 7754 | case $ac_option in
|
---|
| 7755 | # Handling of the options.
|
---|
[20853] | 7756 | _ACEOF
|
---|
| 7757 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8756] | 7758 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 7759 | ac_cs_recheck=: ;;
|
---|
[20853] | 7760 | --version | --vers* | -V )
|
---|
| 7761 | echo "$ac_cs_version"; exit 0 ;;
|
---|
| 7762 | --he | --h)
|
---|
| 7763 | # Conflict between --help and --header
|
---|
| 7764 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
| 7765 | Try \`$0 --help' for more information." >&5
|
---|
| 7766 | echo "$as_me: error: ambiguous option: $1
|
---|
| 7767 | Try \`$0 --help' for more information." >&2;}
|
---|
| 7768 | { (exit 1); exit 1; }; };;
|
---|
| 7769 | --help | --hel | -h )
|
---|
| 7770 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
| 7771 | --debug | --d* | -d )
|
---|
[8756] | 7772 | debug=: ;;
|
---|
| 7773 | --file | --fil | --fi | --f )
|
---|
| 7774 | $ac_shift
|
---|
| 7775 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
| 7776 | ac_need_defaults=false;;
|
---|
| 7777 | --header | --heade | --head | --hea )
|
---|
| 7778 | $ac_shift
|
---|
| 7779 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
| 7780 | ac_need_defaults=false;;
|
---|
| 7781 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 7782 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 7783 | ac_cs_silent=: ;;
|
---|
| 7784 |
|
---|
| 7785 | # This is an error.
|
---|
[20853] | 7786 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
| 7787 | Try \`$0 --help' for more information." >&5
|
---|
| 7788 | echo "$as_me: error: unrecognized option: $1
|
---|
| 7789 | Try \`$0 --help' for more information." >&2;}
|
---|
[8756] | 7790 | { (exit 1); exit 1; }; } ;;
|
---|
| 7791 |
|
---|
[20853] | 7792 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
[8756] | 7793 |
|
---|
| 7794 | esac
|
---|
| 7795 | shift
|
---|
[8200] | 7796 | done
|
---|
[8756] | 7797 |
|
---|
| 7798 | ac_configure_extra_args=
|
---|
| 7799 |
|
---|
| 7800 | if $ac_cs_silent; then
|
---|
| 7801 | exec 6>/dev/null
|
---|
| 7802 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
[8200] | 7803 | fi
|
---|
[562] | 7804 |
|
---|
[8756] | 7805 | _ACEOF
|
---|
| 7806 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7807 | if \$ac_cs_recheck; then
|
---|
[20853] | 7808 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 7809 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
[8756] | 7810 | fi
|
---|
[8200] | 7811 |
|
---|
[8756] | 7812 | _ACEOF
|
---|
| 7813 |
|
---|
| 7814 |
|
---|
[20853] | 7815 |
|
---|
| 7816 |
|
---|
| 7817 |
|
---|
[20842] | 7818 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8756] | 7819 | for ac_config_target in $ac_config_targets
|
---|
| 7820 | do
|
---|
[20853] | 7821 | case "$ac_config_target" in
|
---|
| 7822 | # Handling of arguments.
|
---|
| 7823 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 7824 | "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
| 7825 | "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
| 7826 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
[8756] | 7827 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 7828 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 7829 | { (exit 1); exit 1; }; };;
|
---|
[562] | 7830 | esac
|
---|
[8756] | 7831 | done
|
---|
[562] | 7832 |
|
---|
[8756] | 7833 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 7834 | # then the envvar interface is used. Set only those that are not.
|
---|
| 7835 | # We use the long form for the default assignment because of an extremely
|
---|
| 7836 | # bizarre bug on SunOS 4.1.3.
|
---|
| 7837 | if $ac_need_defaults; then
|
---|
| 7838 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 7839 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 7840 | fi
|
---|
[8200] | 7841 |
|
---|
[8756] | 7842 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
[20853] | 7843 | # simply because there is no reason to put it here, and in addition,
|
---|
[8756] | 7844 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[20853] | 7845 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
[8756] | 7846 | $debug ||
|
---|
| 7847 | {
|
---|
[20853] | 7848 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
[8756] | 7849 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
| 7850 | }
|
---|
[20853] | 7851 |
|
---|
[8756] | 7852 | # Create a (secure) tmp directory for tmp files.
|
---|
| 7853 |
|
---|
| 7854 | {
|
---|
[20853] | 7855 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
[8756] | 7856 | test -n "$tmp" && test -d "$tmp"
|
---|
| 7857 | } ||
|
---|
| 7858 | {
|
---|
[20853] | 7859 | tmp=./confstat$$-$RANDOM
|
---|
| 7860 | (umask 077 && mkdir $tmp)
|
---|
[8756] | 7861 | } ||
|
---|
| 7862 | {
|
---|
| 7863 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
| 7864 | { (exit 1); exit 1; }
|
---|
| 7865 | }
|
---|
| 7866 |
|
---|
[20853] | 7867 | _ACEOF
|
---|
| 7868 |
|
---|
| 7869 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7870 |
|
---|
[8756] | 7871 | #
|
---|
[20853] | 7872 | # CONFIG_FILES section.
|
---|
[8756] | 7873 | #
|
---|
| 7874 |
|
---|
| 7875 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 7876 | # This happens for instance when ./config.status config.h
|
---|
[20853] | 7877 | if test -n "\$CONFIG_FILES"; then
|
---|
| 7878 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 7879 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
| 7880 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
| 7881 | s,@SHELL@,$SHELL,;t t
|
---|
| 7882 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
| 7883 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
| 7884 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
| 7885 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
| 7886 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
| 7887 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
| 7888 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
| 7889 | s,@prefix@,$prefix,;t t
|
---|
| 7890 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
| 7891 | s,@bindir@,$bindir,;t t
|
---|
| 7892 | s,@sbindir@,$sbindir,;t t
|
---|
| 7893 | s,@libexecdir@,$libexecdir,;t t
|
---|
| 7894 | s,@datadir@,$datadir,;t t
|
---|
| 7895 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
| 7896 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
| 7897 | s,@localstatedir@,$localstatedir,;t t
|
---|
| 7898 | s,@libdir@,$libdir,;t t
|
---|
| 7899 | s,@includedir@,$includedir,;t t
|
---|
| 7900 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
| 7901 | s,@infodir@,$infodir,;t t
|
---|
| 7902 | s,@mandir@,$mandir,;t t
|
---|
| 7903 | s,@build_alias@,$build_alias,;t t
|
---|
| 7904 | s,@host_alias@,$host_alias,;t t
|
---|
| 7905 | s,@target_alias@,$target_alias,;t t
|
---|
| 7906 | s,@DEFS@,$DEFS,;t t
|
---|
| 7907 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
| 7908 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
| 7909 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
| 7910 | s,@LIBS@,$LIBS,;t t
|
---|
| 7911 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
| 7912 | s,@VERSION@,$VERSION,;t t
|
---|
| 7913 | s,@USE_FASTCGI@,$USE_FASTCGI,;t t
|
---|
| 7914 | s,@USE_LANGACTION@,$USE_LANGACTION,;t t
|
---|
| 7915 | s,@USE_CORBA@,$USE_CORBA,;t t
|
---|
| 7916 | s,@MICO_DIR@,$MICO_DIR,;t t
|
---|
| 7917 | s,@USE_Z3950@,$USE_Z3950,;t t
|
---|
| 7918 | s,@USE_YAZ@,$USE_YAZ,;t t
|
---|
| 7919 | s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
|
---|
| 7920 | s,@USE_SQLITE@,$USE_SQLITE,;t t
|
---|
| 7921 | s,@USE_APACHE_HTTPD@,$USE_APACHE_HTTPD,;t t
|
---|
[21330] | 7922 | s,@ENABLE_MG@,$ENABLE_MG,;t t
|
---|
| 7923 | s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t
|
---|
| 7924 | s,@ENABLE_LUCENE@,$ENABLE_LUCENE,;t t
|
---|
[20853] | 7925 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
| 7926 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
| 7927 | s,@CC@,$CC,;t t
|
---|
| 7928 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
| 7929 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
| 7930 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
| 7931 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
| 7932 | s,@CXX@,$CXX,;t t
|
---|
| 7933 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
| 7934 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
| 7935 | s,@AWK@,$AWK,;t t
|
---|
| 7936 | s,@YACC@,$YACC,;t t
|
---|
| 7937 | s,@build@,$build,;t t
|
---|
| 7938 | s,@build_cpu@,$build_cpu,;t t
|
---|
| 7939 | s,@build_vendor@,$build_vendor,;t t
|
---|
| 7940 | s,@build_os@,$build_os,;t t
|
---|
| 7941 | s,@host@,$host,;t t
|
---|
| 7942 | s,@host_cpu@,$host_cpu,;t t
|
---|
| 7943 | s,@host_vendor@,$host_vendor,;t t
|
---|
| 7944 | s,@host_os@,$host_os,;t t
|
---|
| 7945 | s,@target@,$target,;t t
|
---|
| 7946 | s,@target_cpu@,$target_cpu,;t t
|
---|
| 7947 | s,@target_vendor@,$target_vendor,;t t
|
---|
| 7948 | s,@target_os@,$target_os,;t t
|
---|
| 7949 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
| 7950 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
| 7951 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
| 7952 | s,@LN_S@,$LN_S,;t t
|
---|
| 7953 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
| 7954 | s,@RANLIB@,$RANLIB,;t t
|
---|
| 7955 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
| 7956 | s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
|
---|
| 7957 | s,@MICO_VER@,$MICO_VER,;t t
|
---|
| 7958 | s,@CPP@,$CPP,;t t
|
---|
| 7959 | s,@EGREP@,$EGREP,;t t
|
---|
| 7960 | s,@U@,$U,;t t
|
---|
| 7961 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
| 7962 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
| 7963 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
| 7964 | s,@STATIC@,$STATIC,;t t
|
---|
| 7965 | s,@gsdlos@,$gsdlos,;t t
|
---|
| 7966 | s,@MODULEDIRS@,$MODULEDIRS,;t t
|
---|
| 7967 | s,@subdirs@,$subdirs,;t t
|
---|
| 7968 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
| 7969 | CEOF
|
---|
[8756] | 7970 |
|
---|
| 7971 | _ACEOF
|
---|
| 7972 |
|
---|
[20853] | 7973 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7974 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 7975 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 7976 | ac_max_sed_lines=48
|
---|
| 7977 | ac_sed_frag=1 # Number of current file.
|
---|
| 7978 | ac_beg=1 # First line for current file.
|
---|
| 7979 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
| 7980 | ac_more_lines=:
|
---|
| 7981 | ac_sed_cmds=
|
---|
| 7982 | while $ac_more_lines; do
|
---|
| 7983 | if test $ac_beg -gt 1; then
|
---|
| 7984 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 7985 | else
|
---|
| 7986 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 7987 | fi
|
---|
| 7988 | if test ! -s $tmp/subs.frag; then
|
---|
| 7989 | ac_more_lines=false
|
---|
| 7990 | else
|
---|
| 7991 | # The purpose of the label and of the branching condition is to
|
---|
| 7992 | # speed up the sed processing (if there are no `@' at all, there
|
---|
| 7993 | # is no need to browse any of the substitutions).
|
---|
| 7994 | # These are the two extra sed commands mentioned above.
|
---|
| 7995 | (echo ':t
|
---|
| 7996 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
| 7997 | if test -z "$ac_sed_cmds"; then
|
---|
| 7998 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 7999 | else
|
---|
| 8000 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 8001 | fi
|
---|
| 8002 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
| 8003 | ac_beg=$ac_end
|
---|
| 8004 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
| 8005 | fi
|
---|
| 8006 | done
|
---|
| 8007 | if test -z "$ac_sed_cmds"; then
|
---|
| 8008 | ac_sed_cmds=cat
|
---|
[562] | 8009 | fi
|
---|
[20853] | 8010 | fi # test -n "$CONFIG_FILES"
|
---|
[562] | 8011 |
|
---|
[8756] | 8012 | _ACEOF
|
---|
| 8013 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[20853] | 8014 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
| 8015 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 8016 | case $ac_file in
|
---|
| 8017 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8018 | cat >$tmp/stdin
|
---|
| 8019 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8020 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8021 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8022 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8023 | * ) ac_file_in=$ac_file.in ;;
|
---|
[562] | 8024 | esac
|
---|
| 8025 |
|
---|
[20853] | 8026 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
| 8027 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
[8756] | 8028 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8029 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8030 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
[20853] | 8031 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8032 | . : '\(.\)' 2>/dev/null ||
|
---|
[8756] | 8033 | echo X"$ac_file" |
|
---|
[20853] | 8034 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8035 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8036 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8037 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8038 | s/.*/./; q'`
|
---|
| 8039 | { if $as_mkdir_p; then
|
---|
| 8040 | mkdir -p "$ac_dir"
|
---|
| 8041 | else
|
---|
| 8042 | as_dir="$ac_dir"
|
---|
[8756] | 8043 | as_dirs=
|
---|
[20853] | 8044 | while test ! -d "$as_dir"; do
|
---|
| 8045 | as_dirs="$as_dir $as_dirs"
|
---|
| 8046 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
[8756] | 8047 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8048 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8049 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
[20853] | 8050 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8051 | . : '\(.\)' 2>/dev/null ||
|
---|
[8756] | 8052 | echo X"$as_dir" |
|
---|
[20853] | 8053 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8054 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8055 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8056 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8057 | s/.*/./; q'`
|
---|
[8756] | 8058 | done
|
---|
[20853] | 8059 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8060 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8061 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
[8756] | 8062 | { (exit 1); exit 1; }; }; }
|
---|
[20853] | 8063 |
|
---|
[8756] | 8064 | ac_builddir=.
|
---|
| 8065 |
|
---|
[20853] | 8066 | if test "$ac_dir" != .; then
|
---|
[8756] | 8067 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
[20853] | 8068 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8069 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8070 | else
|
---|
| 8071 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8072 | fi
|
---|
[8756] | 8073 |
|
---|
| 8074 | case $srcdir in
|
---|
[20853] | 8075 | .) # No --srcdir option. We are building in place.
|
---|
[8756] | 8076 | ac_srcdir=.
|
---|
[20853] | 8077 | if test -z "$ac_top_builddir"; then
|
---|
| 8078 | ac_top_srcdir=.
|
---|
| 8079 | else
|
---|
| 8080 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8081 | fi ;;
|
---|
| 8082 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
[8756] | 8083 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[20853] | 8084 | ac_top_srcdir=$srcdir ;;
|
---|
| 8085 | *) # Relative path.
|
---|
| 8086 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8087 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
[8756] | 8088 | esac
|
---|
| 8089 |
|
---|
[20853] | 8090 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8091 | # the directories may not exist.
|
---|
| 8092 | case `pwd` in
|
---|
| 8093 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8094 | *)
|
---|
| 8095 | case "$ac_dir" in
|
---|
| 8096 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8097 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8098 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8099 | esac;;
|
---|
| 8100 | esac
|
---|
| 8101 | case $ac_abs_builddir in
|
---|
| 8102 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8103 | *)
|
---|
| 8104 | case ${ac_top_builddir}. in
|
---|
| 8105 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8106 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8107 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8108 | esac;;
|
---|
| 8109 | esac
|
---|
| 8110 | case $ac_abs_builddir in
|
---|
| 8111 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8112 | *)
|
---|
| 8113 | case $ac_srcdir in
|
---|
| 8114 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8115 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8116 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8117 | esac;;
|
---|
| 8118 | esac
|
---|
| 8119 | case $ac_abs_builddir in
|
---|
| 8120 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8121 | *)
|
---|
| 8122 | case $ac_top_srcdir in
|
---|
| 8123 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8124 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8125 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8126 | esac;;
|
---|
| 8127 | esac
|
---|
[8756] | 8128 |
|
---|
| 8129 |
|
---|
| 8130 | case $INSTALL in
|
---|
| 8131 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[20853] | 8132 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
[8200] | 8133 | esac
|
---|
[562] | 8134 |
|
---|
[20853] | 8135 | if test x"$ac_file" != x-; then
|
---|
| 8136 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8137 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8138 | rm -f "$ac_file"
|
---|
| 8139 | fi
|
---|
| 8140 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8141 | # use $as_me), people would be surprised to read:
|
---|
| 8142 | # /* config.h. Generated by config.status. */
|
---|
| 8143 | if test x"$ac_file" = x-; then
|
---|
| 8144 | configure_input=
|
---|
| 8145 | else
|
---|
| 8146 | configure_input="$ac_file. "
|
---|
| 8147 | fi
|
---|
| 8148 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
| 8149 | sed 's,.*/,,'` by configure."
|
---|
[562] | 8150 |
|
---|
[20853] | 8151 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8152 | # src tree.
|
---|
| 8153 | ac_file_inputs=`IFS=:
|
---|
| 8154 | for f in $ac_file_in; do
|
---|
| 8155 | case $f in
|
---|
| 8156 | -) echo $tmp/stdin ;;
|
---|
| 8157 | [\\/$]*)
|
---|
| 8158 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8159 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8160 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8161 | { (exit 1); exit 1; }; }
|
---|
| 8162 | echo "$f";;
|
---|
| 8163 | *) # Relative
|
---|
| 8164 | if test -f "$f"; then
|
---|
| 8165 | # Build tree
|
---|
| 8166 | echo "$f"
|
---|
| 8167 | elif test -f "$srcdir/$f"; then
|
---|
| 8168 | # Source tree
|
---|
| 8169 | echo "$srcdir/$f"
|
---|
| 8170 | else
|
---|
| 8171 | # /dev/null tree
|
---|
| 8172 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8173 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8174 | { (exit 1); exit 1; }; }
|
---|
| 8175 | fi;;
|
---|
| 8176 | esac
|
---|
| 8177 | done` || { (exit 1); exit 1; }
|
---|
[8756] | 8178 | _ACEOF
|
---|
| 8179 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8180 | sed "$ac_vpsub
|
---|
| 8181 | $extrasub
|
---|
| 8182 | _ACEOF
|
---|
| 8183 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8184 | :t
|
---|
| 8185 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
[20853] | 8186 | s,@configure_input@,$configure_input,;t t
|
---|
| 8187 | s,@srcdir@,$ac_srcdir,;t t
|
---|
| 8188 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
| 8189 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
| 8190 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
| 8191 | s,@builddir@,$ac_builddir,;t t
|
---|
| 8192 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
| 8193 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
| 8194 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
| 8195 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
| 8196 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
| 8197 | rm -f $tmp/stdin
|
---|
| 8198 | if test x"$ac_file" != x-; then
|
---|
| 8199 | mv $tmp/out $ac_file
|
---|
| 8200 | else
|
---|
| 8201 | cat $tmp/out
|
---|
| 8202 | rm -f $tmp/out
|
---|
| 8203 | fi
|
---|
[8756] | 8204 |
|
---|
[20853] | 8205 | done
|
---|
| 8206 | _ACEOF
|
---|
| 8207 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8756] | 8208 |
|
---|
[20853] | 8209 | #
|
---|
| 8210 | # CONFIG_HEADER section.
|
---|
| 8211 | #
|
---|
| 8212 |
|
---|
| 8213 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 8214 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 8215 | #
|
---|
| 8216 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
| 8217 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 8218 | ac_dB='[ ].*$,\1#\2'
|
---|
| 8219 | ac_dC=' '
|
---|
| 8220 | ac_dD=',;t'
|
---|
| 8221 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
| 8222 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 8223 | ac_uB='$,\1#\2define\3'
|
---|
| 8224 | ac_uC=' '
|
---|
| 8225 | ac_uD=',;t'
|
---|
| 8226 |
|
---|
| 8227 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
| 8228 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[8756] | 8229 | case $ac_file in
|
---|
[20853] | 8230 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8231 | cat >$tmp/stdin
|
---|
| 8232 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8233 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8234 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8235 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8236 | * ) ac_file_in=$ac_file.in ;;
|
---|
[687] | 8237 | esac
|
---|
[20853] | 8238 |
|
---|
| 8239 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8240 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8241 |
|
---|
| 8242 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8243 | # src tree.
|
---|
| 8244 | ac_file_inputs=`IFS=:
|
---|
| 8245 | for f in $ac_file_in; do
|
---|
| 8246 | case $f in
|
---|
| 8247 | -) echo $tmp/stdin ;;
|
---|
| 8248 | [\\/$]*)
|
---|
| 8249 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8250 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8251 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8252 | { (exit 1); exit 1; }; }
|
---|
| 8253 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
| 8254 | echo "$f";;
|
---|
| 8255 | *) # Relative
|
---|
| 8256 | if test -f "$f"; then
|
---|
| 8257 | # Build tree
|
---|
| 8258 | echo "$f"
|
---|
| 8259 | elif test -f "$srcdir/$f"; then
|
---|
| 8260 | # Source tree
|
---|
| 8261 | echo "$srcdir/$f"
|
---|
| 8262 | else
|
---|
| 8263 | # /dev/null tree
|
---|
| 8264 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8265 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8266 | { (exit 1); exit 1; }; }
|
---|
| 8267 | fi;;
|
---|
| 8268 | esac
|
---|
| 8269 | done` || { (exit 1); exit 1; }
|
---|
| 8270 | # Remove the trailing spaces.
|
---|
| 8271 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
| 8272 |
|
---|
[20842] | 8273 | _ACEOF
|
---|
[562] | 8274 |
|
---|
[20853] | 8275 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
| 8276 | # `conftest.undefs', that substitutes the proper values into
|
---|
| 8277 | # config.h.in to produce config.h. The first handles `#define'
|
---|
| 8278 | # templates, and the second `#undef' templates.
|
---|
| 8279 | # And first: Protect against being on the right side of a sed subst in
|
---|
| 8280 | # config.status. Protect against being in an unquoted here document
|
---|
| 8281 | # in config.status.
|
---|
| 8282 | rm -f conftest.defines conftest.undefs
|
---|
| 8283 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
| 8284 | # Putting comments in sed scripts is not portable.
|
---|
| 8285 | #
|
---|
| 8286 | # `end' is used to avoid that the second main sed command (meant for
|
---|
| 8287 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
| 8288 | # See the Autoconf documentation for `clear'.
|
---|
| 8289 | cat >confdef2sed.sed <<\_ACEOF
|
---|
| 8290 | s/[\\&,]/\\&/g
|
---|
| 8291 | s,[\\$`],\\&,g
|
---|
| 8292 | t clear
|
---|
| 8293 | : clear
|
---|
| 8294 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
| 8295 | t end
|
---|
| 8296 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
| 8297 | : end
|
---|
| 8298 | _ACEOF
|
---|
| 8299 | # If some macros were called several times there might be several times
|
---|
| 8300 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
| 8301 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
| 8302 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
| 8303 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
| 8304 | rm -f confdef2sed.sed
|
---|
[687] | 8305 |
|
---|
[20853] | 8306 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
[687] | 8307 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 8308 | # on some systems where configure will not decide to define it.
|
---|
[20853] | 8309 | cat >>conftest.undefs <<\_ACEOF
|
---|
| 8310 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
| 8311 | _ACEOF
|
---|
[687] | 8312 |
|
---|
[20853] | 8313 | # Break up conftest.defines because some shells have a limit on the size
|
---|
| 8314 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8315 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
| 8316 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
| 8317 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
| 8318 | echo ' :' >>$CONFIG_STATUS
|
---|
| 8319 | rm -f conftest.tail
|
---|
| 8320 | while grep . conftest.defines >/dev/null
|
---|
[8756] | 8321 | do
|
---|
[20853] | 8322 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
| 8323 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8324 | # Speed up: don't consider the non `#define' lines.
|
---|
| 8325 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
| 8326 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8327 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8328 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8329 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
[8756] | 8330 | echo 'CEOF
|
---|
[20853] | 8331 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
| 8332 | rm -f $tmp/in
|
---|
| 8333 | mv $tmp/out $tmp/in
|
---|
| 8334 | ' >>$CONFIG_STATUS
|
---|
| 8335 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
[8756] | 8336 | rm -f conftest.defines
|
---|
| 8337 | mv conftest.tail conftest.defines
|
---|
| 8338 | done
|
---|
[20853] | 8339 | rm -f conftest.defines
|
---|
| 8340 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
| 8341 | echo >>$CONFIG_STATUS
|
---|
[687] | 8342 |
|
---|
[20853] | 8343 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
| 8344 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8345 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
| 8346 | rm -f conftest.tail
|
---|
| 8347 | while grep . conftest.undefs >/dev/null
|
---|
| 8348 | do
|
---|
| 8349 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
| 8350 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8351 | # Speed up: don't consider the non `#undef'
|
---|
| 8352 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
| 8353 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8354 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8355 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8356 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
| 8357 | echo 'CEOF
|
---|
| 8358 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
| 8359 | rm -f $tmp/in
|
---|
| 8360 | mv $tmp/out $tmp/in
|
---|
| 8361 | ' >>$CONFIG_STATUS
|
---|
| 8362 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
| 8363 | rm -f conftest.undefs
|
---|
| 8364 | mv conftest.tail conftest.undefs
|
---|
| 8365 | done
|
---|
| 8366 | rm -f conftest.undefs
|
---|
| 8367 |
|
---|
[8756] | 8368 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[20853] | 8369 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8370 | # use $as_me), people would be surprised to read:
|
---|
| 8371 | # /* config.h. Generated by config.status. */
|
---|
| 8372 | if test x"$ac_file" = x-; then
|
---|
| 8373 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
| 8374 | else
|
---|
| 8375 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
| 8376 | fi
|
---|
| 8377 | cat $tmp/in >>$tmp/config.h
|
---|
| 8378 | rm -f $tmp/in
|
---|
[8756] | 8379 | if test x"$ac_file" != x-; then
|
---|
[20853] | 8380 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
[8756] | 8381 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
| 8382 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
| 8383 | else
|
---|
[20853] | 8384 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8385 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8386 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8387 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8388 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8389 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8390 | echo X"$ac_file" |
|
---|
| 8391 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8392 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8393 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8394 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8395 | s/.*/./; q'`
|
---|
| 8396 | { if $as_mkdir_p; then
|
---|
| 8397 | mkdir -p "$ac_dir"
|
---|
| 8398 | else
|
---|
| 8399 | as_dir="$ac_dir"
|
---|
| 8400 | as_dirs=
|
---|
| 8401 | while test ! -d "$as_dir"; do
|
---|
| 8402 | as_dirs="$as_dir $as_dirs"
|
---|
| 8403 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8404 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8405 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8406 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8407 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8408 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8409 | echo X"$as_dir" |
|
---|
| 8410 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8411 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8412 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8413 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8414 | s/.*/./; q'`
|
---|
| 8415 | done
|
---|
| 8416 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8417 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8418 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8419 | { (exit 1); exit 1; }; }; }
|
---|
| 8420 |
|
---|
[8756] | 8421 | rm -f $ac_file
|
---|
[20853] | 8422 | mv $tmp/config.h $ac_file
|
---|
[687] | 8423 | fi
|
---|
[8756] | 8424 | else
|
---|
[20853] | 8425 | cat $tmp/config.h
|
---|
| 8426 | rm -f $tmp/config.h
|
---|
[687] | 8427 | fi
|
---|
[20853] | 8428 | done
|
---|
| 8429 | _ACEOF
|
---|
[8200] | 8430 |
|
---|
[20853] | 8431 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[687] | 8432 |
|
---|
[8756] | 8433 | { (exit 0); exit 0; }
|
---|
| 8434 | _ACEOF
|
---|
[562] | 8435 | chmod +x $CONFIG_STATUS
|
---|
[8756] | 8436 | ac_clean_files=$ac_clean_files_save
|
---|
[562] | 8437 |
|
---|
[8756] | 8438 |
|
---|
| 8439 | # configure is writing to config.log, and then calls config.status.
|
---|
| 8440 | # config.status does its own redirection, appending to config.log.
|
---|
| 8441 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 8442 | # by configure, so config.status won't be able to write to it; its
|
---|
| 8443 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 8444 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 8445 | # appended to by config.status. When coming back to configure, we
|
---|
| 8446 | # need to make the FD available again.
|
---|
| 8447 | if test "$no_create" != yes; then
|
---|
| 8448 | ac_cs_success=:
|
---|
| 8449 | ac_config_status_args=
|
---|
| 8450 | test "$silent" = yes &&
|
---|
| 8451 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
| 8452 | exec 5>/dev/null
|
---|
| 8453 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
| 8454 | exec 5>>config.log
|
---|
| 8455 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 8456 | # would make configure fail if this is the last instruction.
|
---|
| 8457 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
| 8458 | fi
|
---|
| 8459 |
|
---|
| 8460 | #
|
---|
| 8461 | # CONFIG_SUBDIRS section.
|
---|
| 8462 | #
|
---|
[1675] | 8463 | if test "$no_recursion" != yes; then
|
---|
[562] | 8464 |
|
---|
[1675] | 8465 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
| 8466 | ac_sub_configure_args=
|
---|
| 8467 | ac_prev=
|
---|
[20853] | 8468 | for ac_arg in $ac_configure_args; do
|
---|
[1675] | 8469 | if test -n "$ac_prev"; then
|
---|
| 8470 | ac_prev=
|
---|
| 8471 | continue
|
---|
| 8472 | fi
|
---|
[8756] | 8473 | case $ac_arg in
|
---|
[1675] | 8474 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 8475 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 8476 | ac_prev=cache_file ;;
|
---|
| 8477 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
[8756] | 8478 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
| 8479 | | --c=*)
|
---|
[1675] | 8480 | ;;
|
---|
[8756] | 8481 | --config-cache | -C)
|
---|
| 8482 | ;;
|
---|
[1675] | 8483 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 8484 | ac_prev=srcdir ;;
|
---|
| 8485 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 8486 | ;;
|
---|
[8756] | 8487 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 8488 | ac_prev=prefix ;;
|
---|
| 8489 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 8490 | ;;
|
---|
[20853] | 8491 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
[1675] | 8492 | esac
|
---|
| 8493 | done
|
---|
[562] | 8494 |
|
---|
[8756] | 8495 | # Always prepend --prefix to ensure using the same prefix
|
---|
| 8496 | # in subdir configurations.
|
---|
[20853] | 8497 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
[1570] | 8498 |
|
---|
[8756] | 8499 | ac_popdir=`pwd`
|
---|
| 8500 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
| 8501 |
|
---|
[1675] | 8502 | # Do not complain, so a configure script can configure whichever
|
---|
| 8503 | # parts of a large source tree are present.
|
---|
[20853] | 8504 | test -d $srcdir/$ac_dir || continue
|
---|
[1675] | 8505 |
|
---|
[20853] | 8506 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
| 8507 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
| 8508 | { if $as_mkdir_p; then
|
---|
| 8509 | mkdir -p "$ac_dir"
|
---|
| 8510 | else
|
---|
| 8511 | as_dir="$ac_dir"
|
---|
[8756] | 8512 | as_dirs=
|
---|
[20853] | 8513 | while test ! -d "$as_dir"; do
|
---|
| 8514 | as_dirs="$as_dir $as_dirs"
|
---|
| 8515 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
[8756] | 8516 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8517 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8518 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
[20853] | 8519 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8520 | . : '\(.\)' 2>/dev/null ||
|
---|
[8756] | 8521 | echo X"$as_dir" |
|
---|
[20853] | 8522 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8523 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8524 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8525 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8526 | s/.*/./; q'`
|
---|
[8756] | 8527 | done
|
---|
[20853] | 8528 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8529 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8530 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
[8756] | 8531 | { (exit 1); exit 1; }; }; }
|
---|
[20853] | 8532 |
|
---|
[8756] | 8533 | ac_builddir=.
|
---|
[1675] | 8534 |
|
---|
[20853] | 8535 | if test "$ac_dir" != .; then
|
---|
[8756] | 8536 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
[20853] | 8537 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8538 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8539 | else
|
---|
| 8540 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8541 | fi
|
---|
[1675] | 8542 |
|
---|
[8756] | 8543 | case $srcdir in
|
---|
[20853] | 8544 | .) # No --srcdir option. We are building in place.
|
---|
[8756] | 8545 | ac_srcdir=.
|
---|
[20853] | 8546 | if test -z "$ac_top_builddir"; then
|
---|
| 8547 | ac_top_srcdir=.
|
---|
| 8548 | else
|
---|
| 8549 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8550 | fi ;;
|
---|
| 8551 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
[8756] | 8552 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[20853] | 8553 | ac_top_srcdir=$srcdir ;;
|
---|
| 8554 | *) # Relative path.
|
---|
| 8555 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8556 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
[8756] | 8557 | esac
|
---|
[1675] | 8558 |
|
---|
[20853] | 8559 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8560 | # the directories may not exist.
|
---|
| 8561 | case `pwd` in
|
---|
| 8562 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8563 | *)
|
---|
| 8564 | case "$ac_dir" in
|
---|
| 8565 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8566 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8567 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8568 | esac;;
|
---|
| 8569 | esac
|
---|
| 8570 | case $ac_abs_builddir in
|
---|
| 8571 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8572 | *)
|
---|
| 8573 | case ${ac_top_builddir}. in
|
---|
| 8574 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8575 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8576 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8577 | esac;;
|
---|
| 8578 | esac
|
---|
| 8579 | case $ac_abs_builddir in
|
---|
| 8580 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8581 | *)
|
---|
| 8582 | case $ac_srcdir in
|
---|
| 8583 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8584 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8585 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8586 | esac;;
|
---|
| 8587 | esac
|
---|
| 8588 | case $ac_abs_builddir in
|
---|
| 8589 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8590 | *)
|
---|
| 8591 | case $ac_top_srcdir in
|
---|
| 8592 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8593 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8594 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8595 | esac;;
|
---|
| 8596 | esac
|
---|
[1675] | 8597 |
|
---|
[8756] | 8598 |
|
---|
[20853] | 8599 | cd $ac_dir
|
---|
| 8600 |
|
---|
[1675] | 8601 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[20853] | 8602 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 8603 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
| 8604 | elif test -f $ac_srcdir/configure; then
|
---|
| 8605 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
| 8606 | elif test -f $ac_srcdir/configure.in; then
|
---|
| 8607 | ac_sub_configure=$ac_configure
|
---|
[1675] | 8608 | else
|
---|
[8756] | 8609 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
| 8610 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
[1675] | 8611 | ac_sub_configure=
|
---|
| 8612 | fi
|
---|
| 8613 |
|
---|
| 8614 | # The recursion is here.
|
---|
| 8615 | if test -n "$ac_sub_configure"; then
|
---|
| 8616 | # Make the cache file name correct relative to the subdirectory.
|
---|
[8756] | 8617 | case $cache_file in
|
---|
| 8618 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
[20853] | 8619 | *) # Relative path.
|
---|
| 8620 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
[1675] | 8621 | esac
|
---|
| 8622 |
|
---|
[20853] | 8623 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
| 8624 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
[1675] | 8625 | # The eval makes quoting arguments work.
|
---|
[20853] | 8626 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
| 8627 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
[8756] | 8628 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
| 8629 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
| 8630 | { (exit 1); exit 1; }; }
|
---|
[1675] | 8631 | fi
|
---|
| 8632 |
|
---|
[20853] | 8633 | cd $ac_popdir
|
---|
[1675] | 8634 | done
|
---|
| 8635 | fi
|
---|
| 8636 |
|
---|
[8200] | 8637 |
|
---|
| 8638 |
|
---|