[16568] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
| 3 | # Generated by GNU Autoconf 2.59.
|
---|
| 4 | #
|
---|
| 5 | # Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
| 6 | # This configure script is free software; the Free Software Foundation
|
---|
| 7 | # gives unlimited permission to copy, distribute and modify it.
|
---|
| 8 | ## --------------------- ##
|
---|
| 9 | ## M4sh Initialization. ##
|
---|
| 10 | ## --------------------- ##
|
---|
| 11 |
|
---|
| 12 | # Be Bourne compatible
|
---|
| 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+"$@"}'='"$@"'
|
---|
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 20 | set -o posix
|
---|
| 21 | fi
|
---|
| 22 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 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.
|
---|
| 33 | $as_unset ENV MAIL MAILPATH
|
---|
| 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
|
---|
| 47 | $as_unset $as_var
|
---|
| 48 | fi
|
---|
| 49 | done
|
---|
| 50 |
|
---|
| 51 | # Required to use basename.
|
---|
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 53 | as_expr=expr
|
---|
| 54 | else
|
---|
| 55 | as_expr=false
|
---|
| 56 | fi
|
---|
| 57 |
|
---|
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
| 59 | as_basename=basename
|
---|
| 60 | else
|
---|
| 61 | as_basename=false
|
---|
| 62 | fi
|
---|
| 63 |
|
---|
| 64 |
|
---|
| 65 | # Name of the executable.
|
---|
| 66 | as_me=`$as_basename "$0" ||
|
---|
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 68 | X"$0" : 'X\(//\)$' \| \
|
---|
| 69 | X"$0" : 'X\(/\)$' \| \
|
---|
| 70 | . : '\(.\)' 2>/dev/null ||
|
---|
| 71 | echo X/"$0" |
|
---|
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 74 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 75 | s/.*/./; q'`
|
---|
| 76 |
|
---|
| 77 |
|
---|
| 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
|
---|
| 85 |
|
---|
| 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
|
---|
| 97 | fi
|
---|
| 98 |
|
---|
| 99 |
|
---|
| 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
|
---|
| 116 |
|
---|
| 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 | '')
|
---|
| 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=.
|
---|
| 135 | for as_base in sh bash ksh sh5; do
|
---|
| 136 | case $as_dir in
|
---|
| 137 | /*)
|
---|
| 138 | if ("$as_dir/$as_base" -c '
|
---|
| 139 | as_lineno_1=$LINENO
|
---|
| 140 | as_lineno_2=$LINENO
|
---|
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 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
|
---|
| 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
|
---|
| 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.
|
---|
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 164 | sed '=' <$as_myself |
|
---|
| 165 | sed '
|
---|
| 166 | N
|
---|
| 167 | s,$,-,
|
---|
| 168 | : loop
|
---|
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 170 | t loop
|
---|
| 171 | s,-$,,
|
---|
| 172 | s,^['$as_cr_digits']*\n,,
|
---|
| 173 | ' >$as_me.lineno &&
|
---|
| 174 | chmod +x $as_me.lineno ||
|
---|
| 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
|
---|
| 180 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 181 | . ./$as_me.lineno
|
---|
| 182 | # Exit status is that of the last command.
|
---|
| 183 | exit
|
---|
| 184 | }
|
---|
| 185 |
|
---|
| 186 |
|
---|
| 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= ;;
|
---|
| 192 | esac
|
---|
| 193 |
|
---|
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 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
|
---|
| 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
|
---|
| 207 | as_ln_s='cp -p'
|
---|
| 208 | else
|
---|
| 209 | as_ln_s='ln -s'
|
---|
| 210 | fi
|
---|
| 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
|
---|
| 216 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 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 |
|
---|
| 225 | as_executable_p="test -f"
|
---|
| 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 |
|
---|
| 234 | # IFS
|
---|
| 235 | # We need space, tab and new line, in precisely that order.
|
---|
| 236 | as_nl='
|
---|
| 237 | '
|
---|
| 238 | IFS=" $as_nl"
|
---|
| 239 |
|
---|
| 240 | # CDPATH.
|
---|
| 241 | $as_unset CDPATH
|
---|
| 242 |
|
---|
| 243 |
|
---|
| 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 |
|
---|
| 249 | exec 6>&1
|
---|
| 250 |
|
---|
| 251 | #
|
---|
| 252 | # Initializations.
|
---|
| 253 | #
|
---|
| 254 | ac_default_prefix=/usr/local
|
---|
| 255 | ac_config_libobj_dir=.
|
---|
| 256 | cross_compiling=no
|
---|
| 257 | subdirs=
|
---|
| 258 | MFLAGS=
|
---|
| 259 | MAKEFLAGS=
|
---|
| 260 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
| 261 |
|
---|
| 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 |
|
---|
| 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>
|
---|
| 277 | #if HAVE_SYS_TYPES_H
|
---|
| 278 | # include <sys/types.h>
|
---|
| 279 | #endif
|
---|
| 280 | #if HAVE_SYS_STAT_H
|
---|
| 281 | # include <sys/stat.h>
|
---|
| 282 | #endif
|
---|
| 283 | #if STDC_HEADERS
|
---|
| 284 | # include <stdlib.h>
|
---|
| 285 | # include <stddef.h>
|
---|
| 286 | #else
|
---|
| 287 | # if HAVE_STDLIB_H
|
---|
| 288 | # include <stdlib.h>
|
---|
| 289 | # endif
|
---|
| 290 | #endif
|
---|
| 291 | #if HAVE_STRING_H
|
---|
| 292 | # if !STDC_HEADERS && HAVE_MEMORY_H
|
---|
| 293 | # include <memory.h>
|
---|
| 294 | # endif
|
---|
| 295 | # include <string.h>
|
---|
| 296 | #endif
|
---|
| 297 | #if HAVE_STRINGS_H
|
---|
| 298 | # include <strings.h>
|
---|
| 299 | #endif
|
---|
| 300 | #if HAVE_INTTYPES_H
|
---|
| 301 | # include <inttypes.h>
|
---|
| 302 | #else
|
---|
| 303 | # if HAVE_STDINT_H
|
---|
| 304 | # include <stdint.h>
|
---|
| 305 | # endif
|
---|
| 306 | #endif
|
---|
| 307 | #if HAVE_UNISTD_H
|
---|
| 308 | # include <unistd.h>
|
---|
| 309 | #endif"
|
---|
| 310 |
|
---|
| 311 | ac_subdirs_all="$ac_subdirs_all packages"
|
---|
[18487] | 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 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'
|
---|
[16568] | 313 | ac_subst_files=''
|
---|
| 314 |
|
---|
| 315 | # Initialize some variables set by options.
|
---|
| 316 | ac_init_help=
|
---|
| 317 | ac_init_version=false
|
---|
| 318 | # The variables have the same names as the options, with
|
---|
| 319 | # dashes changed to underlines.
|
---|
| 320 | cache_file=/dev/null
|
---|
| 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
|
---|
| 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.
|
---|
| 340 | bindir='${exec_prefix}/bin'
|
---|
| 341 | sbindir='${exec_prefix}/sbin'
|
---|
| 342 | libexecdir='${exec_prefix}/libexec'
|
---|
| 343 | datadir='${prefix}/share'
|
---|
| 344 | sysconfdir='${prefix}/etc'
|
---|
| 345 | sharedstatedir='${prefix}/com'
|
---|
| 346 | localstatedir='${prefix}/var'
|
---|
| 347 | libdir='${exec_prefix}/lib'
|
---|
| 348 | includedir='${prefix}/include'
|
---|
| 349 | oldincludedir='/usr/include'
|
---|
| 350 | infodir='${prefix}/info'
|
---|
| 351 | mandir='${prefix}/man'
|
---|
| 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
|
---|
| 358 | eval "$ac_prev=\$ac_option"
|
---|
| 359 | ac_prev=
|
---|
| 360 | continue
|
---|
| 361 | fi
|
---|
| 362 |
|
---|
| 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
| 364 |
|
---|
| 365 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 366 |
|
---|
| 367 | case $ac_option in
|
---|
| 368 |
|
---|
| 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 370 | ac_prev=bindir ;;
|
---|
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
| 372 | bindir=$ac_optarg ;;
|
---|
| 373 |
|
---|
| 374 | -build | --build | --buil | --bui | --bu)
|
---|
| 375 | ac_prev=build_alias ;;
|
---|
| 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
| 377 | build_alias=$ac_optarg ;;
|
---|
| 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=*)
|
---|
| 384 | cache_file=$ac_optarg ;;
|
---|
| 385 |
|
---|
| 386 | --config-cache | -C)
|
---|
| 387 | cache_file=config.cache ;;
|
---|
| 388 |
|
---|
| 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
| 390 | ac_prev=datadir ;;
|
---|
| 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
| 392 | | --da=*)
|
---|
| 393 | datadir=$ac_optarg ;;
|
---|
| 394 |
|
---|
| 395 | -disable-* | --disable-*)
|
---|
| 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
| 397 | # Reject names that are not valid shell variable names.
|
---|
| 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 400 | { (exit 1); exit 1; }; }
|
---|
| 401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 402 | eval "enable_$ac_feature=no" ;;
|
---|
| 403 |
|
---|
| 404 | -enable-* | --enable-*)
|
---|
| 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
| 406 | # Reject names that are not valid shell variable names.
|
---|
| 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 409 | { (exit 1); exit 1; }; }
|
---|
| 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'" ;;
|
---|
| 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=*)
|
---|
| 424 | exec_prefix=$ac_optarg ;;
|
---|
| 425 |
|
---|
| 426 | -gas | --gas | --ga | --g)
|
---|
| 427 | # Obsolete; use --with-gas.
|
---|
| 428 | with_gas=yes ;;
|
---|
| 429 |
|
---|
| 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 ;;
|
---|
| 436 |
|
---|
| 437 | -host | --host | --hos | --ho)
|
---|
| 438 | ac_prev=host_alias ;;
|
---|
| 439 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
| 440 | host_alias=$ac_optarg ;;
|
---|
| 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=*)
|
---|
| 447 | includedir=$ac_optarg ;;
|
---|
| 448 |
|
---|
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 450 | ac_prev=infodir ;;
|
---|
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
| 452 | infodir=$ac_optarg ;;
|
---|
| 453 |
|
---|
| 454 | -libdir | --libdir | --libdi | --libd)
|
---|
| 455 | ac_prev=libdir ;;
|
---|
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
| 457 | libdir=$ac_optarg ;;
|
---|
| 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=*)
|
---|
| 464 | libexecdir=$ac_optarg ;;
|
---|
| 465 |
|
---|
| 466 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
| 467 | | --localstate | --localstat | --localsta | --localst \
|
---|
| 468 | | --locals | --local | --loca | --loc | --lo)
|
---|
| 469 | ac_prev=localstatedir ;;
|
---|
| 470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
| 471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
| 472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
| 473 | localstatedir=$ac_optarg ;;
|
---|
| 474 |
|
---|
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 476 | ac_prev=mandir ;;
|
---|
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
| 478 | mandir=$ac_optarg ;;
|
---|
| 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 \
|
---|
| 485 | | --no-cr | --no-c | -n)
|
---|
| 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=*)
|
---|
| 499 | oldincludedir=$ac_optarg ;;
|
---|
| 500 |
|
---|
| 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 502 | ac_prev=prefix ;;
|
---|
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 504 | prefix=$ac_optarg ;;
|
---|
| 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=*)
|
---|
| 511 | program_prefix=$ac_optarg ;;
|
---|
| 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=*)
|
---|
| 518 | program_suffix=$ac_optarg ;;
|
---|
| 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=*)
|
---|
| 535 | program_transform_name=$ac_optarg ;;
|
---|
| 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=*)
|
---|
| 545 | sbindir=$ac_optarg ;;
|
---|
| 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=*)
|
---|
| 556 | sharedstatedir=$ac_optarg ;;
|
---|
| 557 |
|
---|
| 558 | -site | --site | --sit)
|
---|
| 559 | ac_prev=site ;;
|
---|
| 560 | -site=* | --site=* | --sit=*)
|
---|
| 561 | site=$ac_optarg ;;
|
---|
| 562 |
|
---|
| 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 564 | ac_prev=srcdir ;;
|
---|
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 566 | srcdir=$ac_optarg ;;
|
---|
| 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=*)
|
---|
| 573 | sysconfdir=$ac_optarg ;;
|
---|
| 574 |
|
---|
| 575 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
| 576 | ac_prev=target_alias ;;
|
---|
| 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
| 578 | target_alias=$ac_optarg ;;
|
---|
| 579 |
|
---|
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 581 | verbose=yes ;;
|
---|
| 582 |
|
---|
| 583 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 584 | ac_init_version=: ;;
|
---|
| 585 |
|
---|
| 586 | -with-* | --with-*)
|
---|
| 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
| 588 | # Reject names that are not valid shell variable names.
|
---|
| 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 590 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 591 | { (exit 1); exit 1; }; }
|
---|
| 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'" ;;
|
---|
| 598 |
|
---|
| 599 | -without-* | --without-*)
|
---|
| 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
| 601 | # Reject names that are not valid shell variable names.
|
---|
| 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 603 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 604 | { (exit 1); exit 1; }; }
|
---|
| 605 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
| 606 | eval "with_$ac_package=no" ;;
|
---|
| 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=*)
|
---|
| 617 | x_includes=$ac_optarg ;;
|
---|
| 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=*)
|
---|
| 624 | x_libraries=$ac_optarg ;;
|
---|
| 625 |
|
---|
| 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
| 627 | Try \`$0 --help' for more information." >&2
|
---|
| 628 | { (exit 1); exit 1; }; }
|
---|
| 629 | ;;
|
---|
| 630 |
|
---|
| 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; }; }
|
---|
| 637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
| 638 | eval "$ac_envvar='$ac_optarg'"
|
---|
| 639 | export $ac_envvar ;;
|
---|
| 640 |
|
---|
| 641 | *)
|
---|
| 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}
|
---|
| 647 | ;;
|
---|
| 648 |
|
---|
| 649 | esac
|
---|
| 650 | done
|
---|
| 651 |
|
---|
| 652 | if test -n "$ac_prev"; then
|
---|
| 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; }; }
|
---|
| 656 | fi
|
---|
| 657 |
|
---|
| 658 | # Be sure to have absolute paths.
|
---|
| 659 | for ac_var in exec_prefix prefix
|
---|
| 660 | do
|
---|
| 661 | eval ac_val=$`echo $ac_var`
|
---|
| 662 | case $ac_val in
|
---|
| 663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
| 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 665 | { (exit 1); exit 1; }; };;
|
---|
| 666 | esac
|
---|
| 667 | done
|
---|
| 668 |
|
---|
| 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 |
|
---|
| 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
|
---|
| 687 |
|
---|
| 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
|
---|
| 698 |
|
---|
| 699 | ac_tool_prefix=
|
---|
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
| 701 |
|
---|
| 702 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 703 |
|
---|
| 704 |
|
---|
| 705 | # Find the source files, if location was not specified.
|
---|
| 706 | if test -z "$srcdir"; then
|
---|
| 707 | ac_srcdir_defaulted=yes
|
---|
| 708 | # Try the directory containing this script, then its parent.
|
---|
| 709 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
| 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 711 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
| 712 | X"$0" : 'X\(//\)$' \| \
|
---|
| 713 | X"$0" : 'X\(/\)' \| \
|
---|
| 714 | . : '\(.\)' 2>/dev/null ||
|
---|
| 715 | echo X"$0" |
|
---|
| 716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 718 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 719 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 720 | s/.*/./; q'`
|
---|
| 721 | srcdir=$ac_confdir
|
---|
| 722 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 723 | srcdir=..
|
---|
| 724 | fi
|
---|
| 725 | else
|
---|
| 726 | ac_srcdir_defaulted=no
|
---|
| 727 | fi
|
---|
| 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
|
---|
| 731 | { (exit 1); exit 1; }; }
|
---|
| 732 | else
|
---|
| 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
| 734 | { (exit 1); exit 1; }; }
|
---|
| 735 | fi
|
---|
| 736 | fi
|
---|
| 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
|
---|
| 739 | { (exit 1); exit 1; }; }
|
---|
| 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
|
---|
| 781 |
|
---|
| 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 |
|
---|
| 809 | _ACEOF
|
---|
| 810 |
|
---|
| 811 | cat <<_ACEOF
|
---|
| 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]
|
---|
| 829 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
| 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]
|
---|
| 836 | --infodir=DIR info documentation [PREFIX/info]
|
---|
| 837 | --mandir=DIR man documentation [PREFIX/man]
|
---|
| 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
|
---|
| 858 | --disable-yaz Disable YAZ compilation
|
---|
| 859 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
| 860 | --disable-sqlite Disable SQLite support
|
---|
[18487] | 861 | --enable-apache-httpd Enable Apache httpd support
|
---|
[16568] | 862 |
|
---|
| 863 | Optional Packages:
|
---|
| 864 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 865 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 866 | --with-micodir Use installed MICO directory
|
---|
| 867 | --with-dmalloc use dmalloc, as in
|
---|
| 868 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 869 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 870 |
|
---|
| 871 | Some influential environment variables:
|
---|
| 872 | CC C compiler command
|
---|
| 873 | CFLAGS C compiler flags
|
---|
| 874 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 875 | nonstandard directory <lib dir>
|
---|
| 876 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
| 877 | headers in a nonstandard directory <include dir>
|
---|
| 878 | CXX C++ compiler command
|
---|
| 879 | CXXFLAGS C++ compiler flags
|
---|
| 880 | CPP C preprocessor
|
---|
| 881 |
|
---|
| 882 | Use these variables to override the choices made by `configure' or to help
|
---|
| 883 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 884 |
|
---|
| 885 | _ACEOF
|
---|
| 886 | fi
|
---|
| 887 |
|
---|
| 888 | if test "$ac_init_help" = "recursive"; then
|
---|
| 889 | # If there are subdirs, report their specific --help.
|
---|
| 890 | ac_popdir=`pwd`
|
---|
| 891 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
| 892 | test -d $ac_dir || continue
|
---|
| 893 | ac_builddir=.
|
---|
| 894 |
|
---|
| 895 | if test "$ac_dir" != .; then
|
---|
| 896 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 897 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 898 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 899 | else
|
---|
| 900 | ac_dir_suffix= ac_top_builddir=
|
---|
| 901 | fi
|
---|
| 902 |
|
---|
| 903 | case $srcdir in
|
---|
| 904 | .) # No --srcdir option. We are building in place.
|
---|
| 905 | ac_srcdir=.
|
---|
| 906 | if test -z "$ac_top_builddir"; then
|
---|
| 907 | ac_top_srcdir=.
|
---|
| 908 | else
|
---|
| 909 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 910 | fi ;;
|
---|
| 911 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 912 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 913 | ac_top_srcdir=$srcdir ;;
|
---|
| 914 | *) # Relative path.
|
---|
| 915 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 916 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 917 | esac
|
---|
| 918 |
|
---|
| 919 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 920 | # the directories may not exist.
|
---|
| 921 | case `pwd` in
|
---|
| 922 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 923 | *)
|
---|
| 924 | case "$ac_dir" in
|
---|
| 925 | .) ac_abs_builddir=`pwd`;;
|
---|
| 926 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 927 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 928 | esac;;
|
---|
| 929 | esac
|
---|
| 930 | case $ac_abs_builddir in
|
---|
| 931 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 932 | *)
|
---|
| 933 | case ${ac_top_builddir}. in
|
---|
| 934 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 935 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 936 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 937 | esac;;
|
---|
| 938 | esac
|
---|
| 939 | case $ac_abs_builddir in
|
---|
| 940 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 941 | *)
|
---|
| 942 | case $ac_srcdir in
|
---|
| 943 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 944 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 945 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 946 | esac;;
|
---|
| 947 | esac
|
---|
| 948 | case $ac_abs_builddir in
|
---|
| 949 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 950 | *)
|
---|
| 951 | case $ac_top_srcdir in
|
---|
| 952 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 953 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 954 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 955 | esac;;
|
---|
| 956 | esac
|
---|
| 957 |
|
---|
| 958 | cd $ac_dir
|
---|
| 959 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
| 960 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 961 | echo
|
---|
| 962 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
| 963 | elif test -f $ac_srcdir/configure; then
|
---|
| 964 | echo
|
---|
| 965 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
| 966 | elif test -f $ac_srcdir/configure.ac ||
|
---|
| 967 | test -f $ac_srcdir/configure.in; then
|
---|
| 968 | echo
|
---|
| 969 | $ac_configure --help
|
---|
| 970 | else
|
---|
| 971 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
| 972 | fi
|
---|
| 973 | cd $ac_popdir
|
---|
| 974 | done
|
---|
| 975 | fi
|
---|
| 976 |
|
---|
| 977 | test -n "$ac_init_help" && exit 0
|
---|
| 978 | if $ac_init_version; then
|
---|
| 979 | cat <<\_ACEOF
|
---|
| 980 |
|
---|
| 981 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
| 982 | This configure script is free software; the Free Software Foundation
|
---|
| 983 | gives unlimited permission to copy, distribute and modify it.
|
---|
| 984 | _ACEOF
|
---|
| 985 | exit 0
|
---|
| 986 | fi
|
---|
| 987 | exec 5>config.log
|
---|
| 988 | cat >&5 <<_ACEOF
|
---|
| 989 | This file contains any messages produced by compilers while
|
---|
| 990 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 991 |
|
---|
| 992 | It was created by $as_me, which was
|
---|
| 993 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
| 994 |
|
---|
| 995 | $ $0 $@
|
---|
| 996 |
|
---|
| 997 | _ACEOF
|
---|
| 998 | {
|
---|
| 999 | cat <<_ASUNAME
|
---|
| 1000 | ## --------- ##
|
---|
| 1001 | ## Platform. ##
|
---|
| 1002 | ## --------- ##
|
---|
| 1003 |
|
---|
| 1004 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1005 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1006 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1007 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1008 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1009 |
|
---|
| 1010 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1011 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1012 |
|
---|
| 1013 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1014 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1015 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
| 1016 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
| 1017 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1018 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1019 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1020 |
|
---|
| 1021 | _ASUNAME
|
---|
| 1022 |
|
---|
| 1023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1024 | for as_dir in $PATH
|
---|
| 1025 | do
|
---|
| 1026 | IFS=$as_save_IFS
|
---|
| 1027 | test -z "$as_dir" && as_dir=.
|
---|
| 1028 | echo "PATH: $as_dir"
|
---|
| 1029 | done
|
---|
| 1030 |
|
---|
| 1031 | } >&5
|
---|
| 1032 |
|
---|
| 1033 | cat >&5 <<_ACEOF
|
---|
| 1034 |
|
---|
| 1035 |
|
---|
| 1036 | ## ----------- ##
|
---|
| 1037 | ## Core tests. ##
|
---|
| 1038 | ## ----------- ##
|
---|
| 1039 |
|
---|
| 1040 | _ACEOF
|
---|
| 1041 |
|
---|
| 1042 |
|
---|
| 1043 | # Keep a trace of the command line.
|
---|
| 1044 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 1045 | # Strip out --silent because we don't want to record it for future runs.
|
---|
| 1046 | # Also quote any args containing shell meta-characters.
|
---|
| 1047 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
| 1048 | ac_configure_args=
|
---|
| 1049 | ac_configure_args0=
|
---|
| 1050 | ac_configure_args1=
|
---|
| 1051 | ac_sep=
|
---|
| 1052 | ac_must_keep_next=false
|
---|
| 1053 | for ac_pass in 1 2
|
---|
| 1054 | do
|
---|
| 1055 | for ac_arg
|
---|
| 1056 | do
|
---|
| 1057 | case $ac_arg in
|
---|
| 1058 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1059 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1060 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1061 | continue ;;
|
---|
| 1062 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1063 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1064 | esac
|
---|
| 1065 | case $ac_pass in
|
---|
| 1066 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
| 1067 | 2)
|
---|
| 1068 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
| 1069 | if test $ac_must_keep_next = true; then
|
---|
| 1070 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1071 | else
|
---|
| 1072 | case $ac_arg in
|
---|
| 1073 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1074 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1075 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1076 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1077 | case "$ac_configure_args0 " in
|
---|
| 1078 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1079 | esac
|
---|
| 1080 | ;;
|
---|
| 1081 | -* ) ac_must_keep_next=true ;;
|
---|
| 1082 | esac
|
---|
| 1083 | fi
|
---|
| 1084 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
| 1085 | # Get rid of the leading space.
|
---|
| 1086 | ac_sep=" "
|
---|
| 1087 | ;;
|
---|
| 1088 | esac
|
---|
| 1089 | done
|
---|
| 1090 | done
|
---|
| 1091 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1092 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
| 1093 |
|
---|
| 1094 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1095 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1096 | # would cause problems or look ugly.
|
---|
| 1097 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
| 1098 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
| 1099 | trap 'exit_status=$?
|
---|
| 1100 | # Save into config.log some information that might help in debugging.
|
---|
| 1101 | {
|
---|
| 1102 | echo
|
---|
| 1103 |
|
---|
| 1104 | cat <<\_ASBOX
|
---|
| 1105 | ## ---------------- ##
|
---|
| 1106 | ## Cache variables. ##
|
---|
| 1107 | ## ---------------- ##
|
---|
| 1108 | _ASBOX
|
---|
| 1109 | echo
|
---|
| 1110 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 1111 | {
|
---|
| 1112 | (set) 2>&1 |
|
---|
| 1113 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
| 1114 | *ac_space=\ *)
|
---|
| 1115 | sed -n \
|
---|
| 1116 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
| 1117 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
| 1118 | ;;
|
---|
| 1119 | *)
|
---|
| 1120 | sed -n \
|
---|
| 1121 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
| 1122 | ;;
|
---|
| 1123 | esac;
|
---|
| 1124 | }
|
---|
| 1125 | echo
|
---|
| 1126 |
|
---|
| 1127 | cat <<\_ASBOX
|
---|
| 1128 | ## ----------------- ##
|
---|
| 1129 | ## Output variables. ##
|
---|
| 1130 | ## ----------------- ##
|
---|
| 1131 | _ASBOX
|
---|
| 1132 | echo
|
---|
| 1133 | for ac_var in $ac_subst_vars
|
---|
| 1134 | do
|
---|
| 1135 | eval ac_val=$`echo $ac_var`
|
---|
| 1136 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1137 | done | sort
|
---|
| 1138 | echo
|
---|
| 1139 |
|
---|
| 1140 | if test -n "$ac_subst_files"; then
|
---|
| 1141 | cat <<\_ASBOX
|
---|
| 1142 | ## ------------- ##
|
---|
| 1143 | ## Output files. ##
|
---|
| 1144 | ## ------------- ##
|
---|
| 1145 | _ASBOX
|
---|
| 1146 | echo
|
---|
| 1147 | for ac_var in $ac_subst_files
|
---|
| 1148 | do
|
---|
| 1149 | eval ac_val=$`echo $ac_var`
|
---|
| 1150 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1151 | done | sort
|
---|
| 1152 | echo
|
---|
| 1153 | fi
|
---|
| 1154 |
|
---|
| 1155 | if test -s confdefs.h; then
|
---|
| 1156 | cat <<\_ASBOX
|
---|
| 1157 | ## ----------- ##
|
---|
| 1158 | ## confdefs.h. ##
|
---|
| 1159 | ## ----------- ##
|
---|
| 1160 | _ASBOX
|
---|
| 1161 | echo
|
---|
| 1162 | sed "/^$/d" confdefs.h | sort
|
---|
| 1163 | echo
|
---|
| 1164 | fi
|
---|
| 1165 | test "$ac_signal" != 0 &&
|
---|
| 1166 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1167 | echo "$as_me: exit $exit_status"
|
---|
| 1168 | } >&5
|
---|
| 1169 | rm -f core *.core &&
|
---|
| 1170 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
| 1171 | exit $exit_status
|
---|
| 1172 | ' 0
|
---|
| 1173 | for ac_signal in 1 2 13 15; do
|
---|
| 1174 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
| 1175 | done
|
---|
| 1176 | ac_signal=0
|
---|
| 1177 |
|
---|
| 1178 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
| 1179 | rm -rf conftest* confdefs.h
|
---|
| 1180 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 1181 | echo >confdefs.h
|
---|
| 1182 |
|
---|
| 1183 | # Predefined preprocessor variables.
|
---|
| 1184 |
|
---|
| 1185 | cat >>confdefs.h <<_ACEOF
|
---|
| 1186 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1187 | _ACEOF
|
---|
| 1188 |
|
---|
| 1189 |
|
---|
| 1190 | cat >>confdefs.h <<_ACEOF
|
---|
| 1191 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1192 | _ACEOF
|
---|
| 1193 |
|
---|
| 1194 |
|
---|
| 1195 | cat >>confdefs.h <<_ACEOF
|
---|
| 1196 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1197 | _ACEOF
|
---|
| 1198 |
|
---|
| 1199 |
|
---|
| 1200 | cat >>confdefs.h <<_ACEOF
|
---|
| 1201 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1202 | _ACEOF
|
---|
| 1203 |
|
---|
| 1204 |
|
---|
| 1205 | cat >>confdefs.h <<_ACEOF
|
---|
| 1206 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1207 | _ACEOF
|
---|
| 1208 |
|
---|
| 1209 |
|
---|
| 1210 | # Let the site file select an alternate cache file if it wants to.
|
---|
| 1211 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 1212 | if test -z "$CONFIG_SITE"; then
|
---|
| 1213 | if test "x$prefix" != xNONE; then
|
---|
| 1214 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 1215 | else
|
---|
| 1216 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 1217 | fi
|
---|
| 1218 | fi
|
---|
| 1219 | for ac_site_file in $CONFIG_SITE; do
|
---|
| 1220 | if test -r "$ac_site_file"; then
|
---|
| 1221 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
| 1222 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
| 1223 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
| 1224 | . "$ac_site_file"
|
---|
| 1225 | fi
|
---|
| 1226 | done
|
---|
| 1227 |
|
---|
| 1228 | if test -r "$cache_file"; then
|
---|
| 1229 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1230 | # files actually), so we avoid doing that.
|
---|
| 1231 | if test -f "$cache_file"; then
|
---|
| 1232 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
| 1233 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
| 1234 | case $cache_file in
|
---|
| 1235 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
| 1236 | *) . ./$cache_file;;
|
---|
| 1237 | esac
|
---|
| 1238 | fi
|
---|
| 1239 | else
|
---|
| 1240 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
| 1241 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
| 1242 | >$cache_file
|
---|
| 1243 | fi
|
---|
| 1244 |
|
---|
| 1245 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1246 | # value.
|
---|
| 1247 | ac_cache_corrupted=false
|
---|
| 1248 | for ac_var in `(set) 2>&1 |
|
---|
| 1249 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
| 1250 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1251 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
| 1252 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
| 1253 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
| 1254 | case $ac_old_set,$ac_new_set in
|
---|
| 1255 | set,)
|
---|
| 1256 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1257 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
| 1258 | ac_cache_corrupted=: ;;
|
---|
| 1259 | ,set)
|
---|
| 1260 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1261 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
| 1262 | ac_cache_corrupted=: ;;
|
---|
| 1263 | ,);;
|
---|
| 1264 | *)
|
---|
| 1265 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
| 1266 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1267 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1268 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1269 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1270 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1271 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1272 | ac_cache_corrupted=:
|
---|
| 1273 | fi;;
|
---|
| 1274 | esac
|
---|
| 1275 | # Pass precious variables to config.status.
|
---|
| 1276 | if test "$ac_new_set" = set; then
|
---|
| 1277 | case $ac_new_val in
|
---|
| 1278 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1279 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1280 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1281 | esac
|
---|
| 1282 | case " $ac_configure_args " in
|
---|
| 1283 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
| 1284 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 1285 | esac
|
---|
| 1286 | fi
|
---|
| 1287 | done
|
---|
| 1288 | if $ac_cache_corrupted; then
|
---|
| 1289 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1290 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1291 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1292 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1293 | { (exit 1); exit 1; }; }
|
---|
| 1294 | fi
|
---|
| 1295 |
|
---|
| 1296 | ac_ext=c
|
---|
| 1297 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1301 |
|
---|
| 1302 |
|
---|
| 1303 |
|
---|
| 1304 |
|
---|
| 1305 |
|
---|
| 1306 |
|
---|
| 1307 |
|
---|
| 1308 |
|
---|
| 1309 |
|
---|
| 1310 |
|
---|
| 1311 |
|
---|
| 1312 |
|
---|
| 1313 |
|
---|
| 1314 |
|
---|
| 1315 |
|
---|
| 1316 |
|
---|
| 1317 |
|
---|
| 1318 |
|
---|
| 1319 |
|
---|
| 1320 | ac_config_headers="$ac_config_headers config.h"
|
---|
| 1321 |
|
---|
| 1322 |
|
---|
| 1323 |
|
---|
| 1324 |
|
---|
| 1325 | PACKAGE=gsdl
|
---|
| 1326 | VERSION=2.82-svn
|
---|
| 1327 | cat >>confdefs.h <<_ACEOF
|
---|
| 1328 | #define PACKAGE "$PACKAGE"
|
---|
| 1329 | _ACEOF
|
---|
| 1330 |
|
---|
| 1331 | cat >>confdefs.h <<_ACEOF
|
---|
| 1332 | #define VERSION "$VERSION"
|
---|
| 1333 | _ACEOF
|
---|
| 1334 |
|
---|
| 1335 |
|
---|
| 1336 |
|
---|
| 1337 |
|
---|
| 1338 | USE_FASTCGI=0
|
---|
| 1339 | if test USE_FASTCGI = 1; then
|
---|
| 1340 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1341 | #define USE_FASTCGI 1
|
---|
| 1342 | _ACEOF
|
---|
| 1343 |
|
---|
| 1344 |
|
---|
| 1345 | fi
|
---|
| 1346 |
|
---|
| 1347 | if test USE_LANGACTION = 1; then
|
---|
| 1348 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1349 | #define USE_LANGACTION 1
|
---|
| 1350 | _ACEOF
|
---|
| 1351 |
|
---|
| 1352 |
|
---|
| 1353 | fi
|
---|
| 1354 |
|
---|
| 1355 | # Check whether --enable-corba or --disable-corba was given.
|
---|
| 1356 | if test "${enable_corba+set}" = set; then
|
---|
| 1357 | enableval="$enable_corba"
|
---|
| 1358 | USE_CORBA=1
|
---|
| 1359 | else
|
---|
| 1360 | USE_CORBA=0
|
---|
| 1361 | fi;
|
---|
| 1362 | cat >>confdefs.h <<_ACEOF
|
---|
| 1363 | #define USE_CORBA $USE_CORBA
|
---|
| 1364 | _ACEOF
|
---|
| 1365 |
|
---|
| 1366 |
|
---|
| 1367 |
|
---|
| 1368 |
|
---|
| 1369 | # Check whether --with-micodir or --without-micodir was given.
|
---|
| 1370 | if test "${with_micodir+set}" = set; then
|
---|
| 1371 | withval="$with_micodir"
|
---|
| 1372 | MICO_DIR=$enableval
|
---|
| 1373 | else
|
---|
| 1374 | MICO_DIR="default"
|
---|
| 1375 | fi;
|
---|
| 1376 | cat >>confdefs.h <<_ACEOF
|
---|
| 1377 | #define MICO_DIR "$MICO_DIR"
|
---|
| 1378 | _ACEOF
|
---|
| 1379 |
|
---|
| 1380 |
|
---|
| 1381 |
|
---|
| 1382 | # Check whether --enable-z3950 or --disable-z3950 was given.
|
---|
| 1383 | if test "${enable_z3950+set}" = set; then
|
---|
| 1384 | enableval="$enable_z3950"
|
---|
| 1385 | USE_Z3950=1
|
---|
| 1386 | else
|
---|
| 1387 | USE_Z3950=0
|
---|
| 1388 | fi;
|
---|
| 1389 | if test USE_Z3950 = 1; then
|
---|
| 1390 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1391 | #define USE_Z3950 $USE_Z3950
|
---|
| 1392 | _ACEOF
|
---|
| 1393 |
|
---|
| 1394 |
|
---|
| 1395 | fi
|
---|
| 1396 |
|
---|
| 1397 | # Check whether --enable-yaz or --disable-yaz was given.
|
---|
| 1398 | if test "${enable_yaz+set}" = set; then
|
---|
| 1399 | enableval="$enable_yaz"
|
---|
| 1400 | USE_YAZ=0
|
---|
| 1401 | else
|
---|
| 1402 | USE_YAZ=1
|
---|
| 1403 | fi;
|
---|
| 1404 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1405 | #define USE_YAZ $USE_YAZ
|
---|
| 1406 | _ACEOF
|
---|
| 1407 |
|
---|
| 1408 |
|
---|
| 1409 |
|
---|
| 1410 | # Check whether --enable-accentfold or --disable-accentfold was given.
|
---|
| 1411 | if test "${enable_accentfold+set}" = set; then
|
---|
| 1412 | enableval="$enable_accentfold"
|
---|
| 1413 | ENABLE_ACCENTFOLD=0
|
---|
| 1414 | else
|
---|
| 1415 | ENABLE_ACCENTFOLD=1
|
---|
| 1416 | fi;
|
---|
| 1417 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1418 | #define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
|
---|
| 1419 | _ACEOF
|
---|
| 1420 |
|
---|
| 1421 |
|
---|
| 1422 |
|
---|
| 1423 | # Check whether --enable-sqlite or --disable-sqlite was given.
|
---|
| 1424 | if test "${enable_sqlite+set}" = set; then
|
---|
| 1425 | enableval="$enable_sqlite"
|
---|
| 1426 | USE_SQLITE=0
|
---|
| 1427 | else
|
---|
| 1428 | USE_SQLITE=1
|
---|
| 1429 | fi;
|
---|
| 1430 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1431 | #define USE_SQLITE $USE_SQLITE
|
---|
| 1432 | _ACEOF
|
---|
| 1433 |
|
---|
| 1434 |
|
---|
| 1435 |
|
---|
[18487] | 1436 | # Check whether --enable-apache-httpd or --disable-apache-httpd was given.
|
---|
| 1437 | if test "${enable_apache_httpd+set}" = set; then
|
---|
| 1438 | enableval="$enable_apache_httpd"
|
---|
| 1439 | USE_APACHE_HTTPD=1
|
---|
| 1440 | else
|
---|
| 1441 | USE_APACHE_HTTPD=0
|
---|
| 1442 | fi;
|
---|
| 1443 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1444 | #define USE_APACHE_HTTPD $USE_APACHE_HTTPD
|
---|
| 1445 | _ACEOF
|
---|
| 1446 |
|
---|
| 1447 |
|
---|
| 1448 |
|
---|
| 1449 |
|
---|
[16568] | 1450 | LDFLAGS=$LDFLAGS
|
---|
| 1451 |
|
---|
| 1452 | if test -z "$CFLAGS"; then
|
---|
| 1453 | CFLAGS=-O2
|
---|
| 1454 | fi
|
---|
| 1455 |
|
---|
| 1456 |
|
---|
| 1457 |
|
---|
| 1458 | ac_ext=c
|
---|
| 1459 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1463 | if test -n "$ac_tool_prefix"; then
|
---|
| 1464 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 1465 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
| 1466 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1468 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1469 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1470 | else
|
---|
| 1471 | if test -n "$CC"; then
|
---|
| 1472 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1473 | else
|
---|
| 1474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1475 | for as_dir in $PATH
|
---|
| 1476 | do
|
---|
| 1477 | IFS=$as_save_IFS
|
---|
| 1478 | test -z "$as_dir" && as_dir=.
|
---|
| 1479 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1480 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1481 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
| 1482 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1483 | break 2
|
---|
| 1484 | fi
|
---|
| 1485 | done
|
---|
| 1486 | done
|
---|
| 1487 |
|
---|
| 1488 | fi
|
---|
| 1489 | fi
|
---|
| 1490 | CC=$ac_cv_prog_CC
|
---|
| 1491 | if test -n "$CC"; then
|
---|
| 1492 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1493 | echo "${ECHO_T}$CC" >&6
|
---|
| 1494 | else
|
---|
| 1495 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1496 | echo "${ECHO_T}no" >&6
|
---|
| 1497 | fi
|
---|
| 1498 |
|
---|
| 1499 | fi
|
---|
| 1500 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1501 | ac_ct_CC=$CC
|
---|
| 1502 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
| 1503 | set dummy gcc; ac_word=$2
|
---|
| 1504 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1506 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1507 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1508 | else
|
---|
| 1509 | if test -n "$ac_ct_CC"; then
|
---|
| 1510 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1511 | else
|
---|
| 1512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1513 | for as_dir in $PATH
|
---|
| 1514 | do
|
---|
| 1515 | IFS=$as_save_IFS
|
---|
| 1516 | test -z "$as_dir" && as_dir=.
|
---|
| 1517 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1518 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1519 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
| 1520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1521 | break 2
|
---|
| 1522 | fi
|
---|
| 1523 | done
|
---|
| 1524 | done
|
---|
| 1525 |
|
---|
| 1526 | fi
|
---|
| 1527 | fi
|
---|
| 1528 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1529 | if test -n "$ac_ct_CC"; then
|
---|
| 1530 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1531 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1532 | else
|
---|
| 1533 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1534 | echo "${ECHO_T}no" >&6
|
---|
| 1535 | fi
|
---|
| 1536 |
|
---|
| 1537 | CC=$ac_ct_CC
|
---|
| 1538 | else
|
---|
| 1539 | CC="$ac_cv_prog_CC"
|
---|
| 1540 | fi
|
---|
| 1541 |
|
---|
| 1542 | if test -z "$CC"; then
|
---|
| 1543 | if test -n "$ac_tool_prefix"; then
|
---|
| 1544 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
| 1545 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
| 1546 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1547 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1548 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1549 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1550 | else
|
---|
| 1551 | if test -n "$CC"; then
|
---|
| 1552 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1553 | else
|
---|
| 1554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1555 | for as_dir in $PATH
|
---|
| 1556 | do
|
---|
| 1557 | IFS=$as_save_IFS
|
---|
| 1558 | test -z "$as_dir" && as_dir=.
|
---|
| 1559 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1560 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1561 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
| 1562 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1563 | break 2
|
---|
| 1564 | fi
|
---|
| 1565 | done
|
---|
| 1566 | done
|
---|
| 1567 |
|
---|
| 1568 | fi
|
---|
| 1569 | fi
|
---|
| 1570 | CC=$ac_cv_prog_CC
|
---|
| 1571 | if test -n "$CC"; then
|
---|
| 1572 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1573 | echo "${ECHO_T}$CC" >&6
|
---|
| 1574 | else
|
---|
| 1575 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1576 | echo "${ECHO_T}no" >&6
|
---|
| 1577 | fi
|
---|
| 1578 |
|
---|
| 1579 | fi
|
---|
| 1580 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1581 | ac_ct_CC=$CC
|
---|
| 1582 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1583 | set dummy cc; ac_word=$2
|
---|
| 1584 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1585 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1586 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1587 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1588 | else
|
---|
| 1589 | if test -n "$ac_ct_CC"; then
|
---|
| 1590 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1591 | else
|
---|
| 1592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1593 | for as_dir in $PATH
|
---|
| 1594 | do
|
---|
| 1595 | IFS=$as_save_IFS
|
---|
| 1596 | test -z "$as_dir" && as_dir=.
|
---|
| 1597 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1598 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1599 | ac_cv_prog_ac_ct_CC="cc"
|
---|
| 1600 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1601 | break 2
|
---|
| 1602 | fi
|
---|
| 1603 | done
|
---|
| 1604 | done
|
---|
| 1605 |
|
---|
| 1606 | fi
|
---|
| 1607 | fi
|
---|
| 1608 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1609 | if test -n "$ac_ct_CC"; then
|
---|
| 1610 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1611 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1612 | else
|
---|
| 1613 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1614 | echo "${ECHO_T}no" >&6
|
---|
| 1615 | fi
|
---|
| 1616 |
|
---|
| 1617 | CC=$ac_ct_CC
|
---|
| 1618 | else
|
---|
| 1619 | CC="$ac_cv_prog_CC"
|
---|
| 1620 | fi
|
---|
| 1621 |
|
---|
| 1622 | fi
|
---|
| 1623 | if test -z "$CC"; then
|
---|
| 1624 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1625 | set dummy cc; ac_word=$2
|
---|
| 1626 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1628 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1629 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1630 | else
|
---|
| 1631 | if test -n "$CC"; then
|
---|
| 1632 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1633 | else
|
---|
| 1634 | ac_prog_rejected=no
|
---|
| 1635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1636 | for as_dir in $PATH
|
---|
| 1637 | do
|
---|
| 1638 | IFS=$as_save_IFS
|
---|
| 1639 | test -z "$as_dir" && as_dir=.
|
---|
| 1640 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1641 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1642 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 1643 | ac_prog_rejected=yes
|
---|
| 1644 | continue
|
---|
| 1645 | fi
|
---|
| 1646 | ac_cv_prog_CC="cc"
|
---|
| 1647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1648 | break 2
|
---|
| 1649 | fi
|
---|
| 1650 | done
|
---|
| 1651 | done
|
---|
| 1652 |
|
---|
| 1653 | if test $ac_prog_rejected = yes; then
|
---|
| 1654 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 1655 | set dummy $ac_cv_prog_CC
|
---|
| 1656 | shift
|
---|
| 1657 | if test $# != 0; then
|
---|
| 1658 | # We chose a different compiler from the bogus one.
|
---|
| 1659 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 1660 | # first if we set CC to just the basename; use the full file name.
|
---|
| 1661 | shift
|
---|
| 1662 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
| 1663 | fi
|
---|
| 1664 | fi
|
---|
| 1665 | fi
|
---|
| 1666 | fi
|
---|
| 1667 | CC=$ac_cv_prog_CC
|
---|
| 1668 | if test -n "$CC"; then
|
---|
| 1669 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1670 | echo "${ECHO_T}$CC" >&6
|
---|
| 1671 | else
|
---|
| 1672 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1673 | echo "${ECHO_T}no" >&6
|
---|
| 1674 | fi
|
---|
| 1675 |
|
---|
| 1676 | fi
|
---|
| 1677 | if test -z "$CC"; then
|
---|
| 1678 | if test -n "$ac_tool_prefix"; then
|
---|
| 1679 | for ac_prog in cl
|
---|
| 1680 | do
|
---|
| 1681 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 1682 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
| 1683 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1685 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1686 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1687 | else
|
---|
| 1688 | if test -n "$CC"; then
|
---|
| 1689 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1690 | else
|
---|
| 1691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1692 | for as_dir in $PATH
|
---|
| 1693 | do
|
---|
| 1694 | IFS=$as_save_IFS
|
---|
| 1695 | test -z "$as_dir" && as_dir=.
|
---|
| 1696 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1697 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1698 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
| 1699 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1700 | break 2
|
---|
| 1701 | fi
|
---|
| 1702 | done
|
---|
| 1703 | done
|
---|
| 1704 |
|
---|
| 1705 | fi
|
---|
| 1706 | fi
|
---|
| 1707 | CC=$ac_cv_prog_CC
|
---|
| 1708 | if test -n "$CC"; then
|
---|
| 1709 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1710 | echo "${ECHO_T}$CC" >&6
|
---|
| 1711 | else
|
---|
| 1712 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1713 | echo "${ECHO_T}no" >&6
|
---|
| 1714 | fi
|
---|
| 1715 |
|
---|
| 1716 | test -n "$CC" && break
|
---|
| 1717 | done
|
---|
| 1718 | fi
|
---|
| 1719 | if test -z "$CC"; then
|
---|
| 1720 | ac_ct_CC=$CC
|
---|
| 1721 | for ac_prog in cl
|
---|
| 1722 | do
|
---|
| 1723 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 1724 | set dummy $ac_prog; ac_word=$2
|
---|
| 1725 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1727 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1728 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1729 | else
|
---|
| 1730 | if test -n "$ac_ct_CC"; then
|
---|
| 1731 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1732 | else
|
---|
| 1733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1734 | for as_dir in $PATH
|
---|
| 1735 | do
|
---|
| 1736 | IFS=$as_save_IFS
|
---|
| 1737 | test -z "$as_dir" && as_dir=.
|
---|
| 1738 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1739 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1740 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
| 1741 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1742 | break 2
|
---|
| 1743 | fi
|
---|
| 1744 | done
|
---|
| 1745 | done
|
---|
| 1746 |
|
---|
| 1747 | fi
|
---|
| 1748 | fi
|
---|
| 1749 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1750 | if test -n "$ac_ct_CC"; then
|
---|
| 1751 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1752 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1753 | else
|
---|
| 1754 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1755 | echo "${ECHO_T}no" >&6
|
---|
| 1756 | fi
|
---|
| 1757 |
|
---|
| 1758 | test -n "$ac_ct_CC" && break
|
---|
| 1759 | done
|
---|
| 1760 |
|
---|
| 1761 | CC=$ac_ct_CC
|
---|
| 1762 | fi
|
---|
| 1763 |
|
---|
| 1764 | fi
|
---|
| 1765 |
|
---|
| 1766 |
|
---|
| 1767 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 1768 | See \`config.log' for more details." >&5
|
---|
| 1769 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 1770 | See \`config.log' for more details." >&2;}
|
---|
| 1771 | { (exit 1); exit 1; }; }
|
---|
| 1772 |
|
---|
| 1773 | # Provide some information about the compiler.
|
---|
| 1774 | echo "$as_me:$LINENO:" \
|
---|
| 1775 | "checking for C compiler version" >&5
|
---|
| 1776 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 1777 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 1778 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 1779 | ac_status=$?
|
---|
| 1780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1781 | (exit $ac_status); }
|
---|
| 1782 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 1783 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 1784 | ac_status=$?
|
---|
| 1785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1786 | (exit $ac_status); }
|
---|
| 1787 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 1788 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 1789 | ac_status=$?
|
---|
| 1790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1791 | (exit $ac_status); }
|
---|
| 1792 |
|
---|
| 1793 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1794 | /* confdefs.h. */
|
---|
| 1795 | _ACEOF
|
---|
| 1796 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1797 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1798 | /* end confdefs.h. */
|
---|
| 1799 |
|
---|
| 1800 | int
|
---|
| 1801 | main ()
|
---|
| 1802 | {
|
---|
| 1803 |
|
---|
| 1804 | ;
|
---|
| 1805 | return 0;
|
---|
| 1806 | }
|
---|
| 1807 | _ACEOF
|
---|
| 1808 | ac_clean_files_save=$ac_clean_files
|
---|
| 1809 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
| 1810 | # Try to create an executable without -o first, disregard a.out.
|
---|
| 1811 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
| 1812 | # of exeext.
|
---|
| 1813 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
| 1814 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
| 1815 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
| 1816 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
| 1817 | (eval $ac_link_default) 2>&5
|
---|
| 1818 | ac_status=$?
|
---|
| 1819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1820 | (exit $ac_status); }; then
|
---|
| 1821 | # Find the output, starting from the most likely. This scheme is
|
---|
| 1822 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
| 1823 | # resort.
|
---|
| 1824 |
|
---|
| 1825 | # Be careful to initialize this variable, since it used to be cached.
|
---|
| 1826 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
| 1827 | ac_cv_exeext=
|
---|
| 1828 | # b.out is created by i960 compilers.
|
---|
| 1829 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
| 1830 | do
|
---|
| 1831 | test -f "$ac_file" || continue
|
---|
| 1832 | case $ac_file in
|
---|
| 1833 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
| 1834 | ;;
|
---|
| 1835 | conftest.$ac_ext )
|
---|
| 1836 | # This is the source file.
|
---|
| 1837 | ;;
|
---|
| 1838 | [ab].out )
|
---|
| 1839 | # We found the default executable, but exeext='' is most
|
---|
| 1840 | # certainly right.
|
---|
| 1841 | break;;
|
---|
| 1842 | *.* )
|
---|
| 1843 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1844 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
| 1845 | # but it would be cool to find out if it's true. Does anybody
|
---|
| 1846 | # maintain Libtool? --akim.
|
---|
| 1847 | export ac_cv_exeext
|
---|
| 1848 | break;;
|
---|
| 1849 | * )
|
---|
| 1850 | break;;
|
---|
| 1851 | esac
|
---|
| 1852 | done
|
---|
| 1853 | else
|
---|
| 1854 | echo "$as_me: failed program was:" >&5
|
---|
| 1855 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1856 |
|
---|
| 1857 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
| 1858 | See \`config.log' for more details." >&5
|
---|
| 1859 | echo "$as_me: error: C compiler cannot create executables
|
---|
| 1860 | See \`config.log' for more details." >&2;}
|
---|
| 1861 | { (exit 77); exit 77; }; }
|
---|
| 1862 | fi
|
---|
| 1863 |
|
---|
| 1864 | ac_exeext=$ac_cv_exeext
|
---|
| 1865 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
| 1866 | echo "${ECHO_T}$ac_file" >&6
|
---|
| 1867 |
|
---|
| 1868 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1869 | # the compiler is broken, or we cross compile.
|
---|
| 1870 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
| 1871 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
| 1872 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 1873 | # If not cross compiling, check that we can run a simple program.
|
---|
| 1874 | if test "$cross_compiling" != yes; then
|
---|
| 1875 | if { ac_try='./$ac_file'
|
---|
| 1876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1877 | (eval $ac_try) 2>&5
|
---|
| 1878 | ac_status=$?
|
---|
| 1879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1880 | (exit $ac_status); }; }; then
|
---|
| 1881 | cross_compiling=no
|
---|
| 1882 | else
|
---|
| 1883 | if test "$cross_compiling" = maybe; then
|
---|
| 1884 | cross_compiling=yes
|
---|
| 1885 | else
|
---|
| 1886 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
| 1887 | If you meant to cross compile, use \`--host'.
|
---|
| 1888 | See \`config.log' for more details." >&5
|
---|
| 1889 | echo "$as_me: error: cannot run C compiled programs.
|
---|
| 1890 | If you meant to cross compile, use \`--host'.
|
---|
| 1891 | See \`config.log' for more details." >&2;}
|
---|
| 1892 | { (exit 1); exit 1; }; }
|
---|
| 1893 | fi
|
---|
| 1894 | fi
|
---|
| 1895 | fi
|
---|
| 1896 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 1897 | echo "${ECHO_T}yes" >&6
|
---|
| 1898 |
|
---|
| 1899 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
| 1900 | ac_clean_files=$ac_clean_files_save
|
---|
| 1901 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1902 | # the compiler is broken, or we cross compile.
|
---|
| 1903 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
| 1904 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
| 1905 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
| 1906 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
| 1907 |
|
---|
| 1908 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 1909 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
| 1910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 1911 | (eval $ac_link) 2>&5
|
---|
| 1912 | ac_status=$?
|
---|
| 1913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1914 | (exit $ac_status); }; then
|
---|
| 1915 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 1916 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 1917 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 1918 | # `rm'.
|
---|
| 1919 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 1920 | test -f "$ac_file" || continue
|
---|
| 1921 | case $ac_file in
|
---|
| 1922 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
| 1923 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1924 | export ac_cv_exeext
|
---|
| 1925 | break;;
|
---|
| 1926 | * ) break;;
|
---|
| 1927 | esac
|
---|
| 1928 | done
|
---|
| 1929 | else
|
---|
| 1930 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1931 | See \`config.log' for more details." >&5
|
---|
| 1932 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1933 | See \`config.log' for more details." >&2;}
|
---|
| 1934 | { (exit 1); exit 1; }; }
|
---|
| 1935 | fi
|
---|
| 1936 |
|
---|
| 1937 | rm -f conftest$ac_cv_exeext
|
---|
| 1938 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
| 1939 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
| 1940 |
|
---|
| 1941 | rm -f conftest.$ac_ext
|
---|
| 1942 | EXEEXT=$ac_cv_exeext
|
---|
| 1943 | ac_exeext=$EXEEXT
|
---|
| 1944 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 1945 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
| 1946 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 1947 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1948 | else
|
---|
| 1949 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1950 | /* confdefs.h. */
|
---|
| 1951 | _ACEOF
|
---|
| 1952 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1953 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1954 | /* end confdefs.h. */
|
---|
| 1955 |
|
---|
| 1956 | int
|
---|
| 1957 | main ()
|
---|
| 1958 | {
|
---|
| 1959 |
|
---|
| 1960 | ;
|
---|
| 1961 | return 0;
|
---|
| 1962 | }
|
---|
| 1963 | _ACEOF
|
---|
| 1964 | rm -f conftest.o conftest.obj
|
---|
| 1965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1966 | (eval $ac_compile) 2>&5
|
---|
| 1967 | ac_status=$?
|
---|
| 1968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1969 | (exit $ac_status); }; then
|
---|
| 1970 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
| 1971 | case $ac_file in
|
---|
| 1972 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
| 1973 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 1974 | break;;
|
---|
| 1975 | esac
|
---|
| 1976 | done
|
---|
| 1977 | else
|
---|
| 1978 | echo "$as_me: failed program was:" >&5
|
---|
| 1979 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1980 |
|
---|
| 1981 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 1982 | See \`config.log' for more details." >&5
|
---|
| 1983 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 1984 | See \`config.log' for more details." >&2;}
|
---|
| 1985 | { (exit 1); exit 1; }; }
|
---|
| 1986 | fi
|
---|
| 1987 |
|
---|
| 1988 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
| 1989 | fi
|
---|
| 1990 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
| 1991 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
| 1992 | OBJEXT=$ac_cv_objext
|
---|
| 1993 | ac_objext=$OBJEXT
|
---|
| 1994 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
| 1995 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
| 1996 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 1997 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1998 | else
|
---|
| 1999 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2000 | /* confdefs.h. */
|
---|
| 2001 | _ACEOF
|
---|
| 2002 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2003 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2004 | /* end confdefs.h. */
|
---|
| 2005 |
|
---|
| 2006 | int
|
---|
| 2007 | main ()
|
---|
| 2008 | {
|
---|
| 2009 | #ifndef __GNUC__
|
---|
| 2010 | choke me
|
---|
| 2011 | #endif
|
---|
| 2012 |
|
---|
| 2013 | ;
|
---|
| 2014 | return 0;
|
---|
| 2015 | }
|
---|
| 2016 | _ACEOF
|
---|
| 2017 | rm -f conftest.$ac_objext
|
---|
| 2018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2019 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2020 | ac_status=$?
|
---|
| 2021 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2022 | rm -f conftest.er1
|
---|
| 2023 | cat conftest.err >&5
|
---|
| 2024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2025 | (exit $ac_status); } &&
|
---|
| 2026 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2027 | || test ! -s conftest.err'
|
---|
| 2028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2029 | (eval $ac_try) 2>&5
|
---|
| 2030 | ac_status=$?
|
---|
| 2031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2032 | (exit $ac_status); }; } &&
|
---|
| 2033 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2035 | (eval $ac_try) 2>&5
|
---|
| 2036 | ac_status=$?
|
---|
| 2037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2038 | (exit $ac_status); }; }; then
|
---|
| 2039 | ac_compiler_gnu=yes
|
---|
| 2040 | else
|
---|
| 2041 | echo "$as_me: failed program was:" >&5
|
---|
| 2042 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2043 |
|
---|
| 2044 | ac_compiler_gnu=no
|
---|
| 2045 | fi
|
---|
| 2046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2047 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
| 2048 |
|
---|
| 2049 | fi
|
---|
| 2050 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 2051 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
| 2052 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2053 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2054 | ac_save_CFLAGS=$CFLAGS
|
---|
| 2055 | CFLAGS="-g"
|
---|
| 2056 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
| 2057 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
| 2058 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2059 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2060 | else
|
---|
| 2061 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2062 | /* confdefs.h. */
|
---|
| 2063 | _ACEOF
|
---|
| 2064 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2065 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2066 | /* end confdefs.h. */
|
---|
| 2067 |
|
---|
| 2068 | int
|
---|
| 2069 | main ()
|
---|
| 2070 | {
|
---|
| 2071 |
|
---|
| 2072 | ;
|
---|
| 2073 | return 0;
|
---|
| 2074 | }
|
---|
| 2075 | _ACEOF
|
---|
| 2076 | rm -f conftest.$ac_objext
|
---|
| 2077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2078 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2079 | ac_status=$?
|
---|
| 2080 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2081 | rm -f conftest.er1
|
---|
| 2082 | cat conftest.err >&5
|
---|
| 2083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2084 | (exit $ac_status); } &&
|
---|
| 2085 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2086 | || test ! -s conftest.err'
|
---|
| 2087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2088 | (eval $ac_try) 2>&5
|
---|
| 2089 | ac_status=$?
|
---|
| 2090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2091 | (exit $ac_status); }; } &&
|
---|
| 2092 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2094 | (eval $ac_try) 2>&5
|
---|
| 2095 | ac_status=$?
|
---|
| 2096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2097 | (exit $ac_status); }; }; then
|
---|
| 2098 | ac_cv_prog_cc_g=yes
|
---|
| 2099 | else
|
---|
| 2100 | echo "$as_me: failed program was:" >&5
|
---|
| 2101 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2102 |
|
---|
| 2103 | ac_cv_prog_cc_g=no
|
---|
| 2104 | fi
|
---|
| 2105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2106 | fi
|
---|
| 2107 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
| 2108 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
| 2109 | if test "$ac_test_CFLAGS" = set; then
|
---|
| 2110 | CFLAGS=$ac_save_CFLAGS
|
---|
| 2111 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2112 | if test "$GCC" = yes; then
|
---|
| 2113 | CFLAGS="-g -O2"
|
---|
| 2114 | else
|
---|
| 2115 | CFLAGS="-g"
|
---|
| 2116 | fi
|
---|
| 2117 | else
|
---|
| 2118 | if test "$GCC" = yes; then
|
---|
| 2119 | CFLAGS="-O2"
|
---|
| 2120 | else
|
---|
| 2121 | CFLAGS=
|
---|
| 2122 | fi
|
---|
| 2123 | fi
|
---|
| 2124 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
| 2125 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
| 2126 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 2127 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2128 | else
|
---|
| 2129 | ac_cv_prog_cc_stdc=no
|
---|
| 2130 | ac_save_CC=$CC
|
---|
| 2131 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2132 | /* confdefs.h. */
|
---|
| 2133 | _ACEOF
|
---|
| 2134 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2135 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2136 | /* end confdefs.h. */
|
---|
| 2137 | #include <stdarg.h>
|
---|
| 2138 | #include <stdio.h>
|
---|
| 2139 | #include <sys/types.h>
|
---|
| 2140 | #include <sys/stat.h>
|
---|
| 2141 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2142 | struct buf { int x; };
|
---|
| 2143 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2144 | static char *e (p, i)
|
---|
| 2145 | char **p;
|
---|
| 2146 | int i;
|
---|
| 2147 | {
|
---|
| 2148 | return p[i];
|
---|
| 2149 | }
|
---|
| 2150 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2151 | {
|
---|
| 2152 | char *s;
|
---|
| 2153 | va_list v;
|
---|
| 2154 | va_start (v,p);
|
---|
| 2155 | s = g (p, va_arg (v,int));
|
---|
| 2156 | va_end (v);
|
---|
| 2157 | return s;
|
---|
| 2158 | }
|
---|
| 2159 |
|
---|
| 2160 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2161 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2162 | These don't provoke an error unfortunately, instead are silently treated
|
---|
| 2163 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
| 2164 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2165 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
| 2166 | that's true only with -std1. */
|
---|
| 2167 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2168 |
|
---|
| 2169 | int test (int i, double x);
|
---|
| 2170 | struct s1 {int (*f) (int a);};
|
---|
| 2171 | struct s2 {int (*f) (double a);};
|
---|
| 2172 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2173 | int argc;
|
---|
| 2174 | char **argv;
|
---|
| 2175 | int
|
---|
| 2176 | main ()
|
---|
| 2177 | {
|
---|
| 2178 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2179 | ;
|
---|
| 2180 | return 0;
|
---|
| 2181 | }
|
---|
| 2182 | _ACEOF
|
---|
| 2183 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 2184 | # breaks some systems' header files.
|
---|
| 2185 | # AIX -qlanglvl=ansi
|
---|
| 2186 | # Ultrix and OSF/1 -std1
|
---|
| 2187 | # HP-UX 10.20 and later -Ae
|
---|
| 2188 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
| 2189 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
| 2190 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
| 2191 | do
|
---|
| 2192 | CC="$ac_save_CC $ac_arg"
|
---|
| 2193 | rm -f conftest.$ac_objext
|
---|
| 2194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2195 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2196 | ac_status=$?
|
---|
| 2197 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2198 | rm -f conftest.er1
|
---|
| 2199 | cat conftest.err >&5
|
---|
| 2200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2201 | (exit $ac_status); } &&
|
---|
| 2202 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2203 | || test ! -s conftest.err'
|
---|
| 2204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2205 | (eval $ac_try) 2>&5
|
---|
| 2206 | ac_status=$?
|
---|
| 2207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2208 | (exit $ac_status); }; } &&
|
---|
| 2209 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2211 | (eval $ac_try) 2>&5
|
---|
| 2212 | ac_status=$?
|
---|
| 2213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2214 | (exit $ac_status); }; }; then
|
---|
| 2215 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
| 2216 | break
|
---|
| 2217 | else
|
---|
| 2218 | echo "$as_me: failed program was:" >&5
|
---|
| 2219 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2220 |
|
---|
| 2221 | fi
|
---|
| 2222 | rm -f conftest.err conftest.$ac_objext
|
---|
| 2223 | done
|
---|
| 2224 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
| 2225 | CC=$ac_save_CC
|
---|
| 2226 |
|
---|
| 2227 | fi
|
---|
| 2228 |
|
---|
| 2229 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 2230 | x|xno)
|
---|
| 2231 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2232 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
| 2233 | *)
|
---|
| 2234 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 2235 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 2236 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 2237 | esac
|
---|
| 2238 |
|
---|
| 2239 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
| 2240 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
| 2241 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
| 2242 | # the declaration of exit, since it's the most demanding environment.
|
---|
| 2243 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2244 | #ifndef __cplusplus
|
---|
| 2245 | choke me
|
---|
| 2246 | #endif
|
---|
| 2247 | _ACEOF
|
---|
| 2248 | rm -f conftest.$ac_objext
|
---|
| 2249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2250 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2251 | ac_status=$?
|
---|
| 2252 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2253 | rm -f conftest.er1
|
---|
| 2254 | cat conftest.err >&5
|
---|
| 2255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2256 | (exit $ac_status); } &&
|
---|
| 2257 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2258 | || test ! -s conftest.err'
|
---|
| 2259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2260 | (eval $ac_try) 2>&5
|
---|
| 2261 | ac_status=$?
|
---|
| 2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2263 | (exit $ac_status); }; } &&
|
---|
| 2264 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2266 | (eval $ac_try) 2>&5
|
---|
| 2267 | ac_status=$?
|
---|
| 2268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2269 | (exit $ac_status); }; }; then
|
---|
| 2270 | for ac_declaration in \
|
---|
| 2271 | '' \
|
---|
| 2272 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2273 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2274 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2275 | 'extern "C" void exit (int);' \
|
---|
| 2276 | 'void exit (int);'
|
---|
| 2277 | do
|
---|
| 2278 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2279 | /* confdefs.h. */
|
---|
| 2280 | _ACEOF
|
---|
| 2281 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2282 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2283 | /* end confdefs.h. */
|
---|
| 2284 | $ac_declaration
|
---|
| 2285 | #include <stdlib.h>
|
---|
| 2286 | int
|
---|
| 2287 | main ()
|
---|
| 2288 | {
|
---|
| 2289 | exit (42);
|
---|
| 2290 | ;
|
---|
| 2291 | return 0;
|
---|
| 2292 | }
|
---|
| 2293 | _ACEOF
|
---|
| 2294 | rm -f conftest.$ac_objext
|
---|
| 2295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2296 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2297 | ac_status=$?
|
---|
| 2298 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2299 | rm -f conftest.er1
|
---|
| 2300 | cat conftest.err >&5
|
---|
| 2301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2302 | (exit $ac_status); } &&
|
---|
| 2303 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2304 | || test ! -s conftest.err'
|
---|
| 2305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2306 | (eval $ac_try) 2>&5
|
---|
| 2307 | ac_status=$?
|
---|
| 2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2309 | (exit $ac_status); }; } &&
|
---|
| 2310 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2312 | (eval $ac_try) 2>&5
|
---|
| 2313 | ac_status=$?
|
---|
| 2314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2315 | (exit $ac_status); }; }; then
|
---|
| 2316 | :
|
---|
| 2317 | else
|
---|
| 2318 | echo "$as_me: failed program was:" >&5
|
---|
| 2319 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2320 |
|
---|
| 2321 | continue
|
---|
| 2322 | fi
|
---|
| 2323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2324 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2325 | /* confdefs.h. */
|
---|
| 2326 | _ACEOF
|
---|
| 2327 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2328 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2329 | /* end confdefs.h. */
|
---|
| 2330 | $ac_declaration
|
---|
| 2331 | int
|
---|
| 2332 | main ()
|
---|
| 2333 | {
|
---|
| 2334 | exit (42);
|
---|
| 2335 | ;
|
---|
| 2336 | return 0;
|
---|
| 2337 | }
|
---|
| 2338 | _ACEOF
|
---|
| 2339 | rm -f conftest.$ac_objext
|
---|
| 2340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2341 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2342 | ac_status=$?
|
---|
| 2343 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2344 | rm -f conftest.er1
|
---|
| 2345 | cat conftest.err >&5
|
---|
| 2346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2347 | (exit $ac_status); } &&
|
---|
| 2348 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2349 | || test ! -s conftest.err'
|
---|
| 2350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2351 | (eval $ac_try) 2>&5
|
---|
| 2352 | ac_status=$?
|
---|
| 2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2354 | (exit $ac_status); }; } &&
|
---|
| 2355 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2357 | (eval $ac_try) 2>&5
|
---|
| 2358 | ac_status=$?
|
---|
| 2359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2360 | (exit $ac_status); }; }; then
|
---|
| 2361 | break
|
---|
| 2362 | else
|
---|
| 2363 | echo "$as_me: failed program was:" >&5
|
---|
| 2364 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2365 |
|
---|
| 2366 | fi
|
---|
| 2367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2368 | done
|
---|
| 2369 | rm -f conftest*
|
---|
| 2370 | if test -n "$ac_declaration"; then
|
---|
| 2371 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2372 | echo $ac_declaration >>confdefs.h
|
---|
| 2373 | echo '#endif' >>confdefs.h
|
---|
| 2374 | fi
|
---|
| 2375 |
|
---|
| 2376 | else
|
---|
| 2377 | echo "$as_me: failed program was:" >&5
|
---|
| 2378 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2379 |
|
---|
| 2380 | fi
|
---|
| 2381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2382 | ac_ext=c
|
---|
| 2383 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2384 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2385 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2386 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2387 |
|
---|
| 2388 | ac_ext=cc
|
---|
| 2389 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 2390 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2391 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2392 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 2393 | if test -n "$ac_tool_prefix"; then
|
---|
| 2394 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
| 2395 | do
|
---|
| 2396 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2397 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
| 2398 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2399 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2400 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 2401 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2402 | else
|
---|
| 2403 | if test -n "$CXX"; then
|
---|
| 2404 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 2405 | else
|
---|
| 2406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2407 | for as_dir in $PATH
|
---|
| 2408 | do
|
---|
| 2409 | IFS=$as_save_IFS
|
---|
| 2410 | test -z "$as_dir" && as_dir=.
|
---|
| 2411 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2412 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2413 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
| 2414 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2415 | break 2
|
---|
| 2416 | fi
|
---|
| 2417 | done
|
---|
| 2418 | done
|
---|
| 2419 |
|
---|
| 2420 | fi
|
---|
| 2421 | fi
|
---|
| 2422 | CXX=$ac_cv_prog_CXX
|
---|
| 2423 | if test -n "$CXX"; then
|
---|
| 2424 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
| 2425 | echo "${ECHO_T}$CXX" >&6
|
---|
| 2426 | else
|
---|
| 2427 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2428 | echo "${ECHO_T}no" >&6
|
---|
| 2429 | fi
|
---|
| 2430 |
|
---|
| 2431 | test -n "$CXX" && break
|
---|
| 2432 | done
|
---|
| 2433 | fi
|
---|
| 2434 | if test -z "$CXX"; then
|
---|
| 2435 | ac_ct_CXX=$CXX
|
---|
| 2436 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
| 2437 | do
|
---|
| 2438 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2439 | set dummy $ac_prog; ac_word=$2
|
---|
| 2440 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2442 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 2443 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2444 | else
|
---|
| 2445 | if test -n "$ac_ct_CXX"; then
|
---|
| 2446 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 2447 | else
|
---|
| 2448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2449 | for as_dir in $PATH
|
---|
| 2450 | do
|
---|
| 2451 | IFS=$as_save_IFS
|
---|
| 2452 | test -z "$as_dir" && as_dir=.
|
---|
| 2453 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2454 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2455 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
| 2456 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2457 | break 2
|
---|
| 2458 | fi
|
---|
| 2459 | done
|
---|
| 2460 | done
|
---|
| 2461 |
|
---|
| 2462 | fi
|
---|
| 2463 | fi
|
---|
| 2464 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 2465 | if test -n "$ac_ct_CXX"; then
|
---|
| 2466 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
| 2467 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
| 2468 | else
|
---|
| 2469 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2470 | echo "${ECHO_T}no" >&6
|
---|
| 2471 | fi
|
---|
| 2472 |
|
---|
| 2473 | test -n "$ac_ct_CXX" && break
|
---|
| 2474 | done
|
---|
| 2475 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
| 2476 |
|
---|
| 2477 | CXX=$ac_ct_CXX
|
---|
| 2478 | fi
|
---|
| 2479 |
|
---|
| 2480 |
|
---|
| 2481 | # Provide some information about the compiler.
|
---|
| 2482 | echo "$as_me:$LINENO:" \
|
---|
| 2483 | "checking for C++ compiler version" >&5
|
---|
| 2484 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 2485 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 2486 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 2487 | ac_status=$?
|
---|
| 2488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2489 | (exit $ac_status); }
|
---|
| 2490 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 2491 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 2492 | ac_status=$?
|
---|
| 2493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2494 | (exit $ac_status); }
|
---|
| 2495 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 2496 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 2497 | ac_status=$?
|
---|
| 2498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2499 | (exit $ac_status); }
|
---|
| 2500 |
|
---|
| 2501 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
| 2502 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
| 2503 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 2504 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2505 | else
|
---|
| 2506 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2507 | /* confdefs.h. */
|
---|
| 2508 | _ACEOF
|
---|
| 2509 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2510 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2511 | /* end confdefs.h. */
|
---|
| 2512 |
|
---|
| 2513 | int
|
---|
| 2514 | main ()
|
---|
| 2515 | {
|
---|
| 2516 | #ifndef __GNUC__
|
---|
| 2517 | choke me
|
---|
| 2518 | #endif
|
---|
| 2519 |
|
---|
| 2520 | ;
|
---|
| 2521 | return 0;
|
---|
| 2522 | }
|
---|
| 2523 | _ACEOF
|
---|
| 2524 | rm -f conftest.$ac_objext
|
---|
| 2525 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2526 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2527 | ac_status=$?
|
---|
| 2528 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2529 | rm -f conftest.er1
|
---|
| 2530 | cat conftest.err >&5
|
---|
| 2531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2532 | (exit $ac_status); } &&
|
---|
| 2533 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2534 | || test ! -s conftest.err'
|
---|
| 2535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2536 | (eval $ac_try) 2>&5
|
---|
| 2537 | ac_status=$?
|
---|
| 2538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2539 | (exit $ac_status); }; } &&
|
---|
| 2540 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2542 | (eval $ac_try) 2>&5
|
---|
| 2543 | ac_status=$?
|
---|
| 2544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2545 | (exit $ac_status); }; }; then
|
---|
| 2546 | ac_compiler_gnu=yes
|
---|
| 2547 | else
|
---|
| 2548 | echo "$as_me: failed program was:" >&5
|
---|
| 2549 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2550 |
|
---|
| 2551 | ac_compiler_gnu=no
|
---|
| 2552 | fi
|
---|
| 2553 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2554 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 2555 |
|
---|
| 2556 | fi
|
---|
| 2557 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
| 2558 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
| 2559 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2560 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 2561 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
| 2562 | CXXFLAGS="-g"
|
---|
| 2563 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
| 2564 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
| 2565 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 2566 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2567 | else
|
---|
| 2568 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2569 | /* confdefs.h. */
|
---|
| 2570 | _ACEOF
|
---|
| 2571 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2572 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2573 | /* end confdefs.h. */
|
---|
| 2574 |
|
---|
| 2575 | int
|
---|
| 2576 | main ()
|
---|
| 2577 | {
|
---|
| 2578 |
|
---|
| 2579 | ;
|
---|
| 2580 | return 0;
|
---|
| 2581 | }
|
---|
| 2582 | _ACEOF
|
---|
| 2583 | rm -f conftest.$ac_objext
|
---|
| 2584 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2585 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2586 | ac_status=$?
|
---|
| 2587 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2588 | rm -f conftest.er1
|
---|
| 2589 | cat conftest.err >&5
|
---|
| 2590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2591 | (exit $ac_status); } &&
|
---|
| 2592 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2593 | || test ! -s conftest.err'
|
---|
| 2594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2595 | (eval $ac_try) 2>&5
|
---|
| 2596 | ac_status=$?
|
---|
| 2597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2598 | (exit $ac_status); }; } &&
|
---|
| 2599 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2601 | (eval $ac_try) 2>&5
|
---|
| 2602 | ac_status=$?
|
---|
| 2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2604 | (exit $ac_status); }; }; then
|
---|
| 2605 | ac_cv_prog_cxx_g=yes
|
---|
| 2606 | else
|
---|
| 2607 | echo "$as_me: failed program was:" >&5
|
---|
| 2608 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2609 |
|
---|
| 2610 | ac_cv_prog_cxx_g=no
|
---|
| 2611 | fi
|
---|
| 2612 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2613 | fi
|
---|
| 2614 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
| 2615 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
| 2616 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 2617 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 2618 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 2619 | if test "$GXX" = yes; then
|
---|
| 2620 | CXXFLAGS="-g -O2"
|
---|
| 2621 | else
|
---|
| 2622 | CXXFLAGS="-g"
|
---|
| 2623 | fi
|
---|
| 2624 | else
|
---|
| 2625 | if test "$GXX" = yes; then
|
---|
| 2626 | CXXFLAGS="-O2"
|
---|
| 2627 | else
|
---|
| 2628 | CXXFLAGS=
|
---|
| 2629 | fi
|
---|
| 2630 | fi
|
---|
| 2631 | for ac_declaration in \
|
---|
| 2632 | '' \
|
---|
| 2633 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2634 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2635 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2636 | 'extern "C" void exit (int);' \
|
---|
| 2637 | 'void exit (int);'
|
---|
| 2638 | do
|
---|
| 2639 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2640 | /* confdefs.h. */
|
---|
| 2641 | _ACEOF
|
---|
| 2642 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2643 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2644 | /* end confdefs.h. */
|
---|
| 2645 | $ac_declaration
|
---|
| 2646 | #include <stdlib.h>
|
---|
| 2647 | int
|
---|
| 2648 | main ()
|
---|
| 2649 | {
|
---|
| 2650 | exit (42);
|
---|
| 2651 | ;
|
---|
| 2652 | return 0;
|
---|
| 2653 | }
|
---|
| 2654 | _ACEOF
|
---|
| 2655 | rm -f conftest.$ac_objext
|
---|
| 2656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2657 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2658 | ac_status=$?
|
---|
| 2659 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2660 | rm -f conftest.er1
|
---|
| 2661 | cat conftest.err >&5
|
---|
| 2662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2663 | (exit $ac_status); } &&
|
---|
| 2664 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2665 | || test ! -s conftest.err'
|
---|
| 2666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2667 | (eval $ac_try) 2>&5
|
---|
| 2668 | ac_status=$?
|
---|
| 2669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2670 | (exit $ac_status); }; } &&
|
---|
| 2671 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2673 | (eval $ac_try) 2>&5
|
---|
| 2674 | ac_status=$?
|
---|
| 2675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2676 | (exit $ac_status); }; }; then
|
---|
| 2677 | :
|
---|
| 2678 | else
|
---|
| 2679 | echo "$as_me: failed program was:" >&5
|
---|
| 2680 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2681 |
|
---|
| 2682 | continue
|
---|
| 2683 | fi
|
---|
| 2684 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2685 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2686 | /* confdefs.h. */
|
---|
| 2687 | _ACEOF
|
---|
| 2688 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2689 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2690 | /* end confdefs.h. */
|
---|
| 2691 | $ac_declaration
|
---|
| 2692 | int
|
---|
| 2693 | main ()
|
---|
| 2694 | {
|
---|
| 2695 | exit (42);
|
---|
| 2696 | ;
|
---|
| 2697 | return 0;
|
---|
| 2698 | }
|
---|
| 2699 | _ACEOF
|
---|
| 2700 | rm -f conftest.$ac_objext
|
---|
| 2701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2702 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2703 | ac_status=$?
|
---|
| 2704 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2705 | rm -f conftest.er1
|
---|
| 2706 | cat conftest.err >&5
|
---|
| 2707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2708 | (exit $ac_status); } &&
|
---|
| 2709 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2710 | || test ! -s conftest.err'
|
---|
| 2711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2712 | (eval $ac_try) 2>&5
|
---|
| 2713 | ac_status=$?
|
---|
| 2714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2715 | (exit $ac_status); }; } &&
|
---|
| 2716 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2718 | (eval $ac_try) 2>&5
|
---|
| 2719 | ac_status=$?
|
---|
| 2720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2721 | (exit $ac_status); }; }; then
|
---|
| 2722 | break
|
---|
| 2723 | else
|
---|
| 2724 | echo "$as_me: failed program was:" >&5
|
---|
| 2725 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2726 |
|
---|
| 2727 | fi
|
---|
| 2728 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2729 | done
|
---|
| 2730 | rm -f conftest*
|
---|
| 2731 | if test -n "$ac_declaration"; then
|
---|
| 2732 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2733 | echo $ac_declaration >>confdefs.h
|
---|
| 2734 | echo '#endif' >>confdefs.h
|
---|
| 2735 | fi
|
---|
| 2736 |
|
---|
| 2737 | ac_ext=c
|
---|
| 2738 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2739 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2740 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2741 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2742 |
|
---|
| 2743 | for ac_prog in gawk mawk nawk awk
|
---|
| 2744 | do
|
---|
| 2745 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2746 | set dummy $ac_prog; ac_word=$2
|
---|
| 2747 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2748 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2749 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 2750 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2751 | else
|
---|
| 2752 | if test -n "$AWK"; then
|
---|
| 2753 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 2754 | else
|
---|
| 2755 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2756 | for as_dir in $PATH
|
---|
| 2757 | do
|
---|
| 2758 | IFS=$as_save_IFS
|
---|
| 2759 | test -z "$as_dir" && as_dir=.
|
---|
| 2760 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2761 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2762 | ac_cv_prog_AWK="$ac_prog"
|
---|
| 2763 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2764 | break 2
|
---|
| 2765 | fi
|
---|
| 2766 | done
|
---|
| 2767 | done
|
---|
| 2768 |
|
---|
| 2769 | fi
|
---|
| 2770 | fi
|
---|
| 2771 | AWK=$ac_cv_prog_AWK
|
---|
| 2772 | if test -n "$AWK"; then
|
---|
| 2773 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
| 2774 | echo "${ECHO_T}$AWK" >&6
|
---|
| 2775 | else
|
---|
| 2776 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2777 | echo "${ECHO_T}no" >&6
|
---|
| 2778 | fi
|
---|
| 2779 |
|
---|
| 2780 | test -n "$AWK" && break
|
---|
| 2781 | done
|
---|
| 2782 |
|
---|
| 2783 | for ac_prog in 'bison -y' byacc
|
---|
| 2784 | do
|
---|
| 2785 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2786 | set dummy $ac_prog; ac_word=$2
|
---|
| 2787 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2788 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2789 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 2790 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2791 | else
|
---|
| 2792 | if test -n "$YACC"; then
|
---|
| 2793 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 2794 | else
|
---|
| 2795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2796 | for as_dir in $PATH
|
---|
| 2797 | do
|
---|
| 2798 | IFS=$as_save_IFS
|
---|
| 2799 | test -z "$as_dir" && as_dir=.
|
---|
| 2800 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2801 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2802 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 2803 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2804 | break 2
|
---|
| 2805 | fi
|
---|
| 2806 | done
|
---|
| 2807 | done
|
---|
| 2808 |
|
---|
| 2809 | fi
|
---|
| 2810 | fi
|
---|
| 2811 | YACC=$ac_cv_prog_YACC
|
---|
| 2812 | if test -n "$YACC"; then
|
---|
| 2813 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
| 2814 | echo "${ECHO_T}$YACC" >&6
|
---|
| 2815 | else
|
---|
| 2816 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2817 | echo "${ECHO_T}no" >&6
|
---|
| 2818 | fi
|
---|
| 2819 |
|
---|
| 2820 | test -n "$YACC" && break
|
---|
| 2821 | done
|
---|
| 2822 | test -n "$YACC" || YACC="yacc"
|
---|
| 2823 |
|
---|
| 2824 | ac_aux_dir=
|
---|
| 2825 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 2826 | if test -f $ac_dir/install-sh; then
|
---|
| 2827 | ac_aux_dir=$ac_dir
|
---|
| 2828 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 2829 | break
|
---|
| 2830 | elif test -f $ac_dir/install.sh; then
|
---|
| 2831 | ac_aux_dir=$ac_dir
|
---|
| 2832 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 2833 | break
|
---|
| 2834 | elif test -f $ac_dir/shtool; then
|
---|
| 2835 | ac_aux_dir=$ac_dir
|
---|
| 2836 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 2837 | break
|
---|
| 2838 | fi
|
---|
| 2839 | done
|
---|
| 2840 | if test -z "$ac_aux_dir"; then
|
---|
| 2841 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
| 2842 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
| 2843 | { (exit 1); exit 1; }; }
|
---|
| 2844 | fi
|
---|
| 2845 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
| 2846 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
| 2847 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
| 2848 |
|
---|
| 2849 | # Make sure we can run config.sub.
|
---|
| 2850 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
| 2851 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
| 2852 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
| 2853 | { (exit 1); exit 1; }; }
|
---|
| 2854 |
|
---|
| 2855 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
| 2856 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
| 2857 | if test "${ac_cv_build+set}" = set; then
|
---|
| 2858 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2859 | else
|
---|
| 2860 | ac_cv_build_alias=$build_alias
|
---|
| 2861 | test -z "$ac_cv_build_alias" &&
|
---|
| 2862 | ac_cv_build_alias=`$ac_config_guess`
|
---|
| 2863 | test -z "$ac_cv_build_alias" &&
|
---|
| 2864 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
| 2865 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
| 2866 | { (exit 1); exit 1; }; }
|
---|
| 2867 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
| 2868 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
| 2869 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
| 2870 | { (exit 1); exit 1; }; }
|
---|
| 2871 |
|
---|
| 2872 | fi
|
---|
| 2873 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
| 2874 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
| 2875 | build=$ac_cv_build
|
---|
| 2876 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2877 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2878 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
| 2879 |
|
---|
| 2880 |
|
---|
| 2881 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
| 2882 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
| 2883 | if test "${ac_cv_host+set}" = set; then
|
---|
| 2884 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2885 | else
|
---|
| 2886 | ac_cv_host_alias=$host_alias
|
---|
| 2887 | test -z "$ac_cv_host_alias" &&
|
---|
| 2888 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
| 2889 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
| 2890 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
| 2891 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
| 2892 | { (exit 1); exit 1; }; }
|
---|
| 2893 |
|
---|
| 2894 | fi
|
---|
| 2895 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
| 2896 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
| 2897 | host=$ac_cv_host
|
---|
| 2898 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2899 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2900 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
| 2901 |
|
---|
| 2902 |
|
---|
| 2903 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
| 2904 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
| 2905 | if test "${ac_cv_target+set}" = set; then
|
---|
| 2906 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2907 | else
|
---|
| 2908 | ac_cv_target_alias=$target_alias
|
---|
| 2909 | test "x$ac_cv_target_alias" = "x" &&
|
---|
| 2910 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
| 2911 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
| 2912 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
| 2913 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
| 2914 | { (exit 1); exit 1; }; }
|
---|
| 2915 |
|
---|
| 2916 | fi
|
---|
| 2917 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
| 2918 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
| 2919 | target=$ac_cv_target
|
---|
| 2920 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2921 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2922 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
| 2923 |
|
---|
| 2924 |
|
---|
| 2925 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 2926 | # will get canonicalized.
|
---|
| 2927 | test -n "$target_alias" &&
|
---|
| 2928 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 2929 | NONENONEs,x,x, &&
|
---|
| 2930 | program_prefix=${target_alias}-
|
---|
| 2931 | # Find a good install program. We prefer a C program (faster),
|
---|
| 2932 | # so one script is as good as another. But avoid the broken or
|
---|
| 2933 | # incompatible versions:
|
---|
| 2934 | # SysV /etc/install, /usr/sbin/install
|
---|
| 2935 | # SunOS /usr/etc/install
|
---|
| 2936 | # IRIX /sbin/install
|
---|
| 2937 | # AIX /bin/install
|
---|
| 2938 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
| 2939 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 2940 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 2941 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
| 2942 | # OS/2's system install, which has a completely different semantic
|
---|
| 2943 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
| 2944 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 2945 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
| 2946 | if test -z "$INSTALL"; then
|
---|
| 2947 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 2948 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2949 | else
|
---|
| 2950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2951 | for as_dir in $PATH
|
---|
| 2952 | do
|
---|
| 2953 | IFS=$as_save_IFS
|
---|
| 2954 | test -z "$as_dir" && as_dir=.
|
---|
| 2955 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 2956 | case $as_dir/ in
|
---|
| 2957 | ./ | .// | /cC/* | \
|
---|
| 2958 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
| 2959 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
| 2960 | /usr/ucb/* ) ;;
|
---|
| 2961 | *)
|
---|
| 2962 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 2963 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 2964 | # by default.
|
---|
| 2965 | for ac_prog in ginstall scoinst install; do
|
---|
| 2966 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2967 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
| 2968 | if test $ac_prog = install &&
|
---|
| 2969 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 2970 | # AIX install. It has an incompatible calling convention.
|
---|
| 2971 | :
|
---|
| 2972 | elif test $ac_prog = install &&
|
---|
| 2973 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 2974 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 2975 | :
|
---|
| 2976 | else
|
---|
| 2977 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 2978 | break 3
|
---|
| 2979 | fi
|
---|
| 2980 | fi
|
---|
| 2981 | done
|
---|
| 2982 | done
|
---|
| 2983 | ;;
|
---|
| 2984 | esac
|
---|
| 2985 | done
|
---|
| 2986 |
|
---|
| 2987 |
|
---|
| 2988 | fi
|
---|
| 2989 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 2990 | INSTALL=$ac_cv_path_install
|
---|
| 2991 | else
|
---|
| 2992 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 2993 | # path for INSTALL within a source directory, because that will
|
---|
| 2994 | # break other packages using the cache if that directory is
|
---|
| 2995 | # removed, or if the path is relative.
|
---|
| 2996 | INSTALL=$ac_install_sh
|
---|
| 2997 | fi
|
---|
| 2998 | fi
|
---|
| 2999 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
| 3000 | echo "${ECHO_T}$INSTALL" >&6
|
---|
| 3001 |
|
---|
| 3002 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 3003 | # It thinks the first close brace ends the variable substitution.
|
---|
| 3004 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 3005 |
|
---|
| 3006 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
| 3007 |
|
---|
| 3008 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 3009 |
|
---|
| 3010 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
| 3011 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
| 3012 | LN_S=$as_ln_s
|
---|
| 3013 | if test "$LN_S" = "ln -s"; then
|
---|
| 3014 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3015 | echo "${ECHO_T}yes" >&6
|
---|
| 3016 | else
|
---|
| 3017 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
| 3018 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
| 3019 | fi
|
---|
| 3020 |
|
---|
| 3021 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 3022 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
| 3023 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
| 3024 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
| 3025 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3026 | else
|
---|
| 3027 | cat >conftest.make <<\_ACEOF
|
---|
| 3028 | all:
|
---|
| 3029 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
| 3030 | _ACEOF
|
---|
| 3031 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
| 3032 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
| 3033 | if test -n "$ac_maketemp"; then
|
---|
| 3034 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 3035 | else
|
---|
| 3036 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 3037 | fi
|
---|
| 3038 | rm -f conftest.make
|
---|
| 3039 | fi
|
---|
| 3040 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
| 3041 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3042 | echo "${ECHO_T}yes" >&6
|
---|
| 3043 | SET_MAKE=
|
---|
| 3044 | else
|
---|
| 3045 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3046 | echo "${ECHO_T}no" >&6
|
---|
| 3047 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3048 | fi
|
---|
| 3049 |
|
---|
| 3050 | if test -n "$ac_tool_prefix"; then
|
---|
| 3051 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3052 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
| 3053 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3054 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3055 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
| 3056 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3057 | else
|
---|
| 3058 | if test -n "$RANLIB"; then
|
---|
| 3059 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3060 | else
|
---|
| 3061 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3062 | for as_dir in $PATH
|
---|
| 3063 | do
|
---|
| 3064 | IFS=$as_save_IFS
|
---|
| 3065 | test -z "$as_dir" && as_dir=.
|
---|
| 3066 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3067 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 3068 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
| 3069 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3070 | break 2
|
---|
| 3071 | fi
|
---|
| 3072 | done
|
---|
| 3073 | done
|
---|
| 3074 |
|
---|
| 3075 | fi
|
---|
| 3076 | fi
|
---|
| 3077 | RANLIB=$ac_cv_prog_RANLIB
|
---|
| 3078 | if test -n "$RANLIB"; then
|
---|
| 3079 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
| 3080 | echo "${ECHO_T}$RANLIB" >&6
|
---|
| 3081 | else
|
---|
| 3082 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3083 | echo "${ECHO_T}no" >&6
|
---|
| 3084 | fi
|
---|
| 3085 |
|
---|
| 3086 | fi
|
---|
| 3087 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3088 | ac_ct_RANLIB=$RANLIB
|
---|
| 3089 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3090 | set dummy ranlib; ac_word=$2
|
---|
| 3091 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3092 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3093 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 3094 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3095 | else
|
---|
| 3096 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3097 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3098 | else
|
---|
| 3099 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3100 | for as_dir in $PATH
|
---|
| 3101 | do
|
---|
| 3102 | IFS=$as_save_IFS
|
---|
| 3103 | test -z "$as_dir" && as_dir=.
|
---|
| 3104 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3105 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 3106 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
| 3107 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3108 | break 2
|
---|
| 3109 | fi
|
---|
| 3110 | done
|
---|
| 3111 | done
|
---|
| 3112 |
|
---|
| 3113 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
| 3114 | fi
|
---|
| 3115 | fi
|
---|
| 3116 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 3117 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3118 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
| 3119 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
| 3120 | else
|
---|
| 3121 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3122 | echo "${ECHO_T}no" >&6
|
---|
| 3123 | fi
|
---|
| 3124 |
|
---|
| 3125 | RANLIB=$ac_ct_RANLIB
|
---|
| 3126 | else
|
---|
| 3127 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3128 | fi
|
---|
| 3129 |
|
---|
| 3130 |
|
---|
| 3131 | echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
|
---|
| 3132 | echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
|
---|
| 3133 | arch_64bit=no
|
---|
| 3134 | case "$host_cpu" in
|
---|
| 3135 | x86_64) arch_64bit=yes ;;
|
---|
| 3136 | esac
|
---|
| 3137 |
|
---|
| 3138 | if test "$arch_64bit" = yes; then
|
---|
| 3139 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3140 | echo "${ECHO_T}yes" >&6
|
---|
| 3141 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3142 | COMPAT32BITFLAGS="-m32"
|
---|
| 3143 | fi
|
---|
| 3144 | else
|
---|
| 3145 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3146 | echo "${ECHO_T}no" >&6
|
---|
| 3147 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3148 | COMPAT32BITFLAGS=
|
---|
| 3149 | fi
|
---|
| 3150 | fi
|
---|
| 3151 | export COMPAT32BITFLAGS
|
---|
| 3152 |
|
---|
| 3153 |
|
---|
| 3154 |
|
---|
| 3155 | #moved CORBA MICO directory test to get version of MICO
|
---|
| 3156 | if test $USE_CORBA = 1; then
|
---|
| 3157 |
|
---|
| 3158 | if test $MICO_DIR = "default"; then
|
---|
| 3159 | #do something
|
---|
| 3160 | MICO_INC="-I packages/mico/mico/include"
|
---|
| 3161 | else
|
---|
| 3162 | #build the micotest program
|
---|
| 3163 | MICO_INC= ""
|
---|
| 3164 | if test $MICO_DIR != yes; then
|
---|
| 3165 | MICO_INC="-I $MICO_DIR"
|
---|
| 3166 | fi
|
---|
| 3167 | fi
|
---|
| 3168 |
|
---|
| 3169 | #get MICO_VER value
|
---|
| 3170 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
| 3171 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
| 3172 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
| 3173 | sh -c "rm micotest"
|
---|
| 3174 | sh -c "rm micotest.o"
|
---|
| 3175 |
|
---|
| 3176 | #do test of MICO_VER
|
---|
| 3177 | if test MICO_VER != 0; then
|
---|
| 3178 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3179 | #define MICO_VER 1
|
---|
| 3180 | _ACEOF
|
---|
| 3181 |
|
---|
| 3182 |
|
---|
| 3183 | fi
|
---|
| 3184 | #end USE_CORBA test
|
---|
| 3185 | fi
|
---|
| 3186 |
|
---|
| 3187 |
|
---|
| 3188 | ac_ext=c
|
---|
| 3189 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3190 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3191 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3192 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3193 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
| 3194 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
| 3195 | # On Suns, sometimes $CPP names a directory.
|
---|
| 3196 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 3197 | CPP=
|
---|
| 3198 | fi
|
---|
| 3199 | if test -z "$CPP"; then
|
---|
| 3200 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 3201 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3202 | else
|
---|
| 3203 | # Double quotes because CPP needs to be expanded
|
---|
| 3204 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 3205 | do
|
---|
| 3206 | ac_preproc_ok=false
|
---|
| 3207 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3208 | do
|
---|
| 3209 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3210 | # with a fresh cross-compiler works.
|
---|
| 3211 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3212 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3213 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3214 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3215 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3216 | /* confdefs.h. */
|
---|
| 3217 | _ACEOF
|
---|
| 3218 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3219 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3220 | /* end confdefs.h. */
|
---|
| 3221 | #ifdef __STDC__
|
---|
| 3222 | # include <limits.h>
|
---|
| 3223 | #else
|
---|
| 3224 | # include <assert.h>
|
---|
| 3225 | #endif
|
---|
| 3226 | Syntax error
|
---|
| 3227 | _ACEOF
|
---|
| 3228 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3229 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3230 | ac_status=$?
|
---|
| 3231 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3232 | rm -f conftest.er1
|
---|
| 3233 | cat conftest.err >&5
|
---|
| 3234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3235 | (exit $ac_status); } >/dev/null; then
|
---|
| 3236 | if test -s conftest.err; then
|
---|
| 3237 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3238 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3239 | else
|
---|
| 3240 | ac_cpp_err=
|
---|
| 3241 | fi
|
---|
| 3242 | else
|
---|
| 3243 | ac_cpp_err=yes
|
---|
| 3244 | fi
|
---|
| 3245 | if test -z "$ac_cpp_err"; then
|
---|
| 3246 | :
|
---|
| 3247 | else
|
---|
| 3248 | echo "$as_me: failed program was:" >&5
|
---|
| 3249 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3250 |
|
---|
| 3251 | # Broken: fails on valid input.
|
---|
| 3252 | continue
|
---|
| 3253 | fi
|
---|
| 3254 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3255 |
|
---|
| 3256 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3257 | # can be detected and how.
|
---|
| 3258 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3259 | /* confdefs.h. */
|
---|
| 3260 | _ACEOF
|
---|
| 3261 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3262 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3263 | /* end confdefs.h. */
|
---|
| 3264 | #include <ac_nonexistent.h>
|
---|
| 3265 | _ACEOF
|
---|
| 3266 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3267 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3268 | ac_status=$?
|
---|
| 3269 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3270 | rm -f conftest.er1
|
---|
| 3271 | cat conftest.err >&5
|
---|
| 3272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3273 | (exit $ac_status); } >/dev/null; then
|
---|
| 3274 | if test -s conftest.err; then
|
---|
| 3275 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3276 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3277 | else
|
---|
| 3278 | ac_cpp_err=
|
---|
| 3279 | fi
|
---|
| 3280 | else
|
---|
| 3281 | ac_cpp_err=yes
|
---|
| 3282 | fi
|
---|
| 3283 | if test -z "$ac_cpp_err"; then
|
---|
| 3284 | # Broken: success on invalid input.
|
---|
| 3285 | continue
|
---|
| 3286 | else
|
---|
| 3287 | echo "$as_me: failed program was:" >&5
|
---|
| 3288 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3289 |
|
---|
| 3290 | # Passes both tests.
|
---|
| 3291 | ac_preproc_ok=:
|
---|
| 3292 | break
|
---|
| 3293 | fi
|
---|
| 3294 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3295 |
|
---|
| 3296 | done
|
---|
| 3297 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3298 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3299 | if $ac_preproc_ok; then
|
---|
| 3300 | break
|
---|
| 3301 | fi
|
---|
| 3302 |
|
---|
| 3303 | done
|
---|
| 3304 | ac_cv_prog_CPP=$CPP
|
---|
| 3305 |
|
---|
| 3306 | fi
|
---|
| 3307 | CPP=$ac_cv_prog_CPP
|
---|
| 3308 | else
|
---|
| 3309 | ac_cv_prog_CPP=$CPP
|
---|
| 3310 | fi
|
---|
| 3311 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
| 3312 | echo "${ECHO_T}$CPP" >&6
|
---|
| 3313 | ac_preproc_ok=false
|
---|
| 3314 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3315 | do
|
---|
| 3316 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3317 | # with a fresh cross-compiler works.
|
---|
| 3318 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3319 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3320 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3321 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3322 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3323 | /* confdefs.h. */
|
---|
| 3324 | _ACEOF
|
---|
| 3325 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3326 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3327 | /* end confdefs.h. */
|
---|
| 3328 | #ifdef __STDC__
|
---|
| 3329 | # include <limits.h>
|
---|
| 3330 | #else
|
---|
| 3331 | # include <assert.h>
|
---|
| 3332 | #endif
|
---|
| 3333 | Syntax error
|
---|
| 3334 | _ACEOF
|
---|
| 3335 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3336 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3337 | ac_status=$?
|
---|
| 3338 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3339 | rm -f conftest.er1
|
---|
| 3340 | cat conftest.err >&5
|
---|
| 3341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3342 | (exit $ac_status); } >/dev/null; then
|
---|
| 3343 | if test -s conftest.err; then
|
---|
| 3344 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3345 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3346 | else
|
---|
| 3347 | ac_cpp_err=
|
---|
| 3348 | fi
|
---|
| 3349 | else
|
---|
| 3350 | ac_cpp_err=yes
|
---|
| 3351 | fi
|
---|
| 3352 | if test -z "$ac_cpp_err"; then
|
---|
| 3353 | :
|
---|
| 3354 | else
|
---|
| 3355 | echo "$as_me: failed program was:" >&5
|
---|
| 3356 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3357 |
|
---|
| 3358 | # Broken: fails on valid input.
|
---|
| 3359 | continue
|
---|
| 3360 | fi
|
---|
| 3361 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3362 |
|
---|
| 3363 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3364 | # can be detected and how.
|
---|
| 3365 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3366 | /* confdefs.h. */
|
---|
| 3367 | _ACEOF
|
---|
| 3368 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3369 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3370 | /* end confdefs.h. */
|
---|
| 3371 | #include <ac_nonexistent.h>
|
---|
| 3372 | _ACEOF
|
---|
| 3373 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3374 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3375 | ac_status=$?
|
---|
| 3376 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3377 | rm -f conftest.er1
|
---|
| 3378 | cat conftest.err >&5
|
---|
| 3379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3380 | (exit $ac_status); } >/dev/null; then
|
---|
| 3381 | if test -s conftest.err; then
|
---|
| 3382 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3383 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3384 | else
|
---|
| 3385 | ac_cpp_err=
|
---|
| 3386 | fi
|
---|
| 3387 | else
|
---|
| 3388 | ac_cpp_err=yes
|
---|
| 3389 | fi
|
---|
| 3390 | if test -z "$ac_cpp_err"; then
|
---|
| 3391 | # Broken: success on invalid input.
|
---|
| 3392 | continue
|
---|
| 3393 | else
|
---|
| 3394 | echo "$as_me: failed program was:" >&5
|
---|
| 3395 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3396 |
|
---|
| 3397 | # Passes both tests.
|
---|
| 3398 | ac_preproc_ok=:
|
---|
| 3399 | break
|
---|
| 3400 | fi
|
---|
| 3401 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3402 |
|
---|
| 3403 | done
|
---|
| 3404 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3405 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3406 | if $ac_preproc_ok; then
|
---|
| 3407 | :
|
---|
| 3408 | else
|
---|
| 3409 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3410 | See \`config.log' for more details." >&5
|
---|
| 3411 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3412 | See \`config.log' for more details." >&2;}
|
---|
| 3413 | { (exit 1); exit 1; }; }
|
---|
| 3414 | fi
|
---|
| 3415 |
|
---|
| 3416 | ac_ext=c
|
---|
| 3417 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3418 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3419 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3420 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3421 |
|
---|
| 3422 |
|
---|
| 3423 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 3424 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
| 3425 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
| 3426 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3427 | else
|
---|
| 3428 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
| 3429 | then ac_cv_prog_egrep='grep -E'
|
---|
| 3430 | else ac_cv_prog_egrep='egrep'
|
---|
| 3431 | fi
|
---|
| 3432 | fi
|
---|
| 3433 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
| 3434 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
| 3435 | EGREP=$ac_cv_prog_egrep
|
---|
| 3436 |
|
---|
| 3437 |
|
---|
| 3438 |
|
---|
| 3439 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
| 3440 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
| 3441 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3442 | /* confdefs.h. */
|
---|
| 3443 | _ACEOF
|
---|
| 3444 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3445 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3446 | /* end confdefs.h. */
|
---|
| 3447 | #ifdef _AIX
|
---|
| 3448 | yes
|
---|
| 3449 | #endif
|
---|
| 3450 |
|
---|
| 3451 | _ACEOF
|
---|
| 3452 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3453 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
| 3454 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3455 | echo "${ECHO_T}yes" >&6
|
---|
| 3456 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3457 | #define _ALL_SOURCE 1
|
---|
| 3458 | _ACEOF
|
---|
| 3459 |
|
---|
| 3460 | else
|
---|
| 3461 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3462 | echo "${ECHO_T}no" >&6
|
---|
| 3463 | fi
|
---|
| 3464 | rm -f conftest*
|
---|
| 3465 |
|
---|
| 3466 |
|
---|
| 3467 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 3468 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
| 3469 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 3470 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3471 | else
|
---|
| 3472 | ac_func_search_save_LIBS=$LIBS
|
---|
| 3473 | ac_cv_search_strerror=no
|
---|
| 3474 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3475 | /* confdefs.h. */
|
---|
| 3476 | _ACEOF
|
---|
| 3477 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3478 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3479 | /* end confdefs.h. */
|
---|
| 3480 |
|
---|
| 3481 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3482 | #ifdef __cplusplus
|
---|
| 3483 | extern "C"
|
---|
| 3484 | #endif
|
---|
| 3485 | /* We use char because int might match the return type of a gcc2
|
---|
| 3486 | builtin and then its argument prototype would still apply. */
|
---|
| 3487 | char strerror ();
|
---|
| 3488 | int
|
---|
| 3489 | main ()
|
---|
| 3490 | {
|
---|
| 3491 | strerror ();
|
---|
| 3492 | ;
|
---|
| 3493 | return 0;
|
---|
| 3494 | }
|
---|
| 3495 | _ACEOF
|
---|
| 3496 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3497 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3498 | (eval $ac_link) 2>conftest.er1
|
---|
| 3499 | ac_status=$?
|
---|
| 3500 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3501 | rm -f conftest.er1
|
---|
| 3502 | cat conftest.err >&5
|
---|
| 3503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3504 | (exit $ac_status); } &&
|
---|
| 3505 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3506 | || test ! -s conftest.err'
|
---|
| 3507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3508 | (eval $ac_try) 2>&5
|
---|
| 3509 | ac_status=$?
|
---|
| 3510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3511 | (exit $ac_status); }; } &&
|
---|
| 3512 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3514 | (eval $ac_try) 2>&5
|
---|
| 3515 | ac_status=$?
|
---|
| 3516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3517 | (exit $ac_status); }; }; then
|
---|
| 3518 | ac_cv_search_strerror="none required"
|
---|
| 3519 | else
|
---|
| 3520 | echo "$as_me: failed program was:" >&5
|
---|
| 3521 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3522 |
|
---|
| 3523 | fi
|
---|
| 3524 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3525 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3526 | if test "$ac_cv_search_strerror" = no; then
|
---|
| 3527 | for ac_lib in cposix; do
|
---|
| 3528 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 3529 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3530 | /* confdefs.h. */
|
---|
| 3531 | _ACEOF
|
---|
| 3532 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3533 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3534 | /* end confdefs.h. */
|
---|
| 3535 |
|
---|
| 3536 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3537 | #ifdef __cplusplus
|
---|
| 3538 | extern "C"
|
---|
| 3539 | #endif
|
---|
| 3540 | /* We use char because int might match the return type of a gcc2
|
---|
| 3541 | builtin and then its argument prototype would still apply. */
|
---|
| 3542 | char strerror ();
|
---|
| 3543 | int
|
---|
| 3544 | main ()
|
---|
| 3545 | {
|
---|
| 3546 | strerror ();
|
---|
| 3547 | ;
|
---|
| 3548 | return 0;
|
---|
| 3549 | }
|
---|
| 3550 | _ACEOF
|
---|
| 3551 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3553 | (eval $ac_link) 2>conftest.er1
|
---|
| 3554 | ac_status=$?
|
---|
| 3555 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3556 | rm -f conftest.er1
|
---|
| 3557 | cat conftest.err >&5
|
---|
| 3558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3559 | (exit $ac_status); } &&
|
---|
| 3560 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3561 | || test ! -s conftest.err'
|
---|
| 3562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3563 | (eval $ac_try) 2>&5
|
---|
| 3564 | ac_status=$?
|
---|
| 3565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3566 | (exit $ac_status); }; } &&
|
---|
| 3567 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3569 | (eval $ac_try) 2>&5
|
---|
| 3570 | ac_status=$?
|
---|
| 3571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3572 | (exit $ac_status); }; }; then
|
---|
| 3573 | ac_cv_search_strerror="-l$ac_lib"
|
---|
| 3574 | break
|
---|
| 3575 | else
|
---|
| 3576 | echo "$as_me: failed program was:" >&5
|
---|
| 3577 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3578 |
|
---|
| 3579 | fi
|
---|
| 3580 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3581 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3582 | done
|
---|
| 3583 | fi
|
---|
| 3584 | LIBS=$ac_func_search_save_LIBS
|
---|
| 3585 | fi
|
---|
| 3586 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 3587 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
| 3588 | if test "$ac_cv_search_strerror" != no; then
|
---|
| 3589 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
| 3590 |
|
---|
| 3591 | fi
|
---|
| 3592 |
|
---|
| 3593 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 3594 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 3595 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 3596 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3597 | else
|
---|
| 3598 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3599 | /* confdefs.h. */
|
---|
| 3600 | _ACEOF
|
---|
| 3601 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3602 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3603 | /* end confdefs.h. */
|
---|
| 3604 | #include <stdlib.h>
|
---|
| 3605 | #include <stdarg.h>
|
---|
| 3606 | #include <string.h>
|
---|
| 3607 | #include <float.h>
|
---|
| 3608 |
|
---|
| 3609 | int
|
---|
| 3610 | main ()
|
---|
| 3611 | {
|
---|
| 3612 |
|
---|
| 3613 | ;
|
---|
| 3614 | return 0;
|
---|
| 3615 | }
|
---|
| 3616 | _ACEOF
|
---|
| 3617 | rm -f conftest.$ac_objext
|
---|
| 3618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3619 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3620 | ac_status=$?
|
---|
| 3621 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3622 | rm -f conftest.er1
|
---|
| 3623 | cat conftest.err >&5
|
---|
| 3624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3625 | (exit $ac_status); } &&
|
---|
| 3626 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3627 | || test ! -s conftest.err'
|
---|
| 3628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3629 | (eval $ac_try) 2>&5
|
---|
| 3630 | ac_status=$?
|
---|
| 3631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3632 | (exit $ac_status); }; } &&
|
---|
| 3633 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3635 | (eval $ac_try) 2>&5
|
---|
| 3636 | ac_status=$?
|
---|
| 3637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3638 | (exit $ac_status); }; }; then
|
---|
| 3639 | ac_cv_header_stdc=yes
|
---|
| 3640 | else
|
---|
| 3641 | echo "$as_me: failed program was:" >&5
|
---|
| 3642 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3643 |
|
---|
| 3644 | ac_cv_header_stdc=no
|
---|
| 3645 | fi
|
---|
| 3646 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3647 |
|
---|
| 3648 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3649 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 3650 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3651 | /* confdefs.h. */
|
---|
| 3652 | _ACEOF
|
---|
| 3653 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3654 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3655 | /* end confdefs.h. */
|
---|
| 3656 | #include <string.h>
|
---|
| 3657 |
|
---|
| 3658 | _ACEOF
|
---|
| 3659 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3660 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 3661 | :
|
---|
| 3662 | else
|
---|
| 3663 | ac_cv_header_stdc=no
|
---|
| 3664 | fi
|
---|
| 3665 | rm -f conftest*
|
---|
| 3666 |
|
---|
| 3667 | fi
|
---|
| 3668 |
|
---|
| 3669 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3670 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 3671 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3672 | /* confdefs.h. */
|
---|
| 3673 | _ACEOF
|
---|
| 3674 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3675 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3676 | /* end confdefs.h. */
|
---|
| 3677 | #include <stdlib.h>
|
---|
| 3678 |
|
---|
| 3679 | _ACEOF
|
---|
| 3680 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3681 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 3682 | :
|
---|
| 3683 | else
|
---|
| 3684 | ac_cv_header_stdc=no
|
---|
| 3685 | fi
|
---|
| 3686 | rm -f conftest*
|
---|
| 3687 |
|
---|
| 3688 | fi
|
---|
| 3689 |
|
---|
| 3690 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3691 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 3692 | if test "$cross_compiling" = yes; then
|
---|
| 3693 | :
|
---|
| 3694 | else
|
---|
| 3695 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3696 | /* confdefs.h. */
|
---|
| 3697 | _ACEOF
|
---|
| 3698 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3699 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3700 | /* end confdefs.h. */
|
---|
| 3701 | #include <ctype.h>
|
---|
| 3702 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 3703 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 3704 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 3705 | #else
|
---|
| 3706 | # define ISLOWER(c) \
|
---|
| 3707 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 3708 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 3709 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 3710 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 3711 | #endif
|
---|
| 3712 |
|
---|
| 3713 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 3714 | int
|
---|
| 3715 | main ()
|
---|
| 3716 | {
|
---|
| 3717 | int i;
|
---|
| 3718 | for (i = 0; i < 256; i++)
|
---|
| 3719 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 3720 | || toupper (i) != TOUPPER (i))
|
---|
| 3721 | exit(2);
|
---|
| 3722 | exit (0);
|
---|
| 3723 | }
|
---|
| 3724 | _ACEOF
|
---|
| 3725 | rm -f conftest$ac_exeext
|
---|
| 3726 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3727 | (eval $ac_link) 2>&5
|
---|
| 3728 | ac_status=$?
|
---|
| 3729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3730 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 3731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3732 | (eval $ac_try) 2>&5
|
---|
| 3733 | ac_status=$?
|
---|
| 3734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3735 | (exit $ac_status); }; }; then
|
---|
| 3736 | :
|
---|
| 3737 | else
|
---|
| 3738 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 3739 | echo "$as_me: failed program was:" >&5
|
---|
| 3740 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3741 |
|
---|
| 3742 | ( exit $ac_status )
|
---|
| 3743 | ac_cv_header_stdc=no
|
---|
| 3744 | fi
|
---|
| 3745 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 3746 | fi
|
---|
| 3747 | fi
|
---|
| 3748 | fi
|
---|
| 3749 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 3750 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 3751 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3752 |
|
---|
| 3753 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3754 | #define STDC_HEADERS 1
|
---|
| 3755 | _ACEOF
|
---|
| 3756 |
|
---|
| 3757 | fi
|
---|
| 3758 |
|
---|
| 3759 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 3760 |
|
---|
| 3761 |
|
---|
| 3762 |
|
---|
| 3763 |
|
---|
| 3764 |
|
---|
| 3765 |
|
---|
| 3766 |
|
---|
| 3767 |
|
---|
| 3768 |
|
---|
| 3769 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 3770 | inttypes.h stdint.h unistd.h
|
---|
| 3771 | do
|
---|
| 3772 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 3773 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 3774 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 3775 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 3776 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3777 | else
|
---|
| 3778 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3779 | /* confdefs.h. */
|
---|
| 3780 | _ACEOF
|
---|
| 3781 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3782 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3783 | /* end confdefs.h. */
|
---|
| 3784 | $ac_includes_default
|
---|
| 3785 |
|
---|
| 3786 | #include <$ac_header>
|
---|
| 3787 | _ACEOF
|
---|
| 3788 | rm -f conftest.$ac_objext
|
---|
| 3789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3790 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3791 | ac_status=$?
|
---|
| 3792 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3793 | rm -f conftest.er1
|
---|
| 3794 | cat conftest.err >&5
|
---|
| 3795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3796 | (exit $ac_status); } &&
|
---|
| 3797 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3798 | || test ! -s conftest.err'
|
---|
| 3799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3800 | (eval $ac_try) 2>&5
|
---|
| 3801 | ac_status=$?
|
---|
| 3802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3803 | (exit $ac_status); }; } &&
|
---|
| 3804 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3806 | (eval $ac_try) 2>&5
|
---|
| 3807 | ac_status=$?
|
---|
| 3808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3809 | (exit $ac_status); }; }; then
|
---|
| 3810 | eval "$as_ac_Header=yes"
|
---|
| 3811 | else
|
---|
| 3812 | echo "$as_me: failed program was:" >&5
|
---|
| 3813 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3814 |
|
---|
| 3815 | eval "$as_ac_Header=no"
|
---|
| 3816 | fi
|
---|
| 3817 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3818 | fi
|
---|
| 3819 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 3820 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 3821 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 3822 | cat >>confdefs.h <<_ACEOF
|
---|
| 3823 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 3824 | _ACEOF
|
---|
| 3825 |
|
---|
| 3826 | fi
|
---|
| 3827 |
|
---|
| 3828 | done
|
---|
| 3829 |
|
---|
| 3830 |
|
---|
| 3831 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3832 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3833 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3834 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3835 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3836 | fi
|
---|
| 3837 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3838 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
| 3839 | else
|
---|
| 3840 | # Is the header compilable?
|
---|
| 3841 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 3842 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
| 3843 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3844 | /* confdefs.h. */
|
---|
| 3845 | _ACEOF
|
---|
| 3846 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3847 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3848 | /* end confdefs.h. */
|
---|
| 3849 | $ac_includes_default
|
---|
| 3850 | #include <minix/config.h>
|
---|
| 3851 | _ACEOF
|
---|
| 3852 | rm -f conftest.$ac_objext
|
---|
| 3853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3854 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3855 | ac_status=$?
|
---|
| 3856 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3857 | rm -f conftest.er1
|
---|
| 3858 | cat conftest.err >&5
|
---|
| 3859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3860 | (exit $ac_status); } &&
|
---|
| 3861 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3862 | || test ! -s conftest.err'
|
---|
| 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); }; } &&
|
---|
| 3868 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3870 | (eval $ac_try) 2>&5
|
---|
| 3871 | ac_status=$?
|
---|
| 3872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3873 | (exit $ac_status); }; }; then
|
---|
| 3874 | ac_header_compiler=yes
|
---|
| 3875 | else
|
---|
| 3876 | echo "$as_me: failed program was:" >&5
|
---|
| 3877 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3878 |
|
---|
| 3879 | ac_header_compiler=no
|
---|
| 3880 | fi
|
---|
| 3881 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3882 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 3883 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 3884 |
|
---|
| 3885 | # Is the header present?
|
---|
| 3886 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 3887 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
| 3888 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3889 | /* confdefs.h. */
|
---|
| 3890 | _ACEOF
|
---|
| 3891 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3892 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3893 | /* end confdefs.h. */
|
---|
| 3894 | #include <minix/config.h>
|
---|
| 3895 | _ACEOF
|
---|
| 3896 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3897 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3898 | ac_status=$?
|
---|
| 3899 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3900 | rm -f conftest.er1
|
---|
| 3901 | cat conftest.err >&5
|
---|
| 3902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3903 | (exit $ac_status); } >/dev/null; then
|
---|
| 3904 | if test -s conftest.err; then
|
---|
| 3905 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3906 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3907 | else
|
---|
| 3908 | ac_cpp_err=
|
---|
| 3909 | fi
|
---|
| 3910 | else
|
---|
| 3911 | ac_cpp_err=yes
|
---|
| 3912 | fi
|
---|
| 3913 | if test -z "$ac_cpp_err"; then
|
---|
| 3914 | ac_header_preproc=yes
|
---|
| 3915 | else
|
---|
| 3916 | echo "$as_me: failed program was:" >&5
|
---|
| 3917 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3918 |
|
---|
| 3919 | ac_header_preproc=no
|
---|
| 3920 | fi
|
---|
| 3921 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3922 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 3923 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 3924 |
|
---|
| 3925 | # So? What about this header?
|
---|
| 3926 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 3927 | yes:no: )
|
---|
| 3928 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 3929 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 3930 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 3931 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 3932 | ac_header_preproc=yes
|
---|
| 3933 | ;;
|
---|
| 3934 | no:yes:* )
|
---|
| 3935 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 3936 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 3937 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 3938 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 3939 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 3940 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 3941 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 3942 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 3943 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 3944 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 3945 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 3946 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 3947 | (
|
---|
| 3948 | cat <<\_ASBOX
|
---|
| 3949 | ## ------------------------------------------ ##
|
---|
| 3950 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 3951 | ## ------------------------------------------ ##
|
---|
| 3952 | _ASBOX
|
---|
| 3953 | ) |
|
---|
| 3954 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 3955 | ;;
|
---|
| 3956 | esac
|
---|
| 3957 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3958 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3959 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3960 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3961 | else
|
---|
| 3962 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
| 3963 | fi
|
---|
| 3964 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3965 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
| 3966 |
|
---|
| 3967 | fi
|
---|
| 3968 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
| 3969 | MINIX=yes
|
---|
| 3970 | else
|
---|
| 3971 | MINIX=
|
---|
| 3972 | fi
|
---|
| 3973 |
|
---|
| 3974 |
|
---|
| 3975 | if test "$MINIX" = yes; then
|
---|
| 3976 |
|
---|
| 3977 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3978 | #define _POSIX_SOURCE 1
|
---|
| 3979 | _ACEOF
|
---|
| 3980 |
|
---|
| 3981 |
|
---|
| 3982 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3983 | #define _POSIX_1_SOURCE 2
|
---|
| 3984 | _ACEOF
|
---|
| 3985 |
|
---|
| 3986 |
|
---|
| 3987 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3988 | #define _MINIX 1
|
---|
| 3989 | _ACEOF
|
---|
| 3990 |
|
---|
| 3991 | fi
|
---|
| 3992 |
|
---|
| 3993 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
| 3994 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
| 3995 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 3996 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3997 | else
|
---|
| 3998 | ac_cv_prog_cc_stdc=no
|
---|
| 3999 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 4000 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 4001 | # breaks some systems' header files.
|
---|
| 4002 | # AIX -qlanglvl=ansi
|
---|
| 4003 | # Ultrix and OSF/1 -std1
|
---|
| 4004 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 4005 | # SVR4 -Xc
|
---|
| 4006 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 4007 | do
|
---|
| 4008 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
| 4009 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4010 | /* confdefs.h. */
|
---|
| 4011 | _ACEOF
|
---|
| 4012 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4013 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4014 | /* end confdefs.h. */
|
---|
| 4015 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 4016 | choke me
|
---|
| 4017 | #endif
|
---|
| 4018 |
|
---|
| 4019 | int
|
---|
| 4020 | main ()
|
---|
| 4021 | {
|
---|
| 4022 | int test (int i, double x);
|
---|
| 4023 | struct s1 {int (*f) (int a);};
|
---|
| 4024 | struct s2 {int (*f) (double a);};
|
---|
| 4025 | ;
|
---|
| 4026 | return 0;
|
---|
| 4027 | }
|
---|
| 4028 | _ACEOF
|
---|
| 4029 | rm -f conftest.$ac_objext
|
---|
| 4030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4031 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4032 | ac_status=$?
|
---|
| 4033 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4034 | rm -f conftest.er1
|
---|
| 4035 | cat conftest.err >&5
|
---|
| 4036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4037 | (exit $ac_status); } &&
|
---|
| 4038 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4039 | || test ! -s conftest.err'
|
---|
| 4040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4041 | (eval $ac_try) 2>&5
|
---|
| 4042 | ac_status=$?
|
---|
| 4043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4044 | (exit $ac_status); }; } &&
|
---|
| 4045 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4047 | (eval $ac_try) 2>&5
|
---|
| 4048 | ac_status=$?
|
---|
| 4049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4050 | (exit $ac_status); }; }; then
|
---|
| 4051 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 4052 | else
|
---|
| 4053 | echo "$as_me: failed program was:" >&5
|
---|
| 4054 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4055 |
|
---|
| 4056 | fi
|
---|
| 4057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4058 | done
|
---|
| 4059 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 4060 |
|
---|
| 4061 | fi
|
---|
| 4062 |
|
---|
| 4063 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 4064 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 4065 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 4066 | x|xno) ;;
|
---|
| 4067 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 4068 | esac
|
---|
| 4069 |
|
---|
| 4070 |
|
---|
| 4071 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
| 4072 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
| 4073 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
| 4074 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 4075 | echo "${ECHO_T}yes" >&6
|
---|
| 4076 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4077 | #define PROTOTYPES 1
|
---|
| 4078 | _ACEOF
|
---|
| 4079 |
|
---|
| 4080 | U= ANSI2KNR=
|
---|
| 4081 | else
|
---|
| 4082 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4083 | echo "${ECHO_T}no" >&6
|
---|
| 4084 | U=_ ANSI2KNR=ansi2knr
|
---|
| 4085 | fi
|
---|
| 4086 |
|
---|
| 4087 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
| 4088 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
| 4089 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 4090 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4091 | else
|
---|
| 4092 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4093 | /* confdefs.h. */
|
---|
| 4094 | _ACEOF
|
---|
| 4095 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4096 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4097 | /* end confdefs.h. */
|
---|
| 4098 |
|
---|
| 4099 | int
|
---|
| 4100 | main ()
|
---|
| 4101 | {
|
---|
| 4102 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 4103 | #ifndef __cplusplus
|
---|
| 4104 | /* Ultrix mips cc rejects this. */
|
---|
| 4105 | typedef int charset[2];
|
---|
| 4106 | const charset x;
|
---|
| 4107 | /* SunOS 4.1.1 cc rejects this. */
|
---|
| 4108 | char const *const *ccp;
|
---|
| 4109 | char **p;
|
---|
| 4110 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 4111 | struct point {int x, y;};
|
---|
| 4112 | static struct point const zero = {0,0};
|
---|
| 4113 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 4114 | It does not let you subtract one const X* pointer from another in
|
---|
| 4115 | an arm of an if-expression whose if-part is not a constant
|
---|
| 4116 | expression */
|
---|
| 4117 | const char *g = "string";
|
---|
| 4118 | ccp = &g + (g ? g-g : 0);
|
---|
| 4119 | /* HPUX 7.0 cc rejects these. */
|
---|
| 4120 | ++ccp;
|
---|
| 4121 | p = (char**) ccp;
|
---|
| 4122 | ccp = (char const *const *) p;
|
---|
| 4123 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4124 | char *t;
|
---|
| 4125 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
| 4126 |
|
---|
| 4127 | *t++ = 0;
|
---|
| 4128 | }
|
---|
| 4129 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4130 | int x[] = {25, 17};
|
---|
| 4131 | const int *foo = &x[0];
|
---|
| 4132 | ++foo;
|
---|
| 4133 | }
|
---|
| 4134 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4135 | typedef const int *iptr;
|
---|
| 4136 | iptr p = 0;
|
---|
| 4137 | ++p;
|
---|
| 4138 | }
|
---|
| 4139 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4140 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4141 | struct s { int j; const int *ap[3]; };
|
---|
| 4142 | struct s *b; b->j = 5;
|
---|
| 4143 | }
|
---|
| 4144 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4145 | const int foo = 10;
|
---|
| 4146 | }
|
---|
| 4147 | #endif
|
---|
| 4148 |
|
---|
| 4149 | ;
|
---|
| 4150 | return 0;
|
---|
| 4151 | }
|
---|
| 4152 | _ACEOF
|
---|
| 4153 | rm -f conftest.$ac_objext
|
---|
| 4154 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4155 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4156 | ac_status=$?
|
---|
| 4157 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4158 | rm -f conftest.er1
|
---|
| 4159 | cat conftest.err >&5
|
---|
| 4160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4161 | (exit $ac_status); } &&
|
---|
| 4162 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4163 | || test ! -s conftest.err'
|
---|
| 4164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4165 | (eval $ac_try) 2>&5
|
---|
| 4166 | ac_status=$?
|
---|
| 4167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4168 | (exit $ac_status); }; } &&
|
---|
| 4169 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4170 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4171 | (eval $ac_try) 2>&5
|
---|
| 4172 | ac_status=$?
|
---|
| 4173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4174 | (exit $ac_status); }; }; then
|
---|
| 4175 | ac_cv_c_const=yes
|
---|
| 4176 | else
|
---|
| 4177 | echo "$as_me: failed program was:" >&5
|
---|
| 4178 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4179 |
|
---|
| 4180 | ac_cv_c_const=no
|
---|
| 4181 | fi
|
---|
| 4182 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4183 | fi
|
---|
| 4184 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
| 4185 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
| 4186 | if test $ac_cv_c_const = no; then
|
---|
| 4187 |
|
---|
| 4188 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4189 | #define const
|
---|
| 4190 | _ACEOF
|
---|
| 4191 |
|
---|
| 4192 | fi
|
---|
| 4193 |
|
---|
| 4194 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
| 4195 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
| 4196 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 4197 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4198 | else
|
---|
| 4199 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4200 | /* confdefs.h. */
|
---|
| 4201 | _ACEOF
|
---|
| 4202 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4203 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4204 | /* end confdefs.h. */
|
---|
| 4205 | $ac_includes_default
|
---|
| 4206 | int
|
---|
| 4207 | main ()
|
---|
| 4208 | {
|
---|
| 4209 | if ((off_t *) 0)
|
---|
| 4210 | return 0;
|
---|
| 4211 | if (sizeof (off_t))
|
---|
| 4212 | return 0;
|
---|
| 4213 | ;
|
---|
| 4214 | return 0;
|
---|
| 4215 | }
|
---|
| 4216 | _ACEOF
|
---|
| 4217 | rm -f conftest.$ac_objext
|
---|
| 4218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4219 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4220 | ac_status=$?
|
---|
| 4221 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4222 | rm -f conftest.er1
|
---|
| 4223 | cat conftest.err >&5
|
---|
| 4224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4225 | (exit $ac_status); } &&
|
---|
| 4226 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4227 | || test ! -s conftest.err'
|
---|
| 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); }; } &&
|
---|
| 4233 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4235 | (eval $ac_try) 2>&5
|
---|
| 4236 | ac_status=$?
|
---|
| 4237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4238 | (exit $ac_status); }; }; then
|
---|
| 4239 | ac_cv_type_off_t=yes
|
---|
| 4240 | else
|
---|
| 4241 | echo "$as_me: failed program was:" >&5
|
---|
| 4242 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4243 |
|
---|
| 4244 | ac_cv_type_off_t=no
|
---|
| 4245 | fi
|
---|
| 4246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4247 | fi
|
---|
| 4248 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
| 4249 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
| 4250 | if test $ac_cv_type_off_t = yes; then
|
---|
| 4251 | :
|
---|
| 4252 | else
|
---|
| 4253 |
|
---|
| 4254 | cat >>confdefs.h <<_ACEOF
|
---|
| 4255 | #define off_t long
|
---|
| 4256 | _ACEOF
|
---|
| 4257 |
|
---|
| 4258 | fi
|
---|
| 4259 |
|
---|
| 4260 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
| 4261 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
| 4262 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4263 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4264 | else
|
---|
| 4265 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4266 | /* confdefs.h. */
|
---|
| 4267 | _ACEOF
|
---|
| 4268 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4269 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4270 | /* end confdefs.h. */
|
---|
| 4271 | $ac_includes_default
|
---|
| 4272 | int
|
---|
| 4273 | main ()
|
---|
| 4274 | {
|
---|
| 4275 | if ((size_t *) 0)
|
---|
| 4276 | return 0;
|
---|
| 4277 | if (sizeof (size_t))
|
---|
| 4278 | return 0;
|
---|
| 4279 | ;
|
---|
| 4280 | return 0;
|
---|
| 4281 | }
|
---|
| 4282 | _ACEOF
|
---|
| 4283 | rm -f conftest.$ac_objext
|
---|
| 4284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4285 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4286 | ac_status=$?
|
---|
| 4287 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4288 | rm -f conftest.er1
|
---|
| 4289 | cat conftest.err >&5
|
---|
| 4290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4291 | (exit $ac_status); } &&
|
---|
| 4292 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4293 | || test ! -s conftest.err'
|
---|
| 4294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4295 | (eval $ac_try) 2>&5
|
---|
| 4296 | ac_status=$?
|
---|
| 4297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4298 | (exit $ac_status); }; } &&
|
---|
| 4299 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4301 | (eval $ac_try) 2>&5
|
---|
| 4302 | ac_status=$?
|
---|
| 4303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4304 | (exit $ac_status); }; }; then
|
---|
| 4305 | ac_cv_type_size_t=yes
|
---|
| 4306 | else
|
---|
| 4307 | echo "$as_me: failed program was:" >&5
|
---|
| 4308 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4309 |
|
---|
| 4310 | ac_cv_type_size_t=no
|
---|
| 4311 | fi
|
---|
| 4312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4313 | fi
|
---|
| 4314 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
| 4315 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
| 4316 | if test $ac_cv_type_size_t = yes; then
|
---|
| 4317 | :
|
---|
| 4318 | else
|
---|
| 4319 |
|
---|
| 4320 | cat >>confdefs.h <<_ACEOF
|
---|
| 4321 | #define size_t unsigned
|
---|
| 4322 | _ACEOF
|
---|
| 4323 |
|
---|
| 4324 | fi
|
---|
| 4325 |
|
---|
| 4326 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
| 4327 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
| 4328 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 4329 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4330 | else
|
---|
| 4331 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4332 | /* confdefs.h. */
|
---|
| 4333 | _ACEOF
|
---|
| 4334 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4335 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4336 | /* end confdefs.h. */
|
---|
| 4337 | #include <sys/types.h>
|
---|
| 4338 | #include <sys/time.h>
|
---|
| 4339 | #include <time.h>
|
---|
| 4340 |
|
---|
| 4341 | int
|
---|
| 4342 | main ()
|
---|
| 4343 | {
|
---|
| 4344 | if ((struct tm *) 0)
|
---|
| 4345 | return 0;
|
---|
| 4346 | ;
|
---|
| 4347 | return 0;
|
---|
| 4348 | }
|
---|
| 4349 | _ACEOF
|
---|
| 4350 | rm -f conftest.$ac_objext
|
---|
| 4351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4352 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4353 | ac_status=$?
|
---|
| 4354 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4355 | rm -f conftest.er1
|
---|
| 4356 | cat conftest.err >&5
|
---|
| 4357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4358 | (exit $ac_status); } &&
|
---|
| 4359 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4360 | || test ! -s conftest.err'
|
---|
| 4361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4362 | (eval $ac_try) 2>&5
|
---|
| 4363 | ac_status=$?
|
---|
| 4364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4365 | (exit $ac_status); }; } &&
|
---|
| 4366 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4368 | (eval $ac_try) 2>&5
|
---|
| 4369 | ac_status=$?
|
---|
| 4370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4371 | (exit $ac_status); }; }; then
|
---|
| 4372 | ac_cv_header_time=yes
|
---|
| 4373 | else
|
---|
| 4374 | echo "$as_me: failed program was:" >&5
|
---|
| 4375 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4376 |
|
---|
| 4377 | ac_cv_header_time=no
|
---|
| 4378 | fi
|
---|
| 4379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4380 | fi
|
---|
| 4381 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
| 4382 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
| 4383 | if test $ac_cv_header_time = yes; then
|
---|
| 4384 |
|
---|
| 4385 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4386 | #define TIME_WITH_SYS_TIME 1
|
---|
| 4387 | _ACEOF
|
---|
| 4388 |
|
---|
| 4389 | fi
|
---|
| 4390 |
|
---|
| 4391 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
| 4392 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
| 4393 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 4394 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4395 | else
|
---|
| 4396 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4397 | /* confdefs.h. */
|
---|
| 4398 | _ACEOF
|
---|
| 4399 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4400 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4401 | /* end confdefs.h. */
|
---|
| 4402 | #include <sys/types.h>
|
---|
| 4403 | #include <time.h>
|
---|
| 4404 |
|
---|
| 4405 | int
|
---|
| 4406 | main ()
|
---|
| 4407 | {
|
---|
| 4408 | struct tm *tp; tp->tm_sec;
|
---|
| 4409 | ;
|
---|
| 4410 | return 0;
|
---|
| 4411 | }
|
---|
| 4412 | _ACEOF
|
---|
| 4413 | rm -f conftest.$ac_objext
|
---|
| 4414 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4415 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4416 | ac_status=$?
|
---|
| 4417 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4418 | rm -f conftest.er1
|
---|
| 4419 | cat conftest.err >&5
|
---|
| 4420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4421 | (exit $ac_status); } &&
|
---|
| 4422 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4423 | || test ! -s conftest.err'
|
---|
| 4424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4425 | (eval $ac_try) 2>&5
|
---|
| 4426 | ac_status=$?
|
---|
| 4427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4428 | (exit $ac_status); }; } &&
|
---|
| 4429 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4430 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4431 | (eval $ac_try) 2>&5
|
---|
| 4432 | ac_status=$?
|
---|
| 4433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4434 | (exit $ac_status); }; }; then
|
---|
| 4435 | ac_cv_struct_tm=time.h
|
---|
| 4436 | else
|
---|
| 4437 | echo "$as_me: failed program was:" >&5
|
---|
| 4438 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4439 |
|
---|
| 4440 | ac_cv_struct_tm=sys/time.h
|
---|
| 4441 | fi
|
---|
| 4442 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4443 | fi
|
---|
| 4444 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
| 4445 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
| 4446 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
| 4447 |
|
---|
| 4448 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4449 | #define TM_IN_SYS_TIME 1
|
---|
| 4450 | _ACEOF
|
---|
| 4451 |
|
---|
| 4452 | fi
|
---|
| 4453 |
|
---|
| 4454 |
|
---|
| 4455 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
| 4456 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4457 | /* confdefs.h. */
|
---|
| 4458 | _ACEOF
|
---|
| 4459 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4460 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4461 | /* end confdefs.h. */
|
---|
| 4462 | #include <stdio.h>
|
---|
| 4463 |
|
---|
| 4464 | int
|
---|
| 4465 | main ()
|
---|
| 4466 | {
|
---|
| 4467 | FILE *rubbish = popen("yes", "r");
|
---|
| 4468 | ;
|
---|
| 4469 | return 0;
|
---|
| 4470 | }
|
---|
| 4471 | _ACEOF
|
---|
| 4472 | rm -f conftest.$ac_objext
|
---|
| 4473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4474 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4475 | ac_status=$?
|
---|
| 4476 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4477 | rm -f conftest.er1
|
---|
| 4478 | cat conftest.err >&5
|
---|
| 4479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4480 | (exit $ac_status); } &&
|
---|
| 4481 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4482 | || test ! -s conftest.err'
|
---|
| 4483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4484 | (eval $ac_try) 2>&5
|
---|
| 4485 | ac_status=$?
|
---|
| 4486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4487 | (exit $ac_status); }; } &&
|
---|
| 4488 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4490 | (eval $ac_try) 2>&5
|
---|
| 4491 | ac_status=$?
|
---|
| 4492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4493 | (exit $ac_status); }; }; then
|
---|
| 4494 | :
|
---|
| 4495 | else
|
---|
| 4496 | echo "$as_me: failed program was:" >&5
|
---|
| 4497 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4498 |
|
---|
| 4499 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
| 4500 | fi
|
---|
| 4501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4502 | fi
|
---|
| 4503 |
|
---|
| 4504 |
|
---|
| 4505 |
|
---|
| 4506 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
| 4507 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
| 4508 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
| 4509 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4510 | else
|
---|
| 4511 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4512 | LIBS="-lg $LIBS"
|
---|
| 4513 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4514 | /* confdefs.h. */
|
---|
| 4515 | _ACEOF
|
---|
| 4516 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4517 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4518 | /* end confdefs.h. */
|
---|
| 4519 |
|
---|
| 4520 |
|
---|
| 4521 | int
|
---|
| 4522 | main ()
|
---|
| 4523 | {
|
---|
| 4524 | main ();
|
---|
| 4525 | ;
|
---|
| 4526 | return 0;
|
---|
| 4527 | }
|
---|
| 4528 | _ACEOF
|
---|
| 4529 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4530 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4531 | (eval $ac_link) 2>conftest.er1
|
---|
| 4532 | ac_status=$?
|
---|
| 4533 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4534 | rm -f conftest.er1
|
---|
| 4535 | cat conftest.err >&5
|
---|
| 4536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4537 | (exit $ac_status); } &&
|
---|
| 4538 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4539 | || test ! -s conftest.err'
|
---|
| 4540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4541 | (eval $ac_try) 2>&5
|
---|
| 4542 | ac_status=$?
|
---|
| 4543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4544 | (exit $ac_status); }; } &&
|
---|
| 4545 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4547 | (eval $ac_try) 2>&5
|
---|
| 4548 | ac_status=$?
|
---|
| 4549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4550 | (exit $ac_status); }; }; then
|
---|
| 4551 | ac_cv_lib_g_main=yes
|
---|
| 4552 | else
|
---|
| 4553 | echo "$as_me: failed program was:" >&5
|
---|
| 4554 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4555 |
|
---|
| 4556 | ac_cv_lib_g_main=no
|
---|
| 4557 | fi
|
---|
| 4558 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4559 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4560 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4561 | fi
|
---|
| 4562 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
| 4563 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
| 4564 | if test $ac_cv_lib_g_main = yes; then
|
---|
| 4565 | cat >>confdefs.h <<_ACEOF
|
---|
| 4566 | #define HAVE_LIBG 1
|
---|
| 4567 | _ACEOF
|
---|
| 4568 |
|
---|
| 4569 | LIBS="-lg $LIBS"
|
---|
| 4570 |
|
---|
| 4571 | fi
|
---|
| 4572 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
| 4573 |
|
---|
| 4574 |
|
---|
| 4575 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
| 4576 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
| 4577 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 4578 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4579 | else
|
---|
| 4580 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4581 | LIBS="-lm $LIBS"
|
---|
| 4582 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4583 | /* confdefs.h. */
|
---|
| 4584 | _ACEOF
|
---|
| 4585 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4586 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4587 | /* end confdefs.h. */
|
---|
| 4588 |
|
---|
| 4589 |
|
---|
| 4590 | int
|
---|
| 4591 | main ()
|
---|
| 4592 | {
|
---|
| 4593 | main ();
|
---|
| 4594 | ;
|
---|
| 4595 | return 0;
|
---|
| 4596 | }
|
---|
| 4597 | _ACEOF
|
---|
| 4598 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4599 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4600 | (eval $ac_link) 2>conftest.er1
|
---|
| 4601 | ac_status=$?
|
---|
| 4602 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4603 | rm -f conftest.er1
|
---|
| 4604 | cat conftest.err >&5
|
---|
| 4605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4606 | (exit $ac_status); } &&
|
---|
| 4607 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4608 | || test ! -s conftest.err'
|
---|
| 4609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4610 | (eval $ac_try) 2>&5
|
---|
| 4611 | ac_status=$?
|
---|
| 4612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4613 | (exit $ac_status); }; } &&
|
---|
| 4614 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4616 | (eval $ac_try) 2>&5
|
---|
| 4617 | ac_status=$?
|
---|
| 4618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4619 | (exit $ac_status); }; }; then
|
---|
| 4620 | ac_cv_lib_m_main=yes
|
---|
| 4621 | else
|
---|
| 4622 | echo "$as_me: failed program was:" >&5
|
---|
| 4623 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4624 |
|
---|
| 4625 | ac_cv_lib_m_main=no
|
---|
| 4626 | fi
|
---|
| 4627 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4628 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4629 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4630 | fi
|
---|
| 4631 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
| 4632 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
| 4633 | if test $ac_cv_lib_m_main = yes; then
|
---|
| 4634 | cat >>confdefs.h <<_ACEOF
|
---|
| 4635 | #define HAVE_LIBM 1
|
---|
| 4636 | _ACEOF
|
---|
| 4637 |
|
---|
| 4638 | LIBS="-lm $LIBS"
|
---|
| 4639 |
|
---|
| 4640 | fi
|
---|
| 4641 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
| 4642 |
|
---|
| 4643 |
|
---|
| 4644 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
| 4645 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
| 4646 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
| 4647 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4648 | else
|
---|
| 4649 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4650 | LIBS="-lcrypt $LIBS"
|
---|
| 4651 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4652 | /* confdefs.h. */
|
---|
| 4653 | _ACEOF
|
---|
| 4654 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4655 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4656 | /* end confdefs.h. */
|
---|
| 4657 |
|
---|
| 4658 |
|
---|
| 4659 | int
|
---|
| 4660 | main ()
|
---|
| 4661 | {
|
---|
| 4662 | main ();
|
---|
| 4663 | ;
|
---|
| 4664 | return 0;
|
---|
| 4665 | }
|
---|
| 4666 | _ACEOF
|
---|
| 4667 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4668 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4669 | (eval $ac_link) 2>conftest.er1
|
---|
| 4670 | ac_status=$?
|
---|
| 4671 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4672 | rm -f conftest.er1
|
---|
| 4673 | cat conftest.err >&5
|
---|
| 4674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4675 | (exit $ac_status); } &&
|
---|
| 4676 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4677 | || test ! -s conftest.err'
|
---|
| 4678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4679 | (eval $ac_try) 2>&5
|
---|
| 4680 | ac_status=$?
|
---|
| 4681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4682 | (exit $ac_status); }; } &&
|
---|
| 4683 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4685 | (eval $ac_try) 2>&5
|
---|
| 4686 | ac_status=$?
|
---|
| 4687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4688 | (exit $ac_status); }; }; then
|
---|
| 4689 | ac_cv_lib_crypt_main=yes
|
---|
| 4690 | else
|
---|
| 4691 | echo "$as_me: failed program was:" >&5
|
---|
| 4692 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4693 |
|
---|
| 4694 | ac_cv_lib_crypt_main=no
|
---|
| 4695 | fi
|
---|
| 4696 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4697 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4698 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4699 | fi
|
---|
| 4700 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
| 4701 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
| 4702 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
| 4703 | cat >>confdefs.h <<_ACEOF
|
---|
| 4704 | #define HAVE_LIBCRYPT 1
|
---|
| 4705 | _ACEOF
|
---|
| 4706 |
|
---|
| 4707 | LIBS="-lcrypt $LIBS"
|
---|
| 4708 |
|
---|
| 4709 | fi
|
---|
| 4710 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
| 4711 |
|
---|
| 4712 | if test $ENABLE_ACCENTFOLD = 1; then
|
---|
| 4713 |
|
---|
| 4714 | echo "$as_me:$LINENO: checking for main in -liconv" >&5
|
---|
| 4715 | echo $ECHO_N "checking for main in -liconv... $ECHO_C" >&6
|
---|
| 4716 | if test "${ac_cv_lib_iconv_main+set}" = set; then
|
---|
| 4717 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4718 | else
|
---|
| 4719 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4720 | LIBS="-liconv $LIBS"
|
---|
| 4721 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4722 | /* confdefs.h. */
|
---|
| 4723 | _ACEOF
|
---|
| 4724 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4725 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4726 | /* end confdefs.h. */
|
---|
| 4727 |
|
---|
| 4728 |
|
---|
| 4729 | int
|
---|
| 4730 | main ()
|
---|
| 4731 | {
|
---|
| 4732 | main ();
|
---|
| 4733 | ;
|
---|
| 4734 | return 0;
|
---|
| 4735 | }
|
---|
| 4736 | _ACEOF
|
---|
| 4737 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4738 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4739 | (eval $ac_link) 2>conftest.er1
|
---|
| 4740 | ac_status=$?
|
---|
| 4741 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4742 | rm -f conftest.er1
|
---|
| 4743 | cat conftest.err >&5
|
---|
| 4744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4745 | (exit $ac_status); } &&
|
---|
| 4746 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4747 | || test ! -s conftest.err'
|
---|
| 4748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4749 | (eval $ac_try) 2>&5
|
---|
| 4750 | ac_status=$?
|
---|
| 4751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4752 | (exit $ac_status); }; } &&
|
---|
| 4753 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4755 | (eval $ac_try) 2>&5
|
---|
| 4756 | ac_status=$?
|
---|
| 4757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4758 | (exit $ac_status); }; }; then
|
---|
| 4759 | ac_cv_lib_iconv_main=yes
|
---|
| 4760 | else
|
---|
| 4761 | echo "$as_me: failed program was:" >&5
|
---|
| 4762 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4763 |
|
---|
| 4764 | ac_cv_lib_iconv_main=no
|
---|
| 4765 | fi
|
---|
| 4766 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4767 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4768 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4769 | fi
|
---|
| 4770 | echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_main" >&5
|
---|
| 4771 | echo "${ECHO_T}$ac_cv_lib_iconv_main" >&6
|
---|
| 4772 | if test $ac_cv_lib_iconv_main = yes; then
|
---|
| 4773 | cat >>confdefs.h <<_ACEOF
|
---|
| 4774 | #define HAVE_LIBICONV 1
|
---|
| 4775 | _ACEOF
|
---|
| 4776 |
|
---|
| 4777 | LIBS="-liconv $LIBS"
|
---|
| 4778 |
|
---|
| 4779 | fi
|
---|
| 4780 | ac_cv_lib_iconv=ac_cv_lib_iconv_main
|
---|
| 4781 |
|
---|
| 4782 | fi
|
---|
| 4783 |
|
---|
| 4784 |
|
---|
| 4785 |
|
---|
| 4786 |
|
---|
| 4787 |
|
---|
| 4788 |
|
---|
| 4789 | ac_header_dirent=no
|
---|
| 4790 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
| 4791 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 4792 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
| 4793 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
| 4794 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 4795 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4796 | else
|
---|
| 4797 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4798 | /* confdefs.h. */
|
---|
| 4799 | _ACEOF
|
---|
| 4800 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4801 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4802 | /* end confdefs.h. */
|
---|
| 4803 | #include <sys/types.h>
|
---|
| 4804 | #include <$ac_hdr>
|
---|
| 4805 |
|
---|
| 4806 | int
|
---|
| 4807 | main ()
|
---|
| 4808 | {
|
---|
| 4809 | if ((DIR *) 0)
|
---|
| 4810 | return 0;
|
---|
| 4811 | ;
|
---|
| 4812 | return 0;
|
---|
| 4813 | }
|
---|
| 4814 | _ACEOF
|
---|
| 4815 | rm -f conftest.$ac_objext
|
---|
| 4816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4817 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4818 | ac_status=$?
|
---|
| 4819 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4820 | rm -f conftest.er1
|
---|
| 4821 | cat conftest.err >&5
|
---|
| 4822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4823 | (exit $ac_status); } &&
|
---|
| 4824 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4825 | || test ! -s conftest.err'
|
---|
| 4826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4827 | (eval $ac_try) 2>&5
|
---|
| 4828 | ac_status=$?
|
---|
| 4829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4830 | (exit $ac_status); }; } &&
|
---|
| 4831 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4833 | (eval $ac_try) 2>&5
|
---|
| 4834 | ac_status=$?
|
---|
| 4835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4836 | (exit $ac_status); }; }; then
|
---|
| 4837 | eval "$as_ac_Header=yes"
|
---|
| 4838 | else
|
---|
| 4839 | echo "$as_me: failed program was:" >&5
|
---|
| 4840 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4841 |
|
---|
| 4842 | eval "$as_ac_Header=no"
|
---|
| 4843 | fi
|
---|
| 4844 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4845 | fi
|
---|
| 4846 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4847 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 4848 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4849 | cat >>confdefs.h <<_ACEOF
|
---|
| 4850 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
| 4851 | _ACEOF
|
---|
| 4852 |
|
---|
| 4853 | ac_header_dirent=$ac_hdr; break
|
---|
| 4854 | fi
|
---|
| 4855 |
|
---|
| 4856 | done
|
---|
| 4857 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 4858 | if test $ac_header_dirent = dirent.h; then
|
---|
| 4859 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4860 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4861 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 4862 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4863 | else
|
---|
| 4864 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4865 | ac_cv_search_opendir=no
|
---|
| 4866 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4867 | /* confdefs.h. */
|
---|
| 4868 | _ACEOF
|
---|
| 4869 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4870 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4871 | /* end confdefs.h. */
|
---|
| 4872 |
|
---|
| 4873 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4874 | #ifdef __cplusplus
|
---|
| 4875 | extern "C"
|
---|
| 4876 | #endif
|
---|
| 4877 | /* We use char because int might match the return type of a gcc2
|
---|
| 4878 | builtin and then its argument prototype would still apply. */
|
---|
| 4879 | char opendir ();
|
---|
| 4880 | int
|
---|
| 4881 | main ()
|
---|
| 4882 | {
|
---|
| 4883 | opendir ();
|
---|
| 4884 | ;
|
---|
| 4885 | return 0;
|
---|
| 4886 | }
|
---|
| 4887 | _ACEOF
|
---|
| 4888 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4889 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4890 | (eval $ac_link) 2>conftest.er1
|
---|
| 4891 | ac_status=$?
|
---|
| 4892 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4893 | rm -f conftest.er1
|
---|
| 4894 | cat conftest.err >&5
|
---|
| 4895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4896 | (exit $ac_status); } &&
|
---|
| 4897 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4898 | || test ! -s conftest.err'
|
---|
| 4899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4900 | (eval $ac_try) 2>&5
|
---|
| 4901 | ac_status=$?
|
---|
| 4902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4903 | (exit $ac_status); }; } &&
|
---|
| 4904 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4906 | (eval $ac_try) 2>&5
|
---|
| 4907 | ac_status=$?
|
---|
| 4908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4909 | (exit $ac_status); }; }; then
|
---|
| 4910 | ac_cv_search_opendir="none required"
|
---|
| 4911 | else
|
---|
| 4912 | echo "$as_me: failed program was:" >&5
|
---|
| 4913 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4914 |
|
---|
| 4915 | fi
|
---|
| 4916 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4917 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4918 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4919 | for ac_lib in dir; do
|
---|
| 4920 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4921 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4922 | /* confdefs.h. */
|
---|
| 4923 | _ACEOF
|
---|
| 4924 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4925 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4926 | /* end confdefs.h. */
|
---|
| 4927 |
|
---|
| 4928 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4929 | #ifdef __cplusplus
|
---|
| 4930 | extern "C"
|
---|
| 4931 | #endif
|
---|
| 4932 | /* We use char because int might match the return type of a gcc2
|
---|
| 4933 | builtin and then its argument prototype would still apply. */
|
---|
| 4934 | char opendir ();
|
---|
| 4935 | int
|
---|
| 4936 | main ()
|
---|
| 4937 | {
|
---|
| 4938 | opendir ();
|
---|
| 4939 | ;
|
---|
| 4940 | return 0;
|
---|
| 4941 | }
|
---|
| 4942 | _ACEOF
|
---|
| 4943 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4944 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4945 | (eval $ac_link) 2>conftest.er1
|
---|
| 4946 | ac_status=$?
|
---|
| 4947 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4948 | rm -f conftest.er1
|
---|
| 4949 | cat conftest.err >&5
|
---|
| 4950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4951 | (exit $ac_status); } &&
|
---|
| 4952 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4953 | || test ! -s conftest.err'
|
---|
| 4954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4955 | (eval $ac_try) 2>&5
|
---|
| 4956 | ac_status=$?
|
---|
| 4957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4958 | (exit $ac_status); }; } &&
|
---|
| 4959 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4961 | (eval $ac_try) 2>&5
|
---|
| 4962 | ac_status=$?
|
---|
| 4963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4964 | (exit $ac_status); }; }; then
|
---|
| 4965 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4966 | break
|
---|
| 4967 | else
|
---|
| 4968 | echo "$as_me: failed program was:" >&5
|
---|
| 4969 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4970 |
|
---|
| 4971 | fi
|
---|
| 4972 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4973 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4974 | done
|
---|
| 4975 | fi
|
---|
| 4976 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4977 | fi
|
---|
| 4978 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4979 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4980 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4981 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
| 4982 |
|
---|
| 4983 | fi
|
---|
| 4984 |
|
---|
| 4985 | else
|
---|
| 4986 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4987 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4988 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 4989 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4990 | else
|
---|
| 4991 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4992 | ac_cv_search_opendir=no
|
---|
| 4993 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4994 | /* confdefs.h. */
|
---|
| 4995 | _ACEOF
|
---|
| 4996 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4997 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4998 | /* end confdefs.h. */
|
---|
| 4999 |
|
---|
| 5000 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5001 | #ifdef __cplusplus
|
---|
| 5002 | extern "C"
|
---|
| 5003 | #endif
|
---|
| 5004 | /* We use char because int might match the return type of a gcc2
|
---|
| 5005 | builtin and then its argument prototype would still apply. */
|
---|
| 5006 | char opendir ();
|
---|
| 5007 | int
|
---|
| 5008 | main ()
|
---|
| 5009 | {
|
---|
| 5010 | opendir ();
|
---|
| 5011 | ;
|
---|
| 5012 | return 0;
|
---|
| 5013 | }
|
---|
| 5014 | _ACEOF
|
---|
| 5015 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5016 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5017 | (eval $ac_link) 2>conftest.er1
|
---|
| 5018 | ac_status=$?
|
---|
| 5019 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5020 | rm -f conftest.er1
|
---|
| 5021 | cat conftest.err >&5
|
---|
| 5022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5023 | (exit $ac_status); } &&
|
---|
| 5024 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5025 | || test ! -s conftest.err'
|
---|
| 5026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5027 | (eval $ac_try) 2>&5
|
---|
| 5028 | ac_status=$?
|
---|
| 5029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5030 | (exit $ac_status); }; } &&
|
---|
| 5031 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5033 | (eval $ac_try) 2>&5
|
---|
| 5034 | ac_status=$?
|
---|
| 5035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5036 | (exit $ac_status); }; }; then
|
---|
| 5037 | ac_cv_search_opendir="none required"
|
---|
| 5038 | else
|
---|
| 5039 | echo "$as_me: failed program was:" >&5
|
---|
| 5040 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5041 |
|
---|
| 5042 | fi
|
---|
| 5043 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5044 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5045 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 5046 | for ac_lib in x; do
|
---|
| 5047 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5048 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5049 | /* confdefs.h. */
|
---|
| 5050 | _ACEOF
|
---|
| 5051 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5052 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5053 | /* end confdefs.h. */
|
---|
| 5054 |
|
---|
| 5055 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5056 | #ifdef __cplusplus
|
---|
| 5057 | extern "C"
|
---|
| 5058 | #endif
|
---|
| 5059 | /* We use char because int might match the return type of a gcc2
|
---|
| 5060 | builtin and then its argument prototype would still apply. */
|
---|
| 5061 | char opendir ();
|
---|
| 5062 | int
|
---|
| 5063 | main ()
|
---|
| 5064 | {
|
---|
| 5065 | opendir ();
|
---|
| 5066 | ;
|
---|
| 5067 | return 0;
|
---|
| 5068 | }
|
---|
| 5069 | _ACEOF
|
---|
| 5070 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5071 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5072 | (eval $ac_link) 2>conftest.er1
|
---|
| 5073 | ac_status=$?
|
---|
| 5074 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5075 | rm -f conftest.er1
|
---|
| 5076 | cat conftest.err >&5
|
---|
| 5077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5078 | (exit $ac_status); } &&
|
---|
| 5079 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5080 | || test ! -s conftest.err'
|
---|
| 5081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5082 | (eval $ac_try) 2>&5
|
---|
| 5083 | ac_status=$?
|
---|
| 5084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5085 | (exit $ac_status); }; } &&
|
---|
| 5086 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5088 | (eval $ac_try) 2>&5
|
---|
| 5089 | ac_status=$?
|
---|
| 5090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5091 | (exit $ac_status); }; }; then
|
---|
| 5092 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 5093 | break
|
---|
| 5094 | else
|
---|
| 5095 | echo "$as_me: failed program was:" >&5
|
---|
| 5096 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5097 |
|
---|
| 5098 | fi
|
---|
| 5099 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5100 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5101 | done
|
---|
| 5102 | fi
|
---|
| 5103 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5104 | fi
|
---|
| 5105 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 5106 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 5107 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 5108 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
| 5109 |
|
---|
| 5110 | fi
|
---|
| 5111 |
|
---|
| 5112 | fi
|
---|
| 5113 |
|
---|
| 5114 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 5115 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 5116 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 5117 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5118 | else
|
---|
| 5119 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5120 | /* confdefs.h. */
|
---|
| 5121 | _ACEOF
|
---|
| 5122 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5123 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5124 | /* end confdefs.h. */
|
---|
| 5125 | #include <stdlib.h>
|
---|
| 5126 | #include <stdarg.h>
|
---|
| 5127 | #include <string.h>
|
---|
| 5128 | #include <float.h>
|
---|
| 5129 |
|
---|
| 5130 | int
|
---|
| 5131 | main ()
|
---|
| 5132 | {
|
---|
| 5133 |
|
---|
| 5134 | ;
|
---|
| 5135 | return 0;
|
---|
| 5136 | }
|
---|
| 5137 | _ACEOF
|
---|
| 5138 | rm -f conftest.$ac_objext
|
---|
| 5139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5140 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5141 | ac_status=$?
|
---|
| 5142 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5143 | rm -f conftest.er1
|
---|
| 5144 | cat conftest.err >&5
|
---|
| 5145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5146 | (exit $ac_status); } &&
|
---|
| 5147 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5148 | || test ! -s conftest.err'
|
---|
| 5149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5150 | (eval $ac_try) 2>&5
|
---|
| 5151 | ac_status=$?
|
---|
| 5152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5153 | (exit $ac_status); }; } &&
|
---|
| 5154 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5156 | (eval $ac_try) 2>&5
|
---|
| 5157 | ac_status=$?
|
---|
| 5158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5159 | (exit $ac_status); }; }; then
|
---|
| 5160 | ac_cv_header_stdc=yes
|
---|
| 5161 | else
|
---|
| 5162 | echo "$as_me: failed program was:" >&5
|
---|
| 5163 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5164 |
|
---|
| 5165 | ac_cv_header_stdc=no
|
---|
| 5166 | fi
|
---|
| 5167 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5168 |
|
---|
| 5169 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5170 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 5171 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5172 | /* confdefs.h. */
|
---|
| 5173 | _ACEOF
|
---|
| 5174 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5175 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5176 | /* end confdefs.h. */
|
---|
| 5177 | #include <string.h>
|
---|
| 5178 |
|
---|
| 5179 | _ACEOF
|
---|
| 5180 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5181 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 5182 | :
|
---|
| 5183 | else
|
---|
| 5184 | ac_cv_header_stdc=no
|
---|
| 5185 | fi
|
---|
| 5186 | rm -f conftest*
|
---|
| 5187 |
|
---|
| 5188 | fi
|
---|
| 5189 |
|
---|
| 5190 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5191 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 5192 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5193 | /* confdefs.h. */
|
---|
| 5194 | _ACEOF
|
---|
| 5195 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5196 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5197 | /* end confdefs.h. */
|
---|
| 5198 | #include <stdlib.h>
|
---|
| 5199 |
|
---|
| 5200 | _ACEOF
|
---|
| 5201 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5202 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 5203 | :
|
---|
| 5204 | else
|
---|
| 5205 | ac_cv_header_stdc=no
|
---|
| 5206 | fi
|
---|
| 5207 | rm -f conftest*
|
---|
| 5208 |
|
---|
| 5209 | fi
|
---|
| 5210 |
|
---|
| 5211 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5212 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 5213 | if test "$cross_compiling" = yes; then
|
---|
| 5214 | :
|
---|
| 5215 | else
|
---|
| 5216 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5217 | /* confdefs.h. */
|
---|
| 5218 | _ACEOF
|
---|
| 5219 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5220 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5221 | /* end confdefs.h. */
|
---|
| 5222 | #include <ctype.h>
|
---|
| 5223 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5224 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5225 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5226 | #else
|
---|
| 5227 | # define ISLOWER(c) \
|
---|
| 5228 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5229 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5230 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 5231 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5232 | #endif
|
---|
| 5233 |
|
---|
| 5234 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 5235 | int
|
---|
| 5236 | main ()
|
---|
| 5237 | {
|
---|
| 5238 | int i;
|
---|
| 5239 | for (i = 0; i < 256; i++)
|
---|
| 5240 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 5241 | || toupper (i) != TOUPPER (i))
|
---|
| 5242 | exit(2);
|
---|
| 5243 | exit (0);
|
---|
| 5244 | }
|
---|
| 5245 | _ACEOF
|
---|
| 5246 | rm -f conftest$ac_exeext
|
---|
| 5247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5248 | (eval $ac_link) 2>&5
|
---|
| 5249 | ac_status=$?
|
---|
| 5250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5251 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 5252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5253 | (eval $ac_try) 2>&5
|
---|
| 5254 | ac_status=$?
|
---|
| 5255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5256 | (exit $ac_status); }; }; then
|
---|
| 5257 | :
|
---|
| 5258 | else
|
---|
| 5259 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5260 | echo "$as_me: failed program was:" >&5
|
---|
| 5261 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5262 |
|
---|
| 5263 | ( exit $ac_status )
|
---|
| 5264 | ac_cv_header_stdc=no
|
---|
| 5265 | fi
|
---|
| 5266 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 5267 | fi
|
---|
| 5268 | fi
|
---|
| 5269 | fi
|
---|
| 5270 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 5271 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 5272 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5273 |
|
---|
| 5274 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5275 | #define STDC_HEADERS 1
|
---|
| 5276 | _ACEOF
|
---|
| 5277 |
|
---|
| 5278 | fi
|
---|
| 5279 |
|
---|
| 5280 |
|
---|
| 5281 |
|
---|
| 5282 |
|
---|
| 5283 |
|
---|
| 5284 |
|
---|
| 5285 |
|
---|
| 5286 |
|
---|
| 5287 |
|
---|
| 5288 |
|
---|
| 5289 | 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
|
---|
| 5290 | do
|
---|
| 5291 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5292 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5293 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5294 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5295 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5296 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5297 | fi
|
---|
| 5298 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5299 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 5300 | else
|
---|
| 5301 | # Is the header compilable?
|
---|
| 5302 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5303 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
| 5304 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5305 | /* confdefs.h. */
|
---|
| 5306 | _ACEOF
|
---|
| 5307 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5308 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5309 | /* end confdefs.h. */
|
---|
| 5310 | $ac_includes_default
|
---|
| 5311 | #include <$ac_header>
|
---|
| 5312 | _ACEOF
|
---|
| 5313 | rm -f conftest.$ac_objext
|
---|
| 5314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5315 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5316 | ac_status=$?
|
---|
| 5317 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5318 | rm -f conftest.er1
|
---|
| 5319 | cat conftest.err >&5
|
---|
| 5320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5321 | (exit $ac_status); } &&
|
---|
| 5322 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5323 | || test ! -s conftest.err'
|
---|
| 5324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5325 | (eval $ac_try) 2>&5
|
---|
| 5326 | ac_status=$?
|
---|
| 5327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5328 | (exit $ac_status); }; } &&
|
---|
| 5329 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5331 | (eval $ac_try) 2>&5
|
---|
| 5332 | ac_status=$?
|
---|
| 5333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5334 | (exit $ac_status); }; }; then
|
---|
| 5335 | ac_header_compiler=yes
|
---|
| 5336 | else
|
---|
| 5337 | echo "$as_me: failed program was:" >&5
|
---|
| 5338 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5339 |
|
---|
| 5340 | ac_header_compiler=no
|
---|
| 5341 | fi
|
---|
| 5342 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5343 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 5344 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 5345 |
|
---|
| 5346 | # Is the header present?
|
---|
| 5347 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 5348 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
| 5349 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5350 | /* confdefs.h. */
|
---|
| 5351 | _ACEOF
|
---|
| 5352 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5353 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5354 | /* end confdefs.h. */
|
---|
| 5355 | #include <$ac_header>
|
---|
| 5356 | _ACEOF
|
---|
| 5357 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 5358 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 5359 | ac_status=$?
|
---|
| 5360 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5361 | rm -f conftest.er1
|
---|
| 5362 | cat conftest.err >&5
|
---|
| 5363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5364 | (exit $ac_status); } >/dev/null; then
|
---|
| 5365 | if test -s conftest.err; then
|
---|
| 5366 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 5367 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 5368 | else
|
---|
| 5369 | ac_cpp_err=
|
---|
| 5370 | fi
|
---|
| 5371 | else
|
---|
| 5372 | ac_cpp_err=yes
|
---|
| 5373 | fi
|
---|
| 5374 | if test -z "$ac_cpp_err"; then
|
---|
| 5375 | ac_header_preproc=yes
|
---|
| 5376 | else
|
---|
| 5377 | echo "$as_me: failed program was:" >&5
|
---|
| 5378 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5379 |
|
---|
| 5380 | ac_header_preproc=no
|
---|
| 5381 | fi
|
---|
| 5382 | rm -f conftest.err conftest.$ac_ext
|
---|
| 5383 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 5384 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 5385 |
|
---|
| 5386 | # So? What about this header?
|
---|
| 5387 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 5388 | yes:no: )
|
---|
| 5389 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 5390 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 5391 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 5392 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 5393 | ac_header_preproc=yes
|
---|
| 5394 | ;;
|
---|
| 5395 | no:yes:* )
|
---|
| 5396 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 5397 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 5398 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 5399 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 5400 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 5401 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 5402 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 5403 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 5404 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 5405 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 5406 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 5407 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
| 5408 | (
|
---|
| 5409 | cat <<\_ASBOX
|
---|
| 5410 | ## ------------------------------------------ ##
|
---|
| 5411 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 5412 | ## ------------------------------------------ ##
|
---|
| 5413 | _ASBOX
|
---|
| 5414 | ) |
|
---|
| 5415 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 5416 | ;;
|
---|
| 5417 | esac
|
---|
| 5418 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5419 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5420 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5421 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5422 | else
|
---|
| 5423 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
| 5424 | fi
|
---|
| 5425 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5426 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 5427 |
|
---|
| 5428 | fi
|
---|
| 5429 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 5430 | cat >>confdefs.h <<_ACEOF
|
---|
| 5431 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 5432 | _ACEOF
|
---|
| 5433 |
|
---|
| 5434 | fi
|
---|
| 5435 |
|
---|
| 5436 | done
|
---|
| 5437 |
|
---|
| 5438 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5439 | /* confdefs.h. */
|
---|
| 5440 | _ACEOF
|
---|
| 5441 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5442 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5443 | /* end confdefs.h. */
|
---|
| 5444 | #include <stdio.h>
|
---|
| 5445 |
|
---|
| 5446 | _ACEOF
|
---|
| 5447 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5448 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 5449 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5450 | #define HAVE_FREAD_DECL 1
|
---|
| 5451 | _ACEOF
|
---|
| 5452 |
|
---|
| 5453 | fi
|
---|
| 5454 | rm -f conftest*
|
---|
| 5455 |
|
---|
| 5456 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5457 | /* confdefs.h. */
|
---|
| 5458 | _ACEOF
|
---|
| 5459 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5460 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5461 | /* end confdefs.h. */
|
---|
| 5462 | #include <stdio.h>
|
---|
| 5463 |
|
---|
| 5464 | _ACEOF
|
---|
| 5465 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5466 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 5467 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5468 | #define HAVE_FGETC_DECL 1
|
---|
| 5469 | _ACEOF
|
---|
| 5470 |
|
---|
| 5471 | fi
|
---|
| 5472 | rm -f conftest*
|
---|
| 5473 |
|
---|
| 5474 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5475 | /* confdefs.h. */
|
---|
| 5476 | _ACEOF
|
---|
| 5477 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5478 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5479 | /* end confdefs.h. */
|
---|
| 5480 | #include <sys/procfs.h>
|
---|
| 5481 |
|
---|
| 5482 | _ACEOF
|
---|
| 5483 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5484 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 5485 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5486 | #define HAVE_PR_BRKSIZE 1
|
---|
| 5487 | _ACEOF
|
---|
| 5488 |
|
---|
| 5489 | fi
|
---|
| 5490 | rm -f conftest*
|
---|
| 5491 |
|
---|
| 5492 |
|
---|
| 5493 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5494 | # for constant arguments. Useless!
|
---|
| 5495 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
| 5496 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
| 5497 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 5498 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5499 | else
|
---|
| 5500 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5501 | /* confdefs.h. */
|
---|
| 5502 | _ACEOF
|
---|
| 5503 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5504 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5505 | /* end confdefs.h. */
|
---|
| 5506 | #include <alloca.h>
|
---|
| 5507 | int
|
---|
| 5508 | main ()
|
---|
| 5509 | {
|
---|
| 5510 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 5511 | ;
|
---|
| 5512 | return 0;
|
---|
| 5513 | }
|
---|
| 5514 | _ACEOF
|
---|
| 5515 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5516 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5517 | (eval $ac_link) 2>conftest.er1
|
---|
| 5518 | ac_status=$?
|
---|
| 5519 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5520 | rm -f conftest.er1
|
---|
| 5521 | cat conftest.err >&5
|
---|
| 5522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5523 | (exit $ac_status); } &&
|
---|
| 5524 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5525 | || test ! -s conftest.err'
|
---|
| 5526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5527 | (eval $ac_try) 2>&5
|
---|
| 5528 | ac_status=$?
|
---|
| 5529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5530 | (exit $ac_status); }; } &&
|
---|
| 5531 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5533 | (eval $ac_try) 2>&5
|
---|
| 5534 | ac_status=$?
|
---|
| 5535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5536 | (exit $ac_status); }; }; then
|
---|
| 5537 | ac_cv_working_alloca_h=yes
|
---|
| 5538 | else
|
---|
| 5539 | echo "$as_me: failed program was:" >&5
|
---|
| 5540 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5541 |
|
---|
| 5542 | ac_cv_working_alloca_h=no
|
---|
| 5543 | fi
|
---|
| 5544 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5545 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5546 | fi
|
---|
| 5547 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
| 5548 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
| 5549 | if test $ac_cv_working_alloca_h = yes; then
|
---|
| 5550 |
|
---|
| 5551 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5552 | #define HAVE_ALLOCA_H 1
|
---|
| 5553 | _ACEOF
|
---|
| 5554 |
|
---|
| 5555 | fi
|
---|
| 5556 |
|
---|
| 5557 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
| 5558 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
| 5559 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 5560 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5561 | else
|
---|
| 5562 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5563 | /* confdefs.h. */
|
---|
| 5564 | _ACEOF
|
---|
| 5565 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5566 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5567 | /* end confdefs.h. */
|
---|
| 5568 | #ifdef __GNUC__
|
---|
| 5569 | # define alloca __builtin_alloca
|
---|
| 5570 | #else
|
---|
| 5571 | # ifdef _MSC_VER
|
---|
| 5572 | # include <malloc.h>
|
---|
| 5573 | # define alloca _alloca
|
---|
| 5574 | # else
|
---|
| 5575 | # if HAVE_ALLOCA_H
|
---|
| 5576 | # include <alloca.h>
|
---|
| 5577 | # else
|
---|
| 5578 | # ifdef _AIX
|
---|
| 5579 | #pragma alloca
|
---|
| 5580 | # else
|
---|
| 5581 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5582 | char *alloca ();
|
---|
| 5583 | # endif
|
---|
| 5584 | # endif
|
---|
| 5585 | # endif
|
---|
| 5586 | # endif
|
---|
| 5587 | #endif
|
---|
| 5588 |
|
---|
| 5589 | int
|
---|
| 5590 | main ()
|
---|
| 5591 | {
|
---|
| 5592 | char *p = (char *) alloca (1);
|
---|
| 5593 | ;
|
---|
| 5594 | return 0;
|
---|
| 5595 | }
|
---|
| 5596 | _ACEOF
|
---|
| 5597 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5598 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5599 | (eval $ac_link) 2>conftest.er1
|
---|
| 5600 | ac_status=$?
|
---|
| 5601 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5602 | rm -f conftest.er1
|
---|
| 5603 | cat conftest.err >&5
|
---|
| 5604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5605 | (exit $ac_status); } &&
|
---|
| 5606 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5607 | || test ! -s conftest.err'
|
---|
| 5608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5609 | (eval $ac_try) 2>&5
|
---|
| 5610 | ac_status=$?
|
---|
| 5611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5612 | (exit $ac_status); }; } &&
|
---|
| 5613 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5615 | (eval $ac_try) 2>&5
|
---|
| 5616 | ac_status=$?
|
---|
| 5617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5618 | (exit $ac_status); }; }; then
|
---|
| 5619 | ac_cv_func_alloca_works=yes
|
---|
| 5620 | else
|
---|
| 5621 | echo "$as_me: failed program was:" >&5
|
---|
| 5622 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5623 |
|
---|
| 5624 | ac_cv_func_alloca_works=no
|
---|
| 5625 | fi
|
---|
| 5626 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5627 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5628 | fi
|
---|
| 5629 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
| 5630 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
| 5631 |
|
---|
| 5632 | if test $ac_cv_func_alloca_works = yes; then
|
---|
| 5633 |
|
---|
| 5634 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5635 | #define HAVE_ALLOCA 1
|
---|
| 5636 | _ACEOF
|
---|
| 5637 |
|
---|
| 5638 | else
|
---|
| 5639 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5640 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5641 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5642 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
| 5643 |
|
---|
| 5644 | ALLOCA=alloca.$ac_objext
|
---|
| 5645 |
|
---|
| 5646 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5647 | #define C_ALLOCA 1
|
---|
| 5648 | _ACEOF
|
---|
| 5649 |
|
---|
| 5650 |
|
---|
| 5651 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
| 5652 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
| 5653 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 5654 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5655 | else
|
---|
| 5656 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5657 | /* confdefs.h. */
|
---|
| 5658 | _ACEOF
|
---|
| 5659 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5660 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5661 | /* end confdefs.h. */
|
---|
| 5662 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
| 5663 | webecray
|
---|
| 5664 | #else
|
---|
| 5665 | wenotbecray
|
---|
| 5666 | #endif
|
---|
| 5667 |
|
---|
| 5668 | _ACEOF
|
---|
| 5669 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5670 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
| 5671 | ac_cv_os_cray=yes
|
---|
| 5672 | else
|
---|
| 5673 | ac_cv_os_cray=no
|
---|
| 5674 | fi
|
---|
| 5675 | rm -f conftest*
|
---|
| 5676 |
|
---|
| 5677 | fi
|
---|
| 5678 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
| 5679 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
| 5680 | if test $ac_cv_os_cray = yes; then
|
---|
| 5681 | for ac_func in _getb67 GETB67 getb67; do
|
---|
| 5682 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5683 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5684 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5685 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 5686 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5687 | else
|
---|
| 5688 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5689 | /* confdefs.h. */
|
---|
| 5690 | _ACEOF
|
---|
| 5691 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5692 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5693 | /* end confdefs.h. */
|
---|
| 5694 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5695 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5696 | #define $ac_func innocuous_$ac_func
|
---|
| 5697 |
|
---|
| 5698 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 5699 | which can conflict with char $ac_func (); below.
|
---|
| 5700 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5701 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5702 |
|
---|
| 5703 | #ifdef __STDC__
|
---|
| 5704 | # include <limits.h>
|
---|
| 5705 | #else
|
---|
| 5706 | # include <assert.h>
|
---|
| 5707 | #endif
|
---|
| 5708 |
|
---|
| 5709 | #undef $ac_func
|
---|
| 5710 |
|
---|
| 5711 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5712 | #ifdef __cplusplus
|
---|
| 5713 | extern "C"
|
---|
| 5714 | {
|
---|
| 5715 | #endif
|
---|
| 5716 | /* We use char because int might match the return type of a gcc2
|
---|
| 5717 | builtin and then its argument prototype would still apply. */
|
---|
| 5718 | char $ac_func ();
|
---|
| 5719 | /* The GNU C library defines this for functions which it implements
|
---|
| 5720 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5721 | something starting with __ and the normal name is an alias. */
|
---|
| 5722 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5723 | choke me
|
---|
| 5724 | #else
|
---|
| 5725 | char (*f) () = $ac_func;
|
---|
| 5726 | #endif
|
---|
| 5727 | #ifdef __cplusplus
|
---|
| 5728 | }
|
---|
| 5729 | #endif
|
---|
| 5730 |
|
---|
| 5731 | int
|
---|
| 5732 | main ()
|
---|
| 5733 | {
|
---|
| 5734 | return f != $ac_func;
|
---|
| 5735 | ;
|
---|
| 5736 | return 0;
|
---|
| 5737 | }
|
---|
| 5738 | _ACEOF
|
---|
| 5739 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5740 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5741 | (eval $ac_link) 2>conftest.er1
|
---|
| 5742 | ac_status=$?
|
---|
| 5743 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5744 | rm -f conftest.er1
|
---|
| 5745 | cat conftest.err >&5
|
---|
| 5746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5747 | (exit $ac_status); } &&
|
---|
| 5748 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5749 | || test ! -s conftest.err'
|
---|
| 5750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5751 | (eval $ac_try) 2>&5
|
---|
| 5752 | ac_status=$?
|
---|
| 5753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5754 | (exit $ac_status); }; } &&
|
---|
| 5755 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5757 | (eval $ac_try) 2>&5
|
---|
| 5758 | ac_status=$?
|
---|
| 5759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5760 | (exit $ac_status); }; }; then
|
---|
| 5761 | eval "$as_ac_var=yes"
|
---|
| 5762 | else
|
---|
| 5763 | echo "$as_me: failed program was:" >&5
|
---|
| 5764 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5765 |
|
---|
| 5766 | eval "$as_ac_var=no"
|
---|
| 5767 | fi
|
---|
| 5768 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5769 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5770 | fi
|
---|
| 5771 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5772 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5773 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 5774 |
|
---|
| 5775 | cat >>confdefs.h <<_ACEOF
|
---|
| 5776 | #define CRAY_STACKSEG_END $ac_func
|
---|
| 5777 | _ACEOF
|
---|
| 5778 |
|
---|
| 5779 | break
|
---|
| 5780 | fi
|
---|
| 5781 |
|
---|
| 5782 | done
|
---|
| 5783 | fi
|
---|
| 5784 |
|
---|
| 5785 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
| 5786 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
| 5787 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 5788 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5789 | else
|
---|
| 5790 | if test "$cross_compiling" = yes; then
|
---|
| 5791 | ac_cv_c_stack_direction=0
|
---|
| 5792 | else
|
---|
| 5793 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5794 | /* confdefs.h. */
|
---|
| 5795 | _ACEOF
|
---|
| 5796 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5797 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5798 | /* end confdefs.h. */
|
---|
| 5799 | int
|
---|
| 5800 | find_stack_direction ()
|
---|
| 5801 | {
|
---|
| 5802 | static char *addr = 0;
|
---|
| 5803 | auto char dummy;
|
---|
| 5804 | if (addr == 0)
|
---|
| 5805 | {
|
---|
| 5806 | addr = &dummy;
|
---|
| 5807 | return find_stack_direction ();
|
---|
| 5808 | }
|
---|
| 5809 | else
|
---|
| 5810 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5811 | }
|
---|
| 5812 |
|
---|
| 5813 | int
|
---|
| 5814 | main ()
|
---|
| 5815 | {
|
---|
| 5816 | exit (find_stack_direction () < 0);
|
---|
| 5817 | }
|
---|
| 5818 | _ACEOF
|
---|
| 5819 | rm -f conftest$ac_exeext
|
---|
| 5820 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5821 | (eval $ac_link) 2>&5
|
---|
| 5822 | ac_status=$?
|
---|
| 5823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5824 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 5825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5826 | (eval $ac_try) 2>&5
|
---|
| 5827 | ac_status=$?
|
---|
| 5828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5829 | (exit $ac_status); }; }; then
|
---|
| 5830 | ac_cv_c_stack_direction=1
|
---|
| 5831 | else
|
---|
| 5832 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5833 | echo "$as_me: failed program was:" >&5
|
---|
| 5834 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5835 |
|
---|
| 5836 | ( exit $ac_status )
|
---|
| 5837 | ac_cv_c_stack_direction=-1
|
---|
| 5838 | fi
|
---|
| 5839 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 5840 | fi
|
---|
| 5841 | fi
|
---|
| 5842 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
| 5843 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
| 5844 |
|
---|
| 5845 | cat >>confdefs.h <<_ACEOF
|
---|
| 5846 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
| 5847 | _ACEOF
|
---|
| 5848 |
|
---|
| 5849 |
|
---|
| 5850 | fi
|
---|
| 5851 |
|
---|
| 5852 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
| 5853 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
| 5854 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
| 5855 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 5856 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5857 | else
|
---|
| 5858 | ac_pattern="Autoconf.*'x'"
|
---|
| 5859 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5860 | /* confdefs.h. */
|
---|
| 5861 | _ACEOF
|
---|
| 5862 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5863 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5864 | /* end confdefs.h. */
|
---|
| 5865 | #include <sgtty.h>
|
---|
| 5866 | Autoconf TIOCGETP
|
---|
| 5867 | _ACEOF
|
---|
| 5868 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5869 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
| 5870 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5871 | else
|
---|
| 5872 | ac_cv_prog_gcc_traditional=no
|
---|
| 5873 | fi
|
---|
| 5874 | rm -f conftest*
|
---|
| 5875 |
|
---|
| 5876 |
|
---|
| 5877 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
| 5878 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5879 | /* confdefs.h. */
|
---|
| 5880 | _ACEOF
|
---|
| 5881 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5882 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5883 | /* end confdefs.h. */
|
---|
| 5884 | #include <termio.h>
|
---|
| 5885 | Autoconf TCGETA
|
---|
| 5886 | _ACEOF
|
---|
| 5887 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 5888 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
| 5889 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5890 | fi
|
---|
| 5891 | rm -f conftest*
|
---|
| 5892 |
|
---|
| 5893 | fi
|
---|
| 5894 | fi
|
---|
| 5895 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
| 5896 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
| 5897 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5898 | CC="$CC -traditional"
|
---|
| 5899 | fi
|
---|
| 5900 | fi
|
---|
| 5901 |
|
---|
| 5902 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
| 5903 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
| 5904 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 5905 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5906 | else
|
---|
| 5907 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5908 | /* confdefs.h. */
|
---|
| 5909 | _ACEOF
|
---|
| 5910 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5911 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5912 | /* end confdefs.h. */
|
---|
| 5913 | #include <sys/types.h>
|
---|
| 5914 | #include <signal.h>
|
---|
| 5915 | #ifdef signal
|
---|
| 5916 | # undef signal
|
---|
| 5917 | #endif
|
---|
| 5918 | #ifdef __cplusplus
|
---|
| 5919 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 5920 | #else
|
---|
| 5921 | void (*signal ()) ();
|
---|
| 5922 | #endif
|
---|
| 5923 |
|
---|
| 5924 | int
|
---|
| 5925 | main ()
|
---|
| 5926 | {
|
---|
| 5927 | int i;
|
---|
| 5928 | ;
|
---|
| 5929 | return 0;
|
---|
| 5930 | }
|
---|
| 5931 | _ACEOF
|
---|
| 5932 | rm -f conftest.$ac_objext
|
---|
| 5933 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5934 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5935 | ac_status=$?
|
---|
| 5936 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5937 | rm -f conftest.er1
|
---|
| 5938 | cat conftest.err >&5
|
---|
| 5939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5940 | (exit $ac_status); } &&
|
---|
| 5941 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5942 | || test ! -s conftest.err'
|
---|
| 5943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5944 | (eval $ac_try) 2>&5
|
---|
| 5945 | ac_status=$?
|
---|
| 5946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5947 | (exit $ac_status); }; } &&
|
---|
| 5948 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5950 | (eval $ac_try) 2>&5
|
---|
| 5951 | ac_status=$?
|
---|
| 5952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5953 | (exit $ac_status); }; }; then
|
---|
| 5954 | ac_cv_type_signal=void
|
---|
| 5955 | else
|
---|
| 5956 | echo "$as_me: failed program was:" >&5
|
---|
| 5957 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5958 |
|
---|
| 5959 | ac_cv_type_signal=int
|
---|
| 5960 | fi
|
---|
| 5961 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5962 | fi
|
---|
| 5963 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
| 5964 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
| 5965 |
|
---|
| 5966 | cat >>confdefs.h <<_ACEOF
|
---|
| 5967 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
| 5968 | _ACEOF
|
---|
| 5969 |
|
---|
| 5970 |
|
---|
| 5971 |
|
---|
| 5972 | for ac_func in vprintf
|
---|
| 5973 | do
|
---|
| 5974 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5975 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5976 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5977 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 5978 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5979 | else
|
---|
| 5980 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5981 | /* confdefs.h. */
|
---|
| 5982 | _ACEOF
|
---|
| 5983 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5984 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5985 | /* end confdefs.h. */
|
---|
| 5986 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5987 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5988 | #define $ac_func innocuous_$ac_func
|
---|
| 5989 |
|
---|
| 5990 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 5991 | which can conflict with char $ac_func (); below.
|
---|
| 5992 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5993 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5994 |
|
---|
| 5995 | #ifdef __STDC__
|
---|
| 5996 | # include <limits.h>
|
---|
| 5997 | #else
|
---|
| 5998 | # include <assert.h>
|
---|
| 5999 | #endif
|
---|
| 6000 |
|
---|
| 6001 | #undef $ac_func
|
---|
| 6002 |
|
---|
| 6003 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6004 | #ifdef __cplusplus
|
---|
| 6005 | extern "C"
|
---|
| 6006 | {
|
---|
| 6007 | #endif
|
---|
| 6008 | /* We use char because int might match the return type of a gcc2
|
---|
| 6009 | builtin and then its argument prototype would still apply. */
|
---|
| 6010 | char $ac_func ();
|
---|
| 6011 | /* The GNU C library defines this for functions which it implements
|
---|
| 6012 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6013 | something starting with __ and the normal name is an alias. */
|
---|
| 6014 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6015 | choke me
|
---|
| 6016 | #else
|
---|
| 6017 | char (*f) () = $ac_func;
|
---|
| 6018 | #endif
|
---|
| 6019 | #ifdef __cplusplus
|
---|
| 6020 | }
|
---|
| 6021 | #endif
|
---|
| 6022 |
|
---|
| 6023 | int
|
---|
| 6024 | main ()
|
---|
| 6025 | {
|
---|
| 6026 | return f != $ac_func;
|
---|
| 6027 | ;
|
---|
| 6028 | return 0;
|
---|
| 6029 | }
|
---|
| 6030 | _ACEOF
|
---|
| 6031 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6032 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6033 | (eval $ac_link) 2>conftest.er1
|
---|
| 6034 | ac_status=$?
|
---|
| 6035 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6036 | rm -f conftest.er1
|
---|
| 6037 | cat conftest.err >&5
|
---|
| 6038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6039 | (exit $ac_status); } &&
|
---|
| 6040 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6041 | || test ! -s conftest.err'
|
---|
| 6042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6043 | (eval $ac_try) 2>&5
|
---|
| 6044 | ac_status=$?
|
---|
| 6045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6046 | (exit $ac_status); }; } &&
|
---|
| 6047 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6049 | (eval $ac_try) 2>&5
|
---|
| 6050 | ac_status=$?
|
---|
| 6051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6052 | (exit $ac_status); }; }; then
|
---|
| 6053 | eval "$as_ac_var=yes"
|
---|
| 6054 | else
|
---|
| 6055 | echo "$as_me: failed program was:" >&5
|
---|
| 6056 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6057 |
|
---|
| 6058 | eval "$as_ac_var=no"
|
---|
| 6059 | fi
|
---|
| 6060 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6061 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6062 | fi
|
---|
| 6063 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6064 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6065 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6066 | cat >>confdefs.h <<_ACEOF
|
---|
| 6067 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6068 | _ACEOF
|
---|
| 6069 |
|
---|
| 6070 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
| 6071 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
| 6072 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 6073 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6074 | else
|
---|
| 6075 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6076 | /* confdefs.h. */
|
---|
| 6077 | _ACEOF
|
---|
| 6078 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6079 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6080 | /* end confdefs.h. */
|
---|
| 6081 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 6082 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6083 | #define _doprnt innocuous__doprnt
|
---|
| 6084 |
|
---|
| 6085 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6086 | which can conflict with char _doprnt (); below.
|
---|
| 6087 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6088 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6089 |
|
---|
| 6090 | #ifdef __STDC__
|
---|
| 6091 | # include <limits.h>
|
---|
| 6092 | #else
|
---|
| 6093 | # include <assert.h>
|
---|
| 6094 | #endif
|
---|
| 6095 |
|
---|
| 6096 | #undef _doprnt
|
---|
| 6097 |
|
---|
| 6098 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6099 | #ifdef __cplusplus
|
---|
| 6100 | extern "C"
|
---|
| 6101 | {
|
---|
| 6102 | #endif
|
---|
| 6103 | /* We use char because int might match the return type of a gcc2
|
---|
| 6104 | builtin and then its argument prototype would still apply. */
|
---|
| 6105 | char _doprnt ();
|
---|
| 6106 | /* The GNU C library defines this for functions which it implements
|
---|
| 6107 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6108 | something starting with __ and the normal name is an alias. */
|
---|
| 6109 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
| 6110 | choke me
|
---|
| 6111 | #else
|
---|
| 6112 | char (*f) () = _doprnt;
|
---|
| 6113 | #endif
|
---|
| 6114 | #ifdef __cplusplus
|
---|
| 6115 | }
|
---|
| 6116 | #endif
|
---|
| 6117 |
|
---|
| 6118 | int
|
---|
| 6119 | main ()
|
---|
| 6120 | {
|
---|
| 6121 | return f != _doprnt;
|
---|
| 6122 | ;
|
---|
| 6123 | return 0;
|
---|
| 6124 | }
|
---|
| 6125 | _ACEOF
|
---|
| 6126 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6127 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6128 | (eval $ac_link) 2>conftest.er1
|
---|
| 6129 | ac_status=$?
|
---|
| 6130 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6131 | rm -f conftest.er1
|
---|
| 6132 | cat conftest.err >&5
|
---|
| 6133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6134 | (exit $ac_status); } &&
|
---|
| 6135 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6136 | || test ! -s conftest.err'
|
---|
| 6137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6138 | (eval $ac_try) 2>&5
|
---|
| 6139 | ac_status=$?
|
---|
| 6140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6141 | (exit $ac_status); }; } &&
|
---|
| 6142 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6144 | (eval $ac_try) 2>&5
|
---|
| 6145 | ac_status=$?
|
---|
| 6146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6147 | (exit $ac_status); }; }; then
|
---|
| 6148 | ac_cv_func__doprnt=yes
|
---|
| 6149 | else
|
---|
| 6150 | echo "$as_me: failed program was:" >&5
|
---|
| 6151 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6152 |
|
---|
| 6153 | ac_cv_func__doprnt=no
|
---|
| 6154 | fi
|
---|
| 6155 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6156 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6157 | fi
|
---|
| 6158 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
| 6159 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
| 6160 | if test $ac_cv_func__doprnt = yes; then
|
---|
| 6161 |
|
---|
| 6162 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6163 | #define HAVE_DOPRNT 1
|
---|
| 6164 | _ACEOF
|
---|
| 6165 |
|
---|
| 6166 | fi
|
---|
| 6167 |
|
---|
| 6168 | fi
|
---|
| 6169 | done
|
---|
| 6170 |
|
---|
| 6171 |
|
---|
| 6172 |
|
---|
| 6173 |
|
---|
| 6174 |
|
---|
| 6175 |
|
---|
| 6176 |
|
---|
| 6177 |
|
---|
| 6178 |
|
---|
| 6179 |
|
---|
| 6180 |
|
---|
| 6181 |
|
---|
| 6182 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
| 6183 | do
|
---|
| 6184 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6185 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6186 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6187 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6188 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6189 | else
|
---|
| 6190 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6191 | /* confdefs.h. */
|
---|
| 6192 | _ACEOF
|
---|
| 6193 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6194 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6195 | /* end confdefs.h. */
|
---|
| 6196 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6197 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6198 | #define $ac_func innocuous_$ac_func
|
---|
| 6199 |
|
---|
| 6200 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6201 | which can conflict with char $ac_func (); below.
|
---|
| 6202 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6203 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6204 |
|
---|
| 6205 | #ifdef __STDC__
|
---|
| 6206 | # include <limits.h>
|
---|
| 6207 | #else
|
---|
| 6208 | # include <assert.h>
|
---|
| 6209 | #endif
|
---|
| 6210 |
|
---|
| 6211 | #undef $ac_func
|
---|
| 6212 |
|
---|
| 6213 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6214 | #ifdef __cplusplus
|
---|
| 6215 | extern "C"
|
---|
| 6216 | {
|
---|
| 6217 | #endif
|
---|
| 6218 | /* We use char because int might match the return type of a gcc2
|
---|
| 6219 | builtin and then its argument prototype would still apply. */
|
---|
| 6220 | char $ac_func ();
|
---|
| 6221 | /* The GNU C library defines this for functions which it implements
|
---|
| 6222 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6223 | something starting with __ and the normal name is an alias. */
|
---|
| 6224 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6225 | choke me
|
---|
| 6226 | #else
|
---|
| 6227 | char (*f) () = $ac_func;
|
---|
| 6228 | #endif
|
---|
| 6229 | #ifdef __cplusplus
|
---|
| 6230 | }
|
---|
| 6231 | #endif
|
---|
| 6232 |
|
---|
| 6233 | int
|
---|
| 6234 | main ()
|
---|
| 6235 | {
|
---|
| 6236 | return f != $ac_func;
|
---|
| 6237 | ;
|
---|
| 6238 | return 0;
|
---|
| 6239 | }
|
---|
| 6240 | _ACEOF
|
---|
| 6241 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6243 | (eval $ac_link) 2>conftest.er1
|
---|
| 6244 | ac_status=$?
|
---|
| 6245 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6246 | rm -f conftest.er1
|
---|
| 6247 | cat conftest.err >&5
|
---|
| 6248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6249 | (exit $ac_status); } &&
|
---|
| 6250 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6251 | || test ! -s conftest.err'
|
---|
| 6252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6253 | (eval $ac_try) 2>&5
|
---|
| 6254 | ac_status=$?
|
---|
| 6255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6256 | (exit $ac_status); }; } &&
|
---|
| 6257 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6259 | (eval $ac_try) 2>&5
|
---|
| 6260 | ac_status=$?
|
---|
| 6261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6262 | (exit $ac_status); }; }; then
|
---|
| 6263 | eval "$as_ac_var=yes"
|
---|
| 6264 | else
|
---|
| 6265 | echo "$as_me: failed program was:" >&5
|
---|
| 6266 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6267 |
|
---|
| 6268 | eval "$as_ac_var=no"
|
---|
| 6269 | fi
|
---|
| 6270 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6271 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6272 | fi
|
---|
| 6273 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6274 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6275 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6276 | cat >>confdefs.h <<_ACEOF
|
---|
| 6277 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6278 | _ACEOF
|
---|
| 6279 |
|
---|
| 6280 | fi
|
---|
| 6281 | done
|
---|
| 6282 |
|
---|
| 6283 |
|
---|
| 6284 |
|
---|
| 6285 |
|
---|
| 6286 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6287 | do
|
---|
| 6288 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6289 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6290 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6291 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6292 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6293 | else
|
---|
| 6294 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6295 | /* confdefs.h. */
|
---|
| 6296 | _ACEOF
|
---|
| 6297 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6298 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6299 | /* end confdefs.h. */
|
---|
| 6300 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6301 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6302 | #define $ac_func innocuous_$ac_func
|
---|
| 6303 |
|
---|
| 6304 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6305 | which can conflict with char $ac_func (); below.
|
---|
| 6306 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6307 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6308 |
|
---|
| 6309 | #ifdef __STDC__
|
---|
| 6310 | # include <limits.h>
|
---|
| 6311 | #else
|
---|
| 6312 | # include <assert.h>
|
---|
| 6313 | #endif
|
---|
| 6314 |
|
---|
| 6315 | #undef $ac_func
|
---|
| 6316 |
|
---|
| 6317 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6318 | #ifdef __cplusplus
|
---|
| 6319 | extern "C"
|
---|
| 6320 | {
|
---|
| 6321 | #endif
|
---|
| 6322 | /* We use char because int might match the return type of a gcc2
|
---|
| 6323 | builtin and then its argument prototype would still apply. */
|
---|
| 6324 | char $ac_func ();
|
---|
| 6325 | /* The GNU C library defines this for functions which it implements
|
---|
| 6326 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6327 | something starting with __ and the normal name is an alias. */
|
---|
| 6328 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6329 | choke me
|
---|
| 6330 | #else
|
---|
| 6331 | char (*f) () = $ac_func;
|
---|
| 6332 | #endif
|
---|
| 6333 | #ifdef __cplusplus
|
---|
| 6334 | }
|
---|
| 6335 | #endif
|
---|
| 6336 |
|
---|
| 6337 | int
|
---|
| 6338 | main ()
|
---|
| 6339 | {
|
---|
| 6340 | return f != $ac_func;
|
---|
| 6341 | ;
|
---|
| 6342 | return 0;
|
---|
| 6343 | }
|
---|
| 6344 | _ACEOF
|
---|
| 6345 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6347 | (eval $ac_link) 2>conftest.er1
|
---|
| 6348 | ac_status=$?
|
---|
| 6349 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6350 | rm -f conftest.er1
|
---|
| 6351 | cat conftest.err >&5
|
---|
| 6352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6353 | (exit $ac_status); } &&
|
---|
| 6354 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6355 | || test ! -s conftest.err'
|
---|
| 6356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6357 | (eval $ac_try) 2>&5
|
---|
| 6358 | ac_status=$?
|
---|
| 6359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6360 | (exit $ac_status); }; } &&
|
---|
| 6361 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6363 | (eval $ac_try) 2>&5
|
---|
| 6364 | ac_status=$?
|
---|
| 6365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6366 | (exit $ac_status); }; }; then
|
---|
| 6367 | eval "$as_ac_var=yes"
|
---|
| 6368 | else
|
---|
| 6369 | echo "$as_me: failed program was:" >&5
|
---|
| 6370 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6371 |
|
---|
| 6372 | eval "$as_ac_var=no"
|
---|
| 6373 | fi
|
---|
| 6374 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6375 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6376 | fi
|
---|
| 6377 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6378 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6379 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6380 | cat >>confdefs.h <<_ACEOF
|
---|
| 6381 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6382 | _ACEOF
|
---|
| 6383 |
|
---|
| 6384 | else
|
---|
| 6385 | case $LIBOBJS in
|
---|
| 6386 | "$ac_func.$ac_objext" | \
|
---|
| 6387 | *" $ac_func.$ac_objext" | \
|
---|
| 6388 | "$ac_func.$ac_objext "* | \
|
---|
| 6389 | *" $ac_func.$ac_objext "* ) ;;
|
---|
| 6390 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
| 6391 | esac
|
---|
| 6392 |
|
---|
| 6393 | fi
|
---|
| 6394 | done
|
---|
| 6395 |
|
---|
| 6396 |
|
---|
| 6397 |
|
---|
| 6398 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
| 6399 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
| 6400 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
| 6401 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6402 | else
|
---|
| 6403 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6404 | /* confdefs.h. */
|
---|
| 6405 | _ACEOF
|
---|
| 6406 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6407 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6408 | /* end confdefs.h. */
|
---|
| 6409 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 6410 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6411 | #define textdomain innocuous_textdomain
|
---|
| 6412 |
|
---|
| 6413 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6414 | which can conflict with char textdomain (); below.
|
---|
| 6415 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6416 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6417 |
|
---|
| 6418 | #ifdef __STDC__
|
---|
| 6419 | # include <limits.h>
|
---|
| 6420 | #else
|
---|
| 6421 | # include <assert.h>
|
---|
| 6422 | #endif
|
---|
| 6423 |
|
---|
| 6424 | #undef textdomain
|
---|
| 6425 |
|
---|
| 6426 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6427 | #ifdef __cplusplus
|
---|
| 6428 | extern "C"
|
---|
| 6429 | {
|
---|
| 6430 | #endif
|
---|
| 6431 | /* We use char because int might match the return type of a gcc2
|
---|
| 6432 | builtin and then its argument prototype would still apply. */
|
---|
| 6433 | char textdomain ();
|
---|
| 6434 | /* The GNU C library defines this for functions which it implements
|
---|
| 6435 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6436 | something starting with __ and the normal name is an alias. */
|
---|
| 6437 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
| 6438 | choke me
|
---|
| 6439 | #else
|
---|
| 6440 | char (*f) () = textdomain;
|
---|
| 6441 | #endif
|
---|
| 6442 | #ifdef __cplusplus
|
---|
| 6443 | }
|
---|
| 6444 | #endif
|
---|
| 6445 |
|
---|
| 6446 | int
|
---|
| 6447 | main ()
|
---|
| 6448 | {
|
---|
| 6449 | return f != textdomain;
|
---|
| 6450 | ;
|
---|
| 6451 | return 0;
|
---|
| 6452 | }
|
---|
| 6453 | _ACEOF
|
---|
| 6454 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6455 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6456 | (eval $ac_link) 2>conftest.er1
|
---|
| 6457 | ac_status=$?
|
---|
| 6458 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6459 | rm -f conftest.er1
|
---|
| 6460 | cat conftest.err >&5
|
---|
| 6461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6462 | (exit $ac_status); } &&
|
---|
| 6463 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6464 | || test ! -s conftest.err'
|
---|
| 6465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6466 | (eval $ac_try) 2>&5
|
---|
| 6467 | ac_status=$?
|
---|
| 6468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6469 | (exit $ac_status); }; } &&
|
---|
| 6470 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6472 | (eval $ac_try) 2>&5
|
---|
| 6473 | ac_status=$?
|
---|
| 6474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6475 | (exit $ac_status); }; }; then
|
---|
| 6476 | ac_cv_func_textdomain=yes
|
---|
| 6477 | else
|
---|
| 6478 | echo "$as_me: failed program was:" >&5
|
---|
| 6479 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6480 |
|
---|
| 6481 | ac_cv_func_textdomain=no
|
---|
| 6482 | fi
|
---|
| 6483 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6484 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6485 | fi
|
---|
| 6486 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
| 6487 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
| 6488 | if test $ac_cv_func_textdomain = yes; then
|
---|
| 6489 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6490 | #define ENABLE_NLS 1
|
---|
| 6491 | _ACEOF
|
---|
| 6492 |
|
---|
| 6493 | fi
|
---|
| 6494 |
|
---|
| 6495 |
|
---|
| 6496 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 6497 | # ---------------------------------------------------------------------------
|
---|
| 6498 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
| 6499 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
| 6500 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
| 6501 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6502 | echo "${ECHO_T}yes" >&6
|
---|
| 6503 | case $LIBOBJS in
|
---|
| 6504 | "gmalloc.$ac_objext" | \
|
---|
| 6505 | *" gmalloc.$ac_objext" | \
|
---|
| 6506 | "gmalloc.$ac_objext "* | \
|
---|
| 6507 | *" gmalloc.$ac_objext "* ) ;;
|
---|
| 6508 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
| 6509 | esac
|
---|
| 6510 |
|
---|
| 6511 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6512 | #define HAVE_VALLOC 1
|
---|
| 6513 | _ACEOF
|
---|
| 6514 |
|
---|
| 6515 | else
|
---|
| 6516 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6517 | echo "${ECHO_T}no" >&6
|
---|
| 6518 |
|
---|
| 6519 | for ac_func in valloc
|
---|
| 6520 | do
|
---|
| 6521 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6522 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6523 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6524 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6525 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6526 | else
|
---|
| 6527 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6528 | /* confdefs.h. */
|
---|
| 6529 | _ACEOF
|
---|
| 6530 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6531 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6532 | /* end confdefs.h. */
|
---|
| 6533 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6534 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6535 | #define $ac_func innocuous_$ac_func
|
---|
| 6536 |
|
---|
| 6537 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6538 | which can conflict with char $ac_func (); below.
|
---|
| 6539 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6540 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6541 |
|
---|
| 6542 | #ifdef __STDC__
|
---|
| 6543 | # include <limits.h>
|
---|
| 6544 | #else
|
---|
| 6545 | # include <assert.h>
|
---|
| 6546 | #endif
|
---|
| 6547 |
|
---|
| 6548 | #undef $ac_func
|
---|
| 6549 |
|
---|
| 6550 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6551 | #ifdef __cplusplus
|
---|
| 6552 | extern "C"
|
---|
| 6553 | {
|
---|
| 6554 | #endif
|
---|
| 6555 | /* We use char because int might match the return type of a gcc2
|
---|
| 6556 | builtin and then its argument prototype would still apply. */
|
---|
| 6557 | char $ac_func ();
|
---|
| 6558 | /* The GNU C library defines this for functions which it implements
|
---|
| 6559 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6560 | something starting with __ and the normal name is an alias. */
|
---|
| 6561 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6562 | choke me
|
---|
| 6563 | #else
|
---|
| 6564 | char (*f) () = $ac_func;
|
---|
| 6565 | #endif
|
---|
| 6566 | #ifdef __cplusplus
|
---|
| 6567 | }
|
---|
| 6568 | #endif
|
---|
| 6569 |
|
---|
| 6570 | int
|
---|
| 6571 | main ()
|
---|
| 6572 | {
|
---|
| 6573 | return f != $ac_func;
|
---|
| 6574 | ;
|
---|
| 6575 | return 0;
|
---|
| 6576 | }
|
---|
| 6577 | _ACEOF
|
---|
| 6578 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6579 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6580 | (eval $ac_link) 2>conftest.er1
|
---|
| 6581 | ac_status=$?
|
---|
| 6582 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6583 | rm -f conftest.er1
|
---|
| 6584 | cat conftest.err >&5
|
---|
| 6585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6586 | (exit $ac_status); } &&
|
---|
| 6587 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6588 | || test ! -s conftest.err'
|
---|
| 6589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6590 | (eval $ac_try) 2>&5
|
---|
| 6591 | ac_status=$?
|
---|
| 6592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6593 | (exit $ac_status); }; } &&
|
---|
| 6594 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6596 | (eval $ac_try) 2>&5
|
---|
| 6597 | ac_status=$?
|
---|
| 6598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6599 | (exit $ac_status); }; }; then
|
---|
| 6600 | eval "$as_ac_var=yes"
|
---|
| 6601 | else
|
---|
| 6602 | echo "$as_me: failed program was:" >&5
|
---|
| 6603 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6604 |
|
---|
| 6605 | eval "$as_ac_var=no"
|
---|
| 6606 | fi
|
---|
| 6607 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6608 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6609 | fi
|
---|
| 6610 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6611 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6612 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6613 | cat >>confdefs.h <<_ACEOF
|
---|
| 6614 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6615 | _ACEOF
|
---|
| 6616 |
|
---|
| 6617 | fi
|
---|
| 6618 | done
|
---|
| 6619 |
|
---|
| 6620 | fi
|
---|
| 6621 |
|
---|
| 6622 | # we cannot generate static libraries under Darwin
|
---|
| 6623 | echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
| 6624 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
|
---|
| 6625 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
| 6626 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6627 | echo "${ECHO_T}yes" >&6
|
---|
| 6628 | STATIC=""
|
---|
| 6629 | else
|
---|
| 6630 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6631 | echo "${ECHO_T}no" >&6
|
---|
| 6632 | STATIC="-static "
|
---|
| 6633 | fi
|
---|
| 6634 |
|
---|
| 6635 |
|
---|
| 6636 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
| 6637 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
| 6638 |
|
---|
| 6639 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
| 6640 | if test "${with_dmalloc+set}" = set; then
|
---|
| 6641 | withval="$with_dmalloc"
|
---|
| 6642 | if test "$withval" = yes; then
|
---|
| 6643 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6644 | echo "${ECHO_T}yes" >&6
|
---|
| 6645 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6646 | #define WITH_DMALLOC 1
|
---|
| 6647 | _ACEOF
|
---|
| 6648 |
|
---|
| 6649 | LIBS="$LIBS -ldmalloc"
|
---|
| 6650 | LDFLAGS="$LDFLAGS -g"
|
---|
| 6651 | else
|
---|
| 6652 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6653 | echo "${ECHO_T}no" >&6
|
---|
| 6654 | fi
|
---|
| 6655 | else
|
---|
| 6656 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6657 | echo "${ECHO_T}no" >&6
|
---|
| 6658 | fi;
|
---|
| 6659 |
|
---|
| 6660 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
| 6661 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
| 6662 |
|
---|
| 6663 | # Check whether --with-regex or --without-regex was given.
|
---|
| 6664 | if test "${with_regex+set}" = set; then
|
---|
| 6665 | withval="$with_regex"
|
---|
| 6666 | if test "$withval" = yes; then
|
---|
| 6667 | ac_with_regex=1
|
---|
| 6668 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
| 6669 | echo "${ECHO_T}regex" >&6
|
---|
| 6670 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6671 | #define WITH_REGEX 1
|
---|
| 6672 | _ACEOF
|
---|
| 6673 |
|
---|
| 6674 | case $LIBOBJS in
|
---|
| 6675 | "regex.$ac_objext" | \
|
---|
| 6676 | *" regex.$ac_objext" | \
|
---|
| 6677 | "regex.$ac_objext "* | \
|
---|
| 6678 | *" regex.$ac_objext "* ) ;;
|
---|
| 6679 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
| 6680 | esac
|
---|
| 6681 |
|
---|
| 6682 | fi
|
---|
| 6683 | fi;
|
---|
| 6684 | if test -z "$ac_with_regex"; then
|
---|
| 6685 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
| 6686 | echo "${ECHO_T}rx" >&6
|
---|
| 6687 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
| 6688 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
| 6689 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
| 6690 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6691 | else
|
---|
| 6692 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6693 | /* confdefs.h. */
|
---|
| 6694 | _ACEOF
|
---|
| 6695 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6696 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6697 | /* end confdefs.h. */
|
---|
| 6698 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 6699 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6700 | #define re_rx_search innocuous_re_rx_search
|
---|
| 6701 |
|
---|
| 6702 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6703 | which can conflict with char re_rx_search (); below.
|
---|
| 6704 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6705 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6706 |
|
---|
| 6707 | #ifdef __STDC__
|
---|
| 6708 | # include <limits.h>
|
---|
| 6709 | #else
|
---|
| 6710 | # include <assert.h>
|
---|
| 6711 | #endif
|
---|
| 6712 |
|
---|
| 6713 | #undef re_rx_search
|
---|
| 6714 |
|
---|
| 6715 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6716 | #ifdef __cplusplus
|
---|
| 6717 | extern "C"
|
---|
| 6718 | {
|
---|
| 6719 | #endif
|
---|
| 6720 | /* We use char because int might match the return type of a gcc2
|
---|
| 6721 | builtin and then its argument prototype would still apply. */
|
---|
| 6722 | char re_rx_search ();
|
---|
| 6723 | /* The GNU C library defines this for functions which it implements
|
---|
| 6724 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6725 | something starting with __ and the normal name is an alias. */
|
---|
| 6726 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
| 6727 | choke me
|
---|
| 6728 | #else
|
---|
| 6729 | char (*f) () = re_rx_search;
|
---|
| 6730 | #endif
|
---|
| 6731 | #ifdef __cplusplus
|
---|
| 6732 | }
|
---|
| 6733 | #endif
|
---|
| 6734 |
|
---|
| 6735 | int
|
---|
| 6736 | main ()
|
---|
| 6737 | {
|
---|
| 6738 | return f != re_rx_search;
|
---|
| 6739 | ;
|
---|
| 6740 | return 0;
|
---|
| 6741 | }
|
---|
| 6742 | _ACEOF
|
---|
| 6743 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6744 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6745 | (eval $ac_link) 2>conftest.er1
|
---|
| 6746 | ac_status=$?
|
---|
| 6747 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6748 | rm -f conftest.er1
|
---|
| 6749 | cat conftest.err >&5
|
---|
| 6750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6751 | (exit $ac_status); } &&
|
---|
| 6752 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6753 | || test ! -s conftest.err'
|
---|
| 6754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6755 | (eval $ac_try) 2>&5
|
---|
| 6756 | ac_status=$?
|
---|
| 6757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6758 | (exit $ac_status); }; } &&
|
---|
| 6759 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6761 | (eval $ac_try) 2>&5
|
---|
| 6762 | ac_status=$?
|
---|
| 6763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6764 | (exit $ac_status); }; }; then
|
---|
| 6765 | ac_cv_func_re_rx_search=yes
|
---|
| 6766 | else
|
---|
| 6767 | echo "$as_me: failed program was:" >&5
|
---|
| 6768 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6769 |
|
---|
| 6770 | ac_cv_func_re_rx_search=no
|
---|
| 6771 | fi
|
---|
| 6772 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6773 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6774 | fi
|
---|
| 6775 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
| 6776 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
| 6777 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
| 6778 | :
|
---|
| 6779 | else
|
---|
| 6780 | case $LIBOBJS in
|
---|
| 6781 | "rx.$ac_objext" | \
|
---|
| 6782 | *" rx.$ac_objext" | \
|
---|
| 6783 | "rx.$ac_objext "* | \
|
---|
| 6784 | *" rx.$ac_objext "* ) ;;
|
---|
| 6785 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
| 6786 | esac
|
---|
| 6787 |
|
---|
| 6788 | fi
|
---|
| 6789 |
|
---|
| 6790 | fi
|
---|
| 6791 |
|
---|
| 6792 |
|
---|
| 6793 | # ---------------------------------------------------------------------------
|
---|
| 6794 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
| 6795 | case $LIBOBJS in
|
---|
| 6796 | "xmalloc.$ac_objext" | \
|
---|
| 6797 | *" xmalloc.$ac_objext" | \
|
---|
| 6798 | "xmalloc.$ac_objext "* | \
|
---|
| 6799 | *" xmalloc.$ac_objext "* ) ;;
|
---|
| 6800 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
| 6801 | esac
|
---|
| 6802 |
|
---|
| 6803 | case $LIBOBJS in
|
---|
| 6804 | "error.$ac_objext" | \
|
---|
| 6805 | *" error.$ac_objext" | \
|
---|
| 6806 | "error.$ac_objext "* | \
|
---|
| 6807 | *" error.$ac_objext "* ) ;;
|
---|
| 6808 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
| 6809 | esac
|
---|
| 6810 |
|
---|
| 6811 | fi
|
---|
| 6812 |
|
---|
| 6813 |
|
---|
| 6814 | # ---------------------------------------------------------------------------
|
---|
| 6815 |
|
---|
| 6816 | ac_ext=cc
|
---|
| 6817 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 6818 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 6819 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 6820 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 6821 |
|
---|
| 6822 |
|
---|
| 6823 | echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
|
---|
| 6824 | echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
|
---|
| 6825 | success="no"
|
---|
| 6826 | pl_path="$PATH"
|
---|
| 6827 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
| 6828 | for pl_dir in $pl_path; do
|
---|
| 6829 | test -z "$pl_dir" && pl_dir=.
|
---|
| 6830 | if test -x $pl_dir/perl; then
|
---|
| 6831 | success="yes"
|
---|
| 6832 | break
|
---|
| 6833 | fi
|
---|
| 6834 | done
|
---|
| 6835 | IFS="$pl_save_ifs"
|
---|
| 6836 |
|
---|
| 6837 | success=no
|
---|
| 6838 | echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
| 6839 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
| 6840 |
|
---|
[18214] | 6841 |
|
---|
[16568] | 6842 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6843 | /* confdefs.h. */
|
---|
| 6844 | _ACEOF
|
---|
| 6845 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6846 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6847 | /* end confdefs.h. */
|
---|
| 6848 | #include <vector>
|
---|
| 6849 |
|
---|
| 6850 | int
|
---|
| 6851 | main ()
|
---|
| 6852 | {
|
---|
| 6853 |
|
---|
| 6854 | ;
|
---|
| 6855 | return 0;
|
---|
| 6856 | }
|
---|
| 6857 | _ACEOF
|
---|
| 6858 | rm -f conftest.$ac_objext
|
---|
| 6859 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6860 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6861 | ac_status=$?
|
---|
| 6862 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6863 | rm -f conftest.er1
|
---|
| 6864 | cat conftest.err >&5
|
---|
| 6865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6866 | (exit $ac_status); } &&
|
---|
| 6867 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6868 | || test ! -s conftest.err'
|
---|
| 6869 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6870 | (eval $ac_try) 2>&5
|
---|
| 6871 | ac_status=$?
|
---|
| 6872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6873 | (exit $ac_status); }; } &&
|
---|
| 6874 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6876 | (eval $ac_try) 2>&5
|
---|
| 6877 | ac_status=$?
|
---|
| 6878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6879 | (exit $ac_status); }; }; then
|
---|
| 6880 | success=yes
|
---|
| 6881 | else
|
---|
| 6882 | echo "$as_me: failed program was:" >&5
|
---|
| 6883 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6884 |
|
---|
| 6885 | fi
|
---|
| 6886 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6887 |
|
---|
| 6888 | if test $success = "no"; then
|
---|
| 6889 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6890 | /* confdefs.h. */
|
---|
| 6891 | _ACEOF
|
---|
| 6892 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6893 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6894 | /* end confdefs.h. */
|
---|
| 6895 | #include <vector.h>
|
---|
| 6896 |
|
---|
| 6897 | int
|
---|
| 6898 | main ()
|
---|
| 6899 | {
|
---|
| 6900 |
|
---|
| 6901 | ;
|
---|
| 6902 | return 0;
|
---|
| 6903 | }
|
---|
| 6904 | _ACEOF
|
---|
| 6905 | rm -f conftest.$ac_objext
|
---|
| 6906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6907 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6908 | ac_status=$?
|
---|
| 6909 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6910 | rm -f conftest.er1
|
---|
| 6911 | cat conftest.err >&5
|
---|
| 6912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6913 | (exit $ac_status); } &&
|
---|
| 6914 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6915 | || test ! -s conftest.err'
|
---|
| 6916 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6917 | (eval $ac_try) 2>&5
|
---|
| 6918 | ac_status=$?
|
---|
| 6919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6920 | (exit $ac_status); }; } &&
|
---|
| 6921 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6923 | (eval $ac_try) 2>&5
|
---|
| 6924 | ac_status=$?
|
---|
| 6925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6926 | (exit $ac_status); }; }; then
|
---|
| 6927 | success="yes"
|
---|
| 6928 | else
|
---|
| 6929 | echo "$as_me: failed program was:" >&5
|
---|
| 6930 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6931 |
|
---|
| 6932 | fi
|
---|
| 6933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6934 | fi
|
---|
| 6935 |
|
---|
| 6936 | if test $success = "no"; then
|
---|
| 6937 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6938 | /* confdefs.h. */
|
---|
| 6939 | _ACEOF
|
---|
| 6940 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6941 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6942 | /* end confdefs.h. */
|
---|
| 6943 | #include <ospace\\std\\vector>
|
---|
| 6944 |
|
---|
| 6945 | int
|
---|
| 6946 | main ()
|
---|
| 6947 | {
|
---|
| 6948 |
|
---|
| 6949 | ;
|
---|
| 6950 | return 0;
|
---|
| 6951 | }
|
---|
| 6952 | _ACEOF
|
---|
| 6953 | rm -f conftest.$ac_objext
|
---|
| 6954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6955 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6956 | ac_status=$?
|
---|
| 6957 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6958 | rm -f conftest.er1
|
---|
| 6959 | cat conftest.err >&5
|
---|
| 6960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6961 | (exit $ac_status); } &&
|
---|
| 6962 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6963 | || test ! -s conftest.err'
|
---|
| 6964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6965 | (eval $ac_try) 2>&5
|
---|
| 6966 | ac_status=$?
|
---|
| 6967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6968 | (exit $ac_status); }; } &&
|
---|
| 6969 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6971 | (eval $ac_try) 2>&5
|
---|
| 6972 | ac_status=$?
|
---|
| 6973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6974 | (exit $ac_status); }; }; then
|
---|
| 6975 | success="yes"
|
---|
| 6976 | else
|
---|
| 6977 | echo "$as_me: failed program was:" >&5
|
---|
| 6978 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6979 |
|
---|
| 6980 | fi
|
---|
| 6981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6982 | fi
|
---|
| 6983 |
|
---|
| 6984 | if test $success = yes; then
|
---|
| 6985 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 6986 | echo "${ECHO_T}\"no\"" >&6
|
---|
| 6987 | else
|
---|
| 6988 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 6989 | echo "${ECHO_T}\"yes\"" >&6
|
---|
| 6990 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
| 6991 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
| 6992 | { (exit 1); exit 1; }; }
|
---|
| 6993 | fi
|
---|
| 6994 |
|
---|
| 6995 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
| 6996 | # check for running bash under cygwin
|
---|
| 6997 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 6998 | then
|
---|
| 6999 | gsdlos=windows
|
---|
| 7000 | fi
|
---|
| 7001 |
|
---|
| 7002 |
|
---|
| 7003 | # check for endianness
|
---|
| 7004 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 7005 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
| 7006 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
| 7007 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7008 | else
|
---|
| 7009 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 7010 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7011 | /* confdefs.h. */
|
---|
| 7012 | _ACEOF
|
---|
| 7013 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7014 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7015 | /* end confdefs.h. */
|
---|
| 7016 | #include <sys/types.h>
|
---|
| 7017 | #include <sys/param.h>
|
---|
| 7018 |
|
---|
| 7019 | int
|
---|
| 7020 | main ()
|
---|
| 7021 | {
|
---|
| 7022 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
| 7023 | bogus endian macros
|
---|
| 7024 | #endif
|
---|
| 7025 |
|
---|
| 7026 | ;
|
---|
| 7027 | return 0;
|
---|
| 7028 | }
|
---|
| 7029 | _ACEOF
|
---|
| 7030 | rm -f conftest.$ac_objext
|
---|
| 7031 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7032 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7033 | ac_status=$?
|
---|
| 7034 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7035 | rm -f conftest.er1
|
---|
| 7036 | cat conftest.err >&5
|
---|
| 7037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7038 | (exit $ac_status); } &&
|
---|
| 7039 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7040 | || test ! -s conftest.err'
|
---|
| 7041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7042 | (eval $ac_try) 2>&5
|
---|
| 7043 | ac_status=$?
|
---|
| 7044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7045 | (exit $ac_status); }; } &&
|
---|
| 7046 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7048 | (eval $ac_try) 2>&5
|
---|
| 7049 | ac_status=$?
|
---|
| 7050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7051 | (exit $ac_status); }; }; then
|
---|
| 7052 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
| 7053 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7054 | /* confdefs.h. */
|
---|
| 7055 | _ACEOF
|
---|
| 7056 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7057 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7058 | /* end confdefs.h. */
|
---|
| 7059 | #include <sys/types.h>
|
---|
| 7060 | #include <sys/param.h>
|
---|
| 7061 |
|
---|
| 7062 | int
|
---|
| 7063 | main ()
|
---|
| 7064 | {
|
---|
| 7065 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
| 7066 | not big endian
|
---|
| 7067 | #endif
|
---|
| 7068 |
|
---|
| 7069 | ;
|
---|
| 7070 | return 0;
|
---|
| 7071 | }
|
---|
| 7072 | _ACEOF
|
---|
| 7073 | rm -f conftest.$ac_objext
|
---|
| 7074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7075 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7076 | ac_status=$?
|
---|
| 7077 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7078 | rm -f conftest.er1
|
---|
| 7079 | cat conftest.err >&5
|
---|
| 7080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7081 | (exit $ac_status); } &&
|
---|
| 7082 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7083 | || test ! -s conftest.err'
|
---|
| 7084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7085 | (eval $ac_try) 2>&5
|
---|
| 7086 | ac_status=$?
|
---|
| 7087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7088 | (exit $ac_status); }; } &&
|
---|
| 7089 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7091 | (eval $ac_try) 2>&5
|
---|
| 7092 | ac_status=$?
|
---|
| 7093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7094 | (exit $ac_status); }; }; then
|
---|
| 7095 | ac_cv_c_bigendian=yes
|
---|
| 7096 | else
|
---|
| 7097 | echo "$as_me: failed program was:" >&5
|
---|
| 7098 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7099 |
|
---|
| 7100 | ac_cv_c_bigendian=no
|
---|
| 7101 | fi
|
---|
| 7102 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7103 | else
|
---|
| 7104 | echo "$as_me: failed program was:" >&5
|
---|
| 7105 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7106 |
|
---|
| 7107 | # It does not; compile a test program.
|
---|
| 7108 | if test "$cross_compiling" = yes; then
|
---|
| 7109 | # try to guess the endianness by grepping values into an object file
|
---|
| 7110 | ac_cv_c_bigendian=unknown
|
---|
| 7111 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7112 | /* confdefs.h. */
|
---|
| 7113 | _ACEOF
|
---|
| 7114 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7115 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7116 | /* end confdefs.h. */
|
---|
| 7117 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 7118 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 7119 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
| 7120 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 7121 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 7122 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
| 7123 | int
|
---|
| 7124 | main ()
|
---|
| 7125 | {
|
---|
| 7126 | _ascii (); _ebcdic ();
|
---|
| 7127 | ;
|
---|
| 7128 | return 0;
|
---|
| 7129 | }
|
---|
| 7130 | _ACEOF
|
---|
| 7131 | rm -f conftest.$ac_objext
|
---|
| 7132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7133 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7134 | ac_status=$?
|
---|
| 7135 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7136 | rm -f conftest.er1
|
---|
| 7137 | cat conftest.err >&5
|
---|
| 7138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7139 | (exit $ac_status); } &&
|
---|
| 7140 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7141 | || test ! -s conftest.err'
|
---|
| 7142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7143 | (eval $ac_try) 2>&5
|
---|
| 7144 | ac_status=$?
|
---|
| 7145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7146 | (exit $ac_status); }; } &&
|
---|
| 7147 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7149 | (eval $ac_try) 2>&5
|
---|
| 7150 | ac_status=$?
|
---|
| 7151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7152 | (exit $ac_status); }; }; then
|
---|
| 7153 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
| 7154 | ac_cv_c_bigendian=yes
|
---|
| 7155 | fi
|
---|
| 7156 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 7157 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 7158 | ac_cv_c_bigendian=no
|
---|
| 7159 | else
|
---|
| 7160 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 7161 | ac_cv_c_bigendian=unknown
|
---|
| 7162 | fi
|
---|
| 7163 | fi
|
---|
| 7164 | else
|
---|
| 7165 | echo "$as_me: failed program was:" >&5
|
---|
| 7166 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7167 |
|
---|
| 7168 | fi
|
---|
| 7169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7170 | else
|
---|
| 7171 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7172 | /* confdefs.h. */
|
---|
| 7173 | _ACEOF
|
---|
| 7174 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7175 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7176 | /* end confdefs.h. */
|
---|
| 7177 | int
|
---|
| 7178 | main ()
|
---|
| 7179 | {
|
---|
| 7180 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 7181 | union
|
---|
| 7182 | {
|
---|
| 7183 | long l;
|
---|
| 7184 | char c[sizeof (long)];
|
---|
| 7185 | } u;
|
---|
| 7186 | u.l = 1;
|
---|
| 7187 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
| 7188 | }
|
---|
| 7189 | _ACEOF
|
---|
| 7190 | rm -f conftest$ac_exeext
|
---|
| 7191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7192 | (eval $ac_link) 2>&5
|
---|
| 7193 | ac_status=$?
|
---|
| 7194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7195 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 7196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7197 | (eval $ac_try) 2>&5
|
---|
| 7198 | ac_status=$?
|
---|
| 7199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7200 | (exit $ac_status); }; }; then
|
---|
| 7201 | ac_cv_c_bigendian=no
|
---|
| 7202 | else
|
---|
| 7203 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7204 | echo "$as_me: failed program was:" >&5
|
---|
| 7205 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7206 |
|
---|
| 7207 | ( exit $ac_status )
|
---|
| 7208 | ac_cv_c_bigendian=yes
|
---|
| 7209 | fi
|
---|
| 7210 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 7211 | fi
|
---|
| 7212 | fi
|
---|
| 7213 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7214 | fi
|
---|
| 7215 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 7216 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
| 7217 | case $ac_cv_c_bigendian in
|
---|
| 7218 | yes)
|
---|
| 7219 |
|
---|
| 7220 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7221 | #define WORDS_BIGENDIAN 1
|
---|
| 7222 | _ACEOF
|
---|
| 7223 | ;;
|
---|
| 7224 | no)
|
---|
| 7225 | ;;
|
---|
| 7226 | *)
|
---|
| 7227 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 7228 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 7229 | echo "$as_me: error: unknown endianness
|
---|
| 7230 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
| 7231 | { (exit 1); exit 1; }; } ;;
|
---|
| 7232 | esac
|
---|
| 7233 |
|
---|
| 7234 | # ---------------------------------------------------------------------------
|
---|
| 7235 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
| 7236 | case $LIBOBJS in
|
---|
| 7237 | "xmalloc.o.$ac_objext" | \
|
---|
| 7238 | *" xmalloc.o.$ac_objext" | \
|
---|
| 7239 | "xmalloc.o.$ac_objext "* | \
|
---|
| 7240 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
| 7241 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
|
---|
| 7242 | esac
|
---|
| 7243 |
|
---|
| 7244 | case $LIBOBJS in
|
---|
| 7245 | "error.$ac_objext" | \
|
---|
| 7246 | *" error.$ac_objext" | \
|
---|
| 7247 | "error.$ac_objext "* | \
|
---|
| 7248 | *" error.$ac_objext "* ) ;;
|
---|
| 7249 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
| 7250 | esac
|
---|
| 7251 |
|
---|
| 7252 | fi
|
---|
| 7253 |
|
---|
| 7254 | # ---------------------------------------------------------------------------
|
---|
| 7255 |
|
---|
| 7256 |
|
---|
| 7257 | moduleDirs=""
|
---|
| 7258 | MODULEDIRS=""
|
---|
[19825] | 7259 | if test -d modules ; then
|
---|
[16568] | 7260 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
| 7261 | if test -d "$x"; then
|
---|
| 7262 | d="$x/Makefile.in"
|
---|
| 7263 | if test -e "$d"; then
|
---|
| 7264 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
| 7265 | MODULEDIRS="$MODULEDIRS $x"
|
---|
| 7266 | fi
|
---|
| 7267 | fi
|
---|
| 7268 | done
|
---|
| 7269 | echo "Making $moduleDirs in modules directory"
|
---|
| 7270 |
|
---|
| 7271 | fi
|
---|
| 7272 |
|
---|
| 7273 |
|
---|
| 7274 |
|
---|
| 7275 |
|
---|
| 7276 | subdirs="$subdirs packages"
|
---|
| 7277 |
|
---|
| 7278 |
|
---|
| 7279 | # the list of folders in the src folder
|
---|
| 7280 | srclist="src/colservr/Makefile \
|
---|
| 7281 | src/corba/Makefile \
|
---|
| 7282 | src/protocol/Makefile \
|
---|
| 7283 | src/recpt/Makefile \
|
---|
| 7284 | src/oaiservr/Makefile \
|
---|
| 7285 | src/z3950/Makefile"
|
---|
| 7286 |
|
---|
| 7287 | ac_config_files="$ac_config_files packages/Makefile Makefile $srclist $moduleDirs"
|
---|
| 7288 | cat >confcache <<\_ACEOF
|
---|
| 7289 | # This file is a shell script that caches the results of configure
|
---|
| 7290 | # tests run on this system so they can be shared between configure
|
---|
| 7291 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 7292 | # It is not useful on other systems. If it contains results you don't
|
---|
| 7293 | # want to keep, you may remove or edit it.
|
---|
| 7294 | #
|
---|
| 7295 | # config.status only pays attention to the cache file if you give it
|
---|
| 7296 | # the --recheck option to rerun configure.
|
---|
| 7297 | #
|
---|
| 7298 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
| 7299 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 7300 | # following values.
|
---|
| 7301 |
|
---|
| 7302 | _ACEOF
|
---|
| 7303 |
|
---|
| 7304 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 7305 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
| 7306 | # So, don't put newlines in cache variables' values.
|
---|
| 7307 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 7308 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
| 7309 | {
|
---|
| 7310 | (set) 2>&1 |
|
---|
| 7311 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 7312 | *ac_space=\ *)
|
---|
| 7313 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 7314 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 7315 | sed -n \
|
---|
| 7316 | "s/'/'\\\\''/g;
|
---|
| 7317 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
| 7318 | ;;
|
---|
| 7319 | *)
|
---|
| 7320 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
| 7321 | sed -n \
|
---|
| 7322 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
| 7323 | ;;
|
---|
| 7324 | esac;
|
---|
| 7325 | } |
|
---|
| 7326 | sed '
|
---|
| 7327 | t clear
|
---|
| 7328 | : clear
|
---|
| 7329 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 7330 | t end
|
---|
| 7331 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 7332 | : end' >>confcache
|
---|
| 7333 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
| 7334 | if test -w $cache_file; then
|
---|
| 7335 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
| 7336 | cat confcache >$cache_file
|
---|
| 7337 | else
|
---|
| 7338 | echo "not updating unwritable cache $cache_file"
|
---|
| 7339 | fi
|
---|
| 7340 | fi
|
---|
| 7341 | rm -f confcache
|
---|
| 7342 |
|
---|
| 7343 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 7344 | # Let make expand exec_prefix.
|
---|
| 7345 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 7346 |
|
---|
| 7347 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 7348 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 7349 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7350 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 7351 | if test "x$srcdir" = x.; then
|
---|
| 7352 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
| 7353 | s/:*\$(srcdir):*/:/;
|
---|
| 7354 | s/:*\${srcdir}:*/:/;
|
---|
| 7355 | s/:*@srcdir@:*/:/;
|
---|
| 7356 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
| 7357 | s/:*$//;
|
---|
| 7358 | s/^[^=]*=[ ]*$//;
|
---|
| 7359 | }'
|
---|
| 7360 | fi
|
---|
| 7361 |
|
---|
| 7362 | DEFS=-DHAVE_CONFIG_H
|
---|
| 7363 |
|
---|
| 7364 | ac_libobjs=
|
---|
| 7365 | ac_ltlibobjs=
|
---|
| 7366 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 7367 | # 1. Remove the extension, and $U if already installed.
|
---|
| 7368 | ac_i=`echo "$ac_i" |
|
---|
| 7369 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
| 7370 | # 2. Add them.
|
---|
| 7371 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
| 7372 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
| 7373 | done
|
---|
| 7374 | LIBOBJS=$ac_libobjs
|
---|
| 7375 |
|
---|
| 7376 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 7377 |
|
---|
| 7378 |
|
---|
| 7379 |
|
---|
| 7380 | : ${CONFIG_STATUS=./config.status}
|
---|
| 7381 | ac_clean_files_save=$ac_clean_files
|
---|
| 7382 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
| 7383 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
| 7384 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 7385 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
| 7386 | #! $SHELL
|
---|
| 7387 | # Generated by $as_me.
|
---|
| 7388 | # Run this file to recreate the current configuration.
|
---|
| 7389 | # Compiler output produced by configure, useful for debugging
|
---|
| 7390 | # configure, is in config.log if it exists.
|
---|
| 7391 |
|
---|
| 7392 | debug=false
|
---|
| 7393 | ac_cs_recheck=false
|
---|
| 7394 | ac_cs_silent=false
|
---|
| 7395 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
| 7396 | _ACEOF
|
---|
| 7397 |
|
---|
| 7398 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7399 | ## --------------------- ##
|
---|
| 7400 | ## M4sh Initialization. ##
|
---|
| 7401 | ## --------------------- ##
|
---|
| 7402 |
|
---|
| 7403 | # Be Bourne compatible
|
---|
| 7404 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 7405 | emulate sh
|
---|
| 7406 | NULLCMD=:
|
---|
| 7407 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 7408 | # is contrary to our usage. Disable this feature.
|
---|
| 7409 | alias -g '${1+"$@"}'='"$@"'
|
---|
| 7410 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 7411 | set -o posix
|
---|
| 7412 | fi
|
---|
| 7413 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 7414 |
|
---|
| 7415 | # Support unset when possible.
|
---|
| 7416 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 7417 | as_unset=unset
|
---|
| 7418 | else
|
---|
| 7419 | as_unset=false
|
---|
| 7420 | fi
|
---|
| 7421 |
|
---|
| 7422 |
|
---|
| 7423 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 7424 | $as_unset ENV MAIL MAILPATH
|
---|
| 7425 | PS1='$ '
|
---|
| 7426 | PS2='> '
|
---|
| 7427 | PS4='+ '
|
---|
| 7428 |
|
---|
| 7429 | # NLS nuisances.
|
---|
| 7430 | for as_var in \
|
---|
| 7431 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 7432 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 7433 | LC_TELEPHONE LC_TIME
|
---|
| 7434 | do
|
---|
| 7435 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 7436 | eval $as_var=C; export $as_var
|
---|
| 7437 | else
|
---|
| 7438 | $as_unset $as_var
|
---|
| 7439 | fi
|
---|
| 7440 | done
|
---|
| 7441 |
|
---|
| 7442 | # Required to use basename.
|
---|
| 7443 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7444 | as_expr=expr
|
---|
| 7445 | else
|
---|
| 7446 | as_expr=false
|
---|
| 7447 | fi
|
---|
| 7448 |
|
---|
| 7449 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
| 7450 | as_basename=basename
|
---|
| 7451 | else
|
---|
| 7452 | as_basename=false
|
---|
| 7453 | fi
|
---|
| 7454 |
|
---|
| 7455 |
|
---|
| 7456 | # Name of the executable.
|
---|
| 7457 | as_me=`$as_basename "$0" ||
|
---|
| 7458 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 7459 | X"$0" : 'X\(//\)$' \| \
|
---|
| 7460 | X"$0" : 'X\(/\)$' \| \
|
---|
| 7461 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7462 | echo X/"$0" |
|
---|
| 7463 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 7464 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7465 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 7466 | s/.*/./; q'`
|
---|
| 7467 |
|
---|
| 7468 |
|
---|
| 7469 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 7470 | # Avoid depending upon Character Ranges.
|
---|
| 7471 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 7472 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 7473 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 7474 | as_cr_digits='0123456789'
|
---|
| 7475 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 7476 |
|
---|
| 7477 | # The user is always right.
|
---|
| 7478 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 7479 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 7480 | echo "exit 0" >>conf$$.sh
|
---|
| 7481 | chmod +x conf$$.sh
|
---|
| 7482 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 7483 | PATH_SEPARATOR=';'
|
---|
| 7484 | else
|
---|
| 7485 | PATH_SEPARATOR=:
|
---|
| 7486 | fi
|
---|
| 7487 | rm -f conf$$.sh
|
---|
| 7488 | fi
|
---|
| 7489 |
|
---|
| 7490 |
|
---|
| 7491 | as_lineno_1=$LINENO
|
---|
| 7492 | as_lineno_2=$LINENO
|
---|
| 7493 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7494 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7495 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 7496 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 7497 | # relative or not.
|
---|
| 7498 | case $0 in
|
---|
| 7499 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 7500 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7501 | for as_dir in $PATH
|
---|
| 7502 | do
|
---|
| 7503 | IFS=$as_save_IFS
|
---|
| 7504 | test -z "$as_dir" && as_dir=.
|
---|
| 7505 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 7506 | done
|
---|
| 7507 |
|
---|
| 7508 | ;;
|
---|
| 7509 | esac
|
---|
| 7510 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 7511 | # in which case we are not to be found in the path.
|
---|
| 7512 | if test "x$as_myself" = x; then
|
---|
| 7513 | as_myself=$0
|
---|
| 7514 | fi
|
---|
| 7515 | if test ! -f "$as_myself"; then
|
---|
| 7516 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
| 7517 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
| 7518 | { (exit 1); exit 1; }; }
|
---|
| 7519 | fi
|
---|
| 7520 | case $CONFIG_SHELL in
|
---|
| 7521 | '')
|
---|
| 7522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7523 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 7524 | do
|
---|
| 7525 | IFS=$as_save_IFS
|
---|
| 7526 | test -z "$as_dir" && as_dir=.
|
---|
| 7527 | for as_base in sh bash ksh sh5; do
|
---|
| 7528 | case $as_dir in
|
---|
| 7529 | /*)
|
---|
| 7530 | if ("$as_dir/$as_base" -c '
|
---|
| 7531 | as_lineno_1=$LINENO
|
---|
| 7532 | as_lineno_2=$LINENO
|
---|
| 7533 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7534 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7535 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 7536 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 7537 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 7538 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 7539 | export CONFIG_SHELL
|
---|
| 7540 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 7541 | fi;;
|
---|
| 7542 | esac
|
---|
| 7543 | done
|
---|
| 7544 | done
|
---|
| 7545 | ;;
|
---|
| 7546 | esac
|
---|
| 7547 |
|
---|
| 7548 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 7549 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 7550 | # line-number line before each line; the second 'sed' does the real
|
---|
| 7551 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 7552 | # with the numbered line, and appends trailing '-' during
|
---|
| 7553 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 7554 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 7555 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 7556 | sed '=' <$as_myself |
|
---|
| 7557 | sed '
|
---|
| 7558 | N
|
---|
| 7559 | s,$,-,
|
---|
| 7560 | : loop
|
---|
| 7561 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 7562 | t loop
|
---|
| 7563 | s,-$,,
|
---|
| 7564 | s,^['$as_cr_digits']*\n,,
|
---|
| 7565 | ' >$as_me.lineno &&
|
---|
| 7566 | chmod +x $as_me.lineno ||
|
---|
| 7567 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
| 7568 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
| 7569 | { (exit 1); exit 1; }; }
|
---|
| 7570 |
|
---|
| 7571 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 7572 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 7573 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 7574 | . ./$as_me.lineno
|
---|
| 7575 | # Exit status is that of the last command.
|
---|
| 7576 | exit
|
---|
| 7577 | }
|
---|
| 7578 |
|
---|
| 7579 |
|
---|
| 7580 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 7581 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 7582 | ' ECHO_T=' ' ;;
|
---|
| 7583 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 7584 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
| 7585 | esac
|
---|
| 7586 |
|
---|
| 7587 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7588 | as_expr=expr
|
---|
| 7589 | else
|
---|
| 7590 | as_expr=false
|
---|
| 7591 | fi
|
---|
| 7592 |
|
---|
| 7593 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7594 | echo >conf$$.file
|
---|
| 7595 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7596 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 7597 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 7598 | if test -f conf$$.exe; then
|
---|
| 7599 | # Don't use ln at all; we don't have any links
|
---|
| 7600 | as_ln_s='cp -p'
|
---|
| 7601 | else
|
---|
| 7602 | as_ln_s='ln -s'
|
---|
| 7603 | fi
|
---|
| 7604 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7605 | as_ln_s=ln
|
---|
| 7606 | else
|
---|
| 7607 | as_ln_s='cp -p'
|
---|
| 7608 | fi
|
---|
| 7609 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7610 |
|
---|
| 7611 | if mkdir -p . 2>/dev/null; then
|
---|
| 7612 | as_mkdir_p=:
|
---|
| 7613 | else
|
---|
| 7614 | test -d ./-p && rmdir ./-p
|
---|
| 7615 | as_mkdir_p=false
|
---|
| 7616 | fi
|
---|
| 7617 |
|
---|
| 7618 | as_executable_p="test -f"
|
---|
| 7619 |
|
---|
| 7620 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 7621 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7622 |
|
---|
| 7623 | # Sed expression to map a string onto a valid variable name.
|
---|
| 7624 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7625 |
|
---|
| 7626 |
|
---|
| 7627 | # IFS
|
---|
| 7628 | # We need space, tab and new line, in precisely that order.
|
---|
| 7629 | as_nl='
|
---|
| 7630 | '
|
---|
| 7631 | IFS=" $as_nl"
|
---|
| 7632 |
|
---|
| 7633 | # CDPATH.
|
---|
| 7634 | $as_unset CDPATH
|
---|
| 7635 |
|
---|
| 7636 | exec 6>&1
|
---|
| 7637 |
|
---|
| 7638 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
| 7639 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
| 7640 | # values after options handling. Logging --version etc. is OK.
|
---|
| 7641 | exec 5>>config.log
|
---|
| 7642 | {
|
---|
| 7643 | echo
|
---|
| 7644 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 7645 | ## Running $as_me. ##
|
---|
| 7646 | _ASBOX
|
---|
| 7647 | } >&5
|
---|
| 7648 | cat >&5 <<_CSEOF
|
---|
| 7649 |
|
---|
| 7650 | This file was extended by $as_me, which was
|
---|
| 7651 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
| 7652 |
|
---|
| 7653 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 7654 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 7655 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 7656 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 7657 | $ $0 $@
|
---|
| 7658 |
|
---|
| 7659 | _CSEOF
|
---|
| 7660 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
| 7661 | echo >&5
|
---|
| 7662 | _ACEOF
|
---|
| 7663 |
|
---|
| 7664 | # Files that config.status was made for.
|
---|
| 7665 | if test -n "$ac_config_files"; then
|
---|
| 7666 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
| 7667 | fi
|
---|
| 7668 |
|
---|
| 7669 | if test -n "$ac_config_headers"; then
|
---|
| 7670 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
| 7671 | fi
|
---|
| 7672 |
|
---|
| 7673 | if test -n "$ac_config_links"; then
|
---|
| 7674 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
| 7675 | fi
|
---|
| 7676 |
|
---|
| 7677 | if test -n "$ac_config_commands"; then
|
---|
| 7678 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
| 7679 | fi
|
---|
| 7680 |
|
---|
| 7681 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7682 |
|
---|
| 7683 | ac_cs_usage="\
|
---|
| 7684 | \`$as_me' instantiates files from templates according to the
|
---|
| 7685 | current configuration.
|
---|
| 7686 |
|
---|
| 7687 | Usage: $0 [OPTIONS] [FILE]...
|
---|
| 7688 |
|
---|
| 7689 | -h, --help print this help, then exit
|
---|
| 7690 | -V, --version print version number, then exit
|
---|
| 7691 | -q, --quiet do not print progress messages
|
---|
| 7692 | -d, --debug don't remove temporary files
|
---|
| 7693 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
| 7694 | --file=FILE[:TEMPLATE]
|
---|
| 7695 | instantiate the configuration file FILE
|
---|
| 7696 | --header=FILE[:TEMPLATE]
|
---|
| 7697 | instantiate the configuration header FILE
|
---|
| 7698 |
|
---|
| 7699 | Configuration files:
|
---|
| 7700 | $config_files
|
---|
| 7701 |
|
---|
| 7702 | Configuration headers:
|
---|
| 7703 | $config_headers
|
---|
| 7704 |
|
---|
| 7705 | Report bugs to <[email protected]>."
|
---|
| 7706 | _ACEOF
|
---|
| 7707 |
|
---|
| 7708 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7709 | ac_cs_version="\\
|
---|
| 7710 | config.status
|
---|
| 7711 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
| 7712 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
| 7713 |
|
---|
| 7714 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
| 7715 | This config.status script is free software; the Free Software Foundation
|
---|
| 7716 | gives unlimited permission to copy, distribute and modify it."
|
---|
| 7717 | srcdir=$srcdir
|
---|
| 7718 | INSTALL="$INSTALL"
|
---|
| 7719 | _ACEOF
|
---|
| 7720 |
|
---|
| 7721 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7722 | # If no file are specified by the user, then we need to provide default
|
---|
| 7723 | # value. By we need to know if files were specified by the user.
|
---|
| 7724 | ac_need_defaults=:
|
---|
| 7725 | while test $# != 0
|
---|
| 7726 | do
|
---|
| 7727 | case $1 in
|
---|
| 7728 | --*=*)
|
---|
| 7729 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
| 7730 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
| 7731 | ac_shift=:
|
---|
| 7732 | ;;
|
---|
| 7733 | -*)
|
---|
| 7734 | ac_option=$1
|
---|
| 7735 | ac_optarg=$2
|
---|
| 7736 | ac_shift=shift
|
---|
| 7737 | ;;
|
---|
| 7738 | *) # This is not an option, so the user has probably given explicit
|
---|
| 7739 | # arguments.
|
---|
| 7740 | ac_option=$1
|
---|
| 7741 | ac_need_defaults=false;;
|
---|
| 7742 | esac
|
---|
| 7743 |
|
---|
| 7744 | case $ac_option in
|
---|
| 7745 | # Handling of the options.
|
---|
| 7746 | _ACEOF
|
---|
| 7747 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7748 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 7749 | ac_cs_recheck=: ;;
|
---|
| 7750 | --version | --vers* | -V )
|
---|
| 7751 | echo "$ac_cs_version"; exit 0 ;;
|
---|
| 7752 | --he | --h)
|
---|
| 7753 | # Conflict between --help and --header
|
---|
| 7754 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
| 7755 | Try \`$0 --help' for more information." >&5
|
---|
| 7756 | echo "$as_me: error: ambiguous option: $1
|
---|
| 7757 | Try \`$0 --help' for more information." >&2;}
|
---|
| 7758 | { (exit 1); exit 1; }; };;
|
---|
| 7759 | --help | --hel | -h )
|
---|
| 7760 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
| 7761 | --debug | --d* | -d )
|
---|
| 7762 | debug=: ;;
|
---|
| 7763 | --file | --fil | --fi | --f )
|
---|
| 7764 | $ac_shift
|
---|
| 7765 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
| 7766 | ac_need_defaults=false;;
|
---|
| 7767 | --header | --heade | --head | --hea )
|
---|
| 7768 | $ac_shift
|
---|
| 7769 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
| 7770 | ac_need_defaults=false;;
|
---|
| 7771 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 7772 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 7773 | ac_cs_silent=: ;;
|
---|
| 7774 |
|
---|
| 7775 | # This is an error.
|
---|
| 7776 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
| 7777 | Try \`$0 --help' for more information." >&5
|
---|
| 7778 | echo "$as_me: error: unrecognized option: $1
|
---|
| 7779 | Try \`$0 --help' for more information." >&2;}
|
---|
| 7780 | { (exit 1); exit 1; }; } ;;
|
---|
| 7781 |
|
---|
| 7782 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
| 7783 |
|
---|
| 7784 | esac
|
---|
| 7785 | shift
|
---|
| 7786 | done
|
---|
| 7787 |
|
---|
| 7788 | ac_configure_extra_args=
|
---|
| 7789 |
|
---|
| 7790 | if $ac_cs_silent; then
|
---|
| 7791 | exec 6>/dev/null
|
---|
| 7792 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
| 7793 | fi
|
---|
| 7794 |
|
---|
| 7795 | _ACEOF
|
---|
| 7796 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7797 | if \$ac_cs_recheck; then
|
---|
| 7798 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 7799 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
| 7800 | fi
|
---|
| 7801 |
|
---|
| 7802 | _ACEOF
|
---|
| 7803 |
|
---|
| 7804 |
|
---|
| 7805 |
|
---|
| 7806 |
|
---|
| 7807 |
|
---|
| 7808 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7809 | for ac_config_target in $ac_config_targets
|
---|
| 7810 | do
|
---|
| 7811 | case "$ac_config_target" in
|
---|
| 7812 | # Handling of arguments.
|
---|
| 7813 | "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
|
---|
| 7814 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 7815 | "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
| 7816 | "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
| 7817 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 7818 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 7819 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 7820 | { (exit 1); exit 1; }; };;
|
---|
| 7821 | esac
|
---|
| 7822 | done
|
---|
| 7823 |
|
---|
| 7824 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 7825 | # then the envvar interface is used. Set only those that are not.
|
---|
| 7826 | # We use the long form for the default assignment because of an extremely
|
---|
| 7827 | # bizarre bug on SunOS 4.1.3.
|
---|
| 7828 | if $ac_need_defaults; then
|
---|
| 7829 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 7830 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 7831 | fi
|
---|
| 7832 |
|
---|
| 7833 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
| 7834 | # simply because there is no reason to put it here, and in addition,
|
---|
| 7835 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
| 7836 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
| 7837 | $debug ||
|
---|
| 7838 | {
|
---|
| 7839 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
| 7840 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
| 7841 | }
|
---|
| 7842 |
|
---|
| 7843 | # Create a (secure) tmp directory for tmp files.
|
---|
| 7844 |
|
---|
| 7845 | {
|
---|
| 7846 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
| 7847 | test -n "$tmp" && test -d "$tmp"
|
---|
| 7848 | } ||
|
---|
| 7849 | {
|
---|
| 7850 | tmp=./confstat$$-$RANDOM
|
---|
| 7851 | (umask 077 && mkdir $tmp)
|
---|
| 7852 | } ||
|
---|
| 7853 | {
|
---|
| 7854 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
| 7855 | { (exit 1); exit 1; }
|
---|
| 7856 | }
|
---|
| 7857 |
|
---|
| 7858 | _ACEOF
|
---|
| 7859 |
|
---|
| 7860 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7861 |
|
---|
| 7862 | #
|
---|
| 7863 | # CONFIG_FILES section.
|
---|
| 7864 | #
|
---|
| 7865 |
|
---|
| 7866 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 7867 | # This happens for instance when ./config.status config.h
|
---|
| 7868 | if test -n "\$CONFIG_FILES"; then
|
---|
| 7869 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 7870 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
| 7871 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
| 7872 | s,@SHELL@,$SHELL,;t t
|
---|
| 7873 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
| 7874 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
| 7875 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
| 7876 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
| 7877 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
| 7878 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
| 7879 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
| 7880 | s,@prefix@,$prefix,;t t
|
---|
| 7881 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
| 7882 | s,@bindir@,$bindir,;t t
|
---|
| 7883 | s,@sbindir@,$sbindir,;t t
|
---|
| 7884 | s,@libexecdir@,$libexecdir,;t t
|
---|
| 7885 | s,@datadir@,$datadir,;t t
|
---|
| 7886 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
| 7887 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
| 7888 | s,@localstatedir@,$localstatedir,;t t
|
---|
| 7889 | s,@libdir@,$libdir,;t t
|
---|
| 7890 | s,@includedir@,$includedir,;t t
|
---|
| 7891 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
| 7892 | s,@infodir@,$infodir,;t t
|
---|
| 7893 | s,@mandir@,$mandir,;t t
|
---|
| 7894 | s,@build_alias@,$build_alias,;t t
|
---|
| 7895 | s,@host_alias@,$host_alias,;t t
|
---|
| 7896 | s,@target_alias@,$target_alias,;t t
|
---|
| 7897 | s,@DEFS@,$DEFS,;t t
|
---|
| 7898 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
| 7899 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
| 7900 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
| 7901 | s,@LIBS@,$LIBS,;t t
|
---|
| 7902 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
| 7903 | s,@VERSION@,$VERSION,;t t
|
---|
| 7904 | s,@USE_FASTCGI@,$USE_FASTCGI,;t t
|
---|
| 7905 | s,@USE_LANGACTION@,$USE_LANGACTION,;t t
|
---|
| 7906 | s,@USE_CORBA@,$USE_CORBA,;t t
|
---|
| 7907 | s,@MICO_DIR@,$MICO_DIR,;t t
|
---|
| 7908 | s,@USE_Z3950@,$USE_Z3950,;t t
|
---|
| 7909 | s,@USE_YAZ@,$USE_YAZ,;t t
|
---|
| 7910 | s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
|
---|
| 7911 | s,@USE_SQLITE@,$USE_SQLITE,;t t
|
---|
[18487] | 7912 | s,@USE_APACHE_HTTPD@,$USE_APACHE_HTTPD,;t t
|
---|
[16568] | 7913 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
| 7914 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
| 7915 | s,@CC@,$CC,;t t
|
---|
| 7916 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
| 7917 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
| 7918 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
| 7919 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
| 7920 | s,@CXX@,$CXX,;t t
|
---|
| 7921 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
| 7922 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
| 7923 | s,@AWK@,$AWK,;t t
|
---|
| 7924 | s,@YACC@,$YACC,;t t
|
---|
| 7925 | s,@build@,$build,;t t
|
---|
| 7926 | s,@build_cpu@,$build_cpu,;t t
|
---|
| 7927 | s,@build_vendor@,$build_vendor,;t t
|
---|
| 7928 | s,@build_os@,$build_os,;t t
|
---|
| 7929 | s,@host@,$host,;t t
|
---|
| 7930 | s,@host_cpu@,$host_cpu,;t t
|
---|
| 7931 | s,@host_vendor@,$host_vendor,;t t
|
---|
| 7932 | s,@host_os@,$host_os,;t t
|
---|
| 7933 | s,@target@,$target,;t t
|
---|
| 7934 | s,@target_cpu@,$target_cpu,;t t
|
---|
| 7935 | s,@target_vendor@,$target_vendor,;t t
|
---|
| 7936 | s,@target_os@,$target_os,;t t
|
---|
| 7937 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
| 7938 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
| 7939 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
| 7940 | s,@LN_S@,$LN_S,;t t
|
---|
| 7941 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
| 7942 | s,@RANLIB@,$RANLIB,;t t
|
---|
| 7943 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
| 7944 | s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
|
---|
| 7945 | s,@MICO_VER@,$MICO_VER,;t t
|
---|
| 7946 | s,@CPP@,$CPP,;t t
|
---|
| 7947 | s,@EGREP@,$EGREP,;t t
|
---|
| 7948 | s,@U@,$U,;t t
|
---|
| 7949 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
| 7950 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
| 7951 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
| 7952 | s,@STATIC@,$STATIC,;t t
|
---|
| 7953 | s,@gsdlos@,$gsdlos,;t t
|
---|
| 7954 | s,@MODULEDIRS@,$MODULEDIRS,;t t
|
---|
| 7955 | s,@subdirs@,$subdirs,;t t
|
---|
| 7956 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
| 7957 | CEOF
|
---|
| 7958 |
|
---|
| 7959 | _ACEOF
|
---|
| 7960 |
|
---|
| 7961 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7962 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 7963 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 7964 | ac_max_sed_lines=48
|
---|
| 7965 | ac_sed_frag=1 # Number of current file.
|
---|
| 7966 | ac_beg=1 # First line for current file.
|
---|
| 7967 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
| 7968 | ac_more_lines=:
|
---|
| 7969 | ac_sed_cmds=
|
---|
| 7970 | while $ac_more_lines; do
|
---|
| 7971 | if test $ac_beg -gt 1; then
|
---|
| 7972 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 7973 | else
|
---|
| 7974 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 7975 | fi
|
---|
| 7976 | if test ! -s $tmp/subs.frag; then
|
---|
| 7977 | ac_more_lines=false
|
---|
| 7978 | else
|
---|
| 7979 | # The purpose of the label and of the branching condition is to
|
---|
| 7980 | # speed up the sed processing (if there are no `@' at all, there
|
---|
| 7981 | # is no need to browse any of the substitutions).
|
---|
| 7982 | # These are the two extra sed commands mentioned above.
|
---|
| 7983 | (echo ':t
|
---|
| 7984 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
| 7985 | if test -z "$ac_sed_cmds"; then
|
---|
| 7986 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 7987 | else
|
---|
| 7988 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 7989 | fi
|
---|
| 7990 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
| 7991 | ac_beg=$ac_end
|
---|
| 7992 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
| 7993 | fi
|
---|
| 7994 | done
|
---|
| 7995 | if test -z "$ac_sed_cmds"; then
|
---|
| 7996 | ac_sed_cmds=cat
|
---|
| 7997 | fi
|
---|
| 7998 | fi # test -n "$CONFIG_FILES"
|
---|
| 7999 |
|
---|
| 8000 | _ACEOF
|
---|
| 8001 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8002 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
| 8003 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 8004 | case $ac_file in
|
---|
| 8005 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8006 | cat >$tmp/stdin
|
---|
| 8007 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8008 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8009 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8010 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8011 | * ) ac_file_in=$ac_file.in ;;
|
---|
| 8012 | esac
|
---|
| 8013 |
|
---|
| 8014 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
| 8015 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8016 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8017 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8018 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8019 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8020 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8021 | echo X"$ac_file" |
|
---|
| 8022 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8023 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8024 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8025 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8026 | s/.*/./; q'`
|
---|
| 8027 | { if $as_mkdir_p; then
|
---|
| 8028 | mkdir -p "$ac_dir"
|
---|
| 8029 | else
|
---|
| 8030 | as_dir="$ac_dir"
|
---|
| 8031 | as_dirs=
|
---|
| 8032 | while test ! -d "$as_dir"; do
|
---|
| 8033 | as_dirs="$as_dir $as_dirs"
|
---|
| 8034 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8035 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8036 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8037 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8038 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8039 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8040 | echo X"$as_dir" |
|
---|
| 8041 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8042 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8043 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8044 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8045 | s/.*/./; q'`
|
---|
| 8046 | done
|
---|
| 8047 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8048 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8049 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8050 | { (exit 1); exit 1; }; }; }
|
---|
| 8051 |
|
---|
| 8052 | ac_builddir=.
|
---|
| 8053 |
|
---|
| 8054 | if test "$ac_dir" != .; then
|
---|
| 8055 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8056 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8057 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8058 | else
|
---|
| 8059 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8060 | fi
|
---|
| 8061 |
|
---|
| 8062 | case $srcdir in
|
---|
| 8063 | .) # No --srcdir option. We are building in place.
|
---|
| 8064 | ac_srcdir=.
|
---|
| 8065 | if test -z "$ac_top_builddir"; then
|
---|
| 8066 | ac_top_srcdir=.
|
---|
| 8067 | else
|
---|
| 8068 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8069 | fi ;;
|
---|
| 8070 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8071 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8072 | ac_top_srcdir=$srcdir ;;
|
---|
| 8073 | *) # Relative path.
|
---|
| 8074 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8075 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8076 | esac
|
---|
| 8077 |
|
---|
| 8078 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8079 | # the directories may not exist.
|
---|
| 8080 | case `pwd` in
|
---|
| 8081 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8082 | *)
|
---|
| 8083 | case "$ac_dir" in
|
---|
| 8084 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8085 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8086 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8087 | esac;;
|
---|
| 8088 | esac
|
---|
| 8089 | case $ac_abs_builddir in
|
---|
| 8090 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8091 | *)
|
---|
| 8092 | case ${ac_top_builddir}. in
|
---|
| 8093 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8094 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8095 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8096 | esac;;
|
---|
| 8097 | esac
|
---|
| 8098 | case $ac_abs_builddir in
|
---|
| 8099 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8100 | *)
|
---|
| 8101 | case $ac_srcdir in
|
---|
| 8102 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8103 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8104 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8105 | esac;;
|
---|
| 8106 | esac
|
---|
| 8107 | case $ac_abs_builddir in
|
---|
| 8108 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8109 | *)
|
---|
| 8110 | case $ac_top_srcdir in
|
---|
| 8111 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8112 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8113 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8114 | esac;;
|
---|
| 8115 | esac
|
---|
| 8116 |
|
---|
| 8117 |
|
---|
| 8118 | case $INSTALL in
|
---|
| 8119 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
| 8120 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
| 8121 | esac
|
---|
| 8122 |
|
---|
| 8123 | if test x"$ac_file" != x-; then
|
---|
| 8124 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8125 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8126 | rm -f "$ac_file"
|
---|
| 8127 | fi
|
---|
| 8128 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8129 | # use $as_me), people would be surprised to read:
|
---|
| 8130 | # /* config.h. Generated by config.status. */
|
---|
| 8131 | if test x"$ac_file" = x-; then
|
---|
| 8132 | configure_input=
|
---|
| 8133 | else
|
---|
| 8134 | configure_input="$ac_file. "
|
---|
| 8135 | fi
|
---|
| 8136 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
| 8137 | sed 's,.*/,,'` by configure."
|
---|
| 8138 |
|
---|
| 8139 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8140 | # src tree.
|
---|
| 8141 | ac_file_inputs=`IFS=:
|
---|
| 8142 | for f in $ac_file_in; do
|
---|
| 8143 | case $f in
|
---|
| 8144 | -) echo $tmp/stdin ;;
|
---|
| 8145 | [\\/$]*)
|
---|
| 8146 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8147 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8148 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8149 | { (exit 1); exit 1; }; }
|
---|
| 8150 | echo "$f";;
|
---|
| 8151 | *) # Relative
|
---|
| 8152 | if test -f "$f"; then
|
---|
| 8153 | # Build tree
|
---|
| 8154 | echo "$f"
|
---|
| 8155 | elif test -f "$srcdir/$f"; then
|
---|
| 8156 | # Source tree
|
---|
| 8157 | echo "$srcdir/$f"
|
---|
| 8158 | else
|
---|
| 8159 | # /dev/null tree
|
---|
| 8160 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8161 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8162 | { (exit 1); exit 1; }; }
|
---|
| 8163 | fi;;
|
---|
| 8164 | esac
|
---|
| 8165 | done` || { (exit 1); exit 1; }
|
---|
| 8166 | _ACEOF
|
---|
| 8167 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8168 | sed "$ac_vpsub
|
---|
| 8169 | $extrasub
|
---|
| 8170 | _ACEOF
|
---|
| 8171 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8172 | :t
|
---|
| 8173 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
| 8174 | s,@configure_input@,$configure_input,;t t
|
---|
| 8175 | s,@srcdir@,$ac_srcdir,;t t
|
---|
| 8176 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
| 8177 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
| 8178 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
| 8179 | s,@builddir@,$ac_builddir,;t t
|
---|
| 8180 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
| 8181 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
| 8182 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
| 8183 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
| 8184 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
| 8185 | rm -f $tmp/stdin
|
---|
| 8186 | if test x"$ac_file" != x-; then
|
---|
| 8187 | mv $tmp/out $ac_file
|
---|
| 8188 | else
|
---|
| 8189 | cat $tmp/out
|
---|
| 8190 | rm -f $tmp/out
|
---|
| 8191 | fi
|
---|
| 8192 |
|
---|
| 8193 | done
|
---|
| 8194 | _ACEOF
|
---|
| 8195 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8196 |
|
---|
| 8197 | #
|
---|
| 8198 | # CONFIG_HEADER section.
|
---|
| 8199 | #
|
---|
| 8200 |
|
---|
| 8201 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 8202 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 8203 | #
|
---|
| 8204 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
| 8205 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 8206 | ac_dB='[ ].*$,\1#\2'
|
---|
| 8207 | ac_dC=' '
|
---|
| 8208 | ac_dD=',;t'
|
---|
| 8209 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
| 8210 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 8211 | ac_uB='$,\1#\2define\3'
|
---|
| 8212 | ac_uC=' '
|
---|
| 8213 | ac_uD=',;t'
|
---|
| 8214 |
|
---|
| 8215 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
| 8216 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 8217 | case $ac_file in
|
---|
| 8218 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8219 | cat >$tmp/stdin
|
---|
| 8220 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8221 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8222 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8223 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8224 | * ) ac_file_in=$ac_file.in ;;
|
---|
| 8225 | esac
|
---|
| 8226 |
|
---|
| 8227 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8228 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8229 |
|
---|
| 8230 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8231 | # src tree.
|
---|
| 8232 | ac_file_inputs=`IFS=:
|
---|
| 8233 | for f in $ac_file_in; do
|
---|
| 8234 | case $f in
|
---|
| 8235 | -) echo $tmp/stdin ;;
|
---|
| 8236 | [\\/$]*)
|
---|
| 8237 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8238 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8239 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8240 | { (exit 1); exit 1; }; }
|
---|
| 8241 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
| 8242 | echo "$f";;
|
---|
| 8243 | *) # Relative
|
---|
| 8244 | if test -f "$f"; then
|
---|
| 8245 | # Build tree
|
---|
| 8246 | echo "$f"
|
---|
| 8247 | elif test -f "$srcdir/$f"; then
|
---|
| 8248 | # Source tree
|
---|
| 8249 | echo "$srcdir/$f"
|
---|
| 8250 | else
|
---|
| 8251 | # /dev/null tree
|
---|
| 8252 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8253 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8254 | { (exit 1); exit 1; }; }
|
---|
| 8255 | fi;;
|
---|
| 8256 | esac
|
---|
| 8257 | done` || { (exit 1); exit 1; }
|
---|
| 8258 | # Remove the trailing spaces.
|
---|
| 8259 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
| 8260 |
|
---|
| 8261 | _ACEOF
|
---|
| 8262 |
|
---|
| 8263 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
| 8264 | # `conftest.undefs', that substitutes the proper values into
|
---|
| 8265 | # config.h.in to produce config.h. The first handles `#define'
|
---|
| 8266 | # templates, and the second `#undef' templates.
|
---|
| 8267 | # And first: Protect against being on the right side of a sed subst in
|
---|
| 8268 | # config.status. Protect against being in an unquoted here document
|
---|
| 8269 | # in config.status.
|
---|
| 8270 | rm -f conftest.defines conftest.undefs
|
---|
| 8271 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
| 8272 | # Putting comments in sed scripts is not portable.
|
---|
| 8273 | #
|
---|
| 8274 | # `end' is used to avoid that the second main sed command (meant for
|
---|
| 8275 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
| 8276 | # See the Autoconf documentation for `clear'.
|
---|
| 8277 | cat >confdef2sed.sed <<\_ACEOF
|
---|
| 8278 | s/[\\&,]/\\&/g
|
---|
| 8279 | s,[\\$`],\\&,g
|
---|
| 8280 | t clear
|
---|
| 8281 | : clear
|
---|
| 8282 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
| 8283 | t end
|
---|
| 8284 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
| 8285 | : end
|
---|
| 8286 | _ACEOF
|
---|
| 8287 | # If some macros were called several times there might be several times
|
---|
| 8288 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
| 8289 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
| 8290 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
| 8291 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
| 8292 | rm -f confdef2sed.sed
|
---|
| 8293 |
|
---|
| 8294 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 8295 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 8296 | # on some systems where configure will not decide to define it.
|
---|
| 8297 | cat >>conftest.undefs <<\_ACEOF
|
---|
| 8298 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
| 8299 | _ACEOF
|
---|
| 8300 |
|
---|
| 8301 | # Break up conftest.defines because some shells have a limit on the size
|
---|
| 8302 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8303 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
| 8304 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
| 8305 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
| 8306 | echo ' :' >>$CONFIG_STATUS
|
---|
| 8307 | rm -f conftest.tail
|
---|
| 8308 | while grep . conftest.defines >/dev/null
|
---|
| 8309 | do
|
---|
| 8310 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
| 8311 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8312 | # Speed up: don't consider the non `#define' lines.
|
---|
| 8313 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
| 8314 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8315 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8316 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8317 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
| 8318 | echo 'CEOF
|
---|
| 8319 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
| 8320 | rm -f $tmp/in
|
---|
| 8321 | mv $tmp/out $tmp/in
|
---|
| 8322 | ' >>$CONFIG_STATUS
|
---|
| 8323 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
| 8324 | rm -f conftest.defines
|
---|
| 8325 | mv conftest.tail conftest.defines
|
---|
| 8326 | done
|
---|
| 8327 | rm -f conftest.defines
|
---|
| 8328 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
| 8329 | echo >>$CONFIG_STATUS
|
---|
| 8330 |
|
---|
| 8331 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
| 8332 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8333 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
| 8334 | rm -f conftest.tail
|
---|
| 8335 | while grep . conftest.undefs >/dev/null
|
---|
| 8336 | do
|
---|
| 8337 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
| 8338 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8339 | # Speed up: don't consider the non `#undef'
|
---|
| 8340 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
| 8341 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8342 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8343 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8344 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
| 8345 | echo 'CEOF
|
---|
| 8346 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
| 8347 | rm -f $tmp/in
|
---|
| 8348 | mv $tmp/out $tmp/in
|
---|
| 8349 | ' >>$CONFIG_STATUS
|
---|
| 8350 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
| 8351 | rm -f conftest.undefs
|
---|
| 8352 | mv conftest.tail conftest.undefs
|
---|
| 8353 | done
|
---|
| 8354 | rm -f conftest.undefs
|
---|
| 8355 |
|
---|
| 8356 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8357 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8358 | # use $as_me), people would be surprised to read:
|
---|
| 8359 | # /* config.h. Generated by config.status. */
|
---|
| 8360 | if test x"$ac_file" = x-; then
|
---|
| 8361 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
| 8362 | else
|
---|
| 8363 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
| 8364 | fi
|
---|
| 8365 | cat $tmp/in >>$tmp/config.h
|
---|
| 8366 | rm -f $tmp/in
|
---|
| 8367 | if test x"$ac_file" != x-; then
|
---|
| 8368 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
| 8369 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
| 8370 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
| 8371 | else
|
---|
| 8372 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8373 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8374 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8375 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8376 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8377 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8378 | echo X"$ac_file" |
|
---|
| 8379 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8380 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8381 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8382 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8383 | s/.*/./; q'`
|
---|
| 8384 | { if $as_mkdir_p; then
|
---|
| 8385 | mkdir -p "$ac_dir"
|
---|
| 8386 | else
|
---|
| 8387 | as_dir="$ac_dir"
|
---|
| 8388 | as_dirs=
|
---|
| 8389 | while test ! -d "$as_dir"; do
|
---|
| 8390 | as_dirs="$as_dir $as_dirs"
|
---|
| 8391 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8392 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8393 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8394 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8395 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8396 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8397 | echo X"$as_dir" |
|
---|
| 8398 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8399 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8400 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8401 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8402 | s/.*/./; q'`
|
---|
| 8403 | done
|
---|
| 8404 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8405 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8406 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8407 | { (exit 1); exit 1; }; }; }
|
---|
| 8408 |
|
---|
| 8409 | rm -f $ac_file
|
---|
| 8410 | mv $tmp/config.h $ac_file
|
---|
| 8411 | fi
|
---|
| 8412 | else
|
---|
| 8413 | cat $tmp/config.h
|
---|
| 8414 | rm -f $tmp/config.h
|
---|
| 8415 | fi
|
---|
| 8416 | done
|
---|
| 8417 | _ACEOF
|
---|
| 8418 |
|
---|
| 8419 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8420 |
|
---|
| 8421 | { (exit 0); exit 0; }
|
---|
| 8422 | _ACEOF
|
---|
| 8423 | chmod +x $CONFIG_STATUS
|
---|
| 8424 | ac_clean_files=$ac_clean_files_save
|
---|
| 8425 |
|
---|
| 8426 |
|
---|
| 8427 | # configure is writing to config.log, and then calls config.status.
|
---|
| 8428 | # config.status does its own redirection, appending to config.log.
|
---|
| 8429 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 8430 | # by configure, so config.status won't be able to write to it; its
|
---|
| 8431 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 8432 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 8433 | # appended to by config.status. When coming back to configure, we
|
---|
| 8434 | # need to make the FD available again.
|
---|
| 8435 | if test "$no_create" != yes; then
|
---|
| 8436 | ac_cs_success=:
|
---|
| 8437 | ac_config_status_args=
|
---|
| 8438 | test "$silent" = yes &&
|
---|
| 8439 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
| 8440 | exec 5>/dev/null
|
---|
| 8441 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
| 8442 | exec 5>>config.log
|
---|
| 8443 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 8444 | # would make configure fail if this is the last instruction.
|
---|
| 8445 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
| 8446 | fi
|
---|
| 8447 |
|
---|
| 8448 | #
|
---|
| 8449 | # CONFIG_SUBDIRS section.
|
---|
| 8450 | #
|
---|
| 8451 | if test "$no_recursion" != yes; then
|
---|
| 8452 |
|
---|
| 8453 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
| 8454 | ac_sub_configure_args=
|
---|
| 8455 | ac_prev=
|
---|
| 8456 | for ac_arg in $ac_configure_args; do
|
---|
| 8457 | if test -n "$ac_prev"; then
|
---|
| 8458 | ac_prev=
|
---|
| 8459 | continue
|
---|
| 8460 | fi
|
---|
| 8461 | case $ac_arg in
|
---|
| 8462 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 8463 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 8464 | ac_prev=cache_file ;;
|
---|
| 8465 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 8466 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
| 8467 | | --c=*)
|
---|
| 8468 | ;;
|
---|
| 8469 | --config-cache | -C)
|
---|
| 8470 | ;;
|
---|
| 8471 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 8472 | ac_prev=srcdir ;;
|
---|
| 8473 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 8474 | ;;
|
---|
| 8475 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 8476 | ac_prev=prefix ;;
|
---|
| 8477 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 8478 | ;;
|
---|
| 8479 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
| 8480 | esac
|
---|
| 8481 | done
|
---|
| 8482 |
|
---|
| 8483 | # Always prepend --prefix to ensure using the same prefix
|
---|
| 8484 | # in subdir configurations.
|
---|
| 8485 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
| 8486 |
|
---|
| 8487 | ac_popdir=`pwd`
|
---|
| 8488 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
| 8489 |
|
---|
| 8490 | # Do not complain, so a configure script can configure whichever
|
---|
| 8491 | # parts of a large source tree are present.
|
---|
| 8492 | test -d $srcdir/$ac_dir || continue
|
---|
| 8493 |
|
---|
| 8494 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
| 8495 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
| 8496 | { if $as_mkdir_p; then
|
---|
| 8497 | mkdir -p "$ac_dir"
|
---|
| 8498 | else
|
---|
| 8499 | as_dir="$ac_dir"
|
---|
| 8500 | as_dirs=
|
---|
| 8501 | while test ! -d "$as_dir"; do
|
---|
| 8502 | as_dirs="$as_dir $as_dirs"
|
---|
| 8503 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8504 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8505 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8506 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8507 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8508 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8509 | echo X"$as_dir" |
|
---|
| 8510 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8511 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8512 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8513 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8514 | s/.*/./; q'`
|
---|
| 8515 | done
|
---|
| 8516 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8517 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8518 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8519 | { (exit 1); exit 1; }; }; }
|
---|
| 8520 |
|
---|
| 8521 | ac_builddir=.
|
---|
| 8522 |
|
---|
| 8523 | if test "$ac_dir" != .; then
|
---|
| 8524 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8525 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8526 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8527 | else
|
---|
| 8528 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8529 | fi
|
---|
| 8530 |
|
---|
| 8531 | case $srcdir in
|
---|
| 8532 | .) # No --srcdir option. We are building in place.
|
---|
| 8533 | ac_srcdir=.
|
---|
| 8534 | if test -z "$ac_top_builddir"; then
|
---|
| 8535 | ac_top_srcdir=.
|
---|
| 8536 | else
|
---|
| 8537 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8538 | fi ;;
|
---|
| 8539 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8540 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8541 | ac_top_srcdir=$srcdir ;;
|
---|
| 8542 | *) # Relative path.
|
---|
| 8543 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8544 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8545 | esac
|
---|
| 8546 |
|
---|
| 8547 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8548 | # the directories may not exist.
|
---|
| 8549 | case `pwd` in
|
---|
| 8550 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8551 | *)
|
---|
| 8552 | case "$ac_dir" in
|
---|
| 8553 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8554 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8555 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8556 | esac;;
|
---|
| 8557 | esac
|
---|
| 8558 | case $ac_abs_builddir in
|
---|
| 8559 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8560 | *)
|
---|
| 8561 | case ${ac_top_builddir}. in
|
---|
| 8562 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8563 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8564 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8565 | esac;;
|
---|
| 8566 | esac
|
---|
| 8567 | case $ac_abs_builddir in
|
---|
| 8568 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8569 | *)
|
---|
| 8570 | case $ac_srcdir in
|
---|
| 8571 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8572 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8573 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8574 | esac;;
|
---|
| 8575 | esac
|
---|
| 8576 | case $ac_abs_builddir in
|
---|
| 8577 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8578 | *)
|
---|
| 8579 | case $ac_top_srcdir in
|
---|
| 8580 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8581 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8582 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8583 | esac;;
|
---|
| 8584 | esac
|
---|
| 8585 |
|
---|
| 8586 |
|
---|
| 8587 | cd $ac_dir
|
---|
| 8588 |
|
---|
| 8589 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
| 8590 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 8591 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
| 8592 | elif test -f $ac_srcdir/configure; then
|
---|
| 8593 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
| 8594 | elif test -f $ac_srcdir/configure.in; then
|
---|
| 8595 | ac_sub_configure=$ac_configure
|
---|
| 8596 | else
|
---|
| 8597 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
| 8598 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
| 8599 | ac_sub_configure=
|
---|
| 8600 | fi
|
---|
| 8601 |
|
---|
| 8602 | # The recursion is here.
|
---|
| 8603 | if test -n "$ac_sub_configure"; then
|
---|
| 8604 | # Make the cache file name correct relative to the subdirectory.
|
---|
| 8605 | case $cache_file in
|
---|
| 8606 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
| 8607 | *) # Relative path.
|
---|
| 8608 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
| 8609 | esac
|
---|
| 8610 |
|
---|
| 8611 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
| 8612 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
| 8613 | # The eval makes quoting arguments work.
|
---|
| 8614 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
| 8615 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
| 8616 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
| 8617 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
| 8618 | { (exit 1); exit 1; }; }
|
---|
| 8619 | fi
|
---|
| 8620 |
|
---|
| 8621 | cd $ac_popdir
|
---|
| 8622 | done
|
---|
| 8623 | fi
|
---|
| 8624 |
|
---|
| 8625 |
|
---|
| 8626 |
|
---|