[3745] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[10191] | 3 | # Generated by GNU Autoconf 2.59.
|
---|
[3745] | 4 | #
|
---|
[10191] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[3745] | 6 | # This configure script is free software; the Free Software Foundation
|
---|
| 7 | # gives unlimited permission to copy, distribute and modify it.
|
---|
[10191] | 8 | ## --------------------- ##
|
---|
| 9 | ## M4sh Initialization. ##
|
---|
| 10 | ## --------------------- ##
|
---|
[3745] | 11 |
|
---|
| 12 | # Be Bourne compatible
|
---|
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 14 | emulate sh
|
---|
| 15 | NULLCMD=:
|
---|
[10191] | 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+"$@"}'='"$@"'
|
---|
[3745] | 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 20 | set -o posix
|
---|
| 21 | fi
|
---|
[10191] | 22 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[3745] | 23 |
|
---|
[10191] | 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 |
|
---|
[3745] | 65 | # Name of the executable.
|
---|
[10191] | 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'`
|
---|
[3745] | 76 |
|
---|
[10191] | 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 |
|
---|
[3745] | 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 |
|
---|
[10191] | 218 | if mkdir -p . 2>/dev/null; then
|
---|
| 219 | as_mkdir_p=:
|
---|
[3745] | 220 | else
|
---|
[10191] | 221 | test -d ./-p && rmdir ./-p
|
---|
| 222 | as_mkdir_p=false
|
---|
[3745] | 223 | fi
|
---|
| 224 |
|
---|
[10191] | 225 | as_executable_p="test -f"
|
---|
[3745] | 226 |
|
---|
[10191] | 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 |
|
---|
[3745] | 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.
|
---|
[10191] | 241 | $as_unset CDPATH
|
---|
[3745] | 242 |
|
---|
[10191] | 243 |
|
---|
[3745] | 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
|
---|
[10191] | 255 | ac_config_libobj_dir=.
|
---|
[3745] | 256 | cross_compiling=no
|
---|
| 257 | subdirs=
|
---|
[10191] | 258 | MFLAGS=
|
---|
| 259 | MAKEFLAGS=
|
---|
[3745] | 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 |
|
---|
[10191] | 267 | # Identity of this package.
|
---|
| 268 | PACKAGE_NAME=
|
---|
| 269 | PACKAGE_TARNAME=
|
---|
| 270 | PACKAGE_VERSION=
|
---|
| 271 | PACKAGE_STRING=
|
---|
| 272 | PACKAGE_BUGREPORT=
|
---|
[3745] | 273 |
|
---|
| 274 | ac_unique_file="src/text/mgquery.c"
|
---|
| 275 | # Factoring default headers for most tests.
|
---|
| 276 | ac_includes_default="\
|
---|
| 277 | #include <stdio.h>
|
---|
[10191] | 278 | #if HAVE_SYS_TYPES_H
|
---|
| 279 | # include <sys/types.h>
|
---|
| 280 | #endif
|
---|
| 281 | #if HAVE_SYS_STAT_H
|
---|
| 282 | # include <sys/stat.h>
|
---|
| 283 | #endif
|
---|
[3745] | 284 | #if STDC_HEADERS
|
---|
| 285 | # include <stdlib.h>
|
---|
| 286 | # include <stddef.h>
|
---|
| 287 | #else
|
---|
| 288 | # if HAVE_STDLIB_H
|
---|
| 289 | # include <stdlib.h>
|
---|
| 290 | # endif
|
---|
| 291 | #endif
|
---|
| 292 | #if HAVE_STRING_H
|
---|
| 293 | # if !STDC_HEADERS && HAVE_MEMORY_H
|
---|
| 294 | # include <memory.h>
|
---|
| 295 | # endif
|
---|
| 296 | # include <string.h>
|
---|
| 297 | #endif
|
---|
[10191] | 298 | #if HAVE_STRINGS_H
|
---|
| 299 | # include <strings.h>
|
---|
| 300 | #endif
|
---|
[3745] | 301 | #if HAVE_INTTYPES_H
|
---|
| 302 | # include <inttypes.h>
|
---|
[10191] | 303 | #else
|
---|
| 304 | # if HAVE_STDINT_H
|
---|
| 305 | # include <stdint.h>
|
---|
| 306 | # endif
|
---|
[3745] | 307 | #endif
|
---|
| 308 | #if HAVE_UNISTD_H
|
---|
| 309 | # include <unistd.h>
|
---|
| 310 | #endif"
|
---|
| 311 |
|
---|
[10840] | 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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT AWK YACC CC CFLAGS ac_ct_CC INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB CPP EGREP U ANSI2KNR ALLOCA LIBOBJS JNIINC JNISUFFIX JNIFLAGS LTLIBOBJS'
|
---|
[10191] | 313 | ac_subst_files=''
|
---|
| 314 |
|
---|
[3745] | 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.
|
---|
[10191] | 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[3745] | 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.
|
---|
[10191] | 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[3745] | 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 \
|
---|
[10191] | 485 | | --no-cr | --no-c | -n)
|
---|
[3745] | 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.
|
---|
[10191] | 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[3745] | 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.
|
---|
[10191] | 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[3745] | 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.
|
---|
[10191] | 634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
[3745] | 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
|
---|
[10191] | 644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
[3745] | 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.
|
---|
[10191] | 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.
|
---|
[3745] | 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
[10191] | 671 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
[3745] | 672 | do
|
---|
| 673 | eval ac_val=$`echo $ac_var`
|
---|
| 674 | case $ac_val in
|
---|
| 675 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
[10191] | 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
[3745] | 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.
|
---|
[10191] | 683 | # FIXME: To remove some day.
|
---|
[3745] | 684 | build=$build_alias
|
---|
| 685 | host=$host_alias
|
---|
| 686 | target=$target_alias
|
---|
| 687 |
|
---|
[10191] | 688 | # FIXME: To remove some day.
|
---|
[3745] | 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 |
|
---|
[10191] | 704 |
|
---|
[3745] | 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.
|
---|
[10191] | 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'`
|
---|
[3745] | 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
|
---|
[10191] | 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
[3745] | 731 | { (exit 1); exit 1; }; }
|
---|
| 732 | else
|
---|
[10191] | 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
[3745] | 734 | { (exit 1); exit 1; }; }
|
---|
| 735 | fi
|
---|
| 736 | fi
|
---|
[10191] | 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; }; }
|
---|
[3745] | 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_CXX_set=${CXX+set}
|
---|
| 754 | ac_env_CXX_value=$CXX
|
---|
| 755 | ac_cv_env_CXX_set=${CXX+set}
|
---|
| 756 | ac_cv_env_CXX_value=$CXX
|
---|
| 757 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 758 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 759 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 760 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 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_CC_set=${CC+set}
|
---|
| 770 | ac_env_CC_value=$CC
|
---|
| 771 | ac_cv_env_CC_set=${CC+set}
|
---|
| 772 | ac_cv_env_CC_value=$CC
|
---|
| 773 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 774 | ac_env_CFLAGS_value=$CFLAGS
|
---|
| 775 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 776 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
| 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.
|
---|
[10191] | 788 | cat <<_ACEOF
|
---|
[3745] | 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 |
|
---|
[10191] | 809 | _ACEOF
|
---|
[3745] | 810 |
|
---|
[10191] | 811 | cat <<_ACEOF
|
---|
[3745] | 812 | Installation directories:
|
---|
| 813 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
[10191] | 814 | [$ac_default_prefix]
|
---|
[3745] | 815 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
[10191] | 816 | [PREFIX]
|
---|
[3745] | 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]
|
---|
[10191] | 838 | _ACEOF
|
---|
[3745] | 839 |
|
---|
[10191] | 840 | cat <<\_ACEOF
|
---|
[3745] | 841 |
|
---|
| 842 | Program names:
|
---|
| 843 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
| 844 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
| 845 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
[10191] | 846 | _ACEOF
|
---|
[3745] | 847 | fi
|
---|
| 848 |
|
---|
| 849 | if test -n "$ac_init_help"; then
|
---|
| 850 |
|
---|
[10191] | 851 | cat <<\_ACEOF
|
---|
[3745] | 852 |
|
---|
| 853 | Optional Packages:
|
---|
| 854 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 855 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 856 | --with-dmalloc use dmalloc, as in
|
---|
| 857 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 858 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 859 |
|
---|
| 860 | Some influential environment variables:
|
---|
| 861 | CXX C++ compiler command
|
---|
| 862 | CXXFLAGS C++ compiler flags
|
---|
| 863 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 864 | nonstandard directory <lib dir>
|
---|
| 865 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
| 866 | headers in a nonstandard directory <include dir>
|
---|
| 867 | CC C compiler command
|
---|
| 868 | CFLAGS C compiler flags
|
---|
| 869 | CPP C preprocessor
|
---|
| 870 |
|
---|
| 871 | Use these variables to override the choices made by `configure' or to help
|
---|
| 872 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 873 |
|
---|
[10191] | 874 | _ACEOF
|
---|
[3745] | 875 | fi
|
---|
| 876 |
|
---|
| 877 | if test "$ac_init_help" = "recursive"; then
|
---|
| 878 | # If there are subdirs, report their specific --help.
|
---|
| 879 | ac_popdir=`pwd`
|
---|
[10191] | 880 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
| 881 | test -d $ac_dir || continue
|
---|
| 882 | ac_builddir=.
|
---|
[3745] | 883 |
|
---|
[10191] | 884 | if test "$ac_dir" != .; then
|
---|
| 885 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 886 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 887 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 888 | else
|
---|
| 889 | ac_dir_suffix= ac_top_builddir=
|
---|
| 890 | fi
|
---|
[3745] | 891 |
|
---|
[10191] | 892 | case $srcdir in
|
---|
| 893 | .) # No --srcdir option. We are building in place.
|
---|
| 894 | ac_srcdir=.
|
---|
| 895 | if test -z "$ac_top_builddir"; then
|
---|
| 896 | ac_top_srcdir=.
|
---|
| 897 | else
|
---|
| 898 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 899 | fi ;;
|
---|
| 900 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 901 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 902 | ac_top_srcdir=$srcdir ;;
|
---|
| 903 | *) # Relative path.
|
---|
| 904 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 905 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 906 | esac
|
---|
| 907 |
|
---|
| 908 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 909 | # the directories may not exist.
|
---|
| 910 | case `pwd` in
|
---|
| 911 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 912 | *)
|
---|
| 913 | case "$ac_dir" in
|
---|
| 914 | .) ac_abs_builddir=`pwd`;;
|
---|
| 915 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 916 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 917 | esac;;
|
---|
| 918 | esac
|
---|
| 919 | case $ac_abs_builddir in
|
---|
| 920 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 921 | *)
|
---|
| 922 | case ${ac_top_builddir}. in
|
---|
| 923 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 924 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 925 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 926 | esac;;
|
---|
| 927 | esac
|
---|
| 928 | case $ac_abs_builddir in
|
---|
| 929 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 930 | *)
|
---|
| 931 | case $ac_srcdir in
|
---|
| 932 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 933 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 934 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 935 | esac;;
|
---|
| 936 | esac
|
---|
| 937 | case $ac_abs_builddir in
|
---|
| 938 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 939 | *)
|
---|
| 940 | case $ac_top_srcdir in
|
---|
| 941 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 942 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 943 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 944 | esac;;
|
---|
| 945 | esac
|
---|
| 946 |
|
---|
| 947 | cd $ac_dir
|
---|
[3745] | 948 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[10191] | 949 | if test -f $ac_srcdir/configure.gnu; then
|
---|
[3745] | 950 | echo
|
---|
[10191] | 951 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
| 952 | elif test -f $ac_srcdir/configure; then
|
---|
[3745] | 953 | echo
|
---|
[10191] | 954 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
| 955 | elif test -f $ac_srcdir/configure.ac ||
|
---|
| 956 | test -f $ac_srcdir/configure.in; then
|
---|
[3745] | 957 | echo
|
---|
| 958 | $ac_configure --help
|
---|
| 959 | else
|
---|
[10191] | 960 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
[3745] | 961 | fi
|
---|
| 962 | cd $ac_popdir
|
---|
| 963 | done
|
---|
| 964 | fi
|
---|
| 965 |
|
---|
| 966 | test -n "$ac_init_help" && exit 0
|
---|
| 967 | if $ac_init_version; then
|
---|
[10191] | 968 | cat <<\_ACEOF
|
---|
[3745] | 969 |
|
---|
[10191] | 970 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[3745] | 971 | This configure script is free software; the Free Software Foundation
|
---|
| 972 | gives unlimited permission to copy, distribute and modify it.
|
---|
[10191] | 973 | _ACEOF
|
---|
[3745] | 974 | exit 0
|
---|
| 975 | fi
|
---|
| 976 | exec 5>config.log
|
---|
[10191] | 977 | cat >&5 <<_ACEOF
|
---|
[3745] | 978 | This file contains any messages produced by compilers while
|
---|
| 979 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 980 |
|
---|
| 981 | It was created by $as_me, which was
|
---|
[10191] | 982 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
[3745] | 983 |
|
---|
| 984 | $ $0 $@
|
---|
| 985 |
|
---|
[10191] | 986 | _ACEOF
|
---|
[3745] | 987 | {
|
---|
| 988 | cat <<_ASUNAME
|
---|
[10191] | 989 | ## --------- ##
|
---|
| 990 | ## Platform. ##
|
---|
| 991 | ## --------- ##
|
---|
[3745] | 992 |
|
---|
| 993 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 994 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 995 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 996 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 997 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 998 |
|
---|
| 999 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1000 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1001 |
|
---|
| 1002 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1003 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1004 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
| 1005 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
| 1006 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1007 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1008 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1009 |
|
---|
[10191] | 1010 | _ASUNAME
|
---|
[3745] | 1011 |
|
---|
[10191] | 1012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1013 | for as_dir in $PATH
|
---|
| 1014 | do
|
---|
| 1015 | IFS=$as_save_IFS
|
---|
| 1016 | test -z "$as_dir" && as_dir=.
|
---|
| 1017 | echo "PATH: $as_dir"
|
---|
| 1018 | done
|
---|
| 1019 |
|
---|
[3745] | 1020 | } >&5
|
---|
| 1021 |
|
---|
[10191] | 1022 | cat >&5 <<_ACEOF
|
---|
[3745] | 1023 |
|
---|
| 1024 |
|
---|
[10191] | 1025 | ## ----------- ##
|
---|
| 1026 | ## Core tests. ##
|
---|
| 1027 | ## ----------- ##
|
---|
| 1028 |
|
---|
| 1029 | _ACEOF
|
---|
| 1030 |
|
---|
| 1031 |
|
---|
[3745] | 1032 | # Keep a trace of the command line.
|
---|
| 1033 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
[10191] | 1034 | # Strip out --silent because we don't want to record it for future runs.
|
---|
[3745] | 1035 | # Also quote any args containing shell meta-characters.
|
---|
[10191] | 1036 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
[3745] | 1037 | ac_configure_args=
|
---|
[10191] | 1038 | ac_configure_args0=
|
---|
| 1039 | ac_configure_args1=
|
---|
[3745] | 1040 | ac_sep=
|
---|
[10191] | 1041 | ac_must_keep_next=false
|
---|
| 1042 | for ac_pass in 1 2
|
---|
[3745] | 1043 | do
|
---|
[10191] | 1044 | for ac_arg
|
---|
| 1045 | do
|
---|
| 1046 | case $ac_arg in
|
---|
| 1047 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1048 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1049 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1050 | continue ;;
|
---|
| 1051 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1052 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1053 | esac
|
---|
| 1054 | case $ac_pass in
|
---|
| 1055 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
| 1056 | 2)
|
---|
| 1057 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
| 1058 | if test $ac_must_keep_next = true; then
|
---|
| 1059 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1060 | else
|
---|
| 1061 | case $ac_arg in
|
---|
| 1062 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1063 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1064 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1065 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1066 | case "$ac_configure_args0 " in
|
---|
| 1067 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1068 | esac
|
---|
| 1069 | ;;
|
---|
| 1070 | -* ) ac_must_keep_next=true ;;
|
---|
| 1071 | esac
|
---|
| 1072 | fi
|
---|
| 1073 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
| 1074 | # Get rid of the leading space.
|
---|
| 1075 | ac_sep=" "
|
---|
| 1076 | ;;
|
---|
| 1077 | esac
|
---|
| 1078 | done
|
---|
[3745] | 1079 | done
|
---|
[10191] | 1080 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1081 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
[3745] | 1082 |
|
---|
| 1083 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1084 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1085 | # would cause problems or look ugly.
|
---|
[10191] | 1086 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
| 1087 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
[3745] | 1088 | trap 'exit_status=$?
|
---|
| 1089 | # Save into config.log some information that might help in debugging.
|
---|
[10191] | 1090 | {
|
---|
| 1091 | echo
|
---|
| 1092 |
|
---|
| 1093 | cat <<\_ASBOX
|
---|
| 1094 | ## ---------------- ##
|
---|
| 1095 | ## Cache variables. ##
|
---|
| 1096 | ## ---------------- ##
|
---|
| 1097 | _ASBOX
|
---|
| 1098 | echo
|
---|
| 1099 | # The following way of writing the cache mishandles newlines in values,
|
---|
[3745] | 1100 | {
|
---|
| 1101 | (set) 2>&1 |
|
---|
| 1102 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
| 1103 | *ac_space=\ *)
|
---|
| 1104 | sed -n \
|
---|
[10191] | 1105 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
| 1106 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
[3745] | 1107 | ;;
|
---|
| 1108 | *)
|
---|
| 1109 | sed -n \
|
---|
[10191] | 1110 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[3745] | 1111 | ;;
|
---|
| 1112 | esac;
|
---|
[10191] | 1113 | }
|
---|
| 1114 | echo
|
---|
| 1115 |
|
---|
| 1116 | cat <<\_ASBOX
|
---|
| 1117 | ## ----------------- ##
|
---|
| 1118 | ## Output variables. ##
|
---|
| 1119 | ## ----------------- ##
|
---|
| 1120 | _ASBOX
|
---|
| 1121 | echo
|
---|
| 1122 | for ac_var in $ac_subst_vars
|
---|
| 1123 | do
|
---|
| 1124 | eval ac_val=$`echo $ac_var`
|
---|
| 1125 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1126 | done | sort
|
---|
| 1127 | echo
|
---|
| 1128 |
|
---|
| 1129 | if test -n "$ac_subst_files"; then
|
---|
| 1130 | cat <<\_ASBOX
|
---|
| 1131 | ## ------------- ##
|
---|
| 1132 | ## Output files. ##
|
---|
| 1133 | ## ------------- ##
|
---|
| 1134 | _ASBOX
|
---|
| 1135 | echo
|
---|
| 1136 | for ac_var in $ac_subst_files
|
---|
| 1137 | do
|
---|
| 1138 | eval ac_val=$`echo $ac_var`
|
---|
| 1139 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1140 | done | sort
|
---|
| 1141 | echo
|
---|
| 1142 | fi
|
---|
| 1143 |
|
---|
| 1144 | if test -s confdefs.h; then
|
---|
| 1145 | cat <<\_ASBOX
|
---|
| 1146 | ## ----------- ##
|
---|
| 1147 | ## confdefs.h. ##
|
---|
| 1148 | ## ----------- ##
|
---|
| 1149 | _ASBOX
|
---|
| 1150 | echo
|
---|
| 1151 | sed "/^$/d" confdefs.h | sort
|
---|
| 1152 | echo
|
---|
| 1153 | fi
|
---|
| 1154 | test "$ac_signal" != 0 &&
|
---|
| 1155 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1156 | echo "$as_me: exit $exit_status"
|
---|
| 1157 | } >&5
|
---|
| 1158 | rm -f core *.core &&
|
---|
| 1159 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[3745] | 1160 | exit $exit_status
|
---|
| 1161 | ' 0
|
---|
| 1162 | for ac_signal in 1 2 13 15; do
|
---|
[10191] | 1163 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
[3745] | 1164 | done
|
---|
| 1165 | ac_signal=0
|
---|
| 1166 |
|
---|
| 1167 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
| 1168 | rm -rf conftest* confdefs.h
|
---|
| 1169 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 1170 | echo >confdefs.h
|
---|
| 1171 |
|
---|
[10191] | 1172 | # Predefined preprocessor variables.
|
---|
| 1173 |
|
---|
| 1174 | cat >>confdefs.h <<_ACEOF
|
---|
| 1175 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1176 | _ACEOF
|
---|
| 1177 |
|
---|
| 1178 |
|
---|
| 1179 | cat >>confdefs.h <<_ACEOF
|
---|
| 1180 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1181 | _ACEOF
|
---|
| 1182 |
|
---|
| 1183 |
|
---|
| 1184 | cat >>confdefs.h <<_ACEOF
|
---|
| 1185 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1186 | _ACEOF
|
---|
| 1187 |
|
---|
| 1188 |
|
---|
| 1189 | cat >>confdefs.h <<_ACEOF
|
---|
| 1190 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1191 | _ACEOF
|
---|
| 1192 |
|
---|
| 1193 |
|
---|
| 1194 | cat >>confdefs.h <<_ACEOF
|
---|
| 1195 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1196 | _ACEOF
|
---|
| 1197 |
|
---|
| 1198 |
|
---|
[3745] | 1199 | # Let the site file select an alternate cache file if it wants to.
|
---|
| 1200 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 1201 | if test -z "$CONFIG_SITE"; then
|
---|
| 1202 | if test "x$prefix" != xNONE; then
|
---|
| 1203 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 1204 | else
|
---|
| 1205 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 1206 | fi
|
---|
| 1207 | fi
|
---|
| 1208 | for ac_site_file in $CONFIG_SITE; do
|
---|
| 1209 | if test -r "$ac_site_file"; then
|
---|
[10191] | 1210 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
[3745] | 1211 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
[10191] | 1212 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[3745] | 1213 | . "$ac_site_file"
|
---|
| 1214 | fi
|
---|
| 1215 | done
|
---|
| 1216 |
|
---|
| 1217 | if test -r "$cache_file"; then
|
---|
| 1218 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1219 | # files actually), so we avoid doing that.
|
---|
| 1220 | if test -f "$cache_file"; then
|
---|
[10191] | 1221 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
[3745] | 1222 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
| 1223 | case $cache_file in
|
---|
| 1224 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
| 1225 | *) . ./$cache_file;;
|
---|
| 1226 | esac
|
---|
| 1227 | fi
|
---|
| 1228 | else
|
---|
[10191] | 1229 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
[3745] | 1230 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
| 1231 | >$cache_file
|
---|
| 1232 | fi
|
---|
| 1233 |
|
---|
| 1234 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1235 | # value.
|
---|
[10191] | 1236 | ac_cache_corrupted=false
|
---|
[3745] | 1237 | for ac_var in `(set) 2>&1 |
|
---|
[10191] | 1238 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
[3745] | 1239 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1240 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
| 1241 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
| 1242 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
| 1243 | case $ac_old_set,$ac_new_set in
|
---|
| 1244 | set,)
|
---|
[10191] | 1245 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1246 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
| 1247 | ac_cache_corrupted=: ;;
|
---|
[3745] | 1248 | ,set)
|
---|
[10191] | 1249 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1250 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
| 1251 | ac_cache_corrupted=: ;;
|
---|
[3745] | 1252 | ,);;
|
---|
| 1253 | *)
|
---|
| 1254 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
[10191] | 1255 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1256 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1257 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1258 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1259 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1260 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1261 | ac_cache_corrupted=:
|
---|
[3745] | 1262 | fi;;
|
---|
| 1263 | esac
|
---|
[10191] | 1264 | # Pass precious variables to config.status.
|
---|
| 1265 | if test "$ac_new_set" = set; then
|
---|
| 1266 | case $ac_new_val in
|
---|
| 1267 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1268 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1269 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1270 | esac
|
---|
| 1271 | case " $ac_configure_args " in
|
---|
| 1272 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
| 1273 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 1274 | esac
|
---|
| 1275 | fi
|
---|
[3745] | 1276 | done
|
---|
[10191] | 1277 | if $ac_cache_corrupted; then
|
---|
| 1278 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1279 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1280 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1281 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1282 | { (exit 1); exit 1; }; }
|
---|
[3745] | 1283 | fi
|
---|
| 1284 |
|
---|
| 1285 | ac_ext=c
|
---|
| 1286 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1290 |
|
---|
| 1291 |
|
---|
| 1292 |
|
---|
[10191] | 1293 |
|
---|
| 1294 |
|
---|
| 1295 |
|
---|
| 1296 |
|
---|
| 1297 |
|
---|
| 1298 |
|
---|
| 1299 |
|
---|
| 1300 |
|
---|
| 1301 |
|
---|
| 1302 |
|
---|
| 1303 |
|
---|
| 1304 |
|
---|
| 1305 |
|
---|
| 1306 |
|
---|
| 1307 |
|
---|
| 1308 |
|
---|
| 1309 | ac_config_headers="$ac_config_headers config.h"
|
---|
| 1310 |
|
---|
[3745] | 1311 | test "$program_prefix" != NONE &&
|
---|
[10191] | 1312 | program_transform_name="s,^,$program_prefix,;$program_transform_name"
|
---|
[3745] | 1313 | # Use a double $ so make ignores it.
|
---|
| 1314 | test "$program_suffix" != NONE &&
|
---|
[10191] | 1315 | program_transform_name="s,\$,$program_suffix,;$program_transform_name"
|
---|
| 1316 | # Double any \ or $. echo might interpret backslashes.
|
---|
| 1317 | # By default was `s,x,x', remove it if useless.
|
---|
| 1318 | cat <<\_ACEOF >conftest.sed
|
---|
| 1319 | s/[\\$]/&&/g;s/;s,x,x,$//
|
---|
| 1320 | _ACEOF
|
---|
| 1321 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
|
---|
| 1322 | rm conftest.sed
|
---|
[3745] | 1323 |
|
---|
| 1324 |
|
---|
| 1325 | PACKAGE=mg
|
---|
| 1326 | VERSION=1.2
|
---|
| 1327 |
|
---|
[10191] | 1328 | LDFLAGS=
|
---|
| 1329 |
|
---|
| 1330 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 1331 | #define PACKAGE "$PACKAGE"
|
---|
[10191] | 1332 | _ACEOF
|
---|
[3745] | 1333 |
|
---|
[10191] | 1334 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 1335 | #define VERSION "$VERSION"
|
---|
[10191] | 1336 | _ACEOF
|
---|
[3745] | 1337 |
|
---|
[10191] | 1338 |
|
---|
| 1339 |
|
---|
| 1340 |
|
---|
[3745] | 1341 | ac_ext=cc
|
---|
| 1342 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 1343 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1344 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1345 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 1346 | if test -n "$ac_tool_prefix"; then
|
---|
[10191] | 1347 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[3745] | 1348 | do
|
---|
| 1349 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 1350 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[10191] | 1351 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[3745] | 1352 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1353 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 1354 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1355 | else
|
---|
| 1356 | if test -n "$CXX"; then
|
---|
| 1357 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 1358 | else
|
---|
[10191] | 1359 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1360 | for as_dir in $PATH
|
---|
| 1361 | do
|
---|
| 1362 | IFS=$as_save_IFS
|
---|
| 1363 | test -z "$as_dir" && as_dir=.
|
---|
| 1364 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1365 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1366 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
| 1367 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1368 | break 2
|
---|
| 1369 | fi
|
---|
[3745] | 1370 | done
|
---|
[10191] | 1371 | done
|
---|
[3745] | 1372 |
|
---|
| 1373 | fi
|
---|
| 1374 | fi
|
---|
| 1375 | CXX=$ac_cv_prog_CXX
|
---|
| 1376 | if test -n "$CXX"; then
|
---|
[10191] | 1377 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
[3745] | 1378 | echo "${ECHO_T}$CXX" >&6
|
---|
| 1379 | else
|
---|
[10191] | 1380 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 1381 | echo "${ECHO_T}no" >&6
|
---|
| 1382 | fi
|
---|
| 1383 |
|
---|
| 1384 | test -n "$CXX" && break
|
---|
| 1385 | done
|
---|
| 1386 | fi
|
---|
| 1387 | if test -z "$CXX"; then
|
---|
| 1388 | ac_ct_CXX=$CXX
|
---|
[10191] | 1389 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[3745] | 1390 | do
|
---|
| 1391 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 1392 | set dummy $ac_prog; ac_word=$2
|
---|
[10191] | 1393 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[3745] | 1394 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1395 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 1396 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1397 | else
|
---|
| 1398 | if test -n "$ac_ct_CXX"; then
|
---|
| 1399 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 1400 | else
|
---|
[10191] | 1401 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1402 | for as_dir in $PATH
|
---|
| 1403 | do
|
---|
| 1404 | IFS=$as_save_IFS
|
---|
| 1405 | test -z "$as_dir" && as_dir=.
|
---|
| 1406 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1407 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1408 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
| 1409 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1410 | break 2
|
---|
| 1411 | fi
|
---|
[3745] | 1412 | done
|
---|
[10191] | 1413 | done
|
---|
[3745] | 1414 |
|
---|
| 1415 | fi
|
---|
| 1416 | fi
|
---|
| 1417 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 1418 | if test -n "$ac_ct_CXX"; then
|
---|
[10191] | 1419 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
[3745] | 1420 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
| 1421 | else
|
---|
[10191] | 1422 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 1423 | echo "${ECHO_T}no" >&6
|
---|
| 1424 | fi
|
---|
| 1425 |
|
---|
| 1426 | test -n "$ac_ct_CXX" && break
|
---|
| 1427 | done
|
---|
| 1428 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
| 1429 |
|
---|
| 1430 | CXX=$ac_ct_CXX
|
---|
| 1431 | fi
|
---|
| 1432 |
|
---|
[10191] | 1433 |
|
---|
| 1434 | # Provide some information about the compiler.
|
---|
| 1435 | echo "$as_me:$LINENO:" \
|
---|
| 1436 | "checking for C++ compiler version" >&5
|
---|
| 1437 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 1438 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 1439 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 1440 | ac_status=$?
|
---|
| 1441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1442 | (exit $ac_status); }
|
---|
| 1443 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 1444 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 1445 | ac_status=$?
|
---|
| 1446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1447 | (exit $ac_status); }
|
---|
| 1448 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 1449 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 1450 | ac_status=$?
|
---|
| 1451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1452 | (exit $ac_status); }
|
---|
| 1453 |
|
---|
[3745] | 1454 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 1455 | /* confdefs.h. */
|
---|
| 1456 | _ACEOF
|
---|
| 1457 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1458 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1459 | /* end confdefs.h. */
|
---|
[3745] | 1460 |
|
---|
| 1461 | int
|
---|
| 1462 | main ()
|
---|
| 1463 | {
|
---|
| 1464 |
|
---|
| 1465 | ;
|
---|
| 1466 | return 0;
|
---|
| 1467 | }
|
---|
| 1468 | _ACEOF
|
---|
| 1469 | ac_clean_files_save=$ac_clean_files
|
---|
[10191] | 1470 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
[3745] | 1471 | # Try to create an executable without -o first, disregard a.out.
|
---|
[10191] | 1472 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
[3745] | 1473 | # of exeext.
|
---|
[10191] | 1474 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
|
---|
| 1475 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
|
---|
[3745] | 1476 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
[10191] | 1477 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
[3745] | 1478 | (eval $ac_link_default) 2>&5
|
---|
| 1479 | ac_status=$?
|
---|
[10191] | 1480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 1481 | (exit $ac_status); }; then
|
---|
[10191] | 1482 | # Find the output, starting from the most likely. This scheme is
|
---|
| 1483 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
| 1484 | # resort.
|
---|
| 1485 |
|
---|
| 1486 | # Be careful to initialize this variable, since it used to be cached.
|
---|
| 1487 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
| 1488 | ac_cv_exeext=
|
---|
| 1489 | # b.out is created by i960 compilers.
|
---|
| 1490 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
| 1491 | do
|
---|
| 1492 | test -f "$ac_file" || continue
|
---|
[3745] | 1493 | case $ac_file in
|
---|
[10191] | 1494 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
| 1495 | ;;
|
---|
| 1496 | conftest.$ac_ext )
|
---|
| 1497 | # This is the source file.
|
---|
| 1498 | ;;
|
---|
| 1499 | [ab].out )
|
---|
| 1500 | # We found the default executable, but exeext='' is most
|
---|
| 1501 | # certainly right.
|
---|
| 1502 | break;;
|
---|
| 1503 | *.* )
|
---|
| 1504 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1505 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
| 1506 | # but it would be cool to find out if it's true. Does anybody
|
---|
| 1507 | # maintain Libtool? --akim.
|
---|
| 1508 | export ac_cv_exeext
|
---|
| 1509 | break;;
|
---|
| 1510 | * )
|
---|
| 1511 | break;;
|
---|
[3745] | 1512 | esac
|
---|
| 1513 | done
|
---|
| 1514 | else
|
---|
| 1515 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 1516 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1517 |
|
---|
| 1518 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
|
---|
| 1519 | See \`config.log' for more details." >&5
|
---|
| 1520 | echo "$as_me: error: C++ compiler cannot create executables
|
---|
| 1521 | See \`config.log' for more details." >&2;}
|
---|
[3745] | 1522 | { (exit 77); exit 77; }; }
|
---|
| 1523 | fi
|
---|
| 1524 |
|
---|
| 1525 | ac_exeext=$ac_cv_exeext
|
---|
[10191] | 1526 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
[3745] | 1527 | echo "${ECHO_T}$ac_file" >&6
|
---|
| 1528 |
|
---|
| 1529 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1530 | # the compiler is broken, or we cross compile.
|
---|
[10191] | 1531 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
|
---|
[3745] | 1532 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
|
---|
| 1533 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 1534 | # If not cross compiling, check that we can run a simple program.
|
---|
| 1535 | if test "$cross_compiling" != yes; then
|
---|
| 1536 | if { ac_try='./$ac_file'
|
---|
[10191] | 1537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 1538 | (eval $ac_try) 2>&5
|
---|
| 1539 | ac_status=$?
|
---|
[10191] | 1540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 1541 | (exit $ac_status); }; }; then
|
---|
| 1542 | cross_compiling=no
|
---|
| 1543 | else
|
---|
| 1544 | if test "$cross_compiling" = maybe; then
|
---|
| 1545 | cross_compiling=yes
|
---|
| 1546 | else
|
---|
[10191] | 1547 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
|
---|
| 1548 | If you meant to cross compile, use \`--host'.
|
---|
| 1549 | See \`config.log' for more details." >&5
|
---|
[3745] | 1550 | echo "$as_me: error: cannot run C++ compiled programs.
|
---|
[10191] | 1551 | If you meant to cross compile, use \`--host'.
|
---|
| 1552 | See \`config.log' for more details." >&2;}
|
---|
[3745] | 1553 | { (exit 1); exit 1; }; }
|
---|
| 1554 | fi
|
---|
| 1555 | fi
|
---|
| 1556 | fi
|
---|
[10191] | 1557 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[3745] | 1558 | echo "${ECHO_T}yes" >&6
|
---|
| 1559 |
|
---|
[10191] | 1560 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
[3745] | 1561 | ac_clean_files=$ac_clean_files_save
|
---|
| 1562 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1563 | # the compiler is broken, or we cross compile.
|
---|
[10191] | 1564 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
[3745] | 1565 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
[10191] | 1566 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
[3745] | 1567 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
| 1568 |
|
---|
[10191] | 1569 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 1570 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
| 1571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[3745] | 1572 | (eval $ac_link) 2>&5
|
---|
| 1573 | ac_status=$?
|
---|
[10191] | 1574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 1575 | (exit $ac_status); }; then
|
---|
| 1576 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 1577 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 1578 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 1579 | # `rm'.
|
---|
[10191] | 1580 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 1581 | test -f "$ac_file" || continue
|
---|
[3745] | 1582 | case $ac_file in
|
---|
[10191] | 1583 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
[3745] | 1584 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
[10191] | 1585 | export ac_cv_exeext
|
---|
| 1586 | break;;
|
---|
[3745] | 1587 | * ) break;;
|
---|
| 1588 | esac
|
---|
| 1589 | done
|
---|
| 1590 | else
|
---|
[10191] | 1591 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1592 | See \`config.log' for more details." >&5
|
---|
| 1593 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1594 | See \`config.log' for more details." >&2;}
|
---|
[3745] | 1595 | { (exit 1); exit 1; }; }
|
---|
| 1596 | fi
|
---|
| 1597 |
|
---|
| 1598 | rm -f conftest$ac_cv_exeext
|
---|
[10191] | 1599 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
[3745] | 1600 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
| 1601 |
|
---|
| 1602 | rm -f conftest.$ac_ext
|
---|
| 1603 | EXEEXT=$ac_cv_exeext
|
---|
| 1604 | ac_exeext=$EXEEXT
|
---|
[10191] | 1605 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 1606 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
[3745] | 1607 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 1608 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1609 | else
|
---|
| 1610 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 1611 | /* confdefs.h. */
|
---|
| 1612 | _ACEOF
|
---|
| 1613 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1614 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1615 | /* end confdefs.h. */
|
---|
[3745] | 1616 |
|
---|
| 1617 | int
|
---|
| 1618 | main ()
|
---|
| 1619 | {
|
---|
| 1620 |
|
---|
| 1621 | ;
|
---|
| 1622 | return 0;
|
---|
| 1623 | }
|
---|
| 1624 | _ACEOF
|
---|
| 1625 | rm -f conftest.o conftest.obj
|
---|
[10191] | 1626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
[3745] | 1627 | (eval $ac_compile) 2>&5
|
---|
| 1628 | ac_status=$?
|
---|
[10191] | 1629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 1630 | (exit $ac_status); }; then
|
---|
| 1631 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
| 1632 | case $ac_file in
|
---|
[10191] | 1633 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
[3745] | 1634 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 1635 | break;;
|
---|
| 1636 | esac
|
---|
| 1637 | done
|
---|
| 1638 | else
|
---|
| 1639 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 1640 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1641 |
|
---|
| 1642 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 1643 | See \`config.log' for more details." >&5
|
---|
| 1644 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 1645 | See \`config.log' for more details." >&2;}
|
---|
[3745] | 1646 | { (exit 1); exit 1; }; }
|
---|
| 1647 | fi
|
---|
| 1648 |
|
---|
| 1649 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
| 1650 | fi
|
---|
[10191] | 1651 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
[3745] | 1652 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
| 1653 | OBJEXT=$ac_cv_objext
|
---|
| 1654 | ac_objext=$OBJEXT
|
---|
[10191] | 1655 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
[3745] | 1656 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
| 1657 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 1658 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1659 | else
|
---|
| 1660 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 1661 | /* confdefs.h. */
|
---|
| 1662 | _ACEOF
|
---|
| 1663 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1664 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1665 | /* end confdefs.h. */
|
---|
[3745] | 1666 |
|
---|
| 1667 | int
|
---|
| 1668 | main ()
|
---|
| 1669 | {
|
---|
| 1670 | #ifndef __GNUC__
|
---|
| 1671 | choke me
|
---|
| 1672 | #endif
|
---|
| 1673 |
|
---|
| 1674 | ;
|
---|
| 1675 | return 0;
|
---|
| 1676 | }
|
---|
| 1677 | _ACEOF
|
---|
| 1678 | rm -f conftest.$ac_objext
|
---|
[10191] | 1679 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1680 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 1681 | ac_status=$?
|
---|
[10191] | 1682 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1683 | rm -f conftest.er1
|
---|
| 1684 | cat conftest.err >&5
|
---|
| 1685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 1686 | (exit $ac_status); } &&
|
---|
[10191] | 1687 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1688 | || test ! -s conftest.err'
|
---|
| 1689 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 1690 | (eval $ac_try) 2>&5
|
---|
| 1691 | ac_status=$?
|
---|
[10191] | 1692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1693 | (exit $ac_status); }; } &&
|
---|
| 1694 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1696 | (eval $ac_try) 2>&5
|
---|
| 1697 | ac_status=$?
|
---|
| 1698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 1699 | (exit $ac_status); }; }; then
|
---|
| 1700 | ac_compiler_gnu=yes
|
---|
| 1701 | else
|
---|
| 1702 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 1703 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1704 |
|
---|
[3745] | 1705 | ac_compiler_gnu=no
|
---|
| 1706 | fi
|
---|
[10191] | 1707 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 1708 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 1709 |
|
---|
| 1710 | fi
|
---|
[10191] | 1711 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
[3745] | 1712 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
| 1713 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 1714 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 1715 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
| 1716 | CXXFLAGS="-g"
|
---|
[10191] | 1717 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
[3745] | 1718 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
| 1719 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 1720 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1721 | else
|
---|
| 1722 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 1723 | /* confdefs.h. */
|
---|
| 1724 | _ACEOF
|
---|
| 1725 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1726 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1727 | /* end confdefs.h. */
|
---|
[3745] | 1728 |
|
---|
| 1729 | int
|
---|
| 1730 | main ()
|
---|
| 1731 | {
|
---|
| 1732 |
|
---|
| 1733 | ;
|
---|
| 1734 | return 0;
|
---|
| 1735 | }
|
---|
| 1736 | _ACEOF
|
---|
| 1737 | rm -f conftest.$ac_objext
|
---|
[10191] | 1738 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1739 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 1740 | ac_status=$?
|
---|
[10191] | 1741 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1742 | rm -f conftest.er1
|
---|
| 1743 | cat conftest.err >&5
|
---|
| 1744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 1745 | (exit $ac_status); } &&
|
---|
[10191] | 1746 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1747 | || test ! -s conftest.err'
|
---|
| 1748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 1749 | (eval $ac_try) 2>&5
|
---|
| 1750 | ac_status=$?
|
---|
[10191] | 1751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1752 | (exit $ac_status); }; } &&
|
---|
| 1753 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1755 | (eval $ac_try) 2>&5
|
---|
| 1756 | ac_status=$?
|
---|
| 1757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 1758 | (exit $ac_status); }; }; then
|
---|
| 1759 | ac_cv_prog_cxx_g=yes
|
---|
| 1760 | else
|
---|
| 1761 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 1762 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1763 |
|
---|
[3745] | 1764 | ac_cv_prog_cxx_g=no
|
---|
| 1765 | fi
|
---|
[10191] | 1766 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 1767 | fi
|
---|
[10191] | 1768 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
[3745] | 1769 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
| 1770 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 1771 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 1772 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 1773 | if test "$GXX" = yes; then
|
---|
| 1774 | CXXFLAGS="-g -O2"
|
---|
| 1775 | else
|
---|
| 1776 | CXXFLAGS="-g"
|
---|
| 1777 | fi
|
---|
| 1778 | else
|
---|
| 1779 | if test "$GXX" = yes; then
|
---|
| 1780 | CXXFLAGS="-O2"
|
---|
| 1781 | else
|
---|
| 1782 | CXXFLAGS=
|
---|
| 1783 | fi
|
---|
| 1784 | fi
|
---|
| 1785 | for ac_declaration in \
|
---|
[10191] | 1786 | '' \
|
---|
[3745] | 1787 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 1788 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 1789 | 'extern "C" void exit (int) throw ();' \
|
---|
| 1790 | 'extern "C" void exit (int);' \
|
---|
| 1791 | 'void exit (int);'
|
---|
| 1792 | do
|
---|
| 1793 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 1794 | /* confdefs.h. */
|
---|
| 1795 | _ACEOF
|
---|
| 1796 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1797 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1798 | /* end confdefs.h. */
|
---|
| 1799 | $ac_declaration
|
---|
[3745] | 1800 | #include <stdlib.h>
|
---|
| 1801 | int
|
---|
| 1802 | main ()
|
---|
| 1803 | {
|
---|
| 1804 | exit (42);
|
---|
| 1805 | ;
|
---|
| 1806 | return 0;
|
---|
| 1807 | }
|
---|
| 1808 | _ACEOF
|
---|
| 1809 | rm -f conftest.$ac_objext
|
---|
[10191] | 1810 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1811 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 1812 | ac_status=$?
|
---|
[10191] | 1813 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1814 | rm -f conftest.er1
|
---|
| 1815 | cat conftest.err >&5
|
---|
| 1816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 1817 | (exit $ac_status); } &&
|
---|
[10191] | 1818 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1819 | || test ! -s conftest.err'
|
---|
| 1820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 1821 | (eval $ac_try) 2>&5
|
---|
| 1822 | ac_status=$?
|
---|
[10191] | 1823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1824 | (exit $ac_status); }; } &&
|
---|
| 1825 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1827 | (eval $ac_try) 2>&5
|
---|
| 1828 | ac_status=$?
|
---|
| 1829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 1830 | (exit $ac_status); }; }; then
|
---|
| 1831 | :
|
---|
| 1832 | else
|
---|
| 1833 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 1834 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1835 |
|
---|
[3745] | 1836 | continue
|
---|
| 1837 | fi
|
---|
[10191] | 1838 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 1839 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 1840 | /* confdefs.h. */
|
---|
| 1841 | _ACEOF
|
---|
| 1842 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1843 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1844 | /* end confdefs.h. */
|
---|
[3745] | 1845 | $ac_declaration
|
---|
| 1846 | int
|
---|
| 1847 | main ()
|
---|
| 1848 | {
|
---|
| 1849 | exit (42);
|
---|
| 1850 | ;
|
---|
| 1851 | return 0;
|
---|
| 1852 | }
|
---|
| 1853 | _ACEOF
|
---|
| 1854 | rm -f conftest.$ac_objext
|
---|
[10191] | 1855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1856 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 1857 | ac_status=$?
|
---|
[10191] | 1858 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1859 | rm -f conftest.er1
|
---|
| 1860 | cat conftest.err >&5
|
---|
| 1861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 1862 | (exit $ac_status); } &&
|
---|
[10191] | 1863 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1864 | || test ! -s conftest.err'
|
---|
| 1865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 1866 | (eval $ac_try) 2>&5
|
---|
| 1867 | ac_status=$?
|
---|
[10191] | 1868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1869 | (exit $ac_status); }; } &&
|
---|
| 1870 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1872 | (eval $ac_try) 2>&5
|
---|
| 1873 | ac_status=$?
|
---|
| 1874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 1875 | (exit $ac_status); }; }; then
|
---|
| 1876 | break
|
---|
| 1877 | else
|
---|
| 1878 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 1879 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1880 |
|
---|
[3745] | 1881 | fi
|
---|
[10191] | 1882 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 1883 | done
|
---|
[10191] | 1884 | rm -f conftest*
|
---|
| 1885 | if test -n "$ac_declaration"; then
|
---|
| 1886 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 1887 | echo $ac_declaration >>confdefs.h
|
---|
| 1888 | echo '#endif' >>confdefs.h
|
---|
| 1889 | fi
|
---|
[3745] | 1890 |
|
---|
| 1891 | ac_ext=c
|
---|
| 1892 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1893 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1894 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1895 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1896 |
|
---|
[10191] | 1897 | for ac_prog in gawk mawk nawk awk
|
---|
[3745] | 1898 | do
|
---|
| 1899 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 1900 | set dummy $ac_prog; ac_word=$2
|
---|
[10191] | 1901 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[3745] | 1902 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1903 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 1904 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1905 | else
|
---|
| 1906 | if test -n "$AWK"; then
|
---|
| 1907 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 1908 | else
|
---|
[10191] | 1909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1910 | for as_dir in $PATH
|
---|
| 1911 | do
|
---|
| 1912 | IFS=$as_save_IFS
|
---|
| 1913 | test -z "$as_dir" && as_dir=.
|
---|
| 1914 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1915 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1916 | ac_cv_prog_AWK="$ac_prog"
|
---|
| 1917 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1918 | break 2
|
---|
| 1919 | fi
|
---|
[3745] | 1920 | done
|
---|
[10191] | 1921 | done
|
---|
[3745] | 1922 |
|
---|
| 1923 | fi
|
---|
| 1924 | fi
|
---|
| 1925 | AWK=$ac_cv_prog_AWK
|
---|
| 1926 | if test -n "$AWK"; then
|
---|
[10191] | 1927 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
[3745] | 1928 | echo "${ECHO_T}$AWK" >&6
|
---|
| 1929 | else
|
---|
[10191] | 1930 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 1931 | echo "${ECHO_T}no" >&6
|
---|
| 1932 | fi
|
---|
| 1933 |
|
---|
| 1934 | test -n "$AWK" && break
|
---|
| 1935 | done
|
---|
| 1936 |
|
---|
| 1937 | for ac_prog in 'bison -y' byacc
|
---|
| 1938 | do
|
---|
| 1939 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 1940 | set dummy $ac_prog; ac_word=$2
|
---|
[10191] | 1941 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[3745] | 1942 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1943 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 1944 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1945 | else
|
---|
| 1946 | if test -n "$YACC"; then
|
---|
| 1947 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 1948 | else
|
---|
[10191] | 1949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1950 | for as_dir in $PATH
|
---|
| 1951 | do
|
---|
| 1952 | IFS=$as_save_IFS
|
---|
| 1953 | test -z "$as_dir" && as_dir=.
|
---|
| 1954 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1955 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1956 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 1957 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1958 | break 2
|
---|
| 1959 | fi
|
---|
[3745] | 1960 | done
|
---|
[10191] | 1961 | done
|
---|
[3745] | 1962 |
|
---|
| 1963 | fi
|
---|
| 1964 | fi
|
---|
| 1965 | YACC=$ac_cv_prog_YACC
|
---|
| 1966 | if test -n "$YACC"; then
|
---|
[10191] | 1967 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
[3745] | 1968 | echo "${ECHO_T}$YACC" >&6
|
---|
| 1969 | else
|
---|
[10191] | 1970 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 1971 | echo "${ECHO_T}no" >&6
|
---|
| 1972 | fi
|
---|
| 1973 |
|
---|
| 1974 | test -n "$YACC" && break
|
---|
| 1975 | done
|
---|
| 1976 | test -n "$YACC" || YACC="yacc"
|
---|
| 1977 |
|
---|
| 1978 | ac_ext=c
|
---|
| 1979 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1980 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1981 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1982 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1983 | if test -n "$ac_tool_prefix"; then
|
---|
| 1984 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 1985 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[10191] | 1986 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[3745] | 1987 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1988 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1989 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1990 | else
|
---|
| 1991 | if test -n "$CC"; then
|
---|
| 1992 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1993 | else
|
---|
[10191] | 1994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1995 | for as_dir in $PATH
|
---|
| 1996 | do
|
---|
| 1997 | IFS=$as_save_IFS
|
---|
| 1998 | test -z "$as_dir" && as_dir=.
|
---|
| 1999 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2000 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2001 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
| 2002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2003 | break 2
|
---|
| 2004 | fi
|
---|
[3745] | 2005 | done
|
---|
[10191] | 2006 | done
|
---|
[3745] | 2007 |
|
---|
| 2008 | fi
|
---|
| 2009 | fi
|
---|
| 2010 | CC=$ac_cv_prog_CC
|
---|
| 2011 | if test -n "$CC"; then
|
---|
[10191] | 2012 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[3745] | 2013 | echo "${ECHO_T}$CC" >&6
|
---|
| 2014 | else
|
---|
[10191] | 2015 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 2016 | echo "${ECHO_T}no" >&6
|
---|
| 2017 | fi
|
---|
| 2018 |
|
---|
| 2019 | fi
|
---|
| 2020 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 2021 | ac_ct_CC=$CC
|
---|
| 2022 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
| 2023 | set dummy gcc; ac_word=$2
|
---|
[10191] | 2024 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[3745] | 2025 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2026 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2027 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2028 | else
|
---|
| 2029 | if test -n "$ac_ct_CC"; then
|
---|
| 2030 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2031 | else
|
---|
[10191] | 2032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2033 | for as_dir in $PATH
|
---|
| 2034 | do
|
---|
| 2035 | IFS=$as_save_IFS
|
---|
| 2036 | test -z "$as_dir" && as_dir=.
|
---|
| 2037 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2038 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2039 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
| 2040 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2041 | break 2
|
---|
| 2042 | fi
|
---|
[3745] | 2043 | done
|
---|
[10191] | 2044 | done
|
---|
[3745] | 2045 |
|
---|
| 2046 | fi
|
---|
| 2047 | fi
|
---|
| 2048 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2049 | if test -n "$ac_ct_CC"; then
|
---|
[10191] | 2050 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
[3745] | 2051 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 2052 | else
|
---|
[10191] | 2053 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 2054 | echo "${ECHO_T}no" >&6
|
---|
| 2055 | fi
|
---|
| 2056 |
|
---|
| 2057 | CC=$ac_ct_CC
|
---|
| 2058 | else
|
---|
| 2059 | CC="$ac_cv_prog_CC"
|
---|
| 2060 | fi
|
---|
| 2061 |
|
---|
| 2062 | if test -z "$CC"; then
|
---|
| 2063 | if test -n "$ac_tool_prefix"; then
|
---|
| 2064 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
| 2065 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[10191] | 2066 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[3745] | 2067 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2068 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2069 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2070 | else
|
---|
| 2071 | if test -n "$CC"; then
|
---|
| 2072 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2073 | else
|
---|
[10191] | 2074 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2075 | for as_dir in $PATH
|
---|
| 2076 | do
|
---|
| 2077 | IFS=$as_save_IFS
|
---|
| 2078 | test -z "$as_dir" && as_dir=.
|
---|
| 2079 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2080 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2081 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
| 2082 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2083 | break 2
|
---|
| 2084 | fi
|
---|
[3745] | 2085 | done
|
---|
[10191] | 2086 | done
|
---|
[3745] | 2087 |
|
---|
| 2088 | fi
|
---|
| 2089 | fi
|
---|
| 2090 | CC=$ac_cv_prog_CC
|
---|
| 2091 | if test -n "$CC"; then
|
---|
[10191] | 2092 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[3745] | 2093 | echo "${ECHO_T}$CC" >&6
|
---|
| 2094 | else
|
---|
[10191] | 2095 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 2096 | echo "${ECHO_T}no" >&6
|
---|
| 2097 | fi
|
---|
| 2098 |
|
---|
| 2099 | fi
|
---|
| 2100 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 2101 | ac_ct_CC=$CC
|
---|
| 2102 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 2103 | set dummy cc; ac_word=$2
|
---|
[10191] | 2104 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[3745] | 2105 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2106 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2107 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2108 | else
|
---|
| 2109 | if test -n "$ac_ct_CC"; then
|
---|
| 2110 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2111 | else
|
---|
[10191] | 2112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2113 | for as_dir in $PATH
|
---|
| 2114 | do
|
---|
| 2115 | IFS=$as_save_IFS
|
---|
| 2116 | test -z "$as_dir" && as_dir=.
|
---|
| 2117 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2118 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2119 | ac_cv_prog_ac_ct_CC="cc"
|
---|
| 2120 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2121 | break 2
|
---|
| 2122 | fi
|
---|
[3745] | 2123 | done
|
---|
[10191] | 2124 | done
|
---|
[3745] | 2125 |
|
---|
| 2126 | fi
|
---|
| 2127 | fi
|
---|
| 2128 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2129 | if test -n "$ac_ct_CC"; then
|
---|
[10191] | 2130 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
[3745] | 2131 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 2132 | else
|
---|
[10191] | 2133 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 2134 | echo "${ECHO_T}no" >&6
|
---|
| 2135 | fi
|
---|
| 2136 |
|
---|
| 2137 | CC=$ac_ct_CC
|
---|
| 2138 | else
|
---|
| 2139 | CC="$ac_cv_prog_CC"
|
---|
| 2140 | fi
|
---|
| 2141 |
|
---|
| 2142 | fi
|
---|
| 2143 | if test -z "$CC"; then
|
---|
| 2144 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 2145 | set dummy cc; ac_word=$2
|
---|
[10191] | 2146 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[3745] | 2147 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2148 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2149 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2150 | else
|
---|
| 2151 | if test -n "$CC"; then
|
---|
| 2152 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2153 | else
|
---|
| 2154 | ac_prog_rejected=no
|
---|
[10191] | 2155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2156 | for as_dir in $PATH
|
---|
| 2157 | do
|
---|
| 2158 | IFS=$as_save_IFS
|
---|
| 2159 | test -z "$as_dir" && as_dir=.
|
---|
| 2160 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2162 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 2163 | ac_prog_rejected=yes
|
---|
| 2164 | continue
|
---|
| 2165 | fi
|
---|
| 2166 | ac_cv_prog_CC="cc"
|
---|
| 2167 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2168 | break 2
|
---|
| 2169 | fi
|
---|
[3745] | 2170 | done
|
---|
[10191] | 2171 | done
|
---|
[3745] | 2172 |
|
---|
| 2173 | if test $ac_prog_rejected = yes; then
|
---|
| 2174 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 2175 | set dummy $ac_cv_prog_CC
|
---|
| 2176 | shift
|
---|
| 2177 | if test $# != 0; then
|
---|
| 2178 | # We chose a different compiler from the bogus one.
|
---|
| 2179 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 2180 | # first if we set CC to just the basename; use the full file name.
|
---|
| 2181 | shift
|
---|
[10191] | 2182 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[3745] | 2183 | fi
|
---|
| 2184 | fi
|
---|
| 2185 | fi
|
---|
| 2186 | fi
|
---|
| 2187 | CC=$ac_cv_prog_CC
|
---|
| 2188 | if test -n "$CC"; then
|
---|
[10191] | 2189 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[3745] | 2190 | echo "${ECHO_T}$CC" >&6
|
---|
| 2191 | else
|
---|
[10191] | 2192 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 2193 | echo "${ECHO_T}no" >&6
|
---|
| 2194 | fi
|
---|
| 2195 |
|
---|
| 2196 | fi
|
---|
| 2197 | if test -z "$CC"; then
|
---|
| 2198 | if test -n "$ac_tool_prefix"; then
|
---|
| 2199 | for ac_prog in cl
|
---|
| 2200 | do
|
---|
| 2201 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2202 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[10191] | 2203 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[3745] | 2204 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2205 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2206 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2207 | else
|
---|
| 2208 | if test -n "$CC"; then
|
---|
| 2209 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2210 | else
|
---|
[10191] | 2211 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2212 | for as_dir in $PATH
|
---|
| 2213 | do
|
---|
| 2214 | IFS=$as_save_IFS
|
---|
| 2215 | test -z "$as_dir" && as_dir=.
|
---|
| 2216 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2217 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2218 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
| 2219 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2220 | break 2
|
---|
| 2221 | fi
|
---|
[3745] | 2222 | done
|
---|
[10191] | 2223 | done
|
---|
[3745] | 2224 |
|
---|
| 2225 | fi
|
---|
| 2226 | fi
|
---|
| 2227 | CC=$ac_cv_prog_CC
|
---|
| 2228 | if test -n "$CC"; then
|
---|
[10191] | 2229 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[3745] | 2230 | echo "${ECHO_T}$CC" >&6
|
---|
| 2231 | else
|
---|
[10191] | 2232 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 2233 | echo "${ECHO_T}no" >&6
|
---|
| 2234 | fi
|
---|
| 2235 |
|
---|
| 2236 | test -n "$CC" && break
|
---|
| 2237 | done
|
---|
| 2238 | fi
|
---|
| 2239 | if test -z "$CC"; then
|
---|
| 2240 | ac_ct_CC=$CC
|
---|
| 2241 | for ac_prog in cl
|
---|
| 2242 | do
|
---|
| 2243 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2244 | set dummy $ac_prog; ac_word=$2
|
---|
[10191] | 2245 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[3745] | 2246 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2247 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2248 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2249 | else
|
---|
| 2250 | if test -n "$ac_ct_CC"; then
|
---|
| 2251 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2252 | else
|
---|
[10191] | 2253 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2254 | for as_dir in $PATH
|
---|
| 2255 | do
|
---|
| 2256 | IFS=$as_save_IFS
|
---|
| 2257 | test -z "$as_dir" && as_dir=.
|
---|
| 2258 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2259 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2260 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
| 2261 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2262 | break 2
|
---|
| 2263 | fi
|
---|
[3745] | 2264 | done
|
---|
[10191] | 2265 | done
|
---|
[3745] | 2266 |
|
---|
| 2267 | fi
|
---|
| 2268 | fi
|
---|
| 2269 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2270 | if test -n "$ac_ct_CC"; then
|
---|
[10191] | 2271 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
[3745] | 2272 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 2273 | else
|
---|
[10191] | 2274 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 2275 | echo "${ECHO_T}no" >&6
|
---|
| 2276 | fi
|
---|
| 2277 |
|
---|
| 2278 | test -n "$ac_ct_CC" && break
|
---|
| 2279 | done
|
---|
| 2280 |
|
---|
| 2281 | CC=$ac_ct_CC
|
---|
| 2282 | fi
|
---|
| 2283 |
|
---|
| 2284 | fi
|
---|
| 2285 |
|
---|
[10191] | 2286 |
|
---|
| 2287 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 2288 | See \`config.log' for more details." >&5
|
---|
| 2289 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 2290 | See \`config.log' for more details." >&2;}
|
---|
[3745] | 2291 | { (exit 1); exit 1; }; }
|
---|
| 2292 |
|
---|
[10191] | 2293 | # Provide some information about the compiler.
|
---|
| 2294 | echo "$as_me:$LINENO:" \
|
---|
| 2295 | "checking for C compiler version" >&5
|
---|
| 2296 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 2297 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 2298 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 2299 | ac_status=$?
|
---|
| 2300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2301 | (exit $ac_status); }
|
---|
| 2302 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 2303 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 2304 | ac_status=$?
|
---|
| 2305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2306 | (exit $ac_status); }
|
---|
| 2307 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 2308 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 2309 | ac_status=$?
|
---|
| 2310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2311 | (exit $ac_status); }
|
---|
| 2312 |
|
---|
| 2313 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
[3745] | 2314 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
| 2315 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 2316 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2317 | else
|
---|
| 2318 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 2319 | /* confdefs.h. */
|
---|
| 2320 | _ACEOF
|
---|
| 2321 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2322 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2323 | /* end confdefs.h. */
|
---|
[3745] | 2324 |
|
---|
| 2325 | int
|
---|
| 2326 | main ()
|
---|
| 2327 | {
|
---|
| 2328 | #ifndef __GNUC__
|
---|
| 2329 | choke me
|
---|
| 2330 | #endif
|
---|
| 2331 |
|
---|
| 2332 | ;
|
---|
| 2333 | return 0;
|
---|
| 2334 | }
|
---|
| 2335 | _ACEOF
|
---|
| 2336 | rm -f conftest.$ac_objext
|
---|
[10191] | 2337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2338 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 2339 | ac_status=$?
|
---|
[10191] | 2340 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2341 | rm -f conftest.er1
|
---|
| 2342 | cat conftest.err >&5
|
---|
| 2343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 2344 | (exit $ac_status); } &&
|
---|
[10191] | 2345 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2346 | || test ! -s conftest.err'
|
---|
| 2347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 2348 | (eval $ac_try) 2>&5
|
---|
| 2349 | ac_status=$?
|
---|
[10191] | 2350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2351 | (exit $ac_status); }; } &&
|
---|
| 2352 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2354 | (eval $ac_try) 2>&5
|
---|
| 2355 | ac_status=$?
|
---|
| 2356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 2357 | (exit $ac_status); }; }; then
|
---|
| 2358 | ac_compiler_gnu=yes
|
---|
| 2359 | else
|
---|
| 2360 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 2361 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2362 |
|
---|
[3745] | 2363 | ac_compiler_gnu=no
|
---|
| 2364 | fi
|
---|
[10191] | 2365 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 2366 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
| 2367 |
|
---|
| 2368 | fi
|
---|
[10191] | 2369 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
[3745] | 2370 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
| 2371 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2372 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2373 | ac_save_CFLAGS=$CFLAGS
|
---|
| 2374 | CFLAGS="-g"
|
---|
[10191] | 2375 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
[3745] | 2376 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
| 2377 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2378 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2379 | else
|
---|
| 2380 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 2381 | /* confdefs.h. */
|
---|
| 2382 | _ACEOF
|
---|
| 2383 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2384 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2385 | /* end confdefs.h. */
|
---|
[3745] | 2386 |
|
---|
| 2387 | int
|
---|
| 2388 | main ()
|
---|
| 2389 | {
|
---|
| 2390 |
|
---|
| 2391 | ;
|
---|
| 2392 | return 0;
|
---|
| 2393 | }
|
---|
| 2394 | _ACEOF
|
---|
| 2395 | rm -f conftest.$ac_objext
|
---|
[10191] | 2396 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2397 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 2398 | ac_status=$?
|
---|
[10191] | 2399 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2400 | rm -f conftest.er1
|
---|
| 2401 | cat conftest.err >&5
|
---|
| 2402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 2403 | (exit $ac_status); } &&
|
---|
[10191] | 2404 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2405 | || test ! -s conftest.err'
|
---|
| 2406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 2407 | (eval $ac_try) 2>&5
|
---|
| 2408 | ac_status=$?
|
---|
[10191] | 2409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2410 | (exit $ac_status); }; } &&
|
---|
| 2411 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2413 | (eval $ac_try) 2>&5
|
---|
| 2414 | ac_status=$?
|
---|
| 2415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 2416 | (exit $ac_status); }; }; then
|
---|
| 2417 | ac_cv_prog_cc_g=yes
|
---|
| 2418 | else
|
---|
| 2419 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 2420 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2421 |
|
---|
[3745] | 2422 | ac_cv_prog_cc_g=no
|
---|
| 2423 | fi
|
---|
[10191] | 2424 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 2425 | fi
|
---|
[10191] | 2426 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
[3745] | 2427 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
| 2428 | if test "$ac_test_CFLAGS" = set; then
|
---|
| 2429 | CFLAGS=$ac_save_CFLAGS
|
---|
| 2430 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2431 | if test "$GCC" = yes; then
|
---|
| 2432 | CFLAGS="-g -O2"
|
---|
| 2433 | else
|
---|
| 2434 | CFLAGS="-g"
|
---|
| 2435 | fi
|
---|
| 2436 | else
|
---|
| 2437 | if test "$GCC" = yes; then
|
---|
| 2438 | CFLAGS="-O2"
|
---|
| 2439 | else
|
---|
| 2440 | CFLAGS=
|
---|
| 2441 | fi
|
---|
| 2442 | fi
|
---|
[10191] | 2443 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
| 2444 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
| 2445 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 2446 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2447 | else
|
---|
| 2448 | ac_cv_prog_cc_stdc=no
|
---|
| 2449 | ac_save_CC=$CC
|
---|
| 2450 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2451 | /* confdefs.h. */
|
---|
| 2452 | _ACEOF
|
---|
| 2453 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2454 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2455 | /* end confdefs.h. */
|
---|
| 2456 | #include <stdarg.h>
|
---|
| 2457 | #include <stdio.h>
|
---|
| 2458 | #include <sys/types.h>
|
---|
| 2459 | #include <sys/stat.h>
|
---|
| 2460 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2461 | struct buf { int x; };
|
---|
| 2462 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2463 | static char *e (p, i)
|
---|
| 2464 | char **p;
|
---|
| 2465 | int i;
|
---|
| 2466 | {
|
---|
| 2467 | return p[i];
|
---|
| 2468 | }
|
---|
| 2469 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2470 | {
|
---|
| 2471 | char *s;
|
---|
| 2472 | va_list v;
|
---|
| 2473 | va_start (v,p);
|
---|
| 2474 | s = g (p, va_arg (v,int));
|
---|
| 2475 | va_end (v);
|
---|
| 2476 | return s;
|
---|
| 2477 | }
|
---|
| 2478 |
|
---|
| 2479 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2480 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2481 | These don't provoke an error unfortunately, instead are silently treated
|
---|
| 2482 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
| 2483 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2484 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
| 2485 | that's true only with -std1. */
|
---|
| 2486 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2487 |
|
---|
| 2488 | int test (int i, double x);
|
---|
| 2489 | struct s1 {int (*f) (int a);};
|
---|
| 2490 | struct s2 {int (*f) (double a);};
|
---|
| 2491 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2492 | int argc;
|
---|
| 2493 | char **argv;
|
---|
| 2494 | int
|
---|
| 2495 | main ()
|
---|
| 2496 | {
|
---|
| 2497 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2498 | ;
|
---|
| 2499 | return 0;
|
---|
| 2500 | }
|
---|
| 2501 | _ACEOF
|
---|
| 2502 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 2503 | # breaks some systems' header files.
|
---|
| 2504 | # AIX -qlanglvl=ansi
|
---|
| 2505 | # Ultrix and OSF/1 -std1
|
---|
| 2506 | # HP-UX 10.20 and later -Ae
|
---|
| 2507 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
| 2508 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
| 2509 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
| 2510 | do
|
---|
| 2511 | CC="$ac_save_CC $ac_arg"
|
---|
| 2512 | rm -f conftest.$ac_objext
|
---|
| 2513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2514 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2515 | ac_status=$?
|
---|
| 2516 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2517 | rm -f conftest.er1
|
---|
| 2518 | cat conftest.err >&5
|
---|
| 2519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2520 | (exit $ac_status); } &&
|
---|
| 2521 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2522 | || test ! -s conftest.err'
|
---|
| 2523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2524 | (eval $ac_try) 2>&5
|
---|
| 2525 | ac_status=$?
|
---|
| 2526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2527 | (exit $ac_status); }; } &&
|
---|
| 2528 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2530 | (eval $ac_try) 2>&5
|
---|
| 2531 | ac_status=$?
|
---|
| 2532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2533 | (exit $ac_status); }; }; then
|
---|
| 2534 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
| 2535 | break
|
---|
| 2536 | else
|
---|
| 2537 | echo "$as_me: failed program was:" >&5
|
---|
| 2538 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2539 |
|
---|
| 2540 | fi
|
---|
| 2541 | rm -f conftest.err conftest.$ac_objext
|
---|
| 2542 | done
|
---|
| 2543 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
| 2544 | CC=$ac_save_CC
|
---|
| 2545 |
|
---|
| 2546 | fi
|
---|
| 2547 |
|
---|
| 2548 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 2549 | x|xno)
|
---|
| 2550 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2551 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
| 2552 | *)
|
---|
| 2553 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 2554 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 2555 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 2556 | esac
|
---|
| 2557 |
|
---|
[3745] | 2558 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
| 2559 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
| 2560 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
| 2561 | # the declaration of exit, since it's the most demanding environment.
|
---|
| 2562 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2563 | #ifndef __cplusplus
|
---|
| 2564 | choke me
|
---|
| 2565 | #endif
|
---|
| 2566 | _ACEOF
|
---|
| 2567 | rm -f conftest.$ac_objext
|
---|
[10191] | 2568 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2569 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 2570 | ac_status=$?
|
---|
[10191] | 2571 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2572 | rm -f conftest.er1
|
---|
| 2573 | cat conftest.err >&5
|
---|
| 2574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 2575 | (exit $ac_status); } &&
|
---|
[10191] | 2576 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2577 | || test ! -s conftest.err'
|
---|
| 2578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 2579 | (eval $ac_try) 2>&5
|
---|
| 2580 | ac_status=$?
|
---|
[10191] | 2581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2582 | (exit $ac_status); }; } &&
|
---|
| 2583 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2585 | (eval $ac_try) 2>&5
|
---|
| 2586 | ac_status=$?
|
---|
| 2587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 2588 | (exit $ac_status); }; }; then
|
---|
| 2589 | for ac_declaration in \
|
---|
[10191] | 2590 | '' \
|
---|
[3745] | 2591 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2592 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2593 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2594 | 'extern "C" void exit (int);' \
|
---|
| 2595 | 'void exit (int);'
|
---|
| 2596 | do
|
---|
| 2597 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 2598 | /* confdefs.h. */
|
---|
| 2599 | _ACEOF
|
---|
| 2600 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2601 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2602 | /* end confdefs.h. */
|
---|
| 2603 | $ac_declaration
|
---|
[3745] | 2604 | #include <stdlib.h>
|
---|
| 2605 | int
|
---|
| 2606 | main ()
|
---|
| 2607 | {
|
---|
| 2608 | exit (42);
|
---|
| 2609 | ;
|
---|
| 2610 | return 0;
|
---|
| 2611 | }
|
---|
| 2612 | _ACEOF
|
---|
| 2613 | rm -f conftest.$ac_objext
|
---|
[10191] | 2614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2615 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 2616 | ac_status=$?
|
---|
[10191] | 2617 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2618 | rm -f conftest.er1
|
---|
| 2619 | cat conftest.err >&5
|
---|
| 2620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 2621 | (exit $ac_status); } &&
|
---|
[10191] | 2622 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2623 | || test ! -s conftest.err'
|
---|
| 2624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 2625 | (eval $ac_try) 2>&5
|
---|
| 2626 | ac_status=$?
|
---|
[10191] | 2627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2628 | (exit $ac_status); }; } &&
|
---|
| 2629 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2631 | (eval $ac_try) 2>&5
|
---|
| 2632 | ac_status=$?
|
---|
| 2633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 2634 | (exit $ac_status); }; }; then
|
---|
| 2635 | :
|
---|
| 2636 | else
|
---|
| 2637 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 2638 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2639 |
|
---|
[3745] | 2640 | continue
|
---|
| 2641 | fi
|
---|
[10191] | 2642 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 2643 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 2644 | /* confdefs.h. */
|
---|
| 2645 | _ACEOF
|
---|
| 2646 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2647 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2648 | /* end confdefs.h. */
|
---|
[3745] | 2649 | $ac_declaration
|
---|
| 2650 | int
|
---|
| 2651 | main ()
|
---|
| 2652 | {
|
---|
| 2653 | exit (42);
|
---|
| 2654 | ;
|
---|
| 2655 | return 0;
|
---|
| 2656 | }
|
---|
| 2657 | _ACEOF
|
---|
| 2658 | rm -f conftest.$ac_objext
|
---|
[10191] | 2659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2660 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 2661 | ac_status=$?
|
---|
[10191] | 2662 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2663 | rm -f conftest.er1
|
---|
| 2664 | cat conftest.err >&5
|
---|
| 2665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 2666 | (exit $ac_status); } &&
|
---|
[10191] | 2667 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2668 | || test ! -s conftest.err'
|
---|
| 2669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 2670 | (eval $ac_try) 2>&5
|
---|
| 2671 | ac_status=$?
|
---|
[10191] | 2672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2673 | (exit $ac_status); }; } &&
|
---|
| 2674 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2676 | (eval $ac_try) 2>&5
|
---|
| 2677 | ac_status=$?
|
---|
| 2678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 2679 | (exit $ac_status); }; }; then
|
---|
| 2680 | break
|
---|
| 2681 | else
|
---|
| 2682 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 2683 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2684 |
|
---|
[3745] | 2685 | fi
|
---|
[10191] | 2686 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 2687 | done
|
---|
[10191] | 2688 | rm -f conftest*
|
---|
| 2689 | if test -n "$ac_declaration"; then
|
---|
| 2690 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2691 | echo $ac_declaration >>confdefs.h
|
---|
| 2692 | echo '#endif' >>confdefs.h
|
---|
| 2693 | fi
|
---|
[3745] | 2694 |
|
---|
| 2695 | else
|
---|
| 2696 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 2697 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2698 |
|
---|
[3745] | 2699 | fi
|
---|
[10191] | 2700 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 2701 | ac_ext=c
|
---|
| 2702 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2703 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2704 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2705 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2706 |
|
---|
| 2707 | ac_aux_dir=
|
---|
| 2708 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 2709 | if test -f $ac_dir/install-sh; then
|
---|
| 2710 | ac_aux_dir=$ac_dir
|
---|
| 2711 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 2712 | break
|
---|
| 2713 | elif test -f $ac_dir/install.sh; then
|
---|
| 2714 | ac_aux_dir=$ac_dir
|
---|
| 2715 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 2716 | break
|
---|
| 2717 | elif test -f $ac_dir/shtool; then
|
---|
| 2718 | ac_aux_dir=$ac_dir
|
---|
| 2719 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 2720 | break
|
---|
| 2721 | fi
|
---|
| 2722 | done
|
---|
| 2723 | if test -z "$ac_aux_dir"; then
|
---|
[10191] | 2724 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
[3745] | 2725 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
| 2726 | { (exit 1); exit 1; }; }
|
---|
| 2727 | fi
|
---|
| 2728 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
| 2729 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
| 2730 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
| 2731 |
|
---|
| 2732 | # Find a good install program. We prefer a C program (faster),
|
---|
| 2733 | # so one script is as good as another. But avoid the broken or
|
---|
| 2734 | # incompatible versions:
|
---|
| 2735 | # SysV /etc/install, /usr/sbin/install
|
---|
| 2736 | # SunOS /usr/etc/install
|
---|
| 2737 | # IRIX /sbin/install
|
---|
| 2738 | # AIX /bin/install
|
---|
| 2739 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
| 2740 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 2741 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 2742 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[10191] | 2743 | # OS/2's system install, which has a completely different semantic
|
---|
[3745] | 2744 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[10191] | 2745 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 2746 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
[3745] | 2747 | if test -z "$INSTALL"; then
|
---|
| 2748 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 2749 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2750 | else
|
---|
[10191] | 2751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2752 | for as_dir in $PATH
|
---|
| 2753 | do
|
---|
| 2754 | IFS=$as_save_IFS
|
---|
| 2755 | test -z "$as_dir" && as_dir=.
|
---|
| 2756 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 2757 | case $as_dir/ in
|
---|
| 2758 | ./ | .// | /cC/* | \
|
---|
| 2759 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
| 2760 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
| 2761 | /usr/ucb/* ) ;;
|
---|
| 2762 | *)
|
---|
| 2763 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 2764 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 2765 | # by default.
|
---|
| 2766 | for ac_prog in ginstall scoinst install; do
|
---|
| 2767 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2768 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[3745] | 2769 | if test $ac_prog = install &&
|
---|
[10191] | 2770 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[3745] | 2771 | # AIX install. It has an incompatible calling convention.
|
---|
| 2772 | :
|
---|
| 2773 | elif test $ac_prog = install &&
|
---|
[10191] | 2774 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[3745] | 2775 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 2776 | :
|
---|
| 2777 | else
|
---|
[10191] | 2778 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 2779 | break 3
|
---|
[3745] | 2780 | fi
|
---|
| 2781 | fi
|
---|
| 2782 | done
|
---|
[10191] | 2783 | done
|
---|
| 2784 | ;;
|
---|
| 2785 | esac
|
---|
| 2786 | done
|
---|
[3745] | 2787 |
|
---|
[10191] | 2788 |
|
---|
[3745] | 2789 | fi
|
---|
| 2790 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 2791 | INSTALL=$ac_cv_path_install
|
---|
| 2792 | else
|
---|
| 2793 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 2794 | # path for INSTALL within a source directory, because that will
|
---|
| 2795 | # break other packages using the cache if that directory is
|
---|
| 2796 | # removed, or if the path is relative.
|
---|
| 2797 | INSTALL=$ac_install_sh
|
---|
| 2798 | fi
|
---|
| 2799 | fi
|
---|
[10191] | 2800 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
[3745] | 2801 | echo "${ECHO_T}$INSTALL" >&6
|
---|
| 2802 |
|
---|
| 2803 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 2804 | # It thinks the first close brace ends the variable substitution.
|
---|
| 2805 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 2806 |
|
---|
| 2807 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
| 2808 |
|
---|
| 2809 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 2810 |
|
---|
[10191] | 2811 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
[3745] | 2812 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
| 2813 | LN_S=$as_ln_s
|
---|
| 2814 | if test "$LN_S" = "ln -s"; then
|
---|
[10191] | 2815 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[3745] | 2816 | echo "${ECHO_T}yes" >&6
|
---|
| 2817 | else
|
---|
[10191] | 2818 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
[3745] | 2819 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
| 2820 | fi
|
---|
| 2821 |
|
---|
[10191] | 2822 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 2823 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
| 2824 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
[3745] | 2825 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
| 2826 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2827 | else
|
---|
[10191] | 2828 | cat >conftest.make <<\_ACEOF
|
---|
[3745] | 2829 | all:
|
---|
[10191] | 2830 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
| 2831 | _ACEOF
|
---|
[3745] | 2832 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
| 2833 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
| 2834 | if test -n "$ac_maketemp"; then
|
---|
| 2835 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 2836 | else
|
---|
| 2837 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 2838 | fi
|
---|
| 2839 | rm -f conftest.make
|
---|
| 2840 | fi
|
---|
| 2841 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
[10191] | 2842 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[3745] | 2843 | echo "${ECHO_T}yes" >&6
|
---|
| 2844 | SET_MAKE=
|
---|
| 2845 | else
|
---|
[10191] | 2846 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 2847 | echo "${ECHO_T}no" >&6
|
---|
| 2848 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 2849 | fi
|
---|
| 2850 |
|
---|
| 2851 | if test -n "$ac_tool_prefix"; then
|
---|
| 2852 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 2853 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[10191] | 2854 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[3745] | 2855 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2856 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
| 2857 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2858 | else
|
---|
| 2859 | if test -n "$RANLIB"; then
|
---|
| 2860 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 2861 | else
|
---|
[10191] | 2862 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2863 | for as_dir in $PATH
|
---|
| 2864 | do
|
---|
| 2865 | IFS=$as_save_IFS
|
---|
| 2866 | test -z "$as_dir" && as_dir=.
|
---|
| 2867 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2868 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2869 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
| 2870 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2871 | break 2
|
---|
| 2872 | fi
|
---|
[3745] | 2873 | done
|
---|
[10191] | 2874 | done
|
---|
[3745] | 2875 |
|
---|
| 2876 | fi
|
---|
| 2877 | fi
|
---|
| 2878 | RANLIB=$ac_cv_prog_RANLIB
|
---|
| 2879 | if test -n "$RANLIB"; then
|
---|
[10191] | 2880 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
[3745] | 2881 | echo "${ECHO_T}$RANLIB" >&6
|
---|
| 2882 | else
|
---|
[10191] | 2883 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 2884 | echo "${ECHO_T}no" >&6
|
---|
| 2885 | fi
|
---|
| 2886 |
|
---|
| 2887 | fi
|
---|
| 2888 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 2889 | ac_ct_RANLIB=$RANLIB
|
---|
| 2890 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 2891 | set dummy ranlib; ac_word=$2
|
---|
[10191] | 2892 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[3745] | 2893 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2894 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 2895 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2896 | else
|
---|
| 2897 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 2898 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 2899 | else
|
---|
[10191] | 2900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2901 | for as_dir in $PATH
|
---|
| 2902 | do
|
---|
| 2903 | IFS=$as_save_IFS
|
---|
| 2904 | test -z "$as_dir" && as_dir=.
|
---|
| 2905 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2906 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2907 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
| 2908 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2909 | break 2
|
---|
| 2910 | fi
|
---|
[3745] | 2911 | done
|
---|
[10191] | 2912 | done
|
---|
[3745] | 2913 |
|
---|
| 2914 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
| 2915 | fi
|
---|
| 2916 | fi
|
---|
| 2917 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 2918 | if test -n "$ac_ct_RANLIB"; then
|
---|
[10191] | 2919 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
[3745] | 2920 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
| 2921 | else
|
---|
[10191] | 2922 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 2923 | echo "${ECHO_T}no" >&6
|
---|
| 2924 | fi
|
---|
| 2925 |
|
---|
| 2926 | RANLIB=$ac_ct_RANLIB
|
---|
| 2927 | else
|
---|
| 2928 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 2929 | fi
|
---|
| 2930 |
|
---|
[10191] | 2931 |
|
---|
| 2932 |
|
---|
[3745] | 2933 | ac_ext=c
|
---|
| 2934 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2935 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2936 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2937 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[10191] | 2938 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
[3745] | 2939 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
| 2940 | # On Suns, sometimes $CPP names a directory.
|
---|
| 2941 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 2942 | CPP=
|
---|
| 2943 | fi
|
---|
| 2944 | if test -z "$CPP"; then
|
---|
| 2945 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 2946 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2947 | else
|
---|
| 2948 | # Double quotes because CPP needs to be expanded
|
---|
| 2949 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 2950 | do
|
---|
| 2951 | ac_preproc_ok=false
|
---|
| 2952 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 2953 | do
|
---|
| 2954 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 2955 | # with a fresh cross-compiler works.
|
---|
[10191] | 2956 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 2957 | # <limits.h> exists even on freestanding compilers.
|
---|
[3745] | 2958 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 2959 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 2960 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 2961 | /* confdefs.h. */
|
---|
[3745] | 2962 | _ACEOF
|
---|
[10191] | 2963 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2964 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2965 | /* end confdefs.h. */
|
---|
| 2966 | #ifdef __STDC__
|
---|
| 2967 | # include <limits.h>
|
---|
| 2968 | #else
|
---|
| 2969 | # include <assert.h>
|
---|
| 2970 | #endif
|
---|
| 2971 | Syntax error
|
---|
| 2972 | _ACEOF
|
---|
| 2973 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[3745] | 2974 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 2975 | ac_status=$?
|
---|
[10191] | 2976 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[3745] | 2977 | rm -f conftest.er1
|
---|
| 2978 | cat conftest.err >&5
|
---|
[10191] | 2979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 2980 | (exit $ac_status); } >/dev/null; then
|
---|
| 2981 | if test -s conftest.err; then
|
---|
| 2982 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10191] | 2983 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[3745] | 2984 | else
|
---|
| 2985 | ac_cpp_err=
|
---|
| 2986 | fi
|
---|
| 2987 | else
|
---|
| 2988 | ac_cpp_err=yes
|
---|
| 2989 | fi
|
---|
| 2990 | if test -z "$ac_cpp_err"; then
|
---|
| 2991 | :
|
---|
| 2992 | else
|
---|
| 2993 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 2994 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2995 |
|
---|
[3745] | 2996 | # Broken: fails on valid input.
|
---|
| 2997 | continue
|
---|
| 2998 | fi
|
---|
| 2999 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3000 |
|
---|
| 3001 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3002 | # can be detected and how.
|
---|
| 3003 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 3004 | /* confdefs.h. */
|
---|
| 3005 | _ACEOF
|
---|
| 3006 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3007 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3008 | /* end confdefs.h. */
|
---|
[3745] | 3009 | #include <ac_nonexistent.h>
|
---|
| 3010 | _ACEOF
|
---|
[10191] | 3011 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[3745] | 3012 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3013 | ac_status=$?
|
---|
[10191] | 3014 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[3745] | 3015 | rm -f conftest.er1
|
---|
| 3016 | cat conftest.err >&5
|
---|
[10191] | 3017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 3018 | (exit $ac_status); } >/dev/null; then
|
---|
| 3019 | if test -s conftest.err; then
|
---|
| 3020 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10191] | 3021 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[3745] | 3022 | else
|
---|
| 3023 | ac_cpp_err=
|
---|
| 3024 | fi
|
---|
| 3025 | else
|
---|
| 3026 | ac_cpp_err=yes
|
---|
| 3027 | fi
|
---|
| 3028 | if test -z "$ac_cpp_err"; then
|
---|
| 3029 | # Broken: success on invalid input.
|
---|
| 3030 | continue
|
---|
| 3031 | else
|
---|
| 3032 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 3033 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3034 |
|
---|
[3745] | 3035 | # Passes both tests.
|
---|
| 3036 | ac_preproc_ok=:
|
---|
| 3037 | break
|
---|
| 3038 | fi
|
---|
| 3039 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3040 |
|
---|
| 3041 | done
|
---|
| 3042 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3043 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3044 | if $ac_preproc_ok; then
|
---|
[10191] | 3045 | break
|
---|
[3745] | 3046 | fi
|
---|
| 3047 |
|
---|
| 3048 | done
|
---|
| 3049 | ac_cv_prog_CPP=$CPP
|
---|
| 3050 |
|
---|
| 3051 | fi
|
---|
| 3052 | CPP=$ac_cv_prog_CPP
|
---|
| 3053 | else
|
---|
| 3054 | ac_cv_prog_CPP=$CPP
|
---|
| 3055 | fi
|
---|
[10191] | 3056 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
[3745] | 3057 | echo "${ECHO_T}$CPP" >&6
|
---|
| 3058 | ac_preproc_ok=false
|
---|
| 3059 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3060 | do
|
---|
| 3061 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3062 | # with a fresh cross-compiler works.
|
---|
[10191] | 3063 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3064 | # <limits.h> exists even on freestanding compilers.
|
---|
[3745] | 3065 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3066 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3067 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 3068 | /* confdefs.h. */
|
---|
[3745] | 3069 | _ACEOF
|
---|
[10191] | 3070 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3071 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3072 | /* end confdefs.h. */
|
---|
| 3073 | #ifdef __STDC__
|
---|
| 3074 | # include <limits.h>
|
---|
| 3075 | #else
|
---|
| 3076 | # include <assert.h>
|
---|
| 3077 | #endif
|
---|
| 3078 | Syntax error
|
---|
| 3079 | _ACEOF
|
---|
| 3080 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[3745] | 3081 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3082 | ac_status=$?
|
---|
[10191] | 3083 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[3745] | 3084 | rm -f conftest.er1
|
---|
| 3085 | cat conftest.err >&5
|
---|
[10191] | 3086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 3087 | (exit $ac_status); } >/dev/null; then
|
---|
| 3088 | if test -s conftest.err; then
|
---|
| 3089 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10191] | 3090 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[3745] | 3091 | else
|
---|
| 3092 | ac_cpp_err=
|
---|
| 3093 | fi
|
---|
| 3094 | else
|
---|
| 3095 | ac_cpp_err=yes
|
---|
| 3096 | fi
|
---|
| 3097 | if test -z "$ac_cpp_err"; then
|
---|
| 3098 | :
|
---|
| 3099 | else
|
---|
| 3100 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 3101 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3102 |
|
---|
[3745] | 3103 | # Broken: fails on valid input.
|
---|
| 3104 | continue
|
---|
| 3105 | fi
|
---|
| 3106 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3107 |
|
---|
| 3108 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3109 | # can be detected and how.
|
---|
| 3110 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 3111 | /* confdefs.h. */
|
---|
| 3112 | _ACEOF
|
---|
| 3113 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3114 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3115 | /* end confdefs.h. */
|
---|
[3745] | 3116 | #include <ac_nonexistent.h>
|
---|
| 3117 | _ACEOF
|
---|
[10191] | 3118 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[3745] | 3119 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3120 | ac_status=$?
|
---|
[10191] | 3121 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[3745] | 3122 | rm -f conftest.er1
|
---|
| 3123 | cat conftest.err >&5
|
---|
[10191] | 3124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 3125 | (exit $ac_status); } >/dev/null; then
|
---|
| 3126 | if test -s conftest.err; then
|
---|
| 3127 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10191] | 3128 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[3745] | 3129 | else
|
---|
| 3130 | ac_cpp_err=
|
---|
| 3131 | fi
|
---|
| 3132 | else
|
---|
| 3133 | ac_cpp_err=yes
|
---|
| 3134 | fi
|
---|
| 3135 | if test -z "$ac_cpp_err"; then
|
---|
| 3136 | # Broken: success on invalid input.
|
---|
| 3137 | continue
|
---|
| 3138 | else
|
---|
| 3139 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 3140 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3141 |
|
---|
[3745] | 3142 | # Passes both tests.
|
---|
| 3143 | ac_preproc_ok=:
|
---|
| 3144 | break
|
---|
| 3145 | fi
|
---|
| 3146 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3147 |
|
---|
| 3148 | done
|
---|
| 3149 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3150 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3151 | if $ac_preproc_ok; then
|
---|
| 3152 | :
|
---|
| 3153 | else
|
---|
[10191] | 3154 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3155 | See \`config.log' for more details." >&5
|
---|
| 3156 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3157 | See \`config.log' for more details." >&2;}
|
---|
[3745] | 3158 | { (exit 1); exit 1; }; }
|
---|
| 3159 | fi
|
---|
| 3160 |
|
---|
| 3161 | ac_ext=c
|
---|
| 3162 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3163 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3164 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3165 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3166 |
|
---|
[10191] | 3167 |
|
---|
| 3168 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 3169 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
| 3170 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
| 3171 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3172 | else
|
---|
| 3173 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
| 3174 | then ac_cv_prog_egrep='grep -E'
|
---|
| 3175 | else ac_cv_prog_egrep='egrep'
|
---|
| 3176 | fi
|
---|
| 3177 | fi
|
---|
| 3178 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
| 3179 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
| 3180 | EGREP=$ac_cv_prog_egrep
|
---|
| 3181 |
|
---|
| 3182 |
|
---|
| 3183 |
|
---|
| 3184 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
[3745] | 3185 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
| 3186 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 3187 | /* confdefs.h. */
|
---|
| 3188 | _ACEOF
|
---|
| 3189 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3190 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3191 | /* end confdefs.h. */
|
---|
[3745] | 3192 | #ifdef _AIX
|
---|
| 3193 | yes
|
---|
| 3194 | #endif
|
---|
| 3195 |
|
---|
| 3196 | _ACEOF
|
---|
| 3197 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10191] | 3198 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
| 3199 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[3745] | 3200 | echo "${ECHO_T}yes" >&6
|
---|
[10191] | 3201 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 3202 | #define _ALL_SOURCE 1
|
---|
[10191] | 3203 | _ACEOF
|
---|
[3745] | 3204 |
|
---|
| 3205 | else
|
---|
[10191] | 3206 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 3207 | echo "${ECHO_T}no" >&6
|
---|
| 3208 | fi
|
---|
| 3209 | rm -f conftest*
|
---|
| 3210 |
|
---|
| 3211 |
|
---|
[10191] | 3212 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 3213 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
| 3214 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 3215 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3216 | else
|
---|
| 3217 | ac_func_search_save_LIBS=$LIBS
|
---|
| 3218 | ac_cv_search_strerror=no
|
---|
| 3219 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3220 | /* confdefs.h. */
|
---|
| 3221 | _ACEOF
|
---|
| 3222 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3223 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3224 | /* end confdefs.h. */
|
---|
[3745] | 3225 |
|
---|
[10191] | 3226 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3227 | #ifdef __cplusplus
|
---|
| 3228 | extern "C"
|
---|
| 3229 | #endif
|
---|
| 3230 | /* We use char because int might match the return type of a gcc2
|
---|
| 3231 | builtin and then its argument prototype would still apply. */
|
---|
| 3232 | char strerror ();
|
---|
| 3233 | int
|
---|
| 3234 | main ()
|
---|
| 3235 | {
|
---|
| 3236 | strerror ();
|
---|
| 3237 | ;
|
---|
| 3238 | return 0;
|
---|
| 3239 | }
|
---|
| 3240 | _ACEOF
|
---|
| 3241 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3242 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3243 | (eval $ac_link) 2>conftest.er1
|
---|
| 3244 | ac_status=$?
|
---|
| 3245 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3246 | rm -f conftest.er1
|
---|
| 3247 | cat conftest.err >&5
|
---|
| 3248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3249 | (exit $ac_status); } &&
|
---|
| 3250 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3251 | || test ! -s conftest.err'
|
---|
| 3252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3253 | (eval $ac_try) 2>&5
|
---|
| 3254 | ac_status=$?
|
---|
| 3255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3256 | (exit $ac_status); }; } &&
|
---|
| 3257 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3259 | (eval $ac_try) 2>&5
|
---|
| 3260 | ac_status=$?
|
---|
| 3261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3262 | (exit $ac_status); }; }; then
|
---|
| 3263 | ac_cv_search_strerror="none required"
|
---|
[3745] | 3264 | else
|
---|
[10191] | 3265 | echo "$as_me: failed program was:" >&5
|
---|
| 3266 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3267 |
|
---|
[3745] | 3268 | fi
|
---|
[10191] | 3269 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3270 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3271 | if test "$ac_cv_search_strerror" = no; then
|
---|
| 3272 | for ac_lib in cposix; do
|
---|
| 3273 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 3274 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3275 | /* confdefs.h. */
|
---|
| 3276 | _ACEOF
|
---|
| 3277 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3278 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3279 | /* end confdefs.h. */
|
---|
[3745] | 3280 |
|
---|
[10191] | 3281 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3282 | #ifdef __cplusplus
|
---|
| 3283 | extern "C"
|
---|
| 3284 | #endif
|
---|
| 3285 | /* We use char because int might match the return type of a gcc2
|
---|
| 3286 | builtin and then its argument prototype would still apply. */
|
---|
| 3287 | char strerror ();
|
---|
| 3288 | int
|
---|
| 3289 | main ()
|
---|
| 3290 | {
|
---|
| 3291 | strerror ();
|
---|
| 3292 | ;
|
---|
| 3293 | return 0;
|
---|
| 3294 | }
|
---|
| 3295 | _ACEOF
|
---|
| 3296 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3298 | (eval $ac_link) 2>conftest.er1
|
---|
| 3299 | ac_status=$?
|
---|
| 3300 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3301 | rm -f conftest.er1
|
---|
| 3302 | cat conftest.err >&5
|
---|
| 3303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3304 | (exit $ac_status); } &&
|
---|
| 3305 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3306 | || test ! -s conftest.err'
|
---|
| 3307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3308 | (eval $ac_try) 2>&5
|
---|
| 3309 | ac_status=$?
|
---|
| 3310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3311 | (exit $ac_status); }; } &&
|
---|
| 3312 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3314 | (eval $ac_try) 2>&5
|
---|
| 3315 | ac_status=$?
|
---|
| 3316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3317 | (exit $ac_status); }; }; then
|
---|
| 3318 | ac_cv_search_strerror="-l$ac_lib"
|
---|
| 3319 | break
|
---|
| 3320 | else
|
---|
| 3321 | echo "$as_me: failed program was:" >&5
|
---|
| 3322 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3323 |
|
---|
| 3324 | fi
|
---|
| 3325 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3326 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3327 | done
|
---|
| 3328 | fi
|
---|
| 3329 | LIBS=$ac_func_search_save_LIBS
|
---|
| 3330 | fi
|
---|
| 3331 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 3332 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
| 3333 | if test "$ac_cv_search_strerror" != no; then
|
---|
| 3334 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
| 3335 |
|
---|
| 3336 | fi
|
---|
| 3337 |
|
---|
| 3338 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 3339 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 3340 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 3341 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3342 | else
|
---|
| 3343 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3344 | /* confdefs.h. */
|
---|
| 3345 | _ACEOF
|
---|
| 3346 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3347 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3348 | /* end confdefs.h. */
|
---|
| 3349 | #include <stdlib.h>
|
---|
| 3350 | #include <stdarg.h>
|
---|
| 3351 | #include <string.h>
|
---|
| 3352 | #include <float.h>
|
---|
| 3353 |
|
---|
| 3354 | int
|
---|
| 3355 | main ()
|
---|
| 3356 | {
|
---|
| 3357 |
|
---|
| 3358 | ;
|
---|
| 3359 | return 0;
|
---|
| 3360 | }
|
---|
| 3361 | _ACEOF
|
---|
| 3362 | rm -f conftest.$ac_objext
|
---|
| 3363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3364 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3365 | ac_status=$?
|
---|
| 3366 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3367 | rm -f conftest.er1
|
---|
| 3368 | cat conftest.err >&5
|
---|
| 3369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3370 | (exit $ac_status); } &&
|
---|
| 3371 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3372 | || test ! -s conftest.err'
|
---|
| 3373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3374 | (eval $ac_try) 2>&5
|
---|
| 3375 | ac_status=$?
|
---|
| 3376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3377 | (exit $ac_status); }; } &&
|
---|
| 3378 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3380 | (eval $ac_try) 2>&5
|
---|
| 3381 | ac_status=$?
|
---|
| 3382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3383 | (exit $ac_status); }; }; then
|
---|
| 3384 | ac_cv_header_stdc=yes
|
---|
| 3385 | else
|
---|
| 3386 | echo "$as_me: failed program was:" >&5
|
---|
| 3387 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3388 |
|
---|
| 3389 | ac_cv_header_stdc=no
|
---|
| 3390 | fi
|
---|
| 3391 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3392 |
|
---|
| 3393 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3394 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 3395 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3396 | /* confdefs.h. */
|
---|
| 3397 | _ACEOF
|
---|
| 3398 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3399 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3400 | /* end confdefs.h. */
|
---|
| 3401 | #include <string.h>
|
---|
| 3402 |
|
---|
| 3403 | _ACEOF
|
---|
| 3404 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3405 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 3406 | :
|
---|
| 3407 | else
|
---|
| 3408 | ac_cv_header_stdc=no
|
---|
| 3409 | fi
|
---|
| 3410 | rm -f conftest*
|
---|
| 3411 |
|
---|
| 3412 | fi
|
---|
| 3413 |
|
---|
| 3414 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3415 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 3416 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3417 | /* confdefs.h. */
|
---|
| 3418 | _ACEOF
|
---|
| 3419 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3420 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3421 | /* end confdefs.h. */
|
---|
| 3422 | #include <stdlib.h>
|
---|
| 3423 |
|
---|
| 3424 | _ACEOF
|
---|
| 3425 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3426 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 3427 | :
|
---|
| 3428 | else
|
---|
| 3429 | ac_cv_header_stdc=no
|
---|
| 3430 | fi
|
---|
| 3431 | rm -f conftest*
|
---|
| 3432 |
|
---|
| 3433 | fi
|
---|
| 3434 |
|
---|
| 3435 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3436 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 3437 | if test "$cross_compiling" = yes; then
|
---|
| 3438 | :
|
---|
| 3439 | else
|
---|
| 3440 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3441 | /* confdefs.h. */
|
---|
| 3442 | _ACEOF
|
---|
| 3443 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3444 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3445 | /* end confdefs.h. */
|
---|
| 3446 | #include <ctype.h>
|
---|
| 3447 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 3448 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 3449 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 3450 | #else
|
---|
| 3451 | # define ISLOWER(c) \
|
---|
| 3452 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 3453 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 3454 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 3455 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 3456 | #endif
|
---|
| 3457 |
|
---|
| 3458 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 3459 | int
|
---|
| 3460 | main ()
|
---|
| 3461 | {
|
---|
| 3462 | int i;
|
---|
| 3463 | for (i = 0; i < 256; i++)
|
---|
| 3464 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 3465 | || toupper (i) != TOUPPER (i))
|
---|
| 3466 | exit(2);
|
---|
| 3467 | exit (0);
|
---|
| 3468 | }
|
---|
| 3469 | _ACEOF
|
---|
| 3470 | rm -f conftest$ac_exeext
|
---|
| 3471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3472 | (eval $ac_link) 2>&5
|
---|
| 3473 | ac_status=$?
|
---|
| 3474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3475 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 3476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3477 | (eval $ac_try) 2>&5
|
---|
| 3478 | ac_status=$?
|
---|
| 3479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3480 | (exit $ac_status); }; }; then
|
---|
| 3481 | :
|
---|
| 3482 | else
|
---|
| 3483 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 3484 | echo "$as_me: failed program was:" >&5
|
---|
| 3485 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3486 |
|
---|
| 3487 | ( exit $ac_status )
|
---|
| 3488 | ac_cv_header_stdc=no
|
---|
| 3489 | fi
|
---|
| 3490 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 3491 | fi
|
---|
| 3492 | fi
|
---|
| 3493 | fi
|
---|
| 3494 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 3495 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 3496 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3497 |
|
---|
| 3498 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3499 | #define STDC_HEADERS 1
|
---|
| 3500 | _ACEOF
|
---|
| 3501 |
|
---|
| 3502 | fi
|
---|
| 3503 |
|
---|
| 3504 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 3505 |
|
---|
| 3506 |
|
---|
| 3507 |
|
---|
| 3508 |
|
---|
| 3509 |
|
---|
| 3510 |
|
---|
| 3511 |
|
---|
| 3512 |
|
---|
| 3513 |
|
---|
| 3514 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 3515 | inttypes.h stdint.h unistd.h
|
---|
| 3516 | do
|
---|
| 3517 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 3518 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 3519 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 3520 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 3521 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3522 | else
|
---|
| 3523 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3524 | /* confdefs.h. */
|
---|
| 3525 | _ACEOF
|
---|
| 3526 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3527 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3528 | /* end confdefs.h. */
|
---|
| 3529 | $ac_includes_default
|
---|
| 3530 |
|
---|
| 3531 | #include <$ac_header>
|
---|
| 3532 | _ACEOF
|
---|
| 3533 | rm -f conftest.$ac_objext
|
---|
| 3534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3535 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3536 | ac_status=$?
|
---|
| 3537 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3538 | rm -f conftest.er1
|
---|
| 3539 | cat conftest.err >&5
|
---|
| 3540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3541 | (exit $ac_status); } &&
|
---|
| 3542 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3543 | || test ! -s conftest.err'
|
---|
| 3544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3545 | (eval $ac_try) 2>&5
|
---|
| 3546 | ac_status=$?
|
---|
| 3547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3548 | (exit $ac_status); }; } &&
|
---|
| 3549 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3551 | (eval $ac_try) 2>&5
|
---|
| 3552 | ac_status=$?
|
---|
| 3553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3554 | (exit $ac_status); }; }; then
|
---|
| 3555 | eval "$as_ac_Header=yes"
|
---|
| 3556 | else
|
---|
| 3557 | echo "$as_me: failed program was:" >&5
|
---|
| 3558 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3559 |
|
---|
| 3560 | eval "$as_ac_Header=no"
|
---|
| 3561 | fi
|
---|
| 3562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3563 | fi
|
---|
| 3564 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 3565 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 3566 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 3567 | cat >>confdefs.h <<_ACEOF
|
---|
| 3568 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 3569 | _ACEOF
|
---|
| 3570 |
|
---|
| 3571 | fi
|
---|
| 3572 |
|
---|
| 3573 | done
|
---|
| 3574 |
|
---|
| 3575 |
|
---|
| 3576 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3577 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
[3745] | 3578 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3579 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3580 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[10191] | 3581 | fi
|
---|
| 3582 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3583 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[3745] | 3584 | else
|
---|
[10191] | 3585 | # Is the header compilable?
|
---|
| 3586 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 3587 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
| 3588 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3589 | /* confdefs.h. */
|
---|
| 3590 | _ACEOF
|
---|
| 3591 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3592 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3593 | /* end confdefs.h. */
|
---|
| 3594 | $ac_includes_default
|
---|
[3745] | 3595 | #include <minix/config.h>
|
---|
| 3596 | _ACEOF
|
---|
[10191] | 3597 | rm -f conftest.$ac_objext
|
---|
| 3598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3599 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3600 | ac_status=$?
|
---|
| 3601 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3602 | rm -f conftest.er1
|
---|
| 3603 | cat conftest.err >&5
|
---|
| 3604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3605 | (exit $ac_status); } &&
|
---|
| 3606 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3607 | || test ! -s conftest.err'
|
---|
| 3608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3609 | (eval $ac_try) 2>&5
|
---|
| 3610 | ac_status=$?
|
---|
| 3611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3612 | (exit $ac_status); }; } &&
|
---|
| 3613 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3615 | (eval $ac_try) 2>&5
|
---|
| 3616 | ac_status=$?
|
---|
| 3617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3618 | (exit $ac_status); }; }; then
|
---|
| 3619 | ac_header_compiler=yes
|
---|
| 3620 | else
|
---|
| 3621 | echo "$as_me: failed program was:" >&5
|
---|
| 3622 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3623 |
|
---|
| 3624 | ac_header_compiler=no
|
---|
| 3625 | fi
|
---|
| 3626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3627 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 3628 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 3629 |
|
---|
| 3630 | # Is the header present?
|
---|
| 3631 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 3632 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
| 3633 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3634 | /* confdefs.h. */
|
---|
| 3635 | _ACEOF
|
---|
| 3636 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3637 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3638 | /* end confdefs.h. */
|
---|
| 3639 | #include <minix/config.h>
|
---|
| 3640 | _ACEOF
|
---|
| 3641 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[3745] | 3642 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3643 | ac_status=$?
|
---|
[10191] | 3644 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[3745] | 3645 | rm -f conftest.er1
|
---|
| 3646 | cat conftest.err >&5
|
---|
[10191] | 3647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 3648 | (exit $ac_status); } >/dev/null; then
|
---|
| 3649 | if test -s conftest.err; then
|
---|
| 3650 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10191] | 3651 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[3745] | 3652 | else
|
---|
| 3653 | ac_cpp_err=
|
---|
| 3654 | fi
|
---|
| 3655 | else
|
---|
| 3656 | ac_cpp_err=yes
|
---|
| 3657 | fi
|
---|
| 3658 | if test -z "$ac_cpp_err"; then
|
---|
[10191] | 3659 | ac_header_preproc=yes
|
---|
[3745] | 3660 | else
|
---|
| 3661 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 3662 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3663 |
|
---|
| 3664 | ac_header_preproc=no
|
---|
[3745] | 3665 | fi
|
---|
| 3666 | rm -f conftest.err conftest.$ac_ext
|
---|
[10191] | 3667 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 3668 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 3669 |
|
---|
| 3670 | # So? What about this header?
|
---|
| 3671 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 3672 | yes:no: )
|
---|
| 3673 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 3674 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 3675 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 3676 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 3677 | ac_header_preproc=yes
|
---|
| 3678 | ;;
|
---|
| 3679 | no:yes:* )
|
---|
| 3680 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 3681 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 3682 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 3683 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 3684 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 3685 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 3686 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 3687 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 3688 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 3689 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 3690 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 3691 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 3692 | (
|
---|
| 3693 | cat <<\_ASBOX
|
---|
| 3694 | ## ------------------------------------------ ##
|
---|
| 3695 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 3696 | ## ------------------------------------------ ##
|
---|
| 3697 | _ASBOX
|
---|
| 3698 | ) |
|
---|
| 3699 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 3700 | ;;
|
---|
| 3701 | esac
|
---|
| 3702 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3703 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3704 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3705 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3706 | else
|
---|
| 3707 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
[3745] | 3708 | fi
|
---|
[10191] | 3709 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
[3745] | 3710 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[10191] | 3711 |
|
---|
| 3712 | fi
|
---|
[3745] | 3713 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
| 3714 | MINIX=yes
|
---|
| 3715 | else
|
---|
| 3716 | MINIX=
|
---|
| 3717 | fi
|
---|
| 3718 |
|
---|
[10191] | 3719 |
|
---|
[3745] | 3720 | if test "$MINIX" = yes; then
|
---|
| 3721 |
|
---|
[10191] | 3722 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 3723 | #define _POSIX_SOURCE 1
|
---|
[10191] | 3724 | _ACEOF
|
---|
[3745] | 3725 |
|
---|
[10191] | 3726 |
|
---|
| 3727 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 3728 | #define _POSIX_1_SOURCE 2
|
---|
[10191] | 3729 | _ACEOF
|
---|
[3745] | 3730 |
|
---|
[10191] | 3731 |
|
---|
| 3732 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 3733 | #define _MINIX 1
|
---|
[10191] | 3734 | _ACEOF
|
---|
[3745] | 3735 |
|
---|
| 3736 | fi
|
---|
| 3737 |
|
---|
[10191] | 3738 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
[3745] | 3739 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
| 3740 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 3741 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3742 | else
|
---|
| 3743 | ac_cv_prog_cc_stdc=no
|
---|
| 3744 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 3745 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 3746 | # breaks some systems' header files.
|
---|
| 3747 | # AIX -qlanglvl=ansi
|
---|
| 3748 | # Ultrix and OSF/1 -std1
|
---|
| 3749 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 3750 | # SVR4 -Xc
|
---|
| 3751 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 3752 | do
|
---|
| 3753 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
| 3754 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 3755 | /* confdefs.h. */
|
---|
| 3756 | _ACEOF
|
---|
| 3757 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3758 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3759 | /* end confdefs.h. */
|
---|
[3745] | 3760 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 3761 | choke me
|
---|
| 3762 | #endif
|
---|
| 3763 |
|
---|
| 3764 | int
|
---|
| 3765 | main ()
|
---|
| 3766 | {
|
---|
| 3767 | int test (int i, double x);
|
---|
| 3768 | struct s1 {int (*f) (int a);};
|
---|
| 3769 | struct s2 {int (*f) (double a);};
|
---|
| 3770 | ;
|
---|
| 3771 | return 0;
|
---|
| 3772 | }
|
---|
| 3773 | _ACEOF
|
---|
| 3774 | rm -f conftest.$ac_objext
|
---|
[10191] | 3775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3776 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 3777 | ac_status=$?
|
---|
[10191] | 3778 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3779 | rm -f conftest.er1
|
---|
| 3780 | cat conftest.err >&5
|
---|
| 3781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 3782 | (exit $ac_status); } &&
|
---|
[10191] | 3783 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3784 | || test ! -s conftest.err'
|
---|
| 3785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 3786 | (eval $ac_try) 2>&5
|
---|
| 3787 | ac_status=$?
|
---|
[10191] | 3788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3789 | (exit $ac_status); }; } &&
|
---|
| 3790 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3792 | (eval $ac_try) 2>&5
|
---|
| 3793 | ac_status=$?
|
---|
| 3794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 3795 | (exit $ac_status); }; }; then
|
---|
| 3796 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 3797 | else
|
---|
| 3798 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 3799 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3800 |
|
---|
[3745] | 3801 | fi
|
---|
[10191] | 3802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 3803 | done
|
---|
| 3804 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 3805 |
|
---|
| 3806 | fi
|
---|
| 3807 |
|
---|
[10191] | 3808 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
[3745] | 3809 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 3810 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 3811 | x|xno) ;;
|
---|
| 3812 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 3813 | esac
|
---|
| 3814 |
|
---|
[10191] | 3815 |
|
---|
| 3816 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
[3745] | 3817 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
| 3818 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[10191] | 3819 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[3745] | 3820 | echo "${ECHO_T}yes" >&6
|
---|
[10191] | 3821 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 3822 | #define PROTOTYPES 1
|
---|
[10191] | 3823 | _ACEOF
|
---|
[3745] | 3824 |
|
---|
| 3825 | U= ANSI2KNR=
|
---|
| 3826 | else
|
---|
[10191] | 3827 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 3828 | echo "${ECHO_T}no" >&6
|
---|
| 3829 | U=_ ANSI2KNR=ansi2knr
|
---|
| 3830 | fi
|
---|
| 3831 |
|
---|
[10191] | 3832 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
[3745] | 3833 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
| 3834 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 3835 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3836 | else
|
---|
| 3837 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 3838 | /* confdefs.h. */
|
---|
| 3839 | _ACEOF
|
---|
| 3840 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3841 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3842 | /* end confdefs.h. */
|
---|
[3745] | 3843 |
|
---|
| 3844 | int
|
---|
| 3845 | main ()
|
---|
| 3846 | {
|
---|
| 3847 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 3848 | #ifndef __cplusplus
|
---|
| 3849 | /* Ultrix mips cc rejects this. */
|
---|
| 3850 | typedef int charset[2];
|
---|
| 3851 | const charset x;
|
---|
| 3852 | /* SunOS 4.1.1 cc rejects this. */
|
---|
| 3853 | char const *const *ccp;
|
---|
| 3854 | char **p;
|
---|
| 3855 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 3856 | struct point {int x, y;};
|
---|
| 3857 | static struct point const zero = {0,0};
|
---|
| 3858 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 3859 | It does not let you subtract one const X* pointer from another in
|
---|
| 3860 | an arm of an if-expression whose if-part is not a constant
|
---|
| 3861 | expression */
|
---|
| 3862 | const char *g = "string";
|
---|
| 3863 | ccp = &g + (g ? g-g : 0);
|
---|
| 3864 | /* HPUX 7.0 cc rejects these. */
|
---|
| 3865 | ++ccp;
|
---|
| 3866 | p = (char**) ccp;
|
---|
| 3867 | ccp = (char const *const *) p;
|
---|
| 3868 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 3869 | char *t;
|
---|
| 3870 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
| 3871 |
|
---|
| 3872 | *t++ = 0;
|
---|
| 3873 | }
|
---|
| 3874 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 3875 | int x[] = {25, 17};
|
---|
| 3876 | const int *foo = &x[0];
|
---|
| 3877 | ++foo;
|
---|
| 3878 | }
|
---|
| 3879 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 3880 | typedef const int *iptr;
|
---|
| 3881 | iptr p = 0;
|
---|
| 3882 | ++p;
|
---|
| 3883 | }
|
---|
| 3884 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 3885 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 3886 | struct s { int j; const int *ap[3]; };
|
---|
| 3887 | struct s *b; b->j = 5;
|
---|
| 3888 | }
|
---|
| 3889 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 3890 | const int foo = 10;
|
---|
| 3891 | }
|
---|
| 3892 | #endif
|
---|
| 3893 |
|
---|
| 3894 | ;
|
---|
| 3895 | return 0;
|
---|
| 3896 | }
|
---|
| 3897 | _ACEOF
|
---|
| 3898 | rm -f conftest.$ac_objext
|
---|
[10191] | 3899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3900 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 3901 | ac_status=$?
|
---|
[10191] | 3902 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3903 | rm -f conftest.er1
|
---|
| 3904 | cat conftest.err >&5
|
---|
| 3905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 3906 | (exit $ac_status); } &&
|
---|
[10191] | 3907 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3908 | || test ! -s conftest.err'
|
---|
| 3909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 3910 | (eval $ac_try) 2>&5
|
---|
| 3911 | ac_status=$?
|
---|
[10191] | 3912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3913 | (exit $ac_status); }; } &&
|
---|
| 3914 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3916 | (eval $ac_try) 2>&5
|
---|
| 3917 | ac_status=$?
|
---|
| 3918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 3919 | (exit $ac_status); }; }; then
|
---|
| 3920 | ac_cv_c_const=yes
|
---|
| 3921 | else
|
---|
| 3922 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 3923 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3924 |
|
---|
[3745] | 3925 | ac_cv_c_const=no
|
---|
| 3926 | fi
|
---|
[10191] | 3927 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 3928 | fi
|
---|
[10191] | 3929 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
[3745] | 3930 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
| 3931 | if test $ac_cv_c_const = no; then
|
---|
| 3932 |
|
---|
[10191] | 3933 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 3934 | #define const
|
---|
| 3935 | _ACEOF
|
---|
| 3936 |
|
---|
| 3937 | fi
|
---|
| 3938 |
|
---|
[10191] | 3939 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
[3745] | 3940 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
| 3941 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 3942 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3943 | else
|
---|
| 3944 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 3945 | /* confdefs.h. */
|
---|
| 3946 | _ACEOF
|
---|
| 3947 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3948 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3949 | /* end confdefs.h. */
|
---|
[3745] | 3950 | $ac_includes_default
|
---|
| 3951 | int
|
---|
| 3952 | main ()
|
---|
| 3953 | {
|
---|
| 3954 | if ((off_t *) 0)
|
---|
| 3955 | return 0;
|
---|
| 3956 | if (sizeof (off_t))
|
---|
| 3957 | return 0;
|
---|
| 3958 | ;
|
---|
| 3959 | return 0;
|
---|
| 3960 | }
|
---|
| 3961 | _ACEOF
|
---|
| 3962 | rm -f conftest.$ac_objext
|
---|
[10191] | 3963 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3964 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 3965 | ac_status=$?
|
---|
[10191] | 3966 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3967 | rm -f conftest.er1
|
---|
| 3968 | cat conftest.err >&5
|
---|
| 3969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 3970 | (exit $ac_status); } &&
|
---|
[10191] | 3971 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3972 | || test ! -s conftest.err'
|
---|
| 3973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 3974 | (eval $ac_try) 2>&5
|
---|
| 3975 | ac_status=$?
|
---|
[10191] | 3976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3977 | (exit $ac_status); }; } &&
|
---|
| 3978 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3980 | (eval $ac_try) 2>&5
|
---|
| 3981 | ac_status=$?
|
---|
| 3982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 3983 | (exit $ac_status); }; }; then
|
---|
| 3984 | ac_cv_type_off_t=yes
|
---|
| 3985 | else
|
---|
| 3986 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 3987 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3988 |
|
---|
[3745] | 3989 | ac_cv_type_off_t=no
|
---|
| 3990 | fi
|
---|
[10191] | 3991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 3992 | fi
|
---|
[10191] | 3993 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
[3745] | 3994 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
| 3995 | if test $ac_cv_type_off_t = yes; then
|
---|
| 3996 | :
|
---|
| 3997 | else
|
---|
| 3998 |
|
---|
[10191] | 3999 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 4000 | #define off_t long
|
---|
[10191] | 4001 | _ACEOF
|
---|
[3745] | 4002 |
|
---|
| 4003 | fi
|
---|
| 4004 |
|
---|
[10191] | 4005 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
[3745] | 4006 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
| 4007 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4008 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4009 | else
|
---|
| 4010 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 4011 | /* confdefs.h. */
|
---|
| 4012 | _ACEOF
|
---|
| 4013 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4014 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4015 | /* end confdefs.h. */
|
---|
[3745] | 4016 | $ac_includes_default
|
---|
| 4017 | int
|
---|
| 4018 | main ()
|
---|
| 4019 | {
|
---|
| 4020 | if ((size_t *) 0)
|
---|
| 4021 | return 0;
|
---|
| 4022 | if (sizeof (size_t))
|
---|
| 4023 | return 0;
|
---|
| 4024 | ;
|
---|
| 4025 | return 0;
|
---|
| 4026 | }
|
---|
| 4027 | _ACEOF
|
---|
| 4028 | rm -f conftest.$ac_objext
|
---|
[10191] | 4029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4030 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 4031 | ac_status=$?
|
---|
[10191] | 4032 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4033 | rm -f conftest.er1
|
---|
| 4034 | cat conftest.err >&5
|
---|
| 4035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 4036 | (exit $ac_status); } &&
|
---|
[10191] | 4037 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4038 | || test ! -s conftest.err'
|
---|
| 4039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 4040 | (eval $ac_try) 2>&5
|
---|
| 4041 | ac_status=$?
|
---|
[10191] | 4042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4043 | (exit $ac_status); }; } &&
|
---|
| 4044 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4046 | (eval $ac_try) 2>&5
|
---|
| 4047 | ac_status=$?
|
---|
| 4048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 4049 | (exit $ac_status); }; }; then
|
---|
| 4050 | ac_cv_type_size_t=yes
|
---|
| 4051 | else
|
---|
| 4052 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 4053 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4054 |
|
---|
[3745] | 4055 | ac_cv_type_size_t=no
|
---|
| 4056 | fi
|
---|
[10191] | 4057 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 4058 | fi
|
---|
[10191] | 4059 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
[3745] | 4060 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
| 4061 | if test $ac_cv_type_size_t = yes; then
|
---|
| 4062 | :
|
---|
| 4063 | else
|
---|
| 4064 |
|
---|
[10191] | 4065 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 4066 | #define size_t unsigned
|
---|
[10191] | 4067 | _ACEOF
|
---|
[3745] | 4068 |
|
---|
| 4069 | fi
|
---|
| 4070 |
|
---|
[10191] | 4071 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
[3745] | 4072 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
| 4073 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 4074 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4075 | else
|
---|
| 4076 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 4077 | /* confdefs.h. */
|
---|
| 4078 | _ACEOF
|
---|
| 4079 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4080 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4081 | /* end confdefs.h. */
|
---|
[3745] | 4082 | #include <sys/types.h>
|
---|
| 4083 | #include <sys/time.h>
|
---|
| 4084 | #include <time.h>
|
---|
| 4085 |
|
---|
| 4086 | int
|
---|
| 4087 | main ()
|
---|
| 4088 | {
|
---|
[10191] | 4089 | if ((struct tm *) 0)
|
---|
| 4090 | return 0;
|
---|
[3745] | 4091 | ;
|
---|
| 4092 | return 0;
|
---|
| 4093 | }
|
---|
| 4094 | _ACEOF
|
---|
| 4095 | rm -f conftest.$ac_objext
|
---|
[10191] | 4096 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4097 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 4098 | ac_status=$?
|
---|
[10191] | 4099 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4100 | rm -f conftest.er1
|
---|
| 4101 | cat conftest.err >&5
|
---|
| 4102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 4103 | (exit $ac_status); } &&
|
---|
[10191] | 4104 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4105 | || test ! -s conftest.err'
|
---|
| 4106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 4107 | (eval $ac_try) 2>&5
|
---|
| 4108 | ac_status=$?
|
---|
[10191] | 4109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4110 | (exit $ac_status); }; } &&
|
---|
| 4111 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4113 | (eval $ac_try) 2>&5
|
---|
| 4114 | ac_status=$?
|
---|
| 4115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 4116 | (exit $ac_status); }; }; then
|
---|
| 4117 | ac_cv_header_time=yes
|
---|
| 4118 | else
|
---|
| 4119 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 4120 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4121 |
|
---|
[3745] | 4122 | ac_cv_header_time=no
|
---|
| 4123 | fi
|
---|
[10191] | 4124 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 4125 | fi
|
---|
[10191] | 4126 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
[3745] | 4127 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
| 4128 | if test $ac_cv_header_time = yes; then
|
---|
| 4129 |
|
---|
[10191] | 4130 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 4131 | #define TIME_WITH_SYS_TIME 1
|
---|
[10191] | 4132 | _ACEOF
|
---|
[3745] | 4133 |
|
---|
| 4134 | fi
|
---|
| 4135 |
|
---|
[10191] | 4136 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
[3745] | 4137 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
| 4138 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 4139 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4140 | else
|
---|
| 4141 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 4142 | /* confdefs.h. */
|
---|
| 4143 | _ACEOF
|
---|
| 4144 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4145 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4146 | /* end confdefs.h. */
|
---|
[3745] | 4147 | #include <sys/types.h>
|
---|
| 4148 | #include <time.h>
|
---|
| 4149 |
|
---|
| 4150 | int
|
---|
| 4151 | main ()
|
---|
| 4152 | {
|
---|
| 4153 | struct tm *tp; tp->tm_sec;
|
---|
| 4154 | ;
|
---|
| 4155 | return 0;
|
---|
| 4156 | }
|
---|
| 4157 | _ACEOF
|
---|
| 4158 | rm -f conftest.$ac_objext
|
---|
[10191] | 4159 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4160 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 4161 | ac_status=$?
|
---|
[10191] | 4162 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4163 | rm -f conftest.er1
|
---|
| 4164 | cat conftest.err >&5
|
---|
| 4165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 4166 | (exit $ac_status); } &&
|
---|
[10191] | 4167 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4168 | || test ! -s conftest.err'
|
---|
| 4169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 4170 | (eval $ac_try) 2>&5
|
---|
| 4171 | ac_status=$?
|
---|
[10191] | 4172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4173 | (exit $ac_status); }; } &&
|
---|
| 4174 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4176 | (eval $ac_try) 2>&5
|
---|
| 4177 | ac_status=$?
|
---|
| 4178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 4179 | (exit $ac_status); }; }; then
|
---|
| 4180 | ac_cv_struct_tm=time.h
|
---|
| 4181 | else
|
---|
| 4182 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 4183 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4184 |
|
---|
[3745] | 4185 | ac_cv_struct_tm=sys/time.h
|
---|
| 4186 | fi
|
---|
[10191] | 4187 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 4188 | fi
|
---|
[10191] | 4189 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
[3745] | 4190 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
| 4191 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
| 4192 |
|
---|
[10191] | 4193 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 4194 | #define TM_IN_SYS_TIME 1
|
---|
[10191] | 4195 | _ACEOF
|
---|
[3745] | 4196 |
|
---|
| 4197 | fi
|
---|
| 4198 |
|
---|
[10191] | 4199 |
|
---|
[3745] | 4200 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
| 4201 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 4202 | /* confdefs.h. */
|
---|
| 4203 | _ACEOF
|
---|
| 4204 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4205 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4206 | /* end confdefs.h. */
|
---|
[3745] | 4207 | #include <stdio.h>
|
---|
| 4208 |
|
---|
| 4209 | int
|
---|
| 4210 | main ()
|
---|
| 4211 | {
|
---|
| 4212 | FILE *rubbish = popen("yes", "r");
|
---|
| 4213 | ;
|
---|
| 4214 | return 0;
|
---|
| 4215 | }
|
---|
| 4216 | _ACEOF
|
---|
| 4217 | rm -f conftest.$ac_objext
|
---|
[10191] | 4218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4219 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 4220 | ac_status=$?
|
---|
[10191] | 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
|
---|
[3745] | 4225 | (exit $ac_status); } &&
|
---|
[10191] | 4226 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4227 | || test ! -s conftest.err'
|
---|
| 4228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 4229 | (eval $ac_try) 2>&5
|
---|
| 4230 | ac_status=$?
|
---|
[10191] | 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
|
---|
[3745] | 4238 | (exit $ac_status); }; }; then
|
---|
| 4239 | :
|
---|
| 4240 | else
|
---|
| 4241 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 4242 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4243 |
|
---|
[3745] | 4244 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
| 4245 | fi
|
---|
[10191] | 4246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 4247 | fi
|
---|
| 4248 |
|
---|
[10191] | 4249 |
|
---|
| 4250 |
|
---|
| 4251 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
[3745] | 4252 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
| 4253 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 4254 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4255 | else
|
---|
| 4256 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4257 | LIBS="-lm $LIBS"
|
---|
| 4258 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 4259 | /* confdefs.h. */
|
---|
| 4260 | _ACEOF
|
---|
| 4261 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4262 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4263 | /* end confdefs.h. */
|
---|
[3745] | 4264 |
|
---|
[10191] | 4265 |
|
---|
[3745] | 4266 | int
|
---|
| 4267 | main ()
|
---|
| 4268 | {
|
---|
| 4269 | main ();
|
---|
| 4270 | ;
|
---|
| 4271 | return 0;
|
---|
| 4272 | }
|
---|
| 4273 | _ACEOF
|
---|
| 4274 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10191] | 4275 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4276 | (eval $ac_link) 2>conftest.er1
|
---|
[3745] | 4277 | ac_status=$?
|
---|
[10191] | 4278 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4279 | rm -f conftest.er1
|
---|
| 4280 | cat conftest.err >&5
|
---|
| 4281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 4282 | (exit $ac_status); } &&
|
---|
[10191] | 4283 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4284 | || test ! -s conftest.err'
|
---|
| 4285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 4286 | (eval $ac_try) 2>&5
|
---|
| 4287 | ac_status=$?
|
---|
[10191] | 4288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4289 | (exit $ac_status); }; } &&
|
---|
| 4290 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4292 | (eval $ac_try) 2>&5
|
---|
| 4293 | ac_status=$?
|
---|
| 4294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 4295 | (exit $ac_status); }; }; then
|
---|
| 4296 | ac_cv_lib_m_main=yes
|
---|
| 4297 | else
|
---|
| 4298 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 4299 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4300 |
|
---|
[3745] | 4301 | ac_cv_lib_m_main=no
|
---|
| 4302 | fi
|
---|
[10191] | 4303 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4304 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3745] | 4305 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4306 | fi
|
---|
[10191] | 4307 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
[3745] | 4308 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
| 4309 | if test $ac_cv_lib_m_main = yes; then
|
---|
[10191] | 4310 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 4311 | #define HAVE_LIBM 1
|
---|
[10191] | 4312 | _ACEOF
|
---|
[3745] | 4313 |
|
---|
| 4314 | LIBS="-lm $LIBS"
|
---|
| 4315 |
|
---|
| 4316 | fi
|
---|
| 4317 |
|
---|
[10191] | 4318 |
|
---|
| 4319 |
|
---|
| 4320 |
|
---|
| 4321 |
|
---|
| 4322 |
|
---|
| 4323 |
|
---|
[3745] | 4324 | ac_header_dirent=no
|
---|
| 4325 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
[10191] | 4326 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 4327 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
[3745] | 4328 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
[10191] | 4329 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[3745] | 4330 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4331 | else
|
---|
| 4332 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 4333 | /* confdefs.h. */
|
---|
| 4334 | _ACEOF
|
---|
| 4335 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4336 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4337 | /* end confdefs.h. */
|
---|
[3745] | 4338 | #include <sys/types.h>
|
---|
| 4339 | #include <$ac_hdr>
|
---|
| 4340 |
|
---|
| 4341 | int
|
---|
| 4342 | main ()
|
---|
| 4343 | {
|
---|
[10191] | 4344 | if ((DIR *) 0)
|
---|
| 4345 | return 0;
|
---|
[3745] | 4346 | ;
|
---|
| 4347 | return 0;
|
---|
| 4348 | }
|
---|
| 4349 | _ACEOF
|
---|
| 4350 | rm -f conftest.$ac_objext
|
---|
[10191] | 4351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4352 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 4353 | ac_status=$?
|
---|
[10191] | 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
|
---|
[3745] | 4358 | (exit $ac_status); } &&
|
---|
[10191] | 4359 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4360 | || test ! -s conftest.err'
|
---|
| 4361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 4362 | (eval $ac_try) 2>&5
|
---|
| 4363 | ac_status=$?
|
---|
[10191] | 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
|
---|
[3745] | 4371 | (exit $ac_status); }; }; then
|
---|
[10191] | 4372 | eval "$as_ac_Header=yes"
|
---|
[3745] | 4373 | else
|
---|
| 4374 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 4375 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4376 |
|
---|
| 4377 | eval "$as_ac_Header=no"
|
---|
[3745] | 4378 | fi
|
---|
[10191] | 4379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 4380 | fi
|
---|
[10191] | 4381 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4382 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 4383 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4384 | cat >>confdefs.h <<_ACEOF
|
---|
| 4385 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
| 4386 | _ACEOF
|
---|
[3745] | 4387 |
|
---|
| 4388 | ac_header_dirent=$ac_hdr; break
|
---|
| 4389 | fi
|
---|
| 4390 |
|
---|
| 4391 | done
|
---|
| 4392 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 4393 | if test $ac_header_dirent = dirent.h; then
|
---|
[10191] | 4394 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4395 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4396 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
[3745] | 4397 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4398 | else
|
---|
[10191] | 4399 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4400 | ac_cv_search_opendir=no
|
---|
[3745] | 4401 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 4402 | /* confdefs.h. */
|
---|
| 4403 | _ACEOF
|
---|
| 4404 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4405 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4406 | /* end confdefs.h. */
|
---|
[3745] | 4407 |
|
---|
| 4408 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4409 | #ifdef __cplusplus
|
---|
| 4410 | extern "C"
|
---|
| 4411 | #endif
|
---|
| 4412 | /* We use char because int might match the return type of a gcc2
|
---|
| 4413 | builtin and then its argument prototype would still apply. */
|
---|
| 4414 | char opendir ();
|
---|
| 4415 | int
|
---|
| 4416 | main ()
|
---|
| 4417 | {
|
---|
| 4418 | opendir ();
|
---|
| 4419 | ;
|
---|
| 4420 | return 0;
|
---|
| 4421 | }
|
---|
| 4422 | _ACEOF
|
---|
| 4423 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10191] | 4424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4425 | (eval $ac_link) 2>conftest.er1
|
---|
[3745] | 4426 | ac_status=$?
|
---|
[10191] | 4427 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4428 | rm -f conftest.er1
|
---|
| 4429 | cat conftest.err >&5
|
---|
| 4430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 4431 | (exit $ac_status); } &&
|
---|
[10191] | 4432 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4433 | || test ! -s conftest.err'
|
---|
| 4434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 4435 | (eval $ac_try) 2>&5
|
---|
| 4436 | ac_status=$?
|
---|
[10191] | 4437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4438 | (exit $ac_status); }; } &&
|
---|
| 4439 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4441 | (eval $ac_try) 2>&5
|
---|
| 4442 | ac_status=$?
|
---|
| 4443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 4444 | (exit $ac_status); }; }; then
|
---|
[10191] | 4445 | ac_cv_search_opendir="none required"
|
---|
[3745] | 4446 | else
|
---|
| 4447 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 4448 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4449 |
|
---|
[3745] | 4450 | fi
|
---|
[10191] | 4451 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4452 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4453 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4454 | for ac_lib in dir; do
|
---|
| 4455 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 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 |
|
---|
| 4463 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4464 | #ifdef __cplusplus
|
---|
| 4465 | extern "C"
|
---|
| 4466 | #endif
|
---|
| 4467 | /* We use char because int might match the return type of a gcc2
|
---|
| 4468 | builtin and then its argument prototype would still apply. */
|
---|
| 4469 | char opendir ();
|
---|
| 4470 | int
|
---|
| 4471 | main ()
|
---|
| 4472 | {
|
---|
| 4473 | opendir ();
|
---|
| 4474 | ;
|
---|
| 4475 | return 0;
|
---|
| 4476 | }
|
---|
| 4477 | _ACEOF
|
---|
| 4478 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4480 | (eval $ac_link) 2>conftest.er1
|
---|
| 4481 | ac_status=$?
|
---|
| 4482 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4483 | rm -f conftest.er1
|
---|
| 4484 | cat conftest.err >&5
|
---|
| 4485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4486 | (exit $ac_status); } &&
|
---|
| 4487 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4488 | || test ! -s conftest.err'
|
---|
| 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); }; } &&
|
---|
| 4494 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4496 | (eval $ac_try) 2>&5
|
---|
| 4497 | ac_status=$?
|
---|
| 4498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4499 | (exit $ac_status); }; }; then
|
---|
| 4500 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4501 | break
|
---|
| 4502 | else
|
---|
| 4503 | echo "$as_me: failed program was:" >&5
|
---|
| 4504 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4505 |
|
---|
[3745] | 4506 | fi
|
---|
[10191] | 4507 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4508 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4509 | done
|
---|
[3745] | 4510 | fi
|
---|
[10191] | 4511 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4512 | fi
|
---|
| 4513 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4514 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4515 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4516 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[3745] | 4517 |
|
---|
[10191] | 4518 | fi
|
---|
| 4519 |
|
---|
[3745] | 4520 | else
|
---|
[10191] | 4521 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4522 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4523 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
[3745] | 4524 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4525 | else
|
---|
[10191] | 4526 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4527 | ac_cv_search_opendir=no
|
---|
[3745] | 4528 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 4529 | /* confdefs.h. */
|
---|
| 4530 | _ACEOF
|
---|
| 4531 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4532 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4533 | /* end confdefs.h. */
|
---|
[3745] | 4534 |
|
---|
| 4535 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4536 | #ifdef __cplusplus
|
---|
| 4537 | extern "C"
|
---|
| 4538 | #endif
|
---|
| 4539 | /* We use char because int might match the return type of a gcc2
|
---|
| 4540 | builtin and then its argument prototype would still apply. */
|
---|
| 4541 | char opendir ();
|
---|
| 4542 | int
|
---|
| 4543 | main ()
|
---|
| 4544 | {
|
---|
| 4545 | opendir ();
|
---|
| 4546 | ;
|
---|
| 4547 | return 0;
|
---|
| 4548 | }
|
---|
| 4549 | _ACEOF
|
---|
| 4550 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10191] | 4551 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4552 | (eval $ac_link) 2>conftest.er1
|
---|
[3745] | 4553 | ac_status=$?
|
---|
[10191] | 4554 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4555 | rm -f conftest.er1
|
---|
| 4556 | cat conftest.err >&5
|
---|
| 4557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 4558 | (exit $ac_status); } &&
|
---|
[10191] | 4559 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4560 | || test ! -s conftest.err'
|
---|
| 4561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 4562 | (eval $ac_try) 2>&5
|
---|
| 4563 | ac_status=$?
|
---|
[10191] | 4564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4565 | (exit $ac_status); }; } &&
|
---|
| 4566 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4567 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4568 | (eval $ac_try) 2>&5
|
---|
| 4569 | ac_status=$?
|
---|
| 4570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 4571 | (exit $ac_status); }; }; then
|
---|
[10191] | 4572 | ac_cv_search_opendir="none required"
|
---|
[3745] | 4573 | else
|
---|
| 4574 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 4575 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4576 |
|
---|
[3745] | 4577 | fi
|
---|
[10191] | 4578 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4579 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4580 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4581 | for ac_lib in x; do
|
---|
| 4582 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4583 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4584 | /* confdefs.h. */
|
---|
| 4585 | _ACEOF
|
---|
| 4586 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4587 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4588 | /* end confdefs.h. */
|
---|
| 4589 |
|
---|
| 4590 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4591 | #ifdef __cplusplus
|
---|
| 4592 | extern "C"
|
---|
| 4593 | #endif
|
---|
| 4594 | /* We use char because int might match the return type of a gcc2
|
---|
| 4595 | builtin and then its argument prototype would still apply. */
|
---|
| 4596 | char opendir ();
|
---|
| 4597 | int
|
---|
| 4598 | main ()
|
---|
| 4599 | {
|
---|
| 4600 | opendir ();
|
---|
| 4601 | ;
|
---|
| 4602 | return 0;
|
---|
| 4603 | }
|
---|
| 4604 | _ACEOF
|
---|
| 4605 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4606 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4607 | (eval $ac_link) 2>conftest.er1
|
---|
| 4608 | ac_status=$?
|
---|
| 4609 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4610 | rm -f conftest.er1
|
---|
| 4611 | cat conftest.err >&5
|
---|
| 4612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4613 | (exit $ac_status); } &&
|
---|
| 4614 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4615 | || test ! -s conftest.err'
|
---|
| 4616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4617 | (eval $ac_try) 2>&5
|
---|
| 4618 | ac_status=$?
|
---|
| 4619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4620 | (exit $ac_status); }; } &&
|
---|
| 4621 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4623 | (eval $ac_try) 2>&5
|
---|
| 4624 | ac_status=$?
|
---|
| 4625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4626 | (exit $ac_status); }; }; then
|
---|
| 4627 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4628 | break
|
---|
| 4629 | else
|
---|
| 4630 | echo "$as_me: failed program was:" >&5
|
---|
| 4631 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4632 |
|
---|
[3745] | 4633 | fi
|
---|
[10191] | 4634 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4635 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4636 | done
|
---|
[3745] | 4637 | fi
|
---|
[10191] | 4638 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4639 | fi
|
---|
| 4640 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4641 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4642 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4643 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[3745] | 4644 |
|
---|
| 4645 | fi
|
---|
| 4646 |
|
---|
[10191] | 4647 | fi
|
---|
| 4648 |
|
---|
| 4649 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
[3745] | 4650 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 4651 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 4652 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4653 | else
|
---|
| 4654 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 4655 | /* confdefs.h. */
|
---|
| 4656 | _ACEOF
|
---|
| 4657 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4658 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4659 | /* end confdefs.h. */
|
---|
[3745] | 4660 | #include <stdlib.h>
|
---|
| 4661 | #include <stdarg.h>
|
---|
| 4662 | #include <string.h>
|
---|
| 4663 | #include <float.h>
|
---|
| 4664 |
|
---|
[10191] | 4665 | int
|
---|
| 4666 | main ()
|
---|
| 4667 | {
|
---|
| 4668 |
|
---|
| 4669 | ;
|
---|
| 4670 | return 0;
|
---|
| 4671 | }
|
---|
[3745] | 4672 | _ACEOF
|
---|
[10191] | 4673 | rm -f conftest.$ac_objext
|
---|
| 4674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4675 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 4676 | ac_status=$?
|
---|
[10191] | 4677 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[3745] | 4678 | rm -f conftest.er1
|
---|
| 4679 | cat conftest.err >&5
|
---|
[10191] | 4680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4681 | (exit $ac_status); } &&
|
---|
| 4682 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4683 | || test ! -s conftest.err'
|
---|
| 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); }; } &&
|
---|
| 4689 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4691 | (eval $ac_try) 2>&5
|
---|
| 4692 | ac_status=$?
|
---|
| 4693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4694 | (exit $ac_status); }; }; then
|
---|
[3745] | 4695 | ac_cv_header_stdc=yes
|
---|
| 4696 | else
|
---|
| 4697 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 4698 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4699 |
|
---|
| 4700 | ac_cv_header_stdc=no
|
---|
[3745] | 4701 | fi
|
---|
[10191] | 4702 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 4703 |
|
---|
| 4704 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4705 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 4706 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 4707 | /* confdefs.h. */
|
---|
| 4708 | _ACEOF
|
---|
| 4709 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4710 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4711 | /* end confdefs.h. */
|
---|
[3745] | 4712 | #include <string.h>
|
---|
| 4713 |
|
---|
| 4714 | _ACEOF
|
---|
| 4715 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10191] | 4716 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
[3745] | 4717 | :
|
---|
| 4718 | else
|
---|
| 4719 | ac_cv_header_stdc=no
|
---|
| 4720 | fi
|
---|
| 4721 | rm -f conftest*
|
---|
| 4722 |
|
---|
| 4723 | fi
|
---|
| 4724 |
|
---|
| 4725 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4726 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 4727 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 4728 | /* confdefs.h. */
|
---|
| 4729 | _ACEOF
|
---|
| 4730 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4731 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4732 | /* end confdefs.h. */
|
---|
[3745] | 4733 | #include <stdlib.h>
|
---|
| 4734 |
|
---|
| 4735 | _ACEOF
|
---|
| 4736 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10191] | 4737 | $EGREP "free" >/dev/null 2>&1; then
|
---|
[3745] | 4738 | :
|
---|
| 4739 | else
|
---|
| 4740 | ac_cv_header_stdc=no
|
---|
| 4741 | fi
|
---|
| 4742 | rm -f conftest*
|
---|
| 4743 |
|
---|
| 4744 | fi
|
---|
| 4745 |
|
---|
| 4746 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4747 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 4748 | if test "$cross_compiling" = yes; then
|
---|
| 4749 | :
|
---|
| 4750 | else
|
---|
| 4751 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 4752 | /* confdefs.h. */
|
---|
| 4753 | _ACEOF
|
---|
| 4754 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4755 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4756 | /* end confdefs.h. */
|
---|
[3745] | 4757 | #include <ctype.h>
|
---|
| 4758 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 4759 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 4760 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 4761 | #else
|
---|
[10191] | 4762 | # define ISLOWER(c) \
|
---|
| 4763 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 4764 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 4765 | || ('s' <= (c) && (c) <= 'z'))
|
---|
[3745] | 4766 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 4767 | #endif
|
---|
| 4768 |
|
---|
| 4769 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 4770 | int
|
---|
| 4771 | main ()
|
---|
| 4772 | {
|
---|
| 4773 | int i;
|
---|
| 4774 | for (i = 0; i < 256; i++)
|
---|
| 4775 | if (XOR (islower (i), ISLOWER (i))
|
---|
[10191] | 4776 | || toupper (i) != TOUPPER (i))
|
---|
[3745] | 4777 | exit(2);
|
---|
| 4778 | exit (0);
|
---|
| 4779 | }
|
---|
| 4780 | _ACEOF
|
---|
| 4781 | rm -f conftest$ac_exeext
|
---|
[10191] | 4782 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[3745] | 4783 | (eval $ac_link) 2>&5
|
---|
| 4784 | ac_status=$?
|
---|
[10191] | 4785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 4786 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[10191] | 4787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 4788 | (eval $ac_try) 2>&5
|
---|
| 4789 | ac_status=$?
|
---|
[10191] | 4790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 4791 | (exit $ac_status); }; }; then
|
---|
| 4792 | :
|
---|
| 4793 | else
|
---|
| 4794 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 4795 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 4796 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4797 |
|
---|
| 4798 | ( exit $ac_status )
|
---|
[3745] | 4799 | ac_cv_header_stdc=no
|
---|
| 4800 | fi
|
---|
[10191] | 4801 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 4802 | fi
|
---|
| 4803 | fi
|
---|
| 4804 | fi
|
---|
[10191] | 4805 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
[3745] | 4806 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 4807 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4808 |
|
---|
[10191] | 4809 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 4810 | #define STDC_HEADERS 1
|
---|
[10191] | 4811 | _ACEOF
|
---|
[3745] | 4812 |
|
---|
| 4813 | fi
|
---|
| 4814 |
|
---|
[10191] | 4815 |
|
---|
| 4816 |
|
---|
| 4817 |
|
---|
| 4818 |
|
---|
| 4819 |
|
---|
| 4820 |
|
---|
| 4821 |
|
---|
[3745] | 4822 | for ac_header in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
|
---|
| 4823 | do
|
---|
[10191] | 4824 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 4825 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 4826 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
[3745] | 4827 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
[10191] | 4828 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[3745] | 4829 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[10191] | 4830 | fi
|
---|
| 4831 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4832 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[3745] | 4833 | else
|
---|
[10191] | 4834 | # Is the header compilable?
|
---|
| 4835 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 4836 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
| 4837 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4838 | /* confdefs.h. */
|
---|
| 4839 | _ACEOF
|
---|
| 4840 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4841 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4842 | /* end confdefs.h. */
|
---|
| 4843 | $ac_includes_default
|
---|
[3745] | 4844 | #include <$ac_header>
|
---|
| 4845 | _ACEOF
|
---|
[10191] | 4846 | rm -f conftest.$ac_objext
|
---|
| 4847 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4848 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4849 | ac_status=$?
|
---|
| 4850 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4851 | rm -f conftest.er1
|
---|
| 4852 | cat conftest.err >&5
|
---|
| 4853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4854 | (exit $ac_status); } &&
|
---|
| 4855 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4856 | || test ! -s conftest.err'
|
---|
| 4857 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4858 | (eval $ac_try) 2>&5
|
---|
| 4859 | ac_status=$?
|
---|
| 4860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4861 | (exit $ac_status); }; } &&
|
---|
| 4862 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4864 | (eval $ac_try) 2>&5
|
---|
| 4865 | ac_status=$?
|
---|
| 4866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4867 | (exit $ac_status); }; }; then
|
---|
| 4868 | ac_header_compiler=yes
|
---|
| 4869 | else
|
---|
| 4870 | echo "$as_me: failed program was:" >&5
|
---|
| 4871 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4872 |
|
---|
| 4873 | ac_header_compiler=no
|
---|
| 4874 | fi
|
---|
| 4875 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4876 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 4877 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 4878 |
|
---|
| 4879 | # Is the header present?
|
---|
| 4880 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 4881 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
| 4882 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4883 | /* confdefs.h. */
|
---|
| 4884 | _ACEOF
|
---|
| 4885 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4886 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4887 | /* end confdefs.h. */
|
---|
| 4888 | #include <$ac_header>
|
---|
| 4889 | _ACEOF
|
---|
| 4890 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[3745] | 4891 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 4892 | ac_status=$?
|
---|
[10191] | 4893 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[3745] | 4894 | rm -f conftest.er1
|
---|
| 4895 | cat conftest.err >&5
|
---|
[10191] | 4896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 4897 | (exit $ac_status); } >/dev/null; then
|
---|
| 4898 | if test -s conftest.err; then
|
---|
| 4899 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10191] | 4900 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[3745] | 4901 | else
|
---|
| 4902 | ac_cpp_err=
|
---|
| 4903 | fi
|
---|
| 4904 | else
|
---|
| 4905 | ac_cpp_err=yes
|
---|
| 4906 | fi
|
---|
| 4907 | if test -z "$ac_cpp_err"; then
|
---|
[10191] | 4908 | ac_header_preproc=yes
|
---|
[3745] | 4909 | else
|
---|
| 4910 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 4911 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4912 |
|
---|
| 4913 | ac_header_preproc=no
|
---|
[3745] | 4914 | fi
|
---|
| 4915 | rm -f conftest.err conftest.$ac_ext
|
---|
[10191] | 4916 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 4917 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 4918 |
|
---|
| 4919 | # So? What about this header?
|
---|
| 4920 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 4921 | yes:no: )
|
---|
| 4922 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 4923 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 4924 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 4925 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 4926 | ac_header_preproc=yes
|
---|
| 4927 | ;;
|
---|
| 4928 | no:yes:* )
|
---|
| 4929 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 4930 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 4931 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 4932 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 4933 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 4934 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 4935 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 4936 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 4937 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 4938 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 4939 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 4940 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
| 4941 | (
|
---|
| 4942 | cat <<\_ASBOX
|
---|
| 4943 | ## ------------------------------------------ ##
|
---|
| 4944 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 4945 | ## ------------------------------------------ ##
|
---|
| 4946 | _ASBOX
|
---|
| 4947 | ) |
|
---|
| 4948 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 4949 | ;;
|
---|
| 4950 | esac
|
---|
| 4951 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 4952 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 4953 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 4954 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4955 | else
|
---|
| 4956 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
[3745] | 4957 | fi
|
---|
[10191] | 4958 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4959 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[3745] | 4960 |
|
---|
| 4961 | fi
|
---|
[10191] | 4962 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4963 | cat >>confdefs.h <<_ACEOF
|
---|
| 4964 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 4965 | _ACEOF
|
---|
| 4966 |
|
---|
| 4967 | fi
|
---|
| 4968 |
|
---|
[3745] | 4969 | done
|
---|
| 4970 |
|
---|
| 4971 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 4972 | /* confdefs.h. */
|
---|
| 4973 | _ACEOF
|
---|
| 4974 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4975 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4976 | /* end confdefs.h. */
|
---|
[3745] | 4977 | #include <stdio.h>
|
---|
| 4978 |
|
---|
| 4979 | _ACEOF
|
---|
| 4980 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10191] | 4981 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 4982 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 4983 | #define HAVE_FREAD_DECL 1
|
---|
[10191] | 4984 | _ACEOF
|
---|
[3745] | 4985 |
|
---|
| 4986 | fi
|
---|
| 4987 | rm -f conftest*
|
---|
| 4988 |
|
---|
| 4989 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 4990 | /* confdefs.h. */
|
---|
| 4991 | _ACEOF
|
---|
| 4992 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4993 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4994 | /* end confdefs.h. */
|
---|
[3745] | 4995 | #include <stdio.h>
|
---|
| 4996 |
|
---|
| 4997 | _ACEOF
|
---|
| 4998 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10191] | 4999 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 5000 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 5001 | #define HAVE_FGETC_DECL 1
|
---|
[10191] | 5002 | _ACEOF
|
---|
[3745] | 5003 |
|
---|
| 5004 | fi
|
---|
| 5005 | rm -f conftest*
|
---|
| 5006 |
|
---|
| 5007 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 5008 | /* confdefs.h. */
|
---|
| 5009 | _ACEOF
|
---|
| 5010 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5011 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5012 | /* end confdefs.h. */
|
---|
[3745] | 5013 | #include <sys/procfs.h>
|
---|
| 5014 |
|
---|
| 5015 | _ACEOF
|
---|
| 5016 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10191] | 5017 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 5018 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 5019 | #define HAVE_PR_BRKSIZE 1
|
---|
[10191] | 5020 | _ACEOF
|
---|
[3745] | 5021 |
|
---|
| 5022 | fi
|
---|
| 5023 | rm -f conftest*
|
---|
| 5024 |
|
---|
[10191] | 5025 |
|
---|
[3745] | 5026 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5027 | # for constant arguments. Useless!
|
---|
[10191] | 5028 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
[3745] | 5029 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
| 5030 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 5031 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5032 | else
|
---|
| 5033 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 5034 | /* confdefs.h. */
|
---|
| 5035 | _ACEOF
|
---|
| 5036 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5037 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5038 | /* end confdefs.h. */
|
---|
[3745] | 5039 | #include <alloca.h>
|
---|
| 5040 | int
|
---|
| 5041 | main ()
|
---|
| 5042 | {
|
---|
| 5043 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 5044 | ;
|
---|
| 5045 | return 0;
|
---|
| 5046 | }
|
---|
| 5047 | _ACEOF
|
---|
| 5048 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10191] | 5049 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5050 | (eval $ac_link) 2>conftest.er1
|
---|
[3745] | 5051 | ac_status=$?
|
---|
[10191] | 5052 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5053 | rm -f conftest.er1
|
---|
| 5054 | cat conftest.err >&5
|
---|
| 5055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 5056 | (exit $ac_status); } &&
|
---|
[10191] | 5057 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5058 | || test ! -s conftest.err'
|
---|
| 5059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 5060 | (eval $ac_try) 2>&5
|
---|
| 5061 | ac_status=$?
|
---|
[10191] | 5062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5063 | (exit $ac_status); }; } &&
|
---|
| 5064 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5066 | (eval $ac_try) 2>&5
|
---|
| 5067 | ac_status=$?
|
---|
| 5068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 5069 | (exit $ac_status); }; }; then
|
---|
| 5070 | ac_cv_working_alloca_h=yes
|
---|
| 5071 | else
|
---|
| 5072 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 5073 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5074 |
|
---|
[3745] | 5075 | ac_cv_working_alloca_h=no
|
---|
| 5076 | fi
|
---|
[10191] | 5077 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5078 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3745] | 5079 | fi
|
---|
[10191] | 5080 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
[3745] | 5081 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
| 5082 | if test $ac_cv_working_alloca_h = yes; then
|
---|
| 5083 |
|
---|
[10191] | 5084 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 5085 | #define HAVE_ALLOCA_H 1
|
---|
[10191] | 5086 | _ACEOF
|
---|
[3745] | 5087 |
|
---|
| 5088 | fi
|
---|
| 5089 |
|
---|
[10191] | 5090 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
[3745] | 5091 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
| 5092 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 5093 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5094 | else
|
---|
| 5095 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 5096 | /* confdefs.h. */
|
---|
| 5097 | _ACEOF
|
---|
| 5098 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5099 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5100 | /* end confdefs.h. */
|
---|
[3745] | 5101 | #ifdef __GNUC__
|
---|
| 5102 | # define alloca __builtin_alloca
|
---|
| 5103 | #else
|
---|
| 5104 | # ifdef _MSC_VER
|
---|
| 5105 | # include <malloc.h>
|
---|
| 5106 | # define alloca _alloca
|
---|
| 5107 | # else
|
---|
| 5108 | # if HAVE_ALLOCA_H
|
---|
| 5109 | # include <alloca.h>
|
---|
| 5110 | # else
|
---|
| 5111 | # ifdef _AIX
|
---|
| 5112 | #pragma alloca
|
---|
| 5113 | # else
|
---|
| 5114 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5115 | char *alloca ();
|
---|
| 5116 | # endif
|
---|
| 5117 | # endif
|
---|
| 5118 | # endif
|
---|
| 5119 | # endif
|
---|
| 5120 | #endif
|
---|
| 5121 |
|
---|
| 5122 | int
|
---|
| 5123 | main ()
|
---|
| 5124 | {
|
---|
| 5125 | char *p = (char *) alloca (1);
|
---|
| 5126 | ;
|
---|
| 5127 | return 0;
|
---|
| 5128 | }
|
---|
| 5129 | _ACEOF
|
---|
| 5130 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10191] | 5131 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5132 | (eval $ac_link) 2>conftest.er1
|
---|
[3745] | 5133 | ac_status=$?
|
---|
[10191] | 5134 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5135 | rm -f conftest.er1
|
---|
| 5136 | cat conftest.err >&5
|
---|
| 5137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 5138 | (exit $ac_status); } &&
|
---|
[10191] | 5139 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5140 | || test ! -s conftest.err'
|
---|
| 5141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 5142 | (eval $ac_try) 2>&5
|
---|
| 5143 | ac_status=$?
|
---|
[10191] | 5144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5145 | (exit $ac_status); }; } &&
|
---|
| 5146 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5148 | (eval $ac_try) 2>&5
|
---|
| 5149 | ac_status=$?
|
---|
| 5150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 5151 | (exit $ac_status); }; }; then
|
---|
| 5152 | ac_cv_func_alloca_works=yes
|
---|
| 5153 | else
|
---|
| 5154 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 5155 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5156 |
|
---|
[3745] | 5157 | ac_cv_func_alloca_works=no
|
---|
| 5158 | fi
|
---|
[10191] | 5159 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5160 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3745] | 5161 | fi
|
---|
[10191] | 5162 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
[3745] | 5163 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
| 5164 |
|
---|
| 5165 | if test $ac_cv_func_alloca_works = yes; then
|
---|
| 5166 |
|
---|
[10191] | 5167 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 5168 | #define HAVE_ALLOCA 1
|
---|
[10191] | 5169 | _ACEOF
|
---|
[3745] | 5170 |
|
---|
| 5171 | else
|
---|
| 5172 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5173 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5174 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5175 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
| 5176 |
|
---|
| 5177 | ALLOCA=alloca.$ac_objext
|
---|
| 5178 |
|
---|
[10191] | 5179 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 5180 | #define C_ALLOCA 1
|
---|
[10191] | 5181 | _ACEOF
|
---|
[3745] | 5182 |
|
---|
[10191] | 5183 |
|
---|
| 5184 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
[3745] | 5185 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
| 5186 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 5187 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5188 | else
|
---|
| 5189 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 5190 | /* confdefs.h. */
|
---|
| 5191 | _ACEOF
|
---|
| 5192 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5193 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5194 | /* end confdefs.h. */
|
---|
[3745] | 5195 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
| 5196 | webecray
|
---|
| 5197 | #else
|
---|
| 5198 | wenotbecray
|
---|
| 5199 | #endif
|
---|
| 5200 |
|
---|
| 5201 | _ACEOF
|
---|
| 5202 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10191] | 5203 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
[3745] | 5204 | ac_cv_os_cray=yes
|
---|
| 5205 | else
|
---|
| 5206 | ac_cv_os_cray=no
|
---|
| 5207 | fi
|
---|
| 5208 | rm -f conftest*
|
---|
| 5209 |
|
---|
| 5210 | fi
|
---|
[10191] | 5211 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
[3745] | 5212 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
| 5213 | if test $ac_cv_os_cray = yes; then
|
---|
| 5214 | for ac_func in _getb67 GETB67 getb67; do
|
---|
[10191] | 5215 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5216 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[3745] | 5217 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10191] | 5218 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[3745] | 5219 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5220 | else
|
---|
| 5221 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 5222 | /* confdefs.h. */
|
---|
| 5223 | _ACEOF
|
---|
| 5224 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5225 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5226 | /* end confdefs.h. */
|
---|
| 5227 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5228 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5229 | #define $ac_func innocuous_$ac_func
|
---|
| 5230 |
|
---|
[3745] | 5231 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10191] | 5232 | which can conflict with char $ac_func (); below.
|
---|
| 5233 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5234 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5235 |
|
---|
| 5236 | #ifdef __STDC__
|
---|
| 5237 | # include <limits.h>
|
---|
| 5238 | #else
|
---|
| 5239 | # include <assert.h>
|
---|
| 5240 | #endif
|
---|
| 5241 |
|
---|
| 5242 | #undef $ac_func
|
---|
| 5243 |
|
---|
[3745] | 5244 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5245 | #ifdef __cplusplus
|
---|
| 5246 | extern "C"
|
---|
[10191] | 5247 | {
|
---|
[3745] | 5248 | #endif
|
---|
| 5249 | /* We use char because int might match the return type of a gcc2
|
---|
| 5250 | builtin and then its argument prototype would still apply. */
|
---|
| 5251 | char $ac_func ();
|
---|
| 5252 | /* The GNU C library defines this for functions which it implements
|
---|
| 5253 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5254 | something starting with __ and the normal name is an alias. */
|
---|
| 5255 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5256 | choke me
|
---|
| 5257 | #else
|
---|
[10191] | 5258 | char (*f) () = $ac_func;
|
---|
[3745] | 5259 | #endif
|
---|
[10191] | 5260 | #ifdef __cplusplus
|
---|
| 5261 | }
|
---|
| 5262 | #endif
|
---|
[3745] | 5263 |
|
---|
[10191] | 5264 | int
|
---|
| 5265 | main ()
|
---|
| 5266 | {
|
---|
| 5267 | return f != $ac_func;
|
---|
[3745] | 5268 | ;
|
---|
| 5269 | return 0;
|
---|
| 5270 | }
|
---|
| 5271 | _ACEOF
|
---|
| 5272 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10191] | 5273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5274 | (eval $ac_link) 2>conftest.er1
|
---|
[3745] | 5275 | ac_status=$?
|
---|
[10191] | 5276 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5277 | rm -f conftest.er1
|
---|
| 5278 | cat conftest.err >&5
|
---|
| 5279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 5280 | (exit $ac_status); } &&
|
---|
[10191] | 5281 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5282 | || test ! -s conftest.err'
|
---|
| 5283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 5284 | (eval $ac_try) 2>&5
|
---|
| 5285 | ac_status=$?
|
---|
[10191] | 5286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5287 | (exit $ac_status); }; } &&
|
---|
| 5288 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5290 | (eval $ac_try) 2>&5
|
---|
| 5291 | ac_status=$?
|
---|
| 5292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 5293 | (exit $ac_status); }; }; then
|
---|
[10191] | 5294 | eval "$as_ac_var=yes"
|
---|
[3745] | 5295 | else
|
---|
| 5296 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 5297 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5298 |
|
---|
| 5299 | eval "$as_ac_var=no"
|
---|
[3745] | 5300 | fi
|
---|
[10191] | 5301 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5302 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3745] | 5303 | fi
|
---|
[10191] | 5304 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5305 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5306 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[3745] | 5307 |
|
---|
[10191] | 5308 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 5309 | #define CRAY_STACKSEG_END $ac_func
|
---|
[10191] | 5310 | _ACEOF
|
---|
[3745] | 5311 |
|
---|
| 5312 | break
|
---|
| 5313 | fi
|
---|
| 5314 |
|
---|
| 5315 | done
|
---|
| 5316 | fi
|
---|
| 5317 |
|
---|
[10191] | 5318 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
[3745] | 5319 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
| 5320 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 5321 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5322 | else
|
---|
| 5323 | if test "$cross_compiling" = yes; then
|
---|
| 5324 | ac_cv_c_stack_direction=0
|
---|
| 5325 | else
|
---|
| 5326 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 5327 | /* confdefs.h. */
|
---|
| 5328 | _ACEOF
|
---|
| 5329 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5330 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5331 | /* end confdefs.h. */
|
---|
[3745] | 5332 | int
|
---|
| 5333 | find_stack_direction ()
|
---|
| 5334 | {
|
---|
| 5335 | static char *addr = 0;
|
---|
| 5336 | auto char dummy;
|
---|
| 5337 | if (addr == 0)
|
---|
| 5338 | {
|
---|
| 5339 | addr = &dummy;
|
---|
| 5340 | return find_stack_direction ();
|
---|
| 5341 | }
|
---|
| 5342 | else
|
---|
| 5343 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5344 | }
|
---|
| 5345 |
|
---|
| 5346 | int
|
---|
| 5347 | main ()
|
---|
| 5348 | {
|
---|
| 5349 | exit (find_stack_direction () < 0);
|
---|
| 5350 | }
|
---|
| 5351 | _ACEOF
|
---|
| 5352 | rm -f conftest$ac_exeext
|
---|
[10191] | 5353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[3745] | 5354 | (eval $ac_link) 2>&5
|
---|
| 5355 | ac_status=$?
|
---|
[10191] | 5356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 5357 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[10191] | 5358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 5359 | (eval $ac_try) 2>&5
|
---|
| 5360 | ac_status=$?
|
---|
[10191] | 5361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 5362 | (exit $ac_status); }; }; then
|
---|
| 5363 | ac_cv_c_stack_direction=1
|
---|
| 5364 | else
|
---|
| 5365 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5366 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 5367 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5368 |
|
---|
| 5369 | ( exit $ac_status )
|
---|
[3745] | 5370 | ac_cv_c_stack_direction=-1
|
---|
| 5371 | fi
|
---|
[10191] | 5372 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 5373 | fi
|
---|
| 5374 | fi
|
---|
[10191] | 5375 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
[3745] | 5376 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
| 5377 |
|
---|
[10191] | 5378 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 5379 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[10191] | 5380 | _ACEOF
|
---|
[3745] | 5381 |
|
---|
[10191] | 5382 |
|
---|
[3745] | 5383 | fi
|
---|
| 5384 |
|
---|
| 5385 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[10191] | 5386 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
[3745] | 5387 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
| 5388 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 5389 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5390 | else
|
---|
| 5391 | ac_pattern="Autoconf.*'x'"
|
---|
| 5392 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 5393 | /* confdefs.h. */
|
---|
| 5394 | _ACEOF
|
---|
| 5395 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5396 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5397 | /* end confdefs.h. */
|
---|
[3745] | 5398 | #include <sgtty.h>
|
---|
| 5399 | Autoconf TIOCGETP
|
---|
| 5400 | _ACEOF
|
---|
| 5401 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10191] | 5402 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[3745] | 5403 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5404 | else
|
---|
| 5405 | ac_cv_prog_gcc_traditional=no
|
---|
| 5406 | fi
|
---|
| 5407 | rm -f conftest*
|
---|
| 5408 |
|
---|
[10191] | 5409 |
|
---|
[3745] | 5410 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
| 5411 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 5412 | /* confdefs.h. */
|
---|
| 5413 | _ACEOF
|
---|
| 5414 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5415 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5416 | /* end confdefs.h. */
|
---|
[3745] | 5417 | #include <termio.h>
|
---|
| 5418 | Autoconf TCGETA
|
---|
| 5419 | _ACEOF
|
---|
| 5420 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10191] | 5421 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[3745] | 5422 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5423 | fi
|
---|
| 5424 | rm -f conftest*
|
---|
| 5425 |
|
---|
| 5426 | fi
|
---|
| 5427 | fi
|
---|
[10191] | 5428 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
[3745] | 5429 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
| 5430 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5431 | CC="$CC -traditional"
|
---|
| 5432 | fi
|
---|
| 5433 | fi
|
---|
| 5434 |
|
---|
[10191] | 5435 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
[3745] | 5436 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
| 5437 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 5438 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5439 | else
|
---|
| 5440 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 5441 | /* confdefs.h. */
|
---|
| 5442 | _ACEOF
|
---|
| 5443 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5444 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5445 | /* end confdefs.h. */
|
---|
[3745] | 5446 | #include <sys/types.h>
|
---|
| 5447 | #include <signal.h>
|
---|
| 5448 | #ifdef signal
|
---|
| 5449 | # undef signal
|
---|
| 5450 | #endif
|
---|
| 5451 | #ifdef __cplusplus
|
---|
| 5452 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 5453 | #else
|
---|
| 5454 | void (*signal ()) ();
|
---|
| 5455 | #endif
|
---|
| 5456 |
|
---|
| 5457 | int
|
---|
| 5458 | main ()
|
---|
| 5459 | {
|
---|
| 5460 | int i;
|
---|
| 5461 | ;
|
---|
| 5462 | return 0;
|
---|
| 5463 | }
|
---|
| 5464 | _ACEOF
|
---|
| 5465 | rm -f conftest.$ac_objext
|
---|
[10191] | 5466 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5467 | (eval $ac_compile) 2>conftest.er1
|
---|
[3745] | 5468 | ac_status=$?
|
---|
[10191] | 5469 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5470 | rm -f conftest.er1
|
---|
| 5471 | cat conftest.err >&5
|
---|
| 5472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 5473 | (exit $ac_status); } &&
|
---|
[10191] | 5474 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5475 | || test ! -s conftest.err'
|
---|
| 5476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 5477 | (eval $ac_try) 2>&5
|
---|
| 5478 | ac_status=$?
|
---|
[10191] | 5479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5480 | (exit $ac_status); }; } &&
|
---|
| 5481 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5483 | (eval $ac_try) 2>&5
|
---|
| 5484 | ac_status=$?
|
---|
| 5485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 5486 | (exit $ac_status); }; }; then
|
---|
| 5487 | ac_cv_type_signal=void
|
---|
| 5488 | else
|
---|
| 5489 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 5490 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5491 |
|
---|
[3745] | 5492 | ac_cv_type_signal=int
|
---|
| 5493 | fi
|
---|
[10191] | 5494 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3745] | 5495 | fi
|
---|
[10191] | 5496 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
[3745] | 5497 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
| 5498 |
|
---|
[10191] | 5499 | cat >>confdefs.h <<_ACEOF
|
---|
[3745] | 5500 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[10191] | 5501 | _ACEOF
|
---|
[3745] | 5502 |
|
---|
[10191] | 5503 |
|
---|
| 5504 |
|
---|
[3745] | 5505 | for ac_func in vprintf
|
---|
| 5506 | do
|
---|
[10191] | 5507 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5508 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[3745] | 5509 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10191] | 5510 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[3745] | 5511 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5512 | else
|
---|
| 5513 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 5514 | /* confdefs.h. */
|
---|
| 5515 | _ACEOF
|
---|
| 5516 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5517 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5518 | /* end confdefs.h. */
|
---|
| 5519 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5520 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5521 | #define $ac_func innocuous_$ac_func
|
---|
| 5522 |
|
---|
[3745] | 5523 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10191] | 5524 | which can conflict with char $ac_func (); below.
|
---|
| 5525 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5526 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5527 |
|
---|
| 5528 | #ifdef __STDC__
|
---|
| 5529 | # include <limits.h>
|
---|
| 5530 | #else
|
---|
| 5531 | # include <assert.h>
|
---|
| 5532 | #endif
|
---|
| 5533 |
|
---|
| 5534 | #undef $ac_func
|
---|
| 5535 |
|
---|
[3745] | 5536 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5537 | #ifdef __cplusplus
|
---|
| 5538 | extern "C"
|
---|
[10191] | 5539 | {
|
---|
[3745] | 5540 | #endif
|
---|
| 5541 | /* We use char because int might match the return type of a gcc2
|
---|
| 5542 | builtin and then its argument prototype would still apply. */
|
---|
| 5543 | char $ac_func ();
|
---|
| 5544 | /* The GNU C library defines this for functions which it implements
|
---|
| 5545 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5546 | something starting with __ and the normal name is an alias. */
|
---|
| 5547 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5548 | choke me
|
---|
| 5549 | #else
|
---|
[10191] | 5550 | char (*f) () = $ac_func;
|
---|
[3745] | 5551 | #endif
|
---|
[10191] | 5552 | #ifdef __cplusplus
|
---|
| 5553 | }
|
---|
| 5554 | #endif
|
---|
[3745] | 5555 |
|
---|
[10191] | 5556 | int
|
---|
| 5557 | main ()
|
---|
| 5558 | {
|
---|
| 5559 | return f != $ac_func;
|
---|
[3745] | 5560 | ;
|
---|
| 5561 | return 0;
|
---|
| 5562 | }
|
---|
| 5563 | _ACEOF
|
---|
| 5564 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10191] | 5565 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5566 | (eval $ac_link) 2>conftest.er1
|
---|
[3745] | 5567 | ac_status=$?
|
---|
[10191] | 5568 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5569 | rm -f conftest.er1
|
---|
| 5570 | cat conftest.err >&5
|
---|
| 5571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 5572 | (exit $ac_status); } &&
|
---|
[10191] | 5573 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5574 | || test ! -s conftest.err'
|
---|
| 5575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 5576 | (eval $ac_try) 2>&5
|
---|
| 5577 | ac_status=$?
|
---|
[10191] | 5578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5579 | (exit $ac_status); }; } &&
|
---|
| 5580 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5582 | (eval $ac_try) 2>&5
|
---|
| 5583 | ac_status=$?
|
---|
| 5584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 5585 | (exit $ac_status); }; }; then
|
---|
[10191] | 5586 | eval "$as_ac_var=yes"
|
---|
[3745] | 5587 | else
|
---|
| 5588 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 5589 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5590 |
|
---|
| 5591 | eval "$as_ac_var=no"
|
---|
[3745] | 5592 | fi
|
---|
[10191] | 5593 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5594 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3745] | 5595 | fi
|
---|
[10191] | 5596 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5597 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5598 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 5599 | cat >>confdefs.h <<_ACEOF
|
---|
| 5600 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 5601 | _ACEOF
|
---|
[3745] | 5602 |
|
---|
[10191] | 5603 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
[3745] | 5604 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
| 5605 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 5606 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5607 | else
|
---|
| 5608 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 5609 | /* confdefs.h. */
|
---|
| 5610 | _ACEOF
|
---|
| 5611 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5612 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5613 | /* end confdefs.h. */
|
---|
| 5614 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 5615 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5616 | #define _doprnt innocuous__doprnt
|
---|
| 5617 |
|
---|
[3745] | 5618 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10191] | 5619 | which can conflict with char _doprnt (); below.
|
---|
| 5620 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5621 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5622 |
|
---|
| 5623 | #ifdef __STDC__
|
---|
| 5624 | # include <limits.h>
|
---|
| 5625 | #else
|
---|
| 5626 | # include <assert.h>
|
---|
| 5627 | #endif
|
---|
| 5628 |
|
---|
| 5629 | #undef _doprnt
|
---|
| 5630 |
|
---|
[3745] | 5631 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5632 | #ifdef __cplusplus
|
---|
| 5633 | extern "C"
|
---|
[10191] | 5634 | {
|
---|
[3745] | 5635 | #endif
|
---|
| 5636 | /* We use char because int might match the return type of a gcc2
|
---|
| 5637 | builtin and then its argument prototype would still apply. */
|
---|
| 5638 | char _doprnt ();
|
---|
| 5639 | /* The GNU C library defines this for functions which it implements
|
---|
| 5640 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5641 | something starting with __ and the normal name is an alias. */
|
---|
| 5642 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
| 5643 | choke me
|
---|
| 5644 | #else
|
---|
[10191] | 5645 | char (*f) () = _doprnt;
|
---|
[3745] | 5646 | #endif
|
---|
[10191] | 5647 | #ifdef __cplusplus
|
---|
| 5648 | }
|
---|
| 5649 | #endif
|
---|
[3745] | 5650 |
|
---|
[10191] | 5651 | int
|
---|
| 5652 | main ()
|
---|
| 5653 | {
|
---|
| 5654 | return f != _doprnt;
|
---|
[3745] | 5655 | ;
|
---|
| 5656 | return 0;
|
---|
| 5657 | }
|
---|
| 5658 | _ACEOF
|
---|
| 5659 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10191] | 5660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5661 | (eval $ac_link) 2>conftest.er1
|
---|
[3745] | 5662 | ac_status=$?
|
---|
[10191] | 5663 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5664 | rm -f conftest.er1
|
---|
| 5665 | cat conftest.err >&5
|
---|
| 5666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 5667 | (exit $ac_status); } &&
|
---|
[10191] | 5668 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5669 | || test ! -s conftest.err'
|
---|
| 5670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 5671 | (eval $ac_try) 2>&5
|
---|
| 5672 | ac_status=$?
|
---|
[10191] | 5673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5674 | (exit $ac_status); }; } &&
|
---|
| 5675 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5677 | (eval $ac_try) 2>&5
|
---|
| 5678 | ac_status=$?
|
---|
| 5679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 5680 | (exit $ac_status); }; }; then
|
---|
| 5681 | ac_cv_func__doprnt=yes
|
---|
| 5682 | else
|
---|
| 5683 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 5684 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5685 |
|
---|
[3745] | 5686 | ac_cv_func__doprnt=no
|
---|
| 5687 | fi
|
---|
[10191] | 5688 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5689 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3745] | 5690 | fi
|
---|
[10191] | 5691 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
[3745] | 5692 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
| 5693 | if test $ac_cv_func__doprnt = yes; then
|
---|
| 5694 |
|
---|
[10191] | 5695 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 5696 | #define HAVE_DOPRNT 1
|
---|
[10191] | 5697 | _ACEOF
|
---|
[3745] | 5698 |
|
---|
| 5699 | fi
|
---|
| 5700 |
|
---|
| 5701 | fi
|
---|
| 5702 | done
|
---|
| 5703 |
|
---|
[10191] | 5704 |
|
---|
| 5705 |
|
---|
| 5706 |
|
---|
| 5707 |
|
---|
| 5708 |
|
---|
| 5709 |
|
---|
| 5710 |
|
---|
| 5711 |
|
---|
| 5712 |
|
---|
| 5713 |
|
---|
[3745] | 5714 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
|
---|
| 5715 | do
|
---|
[10191] | 5716 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5717 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[3745] | 5718 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10191] | 5719 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[3745] | 5720 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5721 | else
|
---|
| 5722 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 5723 | /* confdefs.h. */
|
---|
| 5724 | _ACEOF
|
---|
| 5725 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5726 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5727 | /* end confdefs.h. */
|
---|
| 5728 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5729 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5730 | #define $ac_func innocuous_$ac_func
|
---|
| 5731 |
|
---|
[3745] | 5732 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10191] | 5733 | which can conflict with char $ac_func (); below.
|
---|
| 5734 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5735 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5736 |
|
---|
| 5737 | #ifdef __STDC__
|
---|
| 5738 | # include <limits.h>
|
---|
| 5739 | #else
|
---|
| 5740 | # include <assert.h>
|
---|
| 5741 | #endif
|
---|
| 5742 |
|
---|
| 5743 | #undef $ac_func
|
---|
| 5744 |
|
---|
[3745] | 5745 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5746 | #ifdef __cplusplus
|
---|
| 5747 | extern "C"
|
---|
[10191] | 5748 | {
|
---|
[3745] | 5749 | #endif
|
---|
| 5750 | /* We use char because int might match the return type of a gcc2
|
---|
| 5751 | builtin and then its argument prototype would still apply. */
|
---|
| 5752 | char $ac_func ();
|
---|
| 5753 | /* The GNU C library defines this for functions which it implements
|
---|
| 5754 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5755 | something starting with __ and the normal name is an alias. */
|
---|
| 5756 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5757 | choke me
|
---|
| 5758 | #else
|
---|
[10191] | 5759 | char (*f) () = $ac_func;
|
---|
[3745] | 5760 | #endif
|
---|
[10191] | 5761 | #ifdef __cplusplus
|
---|
| 5762 | }
|
---|
| 5763 | #endif
|
---|
[3745] | 5764 |
|
---|
[10191] | 5765 | int
|
---|
| 5766 | main ()
|
---|
| 5767 | {
|
---|
| 5768 | return f != $ac_func;
|
---|
[3745] | 5769 | ;
|
---|
| 5770 | return 0;
|
---|
| 5771 | }
|
---|
| 5772 | _ACEOF
|
---|
| 5773 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10191] | 5774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5775 | (eval $ac_link) 2>conftest.er1
|
---|
[3745] | 5776 | ac_status=$?
|
---|
[10191] | 5777 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5778 | rm -f conftest.er1
|
---|
| 5779 | cat conftest.err >&5
|
---|
| 5780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 5781 | (exit $ac_status); } &&
|
---|
[10191] | 5782 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5783 | || test ! -s conftest.err'
|
---|
| 5784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 5785 | (eval $ac_try) 2>&5
|
---|
| 5786 | ac_status=$?
|
---|
[10191] | 5787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5788 | (exit $ac_status); }; } &&
|
---|
| 5789 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5791 | (eval $ac_try) 2>&5
|
---|
| 5792 | ac_status=$?
|
---|
| 5793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 5794 | (exit $ac_status); }; }; then
|
---|
[10191] | 5795 | eval "$as_ac_var=yes"
|
---|
[3745] | 5796 | else
|
---|
| 5797 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 5798 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5799 |
|
---|
| 5800 | eval "$as_ac_var=no"
|
---|
[3745] | 5801 | fi
|
---|
[10191] | 5802 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5803 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3745] | 5804 | fi
|
---|
[10191] | 5805 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5806 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5807 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 5808 | cat >>confdefs.h <<_ACEOF
|
---|
| 5809 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 5810 | _ACEOF
|
---|
[3745] | 5811 |
|
---|
| 5812 | fi
|
---|
| 5813 | done
|
---|
| 5814 |
|
---|
[10191] | 5815 |
|
---|
| 5816 |
|
---|
| 5817 |
|
---|
[3745] | 5818 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 5819 | do
|
---|
[10191] | 5820 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5821 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[3745] | 5822 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10191] | 5823 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[3745] | 5824 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5825 | else
|
---|
| 5826 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 5827 | /* confdefs.h. */
|
---|
| 5828 | _ACEOF
|
---|
| 5829 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5830 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5831 | /* end confdefs.h. */
|
---|
| 5832 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5833 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5834 | #define $ac_func innocuous_$ac_func
|
---|
| 5835 |
|
---|
[3745] | 5836 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10191] | 5837 | which can conflict with char $ac_func (); below.
|
---|
| 5838 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5839 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5840 |
|
---|
| 5841 | #ifdef __STDC__
|
---|
| 5842 | # include <limits.h>
|
---|
| 5843 | #else
|
---|
| 5844 | # include <assert.h>
|
---|
| 5845 | #endif
|
---|
| 5846 |
|
---|
| 5847 | #undef $ac_func
|
---|
| 5848 |
|
---|
[3745] | 5849 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5850 | #ifdef __cplusplus
|
---|
| 5851 | extern "C"
|
---|
[10191] | 5852 | {
|
---|
[3745] | 5853 | #endif
|
---|
| 5854 | /* We use char because int might match the return type of a gcc2
|
---|
| 5855 | builtin and then its argument prototype would still apply. */
|
---|
| 5856 | char $ac_func ();
|
---|
| 5857 | /* The GNU C library defines this for functions which it implements
|
---|
| 5858 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5859 | something starting with __ and the normal name is an alias. */
|
---|
| 5860 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5861 | choke me
|
---|
| 5862 | #else
|
---|
[10191] | 5863 | char (*f) () = $ac_func;
|
---|
[3745] | 5864 | #endif
|
---|
[10191] | 5865 | #ifdef __cplusplus
|
---|
| 5866 | }
|
---|
| 5867 | #endif
|
---|
[3745] | 5868 |
|
---|
[10191] | 5869 | int
|
---|
| 5870 | main ()
|
---|
| 5871 | {
|
---|
| 5872 | return f != $ac_func;
|
---|
[3745] | 5873 | ;
|
---|
| 5874 | return 0;
|
---|
| 5875 | }
|
---|
| 5876 | _ACEOF
|
---|
| 5877 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10191] | 5878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5879 | (eval $ac_link) 2>conftest.er1
|
---|
[3745] | 5880 | ac_status=$?
|
---|
[10191] | 5881 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5882 | rm -f conftest.er1
|
---|
| 5883 | cat conftest.err >&5
|
---|
| 5884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 5885 | (exit $ac_status); } &&
|
---|
[10191] | 5886 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5887 | || test ! -s conftest.err'
|
---|
| 5888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 5889 | (eval $ac_try) 2>&5
|
---|
| 5890 | ac_status=$?
|
---|
[10191] | 5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5892 | (exit $ac_status); }; } &&
|
---|
| 5893 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5895 | (eval $ac_try) 2>&5
|
---|
| 5896 | ac_status=$?
|
---|
| 5897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 5898 | (exit $ac_status); }; }; then
|
---|
[10191] | 5899 | eval "$as_ac_var=yes"
|
---|
[3745] | 5900 | else
|
---|
| 5901 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 5902 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5903 |
|
---|
| 5904 | eval "$as_ac_var=no"
|
---|
[3745] | 5905 | fi
|
---|
[10191] | 5906 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5907 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3745] | 5908 | fi
|
---|
[10191] | 5909 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5910 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5911 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 5912 | cat >>confdefs.h <<_ACEOF
|
---|
| 5913 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 5914 | _ACEOF
|
---|
[3745] | 5915 |
|
---|
| 5916 | else
|
---|
[10191] | 5917 | case $LIBOBJS in
|
---|
| 5918 | "$ac_func.$ac_objext" | \
|
---|
| 5919 | *" $ac_func.$ac_objext" | \
|
---|
| 5920 | "$ac_func.$ac_objext "* | \
|
---|
| 5921 | *" $ac_func.$ac_objext "* ) ;;
|
---|
| 5922 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
| 5923 | esac
|
---|
| 5924 |
|
---|
[3745] | 5925 | fi
|
---|
| 5926 | done
|
---|
| 5927 |
|
---|
[10191] | 5928 |
|
---|
| 5929 |
|
---|
| 5930 |
|
---|
[3745] | 5931 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 5932 | # ---------------------------------------------------------------------------
|
---|
[10191] | 5933 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
[3745] | 5934 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
| 5935 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[10191] | 5936 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[3745] | 5937 | echo "${ECHO_T}yes" >&6
|
---|
[10191] | 5938 | case $LIBOBJS in
|
---|
| 5939 | "gmalloc.$ac_objext" | \
|
---|
| 5940 | *" gmalloc.$ac_objext" | \
|
---|
| 5941 | "gmalloc.$ac_objext "* | \
|
---|
| 5942 | *" gmalloc.$ac_objext "* ) ;;
|
---|
| 5943 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
| 5944 | esac
|
---|
| 5945 |
|
---|
| 5946 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 5947 | #define HAVE_VALLOC 1
|
---|
[10191] | 5948 | _ACEOF
|
---|
[3745] | 5949 |
|
---|
| 5950 | else
|
---|
[10191] | 5951 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 5952 | echo "${ECHO_T}no" >&6
|
---|
| 5953 |
|
---|
| 5954 | for ac_func in valloc
|
---|
| 5955 | do
|
---|
[10191] | 5956 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5957 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[3745] | 5958 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10191] | 5959 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[3745] | 5960 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5961 | else
|
---|
| 5962 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 5963 | /* confdefs.h. */
|
---|
| 5964 | _ACEOF
|
---|
| 5965 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5966 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5967 | /* end confdefs.h. */
|
---|
| 5968 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5969 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5970 | #define $ac_func innocuous_$ac_func
|
---|
| 5971 |
|
---|
[3745] | 5972 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10191] | 5973 | which can conflict with char $ac_func (); below.
|
---|
| 5974 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5975 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5976 |
|
---|
| 5977 | #ifdef __STDC__
|
---|
| 5978 | # include <limits.h>
|
---|
| 5979 | #else
|
---|
| 5980 | # include <assert.h>
|
---|
| 5981 | #endif
|
---|
| 5982 |
|
---|
| 5983 | #undef $ac_func
|
---|
| 5984 |
|
---|
[3745] | 5985 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5986 | #ifdef __cplusplus
|
---|
| 5987 | extern "C"
|
---|
[10191] | 5988 | {
|
---|
[3745] | 5989 | #endif
|
---|
| 5990 | /* We use char because int might match the return type of a gcc2
|
---|
| 5991 | builtin and then its argument prototype would still apply. */
|
---|
| 5992 | char $ac_func ();
|
---|
| 5993 | /* The GNU C library defines this for functions which it implements
|
---|
| 5994 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5995 | something starting with __ and the normal name is an alias. */
|
---|
| 5996 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5997 | choke me
|
---|
| 5998 | #else
|
---|
[10191] | 5999 | char (*f) () = $ac_func;
|
---|
[3745] | 6000 | #endif
|
---|
[10191] | 6001 | #ifdef __cplusplus
|
---|
| 6002 | }
|
---|
| 6003 | #endif
|
---|
[3745] | 6004 |
|
---|
[10191] | 6005 | int
|
---|
| 6006 | main ()
|
---|
| 6007 | {
|
---|
| 6008 | return f != $ac_func;
|
---|
[3745] | 6009 | ;
|
---|
| 6010 | return 0;
|
---|
| 6011 | }
|
---|
| 6012 | _ACEOF
|
---|
| 6013 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10191] | 6014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6015 | (eval $ac_link) 2>conftest.er1
|
---|
[3745] | 6016 | ac_status=$?
|
---|
[10191] | 6017 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6018 | rm -f conftest.er1
|
---|
| 6019 | cat conftest.err >&5
|
---|
| 6020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 6021 | (exit $ac_status); } &&
|
---|
[10191] | 6022 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6023 | || test ! -s conftest.err'
|
---|
| 6024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 6025 | (eval $ac_try) 2>&5
|
---|
| 6026 | ac_status=$?
|
---|
[10191] | 6027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6028 | (exit $ac_status); }; } &&
|
---|
| 6029 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6031 | (eval $ac_try) 2>&5
|
---|
| 6032 | ac_status=$?
|
---|
| 6033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 6034 | (exit $ac_status); }; }; then
|
---|
[10191] | 6035 | eval "$as_ac_var=yes"
|
---|
[3745] | 6036 | else
|
---|
| 6037 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 6038 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6039 |
|
---|
| 6040 | eval "$as_ac_var=no"
|
---|
[3745] | 6041 | fi
|
---|
[10191] | 6042 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6043 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3745] | 6044 | fi
|
---|
[10191] | 6045 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6046 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6047 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6048 | cat >>confdefs.h <<_ACEOF
|
---|
| 6049 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6050 | _ACEOF
|
---|
[3745] | 6051 |
|
---|
| 6052 | fi
|
---|
| 6053 | done
|
---|
| 6054 |
|
---|
| 6055 | fi
|
---|
| 6056 |
|
---|
[10191] | 6057 | # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
|
---|
| 6058 | # a non-standard Path
|
---|
[10917] | 6059 | # is there a better way to do this??
|
---|
| 6060 | echo "$as_me:$LINENO: checking for OS to set JNI options" >&5
|
---|
| 6061 | echo $ECHO_N "checking for OS to set JNI options... $ECHO_C" >&6
|
---|
| 6062 | # set defaults
|
---|
| 6063 | JNIINC=""
|
---|
| 6064 | JNISUFFIX="so"
|
---|
| 6065 | JNIFLAGS="-shared"
|
---|
| 6066 |
|
---|
[10191] | 6067 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[10917] | 6068 | echo "$as_me:$LINENO: result: Darwin" >&5
|
---|
| 6069 | echo "${ECHO_T}Darwin" >&6
|
---|
[10191] | 6070 | JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
|
---|
| 6071 | JNISUFFIX="jnilib"
|
---|
[10887] | 6072 | JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
|
---|
[10191] | 6073 | fi
|
---|
[10917] | 6074 | if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
|
---|
| 6075 | echo "$as_me:$LINENO: result: Solaris" >&5
|
---|
| 6076 | echo "${ECHO_T}Solaris" >&6
|
---|
| 6077 | JNIINC="-I\$(JAVA_HOME)/include/solaris "
|
---|
| 6078 | fi
|
---|
| 6079 | if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
|
---|
| 6080 | echo "$as_me:$LINENO: result: Linux" >&5
|
---|
| 6081 | echo "${ECHO_T}Linux" >&6
|
---|
| 6082 | JNIINC="-I\$(JAVA_HOME)/include/linux "
|
---|
| 6083 | fi
|
---|
[10191] | 6084 |
|
---|
| 6085 |
|
---|
| 6086 |
|
---|
| 6087 |
|
---|
[10917] | 6088 |
|
---|
[10191] | 6089 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
[3745] | 6090 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
| 6091 |
|
---|
| 6092 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
| 6093 | if test "${with_dmalloc+set}" = set; then
|
---|
| 6094 | withval="$with_dmalloc"
|
---|
| 6095 | if test "$withval" = yes; then
|
---|
[10191] | 6096 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[3745] | 6097 | echo "${ECHO_T}yes" >&6
|
---|
[10191] | 6098 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 6099 | #define WITH_DMALLOC 1
|
---|
[10191] | 6100 | _ACEOF
|
---|
[3745] | 6101 |
|
---|
| 6102 | LIBS="$LIBS -ldmalloc"
|
---|
| 6103 | LDFLAGS="$LDFLAGS -g"
|
---|
| 6104 | else
|
---|
[10191] | 6105 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 6106 | echo "${ECHO_T}no" >&6
|
---|
| 6107 | fi
|
---|
| 6108 | else
|
---|
[10191] | 6109 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[3745] | 6110 | echo "${ECHO_T}no" >&6
|
---|
| 6111 | fi;
|
---|
| 6112 |
|
---|
[10191] | 6113 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
[3745] | 6114 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
| 6115 |
|
---|
| 6116 | # Check whether --with-regex or --without-regex was given.
|
---|
| 6117 | if test "${with_regex+set}" = set; then
|
---|
| 6118 | withval="$with_regex"
|
---|
| 6119 | if test "$withval" = yes; then
|
---|
| 6120 | ac_with_regex=1
|
---|
[10191] | 6121 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
[3745] | 6122 | echo "${ECHO_T}regex" >&6
|
---|
[10191] | 6123 | cat >>confdefs.h <<\_ACEOF
|
---|
[3745] | 6124 | #define WITH_REGEX 1
|
---|
[10191] | 6125 | _ACEOF
|
---|
[3745] | 6126 |
|
---|
[10840] | 6127 | case $LIBOBJS in
|
---|
| 6128 | "regex.$ac_objext" | \
|
---|
| 6129 | *" regex.$ac_objext" | \
|
---|
| 6130 | "regex.$ac_objext "* | \
|
---|
| 6131 | *" regex.$ac_objext "* ) ;;
|
---|
| 6132 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
| 6133 | esac
|
---|
| 6134 |
|
---|
[3745] | 6135 | fi
|
---|
| 6136 | fi;
|
---|
| 6137 | if test -z "$ac_with_regex"; then
|
---|
[10191] | 6138 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
[3745] | 6139 | echo "${ECHO_T}rx" >&6
|
---|
[10191] | 6140 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
[3745] | 6141 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
| 6142 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
| 6143 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6144 | else
|
---|
| 6145 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10191] | 6146 | /* confdefs.h. */
|
---|
| 6147 | _ACEOF
|
---|
| 6148 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6149 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6150 | /* end confdefs.h. */
|
---|
| 6151 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 6152 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6153 | #define re_rx_search innocuous_re_rx_search
|
---|
| 6154 |
|
---|
[3745] | 6155 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10191] | 6156 | which can conflict with char re_rx_search (); below.
|
---|
| 6157 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6158 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6159 |
|
---|
| 6160 | #ifdef __STDC__
|
---|
| 6161 | # include <limits.h>
|
---|
| 6162 | #else
|
---|
| 6163 | # include <assert.h>
|
---|
| 6164 | #endif
|
---|
| 6165 |
|
---|
| 6166 | #undef re_rx_search
|
---|
| 6167 |
|
---|
[3745] | 6168 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6169 | #ifdef __cplusplus
|
---|
| 6170 | extern "C"
|
---|
[10191] | 6171 | {
|
---|
[3745] | 6172 | #endif
|
---|
| 6173 | /* We use char because int might match the return type of a gcc2
|
---|
| 6174 | builtin and then its argument prototype would still apply. */
|
---|
| 6175 | char re_rx_search ();
|
---|
| 6176 | /* The GNU C library defines this for functions which it implements
|
---|
| 6177 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6178 | something starting with __ and the normal name is an alias. */
|
---|
| 6179 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
| 6180 | choke me
|
---|
| 6181 | #else
|
---|
[10191] | 6182 | char (*f) () = re_rx_search;
|
---|
[3745] | 6183 | #endif
|
---|
[10191] | 6184 | #ifdef __cplusplus
|
---|
| 6185 | }
|
---|
| 6186 | #endif
|
---|
[3745] | 6187 |
|
---|
[10191] | 6188 | int
|
---|
| 6189 | main ()
|
---|
| 6190 | {
|
---|
| 6191 | return f != re_rx_search;
|
---|
[3745] | 6192 | ;
|
---|
| 6193 | return 0;
|
---|
| 6194 | }
|
---|
| 6195 | _ACEOF
|
---|
| 6196 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10191] | 6197 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6198 | (eval $ac_link) 2>conftest.er1
|
---|
[3745] | 6199 | ac_status=$?
|
---|
[10191] | 6200 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6201 | rm -f conftest.er1
|
---|
| 6202 | cat conftest.err >&5
|
---|
| 6203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 6204 | (exit $ac_status); } &&
|
---|
[10191] | 6205 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6206 | || test ! -s conftest.err'
|
---|
| 6207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[3745] | 6208 | (eval $ac_try) 2>&5
|
---|
| 6209 | ac_status=$?
|
---|
[10191] | 6210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6211 | (exit $ac_status); }; } &&
|
---|
| 6212 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6214 | (eval $ac_try) 2>&5
|
---|
| 6215 | ac_status=$?
|
---|
| 6216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[3745] | 6217 | (exit $ac_status); }; }; then
|
---|
| 6218 | ac_cv_func_re_rx_search=yes
|
---|
| 6219 | else
|
---|
| 6220 | echo "$as_me: failed program was:" >&5
|
---|
[10191] | 6221 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6222 |
|
---|
[3745] | 6223 | ac_cv_func_re_rx_search=no
|
---|
| 6224 | fi
|
---|
[10191] | 6225 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6226 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3745] | 6227 | fi
|
---|
[10191] | 6228 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
[3745] | 6229 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
| 6230 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
| 6231 | :
|
---|
| 6232 | else
|
---|
[10840] | 6233 | case $LIBOBJS in
|
---|
| 6234 | "rx.$ac_objext" | \
|
---|
| 6235 | *" rx.$ac_objext" | \
|
---|
| 6236 | "rx.$ac_objext "* | \
|
---|
| 6237 | *" rx.$ac_objext "* ) ;;
|
---|
| 6238 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
| 6239 | esac
|
---|
| 6240 |
|
---|
[3745] | 6241 | fi
|
---|
| 6242 |
|
---|
| 6243 | fi
|
---|
| 6244 |
|
---|
[10191] | 6245 |
|
---|
[10840] | 6246 | # text for endianness
|
---|
| 6247 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 6248 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
| 6249 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
| 6250 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6251 | else
|
---|
| 6252 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 6253 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6254 | /* confdefs.h. */
|
---|
| 6255 | _ACEOF
|
---|
| 6256 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6257 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6258 | /* end confdefs.h. */
|
---|
| 6259 | #include <sys/types.h>
|
---|
| 6260 | #include <sys/param.h>
|
---|
| 6261 |
|
---|
| 6262 | int
|
---|
| 6263 | main ()
|
---|
| 6264 | {
|
---|
| 6265 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
| 6266 | bogus endian macros
|
---|
| 6267 | #endif
|
---|
| 6268 |
|
---|
| 6269 | ;
|
---|
| 6270 | return 0;
|
---|
| 6271 | }
|
---|
| 6272 | _ACEOF
|
---|
| 6273 | rm -f conftest.$ac_objext
|
---|
| 6274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6275 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6276 | ac_status=$?
|
---|
| 6277 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6278 | rm -f conftest.er1
|
---|
| 6279 | cat conftest.err >&5
|
---|
| 6280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6281 | (exit $ac_status); } &&
|
---|
| 6282 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6283 | || test ! -s conftest.err'
|
---|
| 6284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6285 | (eval $ac_try) 2>&5
|
---|
| 6286 | ac_status=$?
|
---|
| 6287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6288 | (exit $ac_status); }; } &&
|
---|
| 6289 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6291 | (eval $ac_try) 2>&5
|
---|
| 6292 | ac_status=$?
|
---|
| 6293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6294 | (exit $ac_status); }; }; then
|
---|
| 6295 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
| 6296 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6297 | /* confdefs.h. */
|
---|
| 6298 | _ACEOF
|
---|
| 6299 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6300 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6301 | /* end confdefs.h. */
|
---|
| 6302 | #include <sys/types.h>
|
---|
| 6303 | #include <sys/param.h>
|
---|
| 6304 |
|
---|
| 6305 | int
|
---|
| 6306 | main ()
|
---|
| 6307 | {
|
---|
| 6308 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
| 6309 | not big endian
|
---|
| 6310 | #endif
|
---|
| 6311 |
|
---|
| 6312 | ;
|
---|
| 6313 | return 0;
|
---|
| 6314 | }
|
---|
| 6315 | _ACEOF
|
---|
| 6316 | rm -f conftest.$ac_objext
|
---|
| 6317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6318 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6319 | ac_status=$?
|
---|
| 6320 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6321 | rm -f conftest.er1
|
---|
| 6322 | cat conftest.err >&5
|
---|
| 6323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6324 | (exit $ac_status); } &&
|
---|
| 6325 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6326 | || test ! -s conftest.err'
|
---|
| 6327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6328 | (eval $ac_try) 2>&5
|
---|
| 6329 | ac_status=$?
|
---|
| 6330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6331 | (exit $ac_status); }; } &&
|
---|
| 6332 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6334 | (eval $ac_try) 2>&5
|
---|
| 6335 | ac_status=$?
|
---|
| 6336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6337 | (exit $ac_status); }; }; then
|
---|
| 6338 | ac_cv_c_bigendian=yes
|
---|
| 6339 | else
|
---|
| 6340 | echo "$as_me: failed program was:" >&5
|
---|
| 6341 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6342 |
|
---|
| 6343 | ac_cv_c_bigendian=no
|
---|
| 6344 | fi
|
---|
| 6345 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6346 | else
|
---|
| 6347 | echo "$as_me: failed program was:" >&5
|
---|
| 6348 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6349 |
|
---|
| 6350 | # It does not; compile a test program.
|
---|
| 6351 | if test "$cross_compiling" = yes; then
|
---|
| 6352 | # try to guess the endianness by grepping values into an object file
|
---|
| 6353 | ac_cv_c_bigendian=unknown
|
---|
| 6354 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6355 | /* confdefs.h. */
|
---|
| 6356 | _ACEOF
|
---|
| 6357 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6358 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6359 | /* end confdefs.h. */
|
---|
| 6360 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 6361 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 6362 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
| 6363 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 6364 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 6365 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
| 6366 | int
|
---|
| 6367 | main ()
|
---|
| 6368 | {
|
---|
| 6369 | _ascii (); _ebcdic ();
|
---|
| 6370 | ;
|
---|
| 6371 | return 0;
|
---|
| 6372 | }
|
---|
| 6373 | _ACEOF
|
---|
| 6374 | rm -f conftest.$ac_objext
|
---|
| 6375 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6376 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6377 | ac_status=$?
|
---|
| 6378 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6379 | rm -f conftest.er1
|
---|
| 6380 | cat conftest.err >&5
|
---|
| 6381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6382 | (exit $ac_status); } &&
|
---|
| 6383 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6384 | || test ! -s conftest.err'
|
---|
| 6385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6386 | (eval $ac_try) 2>&5
|
---|
| 6387 | ac_status=$?
|
---|
| 6388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6389 | (exit $ac_status); }; } &&
|
---|
| 6390 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6392 | (eval $ac_try) 2>&5
|
---|
| 6393 | ac_status=$?
|
---|
| 6394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6395 | (exit $ac_status); }; }; then
|
---|
| 6396 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
| 6397 | ac_cv_c_bigendian=yes
|
---|
| 6398 | fi
|
---|
| 6399 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 6400 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 6401 | ac_cv_c_bigendian=no
|
---|
| 6402 | else
|
---|
| 6403 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 6404 | ac_cv_c_bigendian=unknown
|
---|
| 6405 | fi
|
---|
| 6406 | fi
|
---|
| 6407 | else
|
---|
| 6408 | echo "$as_me: failed program was:" >&5
|
---|
| 6409 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6410 |
|
---|
| 6411 | fi
|
---|
| 6412 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6413 | else
|
---|
| 6414 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6415 | /* confdefs.h. */
|
---|
| 6416 | _ACEOF
|
---|
| 6417 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6418 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6419 | /* end confdefs.h. */
|
---|
| 6420 | int
|
---|
| 6421 | main ()
|
---|
| 6422 | {
|
---|
| 6423 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 6424 | union
|
---|
| 6425 | {
|
---|
| 6426 | long l;
|
---|
| 6427 | char c[sizeof (long)];
|
---|
| 6428 | } u;
|
---|
| 6429 | u.l = 1;
|
---|
| 6430 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
| 6431 | }
|
---|
| 6432 | _ACEOF
|
---|
| 6433 | rm -f conftest$ac_exeext
|
---|
| 6434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6435 | (eval $ac_link) 2>&5
|
---|
| 6436 | ac_status=$?
|
---|
| 6437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6438 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 6439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6440 | (eval $ac_try) 2>&5
|
---|
| 6441 | ac_status=$?
|
---|
| 6442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6443 | (exit $ac_status); }; }; then
|
---|
| 6444 | ac_cv_c_bigendian=no
|
---|
| 6445 | else
|
---|
| 6446 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 6447 | echo "$as_me: failed program was:" >&5
|
---|
| 6448 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6449 |
|
---|
| 6450 | ( exit $ac_status )
|
---|
| 6451 | ac_cv_c_bigendian=yes
|
---|
| 6452 | fi
|
---|
| 6453 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 6454 | fi
|
---|
| 6455 | fi
|
---|
| 6456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6457 | fi
|
---|
| 6458 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 6459 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
| 6460 | case $ac_cv_c_bigendian in
|
---|
| 6461 | yes)
|
---|
| 6462 |
|
---|
| 6463 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6464 | #define WORDS_BIGENDIAN 1
|
---|
| 6465 | _ACEOF
|
---|
| 6466 | ;;
|
---|
| 6467 | no)
|
---|
| 6468 | ;;
|
---|
| 6469 | *)
|
---|
| 6470 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 6471 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 6472 | echo "$as_me: error: unknown endianness
|
---|
| 6473 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
| 6474 | { (exit 1); exit 1; }; } ;;
|
---|
| 6475 | esac
|
---|
| 6476 |
|
---|
| 6477 |
|
---|
[3745] | 6478 | # ---------------------------------------------------------------------------
|
---|
| 6479 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[10191] | 6480 | case $LIBOBJS in
|
---|
| 6481 | "xmalloc.$ac_objext" | \
|
---|
| 6482 | *" xmalloc.$ac_objext" | \
|
---|
| 6483 | "xmalloc.$ac_objext "* | \
|
---|
| 6484 | *" xmalloc.$ac_objext "* ) ;;
|
---|
| 6485 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
| 6486 | esac
|
---|
| 6487 |
|
---|
| 6488 | case $LIBOBJS in
|
---|
| 6489 | "error.$ac_objext" | \
|
---|
| 6490 | *" error.$ac_objext" | \
|
---|
| 6491 | "error.$ac_objext "* | \
|
---|
| 6492 | *" error.$ac_objext "* ) ;;
|
---|
| 6493 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
| 6494 | esac
|
---|
| 6495 |
|
---|
[3745] | 6496 | fi
|
---|
| 6497 |
|
---|
[10191] | 6498 |
|
---|
[3745] | 6499 | # ---------------------------------------------------------------------------
|
---|
| 6500 |
|
---|
[10191] | 6501 | ac_config_files="$ac_config_files Makefile src/text/Makefile src/images/Makefile src/scripts/Makefile lib/Makefile jni/Makefile java/org/greenstone/mg/Makefile"
|
---|
| 6502 | ac_config_commands="$ac_config_commands default"
|
---|
[3745] | 6503 | cat >confcache <<\_ACEOF
|
---|
| 6504 | # This file is a shell script that caches the results of configure
|
---|
| 6505 | # tests run on this system so they can be shared between configure
|
---|
| 6506 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 6507 | # It is not useful on other systems. If it contains results you don't
|
---|
| 6508 | # want to keep, you may remove or edit it.
|
---|
| 6509 | #
|
---|
| 6510 | # config.status only pays attention to the cache file if you give it
|
---|
| 6511 | # the --recheck option to rerun configure.
|
---|
| 6512 | #
|
---|
[10191] | 6513 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
[3745] | 6514 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 6515 | # following values.
|
---|
| 6516 |
|
---|
| 6517 | _ACEOF
|
---|
| 6518 |
|
---|
| 6519 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 6520 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
| 6521 | # So, don't put newlines in cache variables' values.
|
---|
| 6522 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 6523 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
| 6524 | {
|
---|
| 6525 | (set) 2>&1 |
|
---|
| 6526 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 6527 | *ac_space=\ *)
|
---|
| 6528 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 6529 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 6530 | sed -n \
|
---|
[10191] | 6531 | "s/'/'\\\\''/g;
|
---|
| 6532 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[3745] | 6533 | ;;
|
---|
| 6534 | *)
|
---|
| 6535 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
| 6536 | sed -n \
|
---|
[10191] | 6537 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[3745] | 6538 | ;;
|
---|
| 6539 | esac;
|
---|
| 6540 | } |
|
---|
| 6541 | sed '
|
---|
| 6542 | t clear
|
---|
| 6543 | : clear
|
---|
| 6544 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 6545 | t end
|
---|
| 6546 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 6547 | : end' >>confcache
|
---|
[10191] | 6548 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
[3745] | 6549 | if test -w $cache_file; then
|
---|
| 6550 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
| 6551 | cat confcache >$cache_file
|
---|
| 6552 | else
|
---|
| 6553 | echo "not updating unwritable cache $cache_file"
|
---|
| 6554 | fi
|
---|
| 6555 | fi
|
---|
| 6556 | rm -f confcache
|
---|
| 6557 |
|
---|
| 6558 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 6559 | # Let make expand exec_prefix.
|
---|
| 6560 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 6561 |
|
---|
| 6562 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 6563 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 6564 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 6565 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 6566 | if test "x$srcdir" = x.; then
|
---|
[10191] | 6567 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
[3745] | 6568 | s/:*\$(srcdir):*/:/;
|
---|
| 6569 | s/:*\${srcdir}:*/:/;
|
---|
| 6570 | s/:*@srcdir@:*/:/;
|
---|
[10191] | 6571 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
[3745] | 6572 | s/:*$//;
|
---|
[10191] | 6573 | s/^[^=]*=[ ]*$//;
|
---|
[3745] | 6574 | }'
|
---|
| 6575 | fi
|
---|
| 6576 |
|
---|
| 6577 | DEFS=-DHAVE_CONFIG_H
|
---|
| 6578 |
|
---|
[10191] | 6579 | ac_libobjs=
|
---|
| 6580 | ac_ltlibobjs=
|
---|
| 6581 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 6582 | # 1. Remove the extension, and $U if already installed.
|
---|
| 6583 | ac_i=`echo "$ac_i" |
|
---|
| 6584 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
| 6585 | # 2. Add them.
|
---|
| 6586 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
| 6587 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
| 6588 | done
|
---|
| 6589 | LIBOBJS=$ac_libobjs
|
---|
| 6590 |
|
---|
| 6591 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 6592 |
|
---|
| 6593 |
|
---|
| 6594 |
|
---|
[3745] | 6595 | : ${CONFIG_STATUS=./config.status}
|
---|
| 6596 | ac_clean_files_save=$ac_clean_files
|
---|
| 6597 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
[10191] | 6598 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
[3745] | 6599 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 6600 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
| 6601 | #! $SHELL
|
---|
[10191] | 6602 | # Generated by $as_me.
|
---|
[3745] | 6603 | # Run this file to recreate the current configuration.
|
---|
| 6604 | # Compiler output produced by configure, useful for debugging
|
---|
| 6605 | # configure, is in config.log if it exists.
|
---|
| 6606 |
|
---|
| 6607 | debug=false
|
---|
[10191] | 6608 | ac_cs_recheck=false
|
---|
| 6609 | ac_cs_silent=false
|
---|
[3745] | 6610 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
| 6611 | _ACEOF
|
---|
| 6612 |
|
---|
| 6613 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[10191] | 6614 | ## --------------------- ##
|
---|
| 6615 | ## M4sh Initialization. ##
|
---|
| 6616 | ## --------------------- ##
|
---|
| 6617 |
|
---|
[3745] | 6618 | # Be Bourne compatible
|
---|
| 6619 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 6620 | emulate sh
|
---|
| 6621 | NULLCMD=:
|
---|
[10191] | 6622 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 6623 | # is contrary to our usage. Disable this feature.
|
---|
| 6624 | alias -g '${1+"$@"}'='"$@"'
|
---|
[3745] | 6625 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 6626 | set -o posix
|
---|
| 6627 | fi
|
---|
[10191] | 6628 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[3745] | 6629 |
|
---|
[10191] | 6630 | # Support unset when possible.
|
---|
| 6631 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 6632 | as_unset=unset
|
---|
| 6633 | else
|
---|
| 6634 | as_unset=false
|
---|
| 6635 | fi
|
---|
| 6636 |
|
---|
| 6637 |
|
---|
| 6638 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 6639 | $as_unset ENV MAIL MAILPATH
|
---|
| 6640 | PS1='$ '
|
---|
| 6641 | PS2='> '
|
---|
| 6642 | PS4='+ '
|
---|
| 6643 |
|
---|
| 6644 | # NLS nuisances.
|
---|
| 6645 | for as_var in \
|
---|
| 6646 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 6647 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 6648 | LC_TELEPHONE LC_TIME
|
---|
| 6649 | do
|
---|
| 6650 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 6651 | eval $as_var=C; export $as_var
|
---|
| 6652 | else
|
---|
| 6653 | $as_unset $as_var
|
---|
| 6654 | fi
|
---|
| 6655 | done
|
---|
| 6656 |
|
---|
| 6657 | # Required to use basename.
|
---|
| 6658 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 6659 | as_expr=expr
|
---|
| 6660 | else
|
---|
| 6661 | as_expr=false
|
---|
| 6662 | fi
|
---|
| 6663 |
|
---|
| 6664 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
| 6665 | as_basename=basename
|
---|
| 6666 | else
|
---|
| 6667 | as_basename=false
|
---|
| 6668 | fi
|
---|
| 6669 |
|
---|
| 6670 |
|
---|
[3745] | 6671 | # Name of the executable.
|
---|
[10191] | 6672 | as_me=`$as_basename "$0" ||
|
---|
| 6673 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 6674 | X"$0" : 'X\(//\)$' \| \
|
---|
| 6675 | X"$0" : 'X\(/\)$' \| \
|
---|
| 6676 | . : '\(.\)' 2>/dev/null ||
|
---|
| 6677 | echo X/"$0" |
|
---|
| 6678 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 6679 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 6680 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 6681 | s/.*/./; q'`
|
---|
[3745] | 6682 |
|
---|
[10191] | 6683 |
|
---|
| 6684 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 6685 | # Avoid depending upon Character Ranges.
|
---|
| 6686 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 6687 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 6688 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 6689 | as_cr_digits='0123456789'
|
---|
| 6690 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 6691 |
|
---|
| 6692 | # The user is always right.
|
---|
| 6693 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 6694 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 6695 | echo "exit 0" >>conf$$.sh
|
---|
| 6696 | chmod +x conf$$.sh
|
---|
| 6697 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 6698 | PATH_SEPARATOR=';'
|
---|
| 6699 | else
|
---|
| 6700 | PATH_SEPARATOR=:
|
---|
| 6701 | fi
|
---|
| 6702 | rm -f conf$$.sh
|
---|
| 6703 | fi
|
---|
| 6704 |
|
---|
| 6705 |
|
---|
| 6706 | as_lineno_1=$LINENO
|
---|
| 6707 | as_lineno_2=$LINENO
|
---|
| 6708 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 6709 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 6710 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 6711 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 6712 | # relative or not.
|
---|
| 6713 | case $0 in
|
---|
| 6714 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 6715 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 6716 | for as_dir in $PATH
|
---|
| 6717 | do
|
---|
| 6718 | IFS=$as_save_IFS
|
---|
| 6719 | test -z "$as_dir" && as_dir=.
|
---|
| 6720 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 6721 | done
|
---|
| 6722 |
|
---|
| 6723 | ;;
|
---|
| 6724 | esac
|
---|
| 6725 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 6726 | # in which case we are not to be found in the path.
|
---|
| 6727 | if test "x$as_myself" = x; then
|
---|
| 6728 | as_myself=$0
|
---|
| 6729 | fi
|
---|
| 6730 | if test ! -f "$as_myself"; then
|
---|
| 6731 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
| 6732 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
| 6733 | { (exit 1); exit 1; }; }
|
---|
| 6734 | fi
|
---|
| 6735 | case $CONFIG_SHELL in
|
---|
| 6736 | '')
|
---|
| 6737 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 6738 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 6739 | do
|
---|
| 6740 | IFS=$as_save_IFS
|
---|
| 6741 | test -z "$as_dir" && as_dir=.
|
---|
| 6742 | for as_base in sh bash ksh sh5; do
|
---|
| 6743 | case $as_dir in
|
---|
| 6744 | /*)
|
---|
| 6745 | if ("$as_dir/$as_base" -c '
|
---|
| 6746 | as_lineno_1=$LINENO
|
---|
| 6747 | as_lineno_2=$LINENO
|
---|
| 6748 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 6749 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 6750 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 6751 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 6752 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 6753 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 6754 | export CONFIG_SHELL
|
---|
| 6755 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 6756 | fi;;
|
---|
| 6757 | esac
|
---|
| 6758 | done
|
---|
| 6759 | done
|
---|
| 6760 | ;;
|
---|
| 6761 | esac
|
---|
| 6762 |
|
---|
| 6763 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 6764 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 6765 | # line-number line before each line; the second 'sed' does the real
|
---|
| 6766 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 6767 | # with the numbered line, and appends trailing '-' during
|
---|
| 6768 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 6769 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 6770 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 6771 | sed '=' <$as_myself |
|
---|
| 6772 | sed '
|
---|
| 6773 | N
|
---|
| 6774 | s,$,-,
|
---|
| 6775 | : loop
|
---|
| 6776 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 6777 | t loop
|
---|
| 6778 | s,-$,,
|
---|
| 6779 | s,^['$as_cr_digits']*\n,,
|
---|
| 6780 | ' >$as_me.lineno &&
|
---|
| 6781 | chmod +x $as_me.lineno ||
|
---|
| 6782 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
| 6783 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
| 6784 | { (exit 1); exit 1; }; }
|
---|
| 6785 |
|
---|
| 6786 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 6787 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 6788 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 6789 | . ./$as_me.lineno
|
---|
| 6790 | # Exit status is that of the last command.
|
---|
| 6791 | exit
|
---|
| 6792 | }
|
---|
| 6793 |
|
---|
| 6794 |
|
---|
| 6795 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 6796 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 6797 | ' ECHO_T=' ' ;;
|
---|
| 6798 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 6799 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
| 6800 | esac
|
---|
| 6801 |
|
---|
[3745] | 6802 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 6803 | as_expr=expr
|
---|
| 6804 | else
|
---|
| 6805 | as_expr=false
|
---|
| 6806 | fi
|
---|
| 6807 |
|
---|
| 6808 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 6809 | echo >conf$$.file
|
---|
| 6810 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 6811 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 6812 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 6813 | if test -f conf$$.exe; then
|
---|
| 6814 | # Don't use ln at all; we don't have any links
|
---|
| 6815 | as_ln_s='cp -p'
|
---|
| 6816 | else
|
---|
| 6817 | as_ln_s='ln -s'
|
---|
| 6818 | fi
|
---|
| 6819 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 6820 | as_ln_s=ln
|
---|
| 6821 | else
|
---|
| 6822 | as_ln_s='cp -p'
|
---|
| 6823 | fi
|
---|
| 6824 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 6825 |
|
---|
[10191] | 6826 | if mkdir -p . 2>/dev/null; then
|
---|
| 6827 | as_mkdir_p=:
|
---|
[3745] | 6828 | else
|
---|
[10191] | 6829 | test -d ./-p && rmdir ./-p
|
---|
| 6830 | as_mkdir_p=false
|
---|
[3745] | 6831 | fi
|
---|
| 6832 |
|
---|
[10191] | 6833 | as_executable_p="test -f"
|
---|
[3745] | 6834 |
|
---|
[10191] | 6835 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 6836 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 6837 |
|
---|
| 6838 | # Sed expression to map a string onto a valid variable name.
|
---|
| 6839 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 6840 |
|
---|
| 6841 |
|
---|
[3745] | 6842 | # IFS
|
---|
| 6843 | # We need space, tab and new line, in precisely that order.
|
---|
| 6844 | as_nl='
|
---|
| 6845 | '
|
---|
| 6846 | IFS=" $as_nl"
|
---|
| 6847 |
|
---|
| 6848 | # CDPATH.
|
---|
[10191] | 6849 | $as_unset CDPATH
|
---|
[3745] | 6850 |
|
---|
| 6851 | exec 6>&1
|
---|
| 6852 |
|
---|
[10191] | 6853 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
| 6854 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
| 6855 | # values after options handling. Logging --version etc. is OK.
|
---|
| 6856 | exec 5>>config.log
|
---|
| 6857 | {
|
---|
| 6858 | echo
|
---|
| 6859 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 6860 | ## Running $as_me. ##
|
---|
| 6861 | _ASBOX
|
---|
| 6862 | } >&5
|
---|
| 6863 | cat >&5 <<_CSEOF
|
---|
| 6864 |
|
---|
| 6865 | This file was extended by $as_me, which was
|
---|
| 6866 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
| 6867 |
|
---|
| 6868 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 6869 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 6870 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 6871 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 6872 | $ $0 $@
|
---|
| 6873 |
|
---|
| 6874 | _CSEOF
|
---|
| 6875 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
| 6876 | echo >&5
|
---|
[3745] | 6877 | _ACEOF
|
---|
| 6878 |
|
---|
| 6879 | # Files that config.status was made for.
|
---|
| 6880 | if test -n "$ac_config_files"; then
|
---|
| 6881 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
| 6882 | fi
|
---|
| 6883 |
|
---|
| 6884 | if test -n "$ac_config_headers"; then
|
---|
| 6885 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
| 6886 | fi
|
---|
| 6887 |
|
---|
| 6888 | if test -n "$ac_config_links"; then
|
---|
| 6889 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
| 6890 | fi
|
---|
| 6891 |
|
---|
| 6892 | if test -n "$ac_config_commands"; then
|
---|
| 6893 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
| 6894 | fi
|
---|
| 6895 |
|
---|
[10191] | 6896 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[3745] | 6897 |
|
---|
| 6898 | ac_cs_usage="\
|
---|
| 6899 | \`$as_me' instantiates files from templates according to the
|
---|
| 6900 | current configuration.
|
---|
| 6901 |
|
---|
| 6902 | Usage: $0 [OPTIONS] [FILE]...
|
---|
| 6903 |
|
---|
| 6904 | -h, --help print this help, then exit
|
---|
| 6905 | -V, --version print version number, then exit
|
---|
[10191] | 6906 | -q, --quiet do not print progress messages
|
---|
[3745] | 6907 | -d, --debug don't remove temporary files
|
---|
| 6908 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
| 6909 | --file=FILE[:TEMPLATE]
|
---|
[10191] | 6910 | instantiate the configuration file FILE
|
---|
[3745] | 6911 | --header=FILE[:TEMPLATE]
|
---|
[10191] | 6912 | instantiate the configuration header FILE
|
---|
[3745] | 6913 |
|
---|
| 6914 | Configuration files:
|
---|
| 6915 | $config_files
|
---|
| 6916 |
|
---|
| 6917 | Configuration headers:
|
---|
| 6918 | $config_headers
|
---|
| 6919 |
|
---|
| 6920 | Configuration commands:
|
---|
| 6921 | $config_commands
|
---|
| 6922 |
|
---|
| 6923 | Report bugs to <[email protected]>."
|
---|
[10191] | 6924 | _ACEOF
|
---|
[3745] | 6925 |
|
---|
[10191] | 6926 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[3745] | 6927 | ac_cs_version="\\
|
---|
| 6928 | config.status
|
---|
[10191] | 6929 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
[3745] | 6930 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
| 6931 |
|
---|
[10191] | 6932 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[3745] | 6933 | This config.status script is free software; the Free Software Foundation
|
---|
| 6934 | gives unlimited permission to copy, distribute and modify it."
|
---|
| 6935 | srcdir=$srcdir
|
---|
| 6936 | INSTALL="$INSTALL"
|
---|
[10191] | 6937 | _ACEOF
|
---|
[3745] | 6938 |
|
---|
[10191] | 6939 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[3745] | 6940 | # If no file are specified by the user, then we need to provide default
|
---|
| 6941 | # value. By we need to know if files were specified by the user.
|
---|
| 6942 | ac_need_defaults=:
|
---|
| 6943 | while test $# != 0
|
---|
| 6944 | do
|
---|
| 6945 | case $1 in
|
---|
| 6946 | --*=*)
|
---|
| 6947 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
| 6948 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
[10191] | 6949 | ac_shift=:
|
---|
[3745] | 6950 | ;;
|
---|
[10191] | 6951 | -*)
|
---|
| 6952 | ac_option=$1
|
---|
| 6953 | ac_optarg=$2
|
---|
| 6954 | ac_shift=shift
|
---|
| 6955 | ;;
|
---|
[3745] | 6956 | *) # This is not an option, so the user has probably given explicit
|
---|
| 6957 | # arguments.
|
---|
[10191] | 6958 | ac_option=$1
|
---|
[3745] | 6959 | ac_need_defaults=false;;
|
---|
| 6960 | esac
|
---|
| 6961 |
|
---|
[10191] | 6962 | case $ac_option in
|
---|
[3745] | 6963 | # Handling of the options.
|
---|
[10191] | 6964 | _ACEOF
|
---|
| 6965 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[3745] | 6966 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
[10191] | 6967 | ac_cs_recheck=: ;;
|
---|
[3745] | 6968 | --version | --vers* | -V )
|
---|
| 6969 | echo "$ac_cs_version"; exit 0 ;;
|
---|
| 6970 | --he | --h)
|
---|
| 6971 | # Conflict between --help and --header
|
---|
[10191] | 6972 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
[3745] | 6973 | Try \`$0 --help' for more information." >&5
|
---|
| 6974 | echo "$as_me: error: ambiguous option: $1
|
---|
| 6975 | Try \`$0 --help' for more information." >&2;}
|
---|
| 6976 | { (exit 1); exit 1; }; };;
|
---|
| 6977 | --help | --hel | -h )
|
---|
| 6978 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
| 6979 | --debug | --d* | -d )
|
---|
| 6980 | debug=: ;;
|
---|
| 6981 | --file | --fil | --fi | --f )
|
---|
[10191] | 6982 | $ac_shift
|
---|
| 6983 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
[3745] | 6984 | ac_need_defaults=false;;
|
---|
| 6985 | --header | --heade | --head | --hea )
|
---|
[10191] | 6986 | $ac_shift
|
---|
| 6987 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
[3745] | 6988 | ac_need_defaults=false;;
|
---|
[10191] | 6989 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 6990 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 6991 | ac_cs_silent=: ;;
|
---|
[3745] | 6992 |
|
---|
| 6993 | # This is an error.
|
---|
[10191] | 6994 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
[3745] | 6995 | Try \`$0 --help' for more information." >&5
|
---|
| 6996 | echo "$as_me: error: unrecognized option: $1
|
---|
| 6997 | Try \`$0 --help' for more information." >&2;}
|
---|
| 6998 | { (exit 1); exit 1; }; } ;;
|
---|
[10191] | 6999 |
|
---|
| 7000 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
| 7001 |
|
---|
[3745] | 7002 | esac
|
---|
| 7003 | shift
|
---|
| 7004 | done
|
---|
| 7005 |
|
---|
[10191] | 7006 | ac_configure_extra_args=
|
---|
[3745] | 7007 |
|
---|
[10191] | 7008 | if $ac_cs_silent; then
|
---|
| 7009 | exec 6>/dev/null
|
---|
| 7010 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
| 7011 | fi
|
---|
[3745] | 7012 |
|
---|
[10191] | 7013 | _ACEOF
|
---|
| 7014 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7015 | if \$ac_cs_recheck; then
|
---|
| 7016 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 7017 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
| 7018 | fi
|
---|
[3745] | 7019 |
|
---|
| 7020 | _ACEOF
|
---|
| 7021 |
|
---|
[10191] | 7022 |
|
---|
| 7023 |
|
---|
| 7024 |
|
---|
| 7025 |
|
---|
| 7026 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7027 | for ac_config_target in $ac_config_targets
|
---|
| 7028 | do
|
---|
| 7029 | case "$ac_config_target" in
|
---|
| 7030 | # Handling of arguments.
|
---|
| 7031 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 7032 | "src/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/text/Makefile" ;;
|
---|
| 7033 | "src/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/images/Makefile" ;;
|
---|
| 7034 | "src/scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/scripts/Makefile" ;;
|
---|
| 7035 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
---|
| 7036 | "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
|
---|
| 7037 | "java/org/greenstone/mg/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mg/Makefile" ;;
|
---|
| 7038 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
|
---|
| 7039 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 7040 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 7041 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 7042 | { (exit 1); exit 1; }; };;
|
---|
| 7043 | esac
|
---|
| 7044 | done
|
---|
| 7045 |
|
---|
[3745] | 7046 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 7047 | # then the envvar interface is used. Set only those that are not.
|
---|
| 7048 | # We use the long form for the default assignment because of an extremely
|
---|
| 7049 | # bizarre bug on SunOS 4.1.3.
|
---|
| 7050 | if $ac_need_defaults; then
|
---|
| 7051 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 7052 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 7053 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
| 7054 | fi
|
---|
| 7055 |
|
---|
[10191] | 7056 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
| 7057 | # simply because there is no reason to put it here, and in addition,
|
---|
| 7058 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[3745] | 7059 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
| 7060 | $debug ||
|
---|
| 7061 | {
|
---|
| 7062 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
[10191] | 7063 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
[3745] | 7064 | }
|
---|
| 7065 |
|
---|
| 7066 | # Create a (secure) tmp directory for tmp files.
|
---|
[10191] | 7067 |
|
---|
[3745] | 7068 | {
|
---|
[10191] | 7069 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
[3745] | 7070 | test -n "$tmp" && test -d "$tmp"
|
---|
| 7071 | } ||
|
---|
| 7072 | {
|
---|
[10191] | 7073 | tmp=./confstat$$-$RANDOM
|
---|
[3745] | 7074 | (umask 077 && mkdir $tmp)
|
---|
| 7075 | } ||
|
---|
| 7076 | {
|
---|
[10191] | 7077 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
[3745] | 7078 | { (exit 1); exit 1; }
|
---|
| 7079 | }
|
---|
| 7080 |
|
---|
[10191] | 7081 | _ACEOF
|
---|
[3745] | 7082 |
|
---|
[10191] | 7083 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[3745] | 7084 |
|
---|
| 7085 | #
|
---|
| 7086 | # CONFIG_FILES section.
|
---|
| 7087 | #
|
---|
| 7088 |
|
---|
| 7089 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 7090 | # This happens for instance when ./config.status config.h
|
---|
| 7091 | if test -n "\$CONFIG_FILES"; then
|
---|
| 7092 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 7093 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
| 7094 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
| 7095 | s,@SHELL@,$SHELL,;t t
|
---|
[10191] | 7096 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
| 7097 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
| 7098 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
| 7099 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
| 7100 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
| 7101 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
[3745] | 7102 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
| 7103 | s,@prefix@,$prefix,;t t
|
---|
| 7104 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
| 7105 | s,@bindir@,$bindir,;t t
|
---|
| 7106 | s,@sbindir@,$sbindir,;t t
|
---|
| 7107 | s,@libexecdir@,$libexecdir,;t t
|
---|
| 7108 | s,@datadir@,$datadir,;t t
|
---|
| 7109 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
| 7110 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
| 7111 | s,@localstatedir@,$localstatedir,;t t
|
---|
| 7112 | s,@libdir@,$libdir,;t t
|
---|
| 7113 | s,@includedir@,$includedir,;t t
|
---|
| 7114 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
| 7115 | s,@infodir@,$infodir,;t t
|
---|
| 7116 | s,@mandir@,$mandir,;t t
|
---|
[10191] | 7117 | s,@build_alias@,$build_alias,;t t
|
---|
| 7118 | s,@host_alias@,$host_alias,;t t
|
---|
| 7119 | s,@target_alias@,$target_alias,;t t
|
---|
| 7120 | s,@DEFS@,$DEFS,;t t
|
---|
[3745] | 7121 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
| 7122 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
| 7123 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
| 7124 | s,@LIBS@,$LIBS,;t t
|
---|
| 7125 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
| 7126 | s,@VERSION@,$VERSION,;t t
|
---|
| 7127 | s,@CXX@,$CXX,;t t
|
---|
| 7128 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
| 7129 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
| 7130 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
| 7131 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
| 7132 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
| 7133 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
| 7134 | s,@AWK@,$AWK,;t t
|
---|
| 7135 | s,@YACC@,$YACC,;t t
|
---|
| 7136 | s,@CC@,$CC,;t t
|
---|
| 7137 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
| 7138 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
| 7139 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
| 7140 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
| 7141 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
| 7142 | s,@LN_S@,$LN_S,;t t
|
---|
| 7143 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
| 7144 | s,@RANLIB@,$RANLIB,;t t
|
---|
| 7145 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
| 7146 | s,@CPP@,$CPP,;t t
|
---|
[10191] | 7147 | s,@EGREP@,$EGREP,;t t
|
---|
[3745] | 7148 | s,@U@,$U,;t t
|
---|
| 7149 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
| 7150 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
| 7151 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
[10191] | 7152 | s,@JNIINC@,$JNIINC,;t t
|
---|
| 7153 | s,@JNISUFFIX@,$JNISUFFIX,;t t
|
---|
| 7154 | s,@JNIFLAGS@,$JNIFLAGS,;t t
|
---|
| 7155 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
[3745] | 7156 | CEOF
|
---|
| 7157 |
|
---|
[10191] | 7158 | _ACEOF
|
---|
[3745] | 7159 |
|
---|
[10191] | 7160 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[3745] | 7161 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 7162 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 7163 | ac_max_sed_lines=48
|
---|
| 7164 | ac_sed_frag=1 # Number of current file.
|
---|
| 7165 | ac_beg=1 # First line for current file.
|
---|
| 7166 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
| 7167 | ac_more_lines=:
|
---|
| 7168 | ac_sed_cmds=
|
---|
| 7169 | while $ac_more_lines; do
|
---|
| 7170 | if test $ac_beg -gt 1; then
|
---|
| 7171 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 7172 | else
|
---|
| 7173 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 7174 | fi
|
---|
| 7175 | if test ! -s $tmp/subs.frag; then
|
---|
| 7176 | ac_more_lines=false
|
---|
| 7177 | else
|
---|
| 7178 | # The purpose of the label and of the branching condition is to
|
---|
| 7179 | # speed up the sed processing (if there are no `@' at all, there
|
---|
| 7180 | # is no need to browse any of the substitutions).
|
---|
| 7181 | # These are the two extra sed commands mentioned above.
|
---|
| 7182 | (echo ':t
|
---|
| 7183 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
| 7184 | if test -z "$ac_sed_cmds"; then
|
---|
[10191] | 7185 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
[3745] | 7186 | else
|
---|
[10191] | 7187 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
[3745] | 7188 | fi
|
---|
| 7189 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
| 7190 | ac_beg=$ac_end
|
---|
| 7191 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
| 7192 | fi
|
---|
| 7193 | done
|
---|
| 7194 | if test -z "$ac_sed_cmds"; then
|
---|
| 7195 | ac_sed_cmds=cat
|
---|
| 7196 | fi
|
---|
| 7197 | fi # test -n "$CONFIG_FILES"
|
---|
| 7198 |
|
---|
[10191] | 7199 | _ACEOF
|
---|
| 7200 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[3745] | 7201 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
| 7202 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 7203 | case $ac_file in
|
---|
| 7204 | - | *:- | *:-:* ) # input from stdin
|
---|
[10191] | 7205 | cat >$tmp/stdin
|
---|
| 7206 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 7207 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[3745] | 7208 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
[10191] | 7209 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[3745] | 7210 | * ) ac_file_in=$ac_file.in ;;
|
---|
| 7211 | esac
|
---|
| 7212 |
|
---|
| 7213 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
[10191] | 7214 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 7215 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7216 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 7217 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 7218 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 7219 | . : '\(.\)' 2>/dev/null ||
|
---|
[3745] | 7220 | echo X"$ac_file" |
|
---|
| 7221 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 7222 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 7223 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7224 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 7225 | s/.*/./; q'`
|
---|
[10191] | 7226 | { if $as_mkdir_p; then
|
---|
| 7227 | mkdir -p "$ac_dir"
|
---|
[3745] | 7228 | else
|
---|
[10191] | 7229 | as_dir="$ac_dir"
|
---|
| 7230 | as_dirs=
|
---|
| 7231 | while test ! -d "$as_dir"; do
|
---|
| 7232 | as_dirs="$as_dir $as_dirs"
|
---|
| 7233 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 7234 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7235 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 7236 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 7237 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 7238 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7239 | echo X"$as_dir" |
|
---|
| 7240 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 7241 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 7242 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7243 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 7244 | s/.*/./; q'`
|
---|
| 7245 | done
|
---|
| 7246 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 7247 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 7248 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 7249 | { (exit 1); exit 1; }; }; }
|
---|
[3745] | 7250 |
|
---|
[10191] | 7251 | ac_builddir=.
|
---|
| 7252 |
|
---|
| 7253 | if test "$ac_dir" != .; then
|
---|
| 7254 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 7255 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 7256 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 7257 | else
|
---|
| 7258 | ac_dir_suffix= ac_top_builddir=
|
---|
| 7259 | fi
|
---|
| 7260 |
|
---|
| 7261 | case $srcdir in
|
---|
| 7262 | .) # No --srcdir option. We are building in place.
|
---|
| 7263 | ac_srcdir=.
|
---|
| 7264 | if test -z "$ac_top_builddir"; then
|
---|
| 7265 | ac_top_srcdir=.
|
---|
| 7266 | else
|
---|
| 7267 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 7268 | fi ;;
|
---|
| 7269 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 7270 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 7271 | ac_top_srcdir=$srcdir ;;
|
---|
[3745] | 7272 | *) # Relative path.
|
---|
[10191] | 7273 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 7274 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 7275 | esac
|
---|
[3745] | 7276 |
|
---|
[10191] | 7277 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 7278 | # the directories may not exist.
|
---|
| 7279 | case `pwd` in
|
---|
| 7280 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 7281 | *)
|
---|
| 7282 | case "$ac_dir" in
|
---|
| 7283 | .) ac_abs_builddir=`pwd`;;
|
---|
| 7284 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 7285 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 7286 | esac;;
|
---|
| 7287 | esac
|
---|
| 7288 | case $ac_abs_builddir in
|
---|
| 7289 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 7290 | *)
|
---|
| 7291 | case ${ac_top_builddir}. in
|
---|
| 7292 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 7293 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 7294 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 7295 | esac;;
|
---|
| 7296 | esac
|
---|
| 7297 | case $ac_abs_builddir in
|
---|
| 7298 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 7299 | *)
|
---|
| 7300 | case $ac_srcdir in
|
---|
| 7301 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 7302 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 7303 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 7304 | esac;;
|
---|
| 7305 | esac
|
---|
| 7306 | case $ac_abs_builddir in
|
---|
| 7307 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 7308 | *)
|
---|
| 7309 | case $ac_top_srcdir in
|
---|
| 7310 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 7311 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 7312 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 7313 | esac;;
|
---|
| 7314 | esac
|
---|
| 7315 |
|
---|
| 7316 |
|
---|
[3745] | 7317 | case $INSTALL in
|
---|
| 7318 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[10191] | 7319 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
[3745] | 7320 | esac
|
---|
| 7321 |
|
---|
| 7322 | if test x"$ac_file" != x-; then
|
---|
[10191] | 7323 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
[3745] | 7324 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 7325 | rm -f "$ac_file"
|
---|
| 7326 | fi
|
---|
| 7327 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 7328 | # use $as_me), people would be surprised to read:
|
---|
[10191] | 7329 | # /* config.h. Generated by config.status. */
|
---|
| 7330 | if test x"$ac_file" = x-; then
|
---|
| 7331 | configure_input=
|
---|
| 7332 | else
|
---|
| 7333 | configure_input="$ac_file. "
|
---|
| 7334 | fi
|
---|
| 7335 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
| 7336 | sed 's,.*/,,'` by configure."
|
---|
[3745] | 7337 |
|
---|
| 7338 | # First look for the input files in the build tree, otherwise in the
|
---|
| 7339 | # src tree.
|
---|
| 7340 | ac_file_inputs=`IFS=:
|
---|
| 7341 | for f in $ac_file_in; do
|
---|
| 7342 | case $f in
|
---|
| 7343 | -) echo $tmp/stdin ;;
|
---|
| 7344 | [\\/$]*)
|
---|
[10191] | 7345 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 7346 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[3745] | 7347 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 7348 | { (exit 1); exit 1; }; }
|
---|
[10191] | 7349 | echo "$f";;
|
---|
[3745] | 7350 | *) # Relative
|
---|
[10191] | 7351 | if test -f "$f"; then
|
---|
| 7352 | # Build tree
|
---|
| 7353 | echo "$f"
|
---|
| 7354 | elif test -f "$srcdir/$f"; then
|
---|
| 7355 | # Source tree
|
---|
| 7356 | echo "$srcdir/$f"
|
---|
| 7357 | else
|
---|
| 7358 | # /dev/null tree
|
---|
| 7359 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[3745] | 7360 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 7361 | { (exit 1); exit 1; }; }
|
---|
[10191] | 7362 | fi;;
|
---|
[3745] | 7363 | esac
|
---|
| 7364 | done` || { (exit 1); exit 1; }
|
---|
[10191] | 7365 | _ACEOF
|
---|
| 7366 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[3745] | 7367 | sed "$ac_vpsub
|
---|
| 7368 | $extrasub
|
---|
[10191] | 7369 | _ACEOF
|
---|
| 7370 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[3745] | 7371 | :t
|
---|
| 7372 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
| 7373 | s,@configure_input@,$configure_input,;t t
|
---|
| 7374 | s,@srcdir@,$ac_srcdir,;t t
|
---|
[10191] | 7375 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
[3745] | 7376 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
[10191] | 7377 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
| 7378 | s,@builddir@,$ac_builddir,;t t
|
---|
| 7379 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
| 7380 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
| 7381 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
[3745] | 7382 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
| 7383 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
| 7384 | rm -f $tmp/stdin
|
---|
| 7385 | if test x"$ac_file" != x-; then
|
---|
| 7386 | mv $tmp/out $ac_file
|
---|
| 7387 | else
|
---|
| 7388 | cat $tmp/out
|
---|
| 7389 | rm -f $tmp/out
|
---|
| 7390 | fi
|
---|
| 7391 |
|
---|
| 7392 | done
|
---|
[10191] | 7393 | _ACEOF
|
---|
| 7394 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[3745] | 7395 |
|
---|
| 7396 | #
|
---|
| 7397 | # CONFIG_HEADER section.
|
---|
| 7398 | #
|
---|
| 7399 |
|
---|
| 7400 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 7401 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 7402 | #
|
---|
| 7403 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
[10191] | 7404 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 7405 | ac_dB='[ ].*$,\1#\2'
|
---|
[3745] | 7406 | ac_dC=' '
|
---|
| 7407 | ac_dD=',;t'
|
---|
| 7408 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
[10191] | 7409 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
[3745] | 7410 | ac_uB='$,\1#\2define\3'
|
---|
| 7411 | ac_uC=' '
|
---|
| 7412 | ac_uD=',;t'
|
---|
| 7413 |
|
---|
| 7414 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
| 7415 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 7416 | case $ac_file in
|
---|
| 7417 | - | *:- | *:-:* ) # input from stdin
|
---|
[10191] | 7418 | cat >$tmp/stdin
|
---|
| 7419 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 7420 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[3745] | 7421 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
[10191] | 7422 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[3745] | 7423 | * ) ac_file_in=$ac_file.in ;;
|
---|
| 7424 | esac
|
---|
| 7425 |
|
---|
[10191] | 7426 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
[3745] | 7427 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 7428 |
|
---|
| 7429 | # First look for the input files in the build tree, otherwise in the
|
---|
| 7430 | # src tree.
|
---|
| 7431 | ac_file_inputs=`IFS=:
|
---|
| 7432 | for f in $ac_file_in; do
|
---|
| 7433 | case $f in
|
---|
| 7434 | -) echo $tmp/stdin ;;
|
---|
| 7435 | [\\/$]*)
|
---|
[10191] | 7436 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 7437 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[3745] | 7438 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 7439 | { (exit 1); exit 1; }; }
|
---|
[10191] | 7440 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
| 7441 | echo "$f";;
|
---|
[3745] | 7442 | *) # Relative
|
---|
[10191] | 7443 | if test -f "$f"; then
|
---|
| 7444 | # Build tree
|
---|
| 7445 | echo "$f"
|
---|
| 7446 | elif test -f "$srcdir/$f"; then
|
---|
| 7447 | # Source tree
|
---|
| 7448 | echo "$srcdir/$f"
|
---|
| 7449 | else
|
---|
| 7450 | # /dev/null tree
|
---|
| 7451 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[3745] | 7452 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 7453 | { (exit 1); exit 1; }; }
|
---|
[10191] | 7454 | fi;;
|
---|
[3745] | 7455 | esac
|
---|
| 7456 | done` || { (exit 1); exit 1; }
|
---|
| 7457 | # Remove the trailing spaces.
|
---|
[10191] | 7458 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
[3745] | 7459 |
|
---|
[10191] | 7460 | _ACEOF
|
---|
[3745] | 7461 |
|
---|
| 7462 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
| 7463 | # `conftest.undefs', that substitutes the proper values into
|
---|
| 7464 | # config.h.in to produce config.h. The first handles `#define'
|
---|
| 7465 | # templates, and the second `#undef' templates.
|
---|
| 7466 | # And first: Protect against being on the right side of a sed subst in
|
---|
| 7467 | # config.status. Protect against being in an unquoted here document
|
---|
| 7468 | # in config.status.
|
---|
| 7469 | rm -f conftest.defines conftest.undefs
|
---|
| 7470 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
| 7471 | # Putting comments in sed scripts is not portable.
|
---|
| 7472 | #
|
---|
| 7473 | # `end' is used to avoid that the second main sed command (meant for
|
---|
| 7474 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
| 7475 | # See the Autoconf documentation for `clear'.
|
---|
[10191] | 7476 | cat >confdef2sed.sed <<\_ACEOF
|
---|
[3745] | 7477 | s/[\\&,]/\\&/g
|
---|
| 7478 | s,[\\$`],\\&,g
|
---|
| 7479 | t clear
|
---|
| 7480 | : clear
|
---|
[10191] | 7481 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
[3745] | 7482 | t end
|
---|
[10191] | 7483 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
[3745] | 7484 | : end
|
---|
[10191] | 7485 | _ACEOF
|
---|
[3745] | 7486 | # If some macros were called several times there might be several times
|
---|
| 7487 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
| 7488 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
| 7489 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
| 7490 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
| 7491 | rm -f confdef2sed.sed
|
---|
| 7492 |
|
---|
| 7493 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 7494 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 7495 | # on some systems where configure will not decide to define it.
|
---|
[10191] | 7496 | cat >>conftest.undefs <<\_ACEOF
|
---|
| 7497 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
| 7498 | _ACEOF
|
---|
[3745] | 7499 |
|
---|
| 7500 | # Break up conftest.defines because some shells have a limit on the size
|
---|
| 7501 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 7502 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
[10191] | 7503 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
[3745] | 7504 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
| 7505 | echo ' :' >>$CONFIG_STATUS
|
---|
| 7506 | rm -f conftest.tail
|
---|
| 7507 | while grep . conftest.defines >/dev/null
|
---|
| 7508 | do
|
---|
| 7509 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
| 7510 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 7511 | # Speed up: don't consider the non `#define' lines.
|
---|
[10191] | 7512 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
[3745] | 7513 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 7514 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 7515 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 7516 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
| 7517 | echo 'CEOF
|
---|
| 7518 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
| 7519 | rm -f $tmp/in
|
---|
| 7520 | mv $tmp/out $tmp/in
|
---|
| 7521 | ' >>$CONFIG_STATUS
|
---|
| 7522 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
| 7523 | rm -f conftest.defines
|
---|
| 7524 | mv conftest.tail conftest.defines
|
---|
| 7525 | done
|
---|
| 7526 | rm -f conftest.defines
|
---|
[10191] | 7527 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
[3745] | 7528 | echo >>$CONFIG_STATUS
|
---|
| 7529 |
|
---|
| 7530 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
| 7531 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 7532 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
| 7533 | rm -f conftest.tail
|
---|
| 7534 | while grep . conftest.undefs >/dev/null
|
---|
| 7535 | do
|
---|
| 7536 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
| 7537 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 7538 | # Speed up: don't consider the non `#undef'
|
---|
[10191] | 7539 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
[3745] | 7540 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 7541 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 7542 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 7543 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
| 7544 | echo 'CEOF
|
---|
| 7545 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
| 7546 | rm -f $tmp/in
|
---|
| 7547 | mv $tmp/out $tmp/in
|
---|
| 7548 | ' >>$CONFIG_STATUS
|
---|
| 7549 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
| 7550 | rm -f conftest.undefs
|
---|
| 7551 | mv conftest.tail conftest.undefs
|
---|
| 7552 | done
|
---|
| 7553 | rm -f conftest.undefs
|
---|
| 7554 |
|
---|
[10191] | 7555 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[3745] | 7556 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 7557 | # use $as_me), people would be surprised to read:
|
---|
[10191] | 7558 | # /* config.h. Generated by config.status. */
|
---|
[3745] | 7559 | if test x"$ac_file" = x-; then
|
---|
[10191] | 7560 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
[3745] | 7561 | else
|
---|
[10191] | 7562 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
[3745] | 7563 | fi
|
---|
| 7564 | cat $tmp/in >>$tmp/config.h
|
---|
| 7565 | rm -f $tmp/in
|
---|
| 7566 | if test x"$ac_file" != x-; then
|
---|
[10191] | 7567 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
| 7568 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
[3745] | 7569 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
| 7570 | else
|
---|
[10191] | 7571 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 7572 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7573 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 7574 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 7575 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 7576 | . : '\(.\)' 2>/dev/null ||
|
---|
[3745] | 7577 | echo X"$ac_file" |
|
---|
| 7578 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 7579 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 7580 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7581 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 7582 | s/.*/./; q'`
|
---|
[10191] | 7583 | { if $as_mkdir_p; then
|
---|
| 7584 | mkdir -p "$ac_dir"
|
---|
| 7585 | else
|
---|
| 7586 | as_dir="$ac_dir"
|
---|
| 7587 | as_dirs=
|
---|
| 7588 | while test ! -d "$as_dir"; do
|
---|
| 7589 | as_dirs="$as_dir $as_dirs"
|
---|
| 7590 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 7591 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7592 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 7593 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 7594 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 7595 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7596 | echo X"$as_dir" |
|
---|
| 7597 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 7598 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 7599 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7600 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 7601 | s/.*/./; q'`
|
---|
| 7602 | done
|
---|
| 7603 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 7604 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 7605 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 7606 | { (exit 1); exit 1; }; }; }
|
---|
[3745] | 7607 |
|
---|
| 7608 | rm -f $ac_file
|
---|
| 7609 | mv $tmp/config.h $ac_file
|
---|
| 7610 | fi
|
---|
| 7611 | else
|
---|
| 7612 | cat $tmp/config.h
|
---|
| 7613 | rm -f $tmp/config.h
|
---|
| 7614 | fi
|
---|
| 7615 | done
|
---|
[10191] | 7616 | _ACEOF
|
---|
| 7617 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[3745] | 7618 |
|
---|
| 7619 | #
|
---|
| 7620 | # CONFIG_COMMANDS section.
|
---|
| 7621 | #
|
---|
| 7622 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
|
---|
| 7623 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
|
---|
| 7624 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
[10191] | 7625 | ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
|
---|
| 7626 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7627 | X"$ac_dest" : 'X\(//\)[^/]' \| \
|
---|
| 7628 | X"$ac_dest" : 'X\(//\)$' \| \
|
---|
| 7629 | X"$ac_dest" : 'X\(/\)' \| \
|
---|
| 7630 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7631 | echo X"$ac_dest" |
|
---|
| 7632 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 7633 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 7634 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7635 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 7636 | s/.*/./; q'`
|
---|
| 7637 | { if $as_mkdir_p; then
|
---|
| 7638 | mkdir -p "$ac_dir"
|
---|
| 7639 | else
|
---|
| 7640 | as_dir="$ac_dir"
|
---|
| 7641 | as_dirs=
|
---|
| 7642 | while test ! -d "$as_dir"; do
|
---|
| 7643 | as_dirs="$as_dir $as_dirs"
|
---|
| 7644 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 7645 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7646 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 7647 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 7648 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 7649 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7650 | echo X"$as_dir" |
|
---|
| 7651 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 7652 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 7653 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7654 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 7655 | s/.*/./; q'`
|
---|
| 7656 | done
|
---|
| 7657 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 7658 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 7659 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 7660 | { (exit 1); exit 1; }; }; }
|
---|
[3745] | 7661 |
|
---|
[10191] | 7662 | ac_builddir=.
|
---|
| 7663 |
|
---|
| 7664 | if test "$ac_dir" != .; then
|
---|
| 7665 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 7666 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 7667 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 7668 | else
|
---|
| 7669 | ac_dir_suffix= ac_top_builddir=
|
---|
| 7670 | fi
|
---|
| 7671 |
|
---|
| 7672 | case $srcdir in
|
---|
| 7673 | .) # No --srcdir option. We are building in place.
|
---|
| 7674 | ac_srcdir=.
|
---|
| 7675 | if test -z "$ac_top_builddir"; then
|
---|
| 7676 | ac_top_srcdir=.
|
---|
| 7677 | else
|
---|
| 7678 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 7679 | fi ;;
|
---|
| 7680 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 7681 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 7682 | ac_top_srcdir=$srcdir ;;
|
---|
| 7683 | *) # Relative path.
|
---|
| 7684 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 7685 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 7686 | esac
|
---|
| 7687 |
|
---|
| 7688 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 7689 | # the directories may not exist.
|
---|
| 7690 | case `pwd` in
|
---|
| 7691 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 7692 | *)
|
---|
| 7693 | case "$ac_dir" in
|
---|
| 7694 | .) ac_abs_builddir=`pwd`;;
|
---|
| 7695 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 7696 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 7697 | esac;;
|
---|
| 7698 | esac
|
---|
| 7699 | case $ac_abs_builddir in
|
---|
| 7700 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 7701 | *)
|
---|
| 7702 | case ${ac_top_builddir}. in
|
---|
| 7703 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 7704 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 7705 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 7706 | esac;;
|
---|
| 7707 | esac
|
---|
| 7708 | case $ac_abs_builddir in
|
---|
| 7709 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 7710 | *)
|
---|
| 7711 | case $ac_srcdir in
|
---|
| 7712 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 7713 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 7714 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 7715 | esac;;
|
---|
| 7716 | esac
|
---|
| 7717 | case $ac_abs_builddir in
|
---|
| 7718 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 7719 | *)
|
---|
| 7720 | case $ac_top_srcdir in
|
---|
| 7721 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 7722 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 7723 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 7724 | esac;;
|
---|
| 7725 | esac
|
---|
| 7726 |
|
---|
| 7727 |
|
---|
| 7728 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
|
---|
| 7729 | echo "$as_me: executing $ac_dest commands" >&6;}
|
---|
[3745] | 7730 | case $ac_dest in
|
---|
| 7731 | default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
|
---|
| 7732 | esac
|
---|
| 7733 | done
|
---|
[10191] | 7734 | _ACEOF
|
---|
[3745] | 7735 |
|
---|
[10191] | 7736 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[3745] | 7737 |
|
---|
| 7738 | { (exit 0); exit 0; }
|
---|
[10191] | 7739 | _ACEOF
|
---|
[3745] | 7740 | chmod +x $CONFIG_STATUS
|
---|
| 7741 | ac_clean_files=$ac_clean_files_save
|
---|
| 7742 |
|
---|
[10191] | 7743 |
|
---|
[3745] | 7744 | # configure is writing to config.log, and then calls config.status.
|
---|
| 7745 | # config.status does its own redirection, appending to config.log.
|
---|
| 7746 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 7747 | # by configure, so config.status won't be able to write to it; its
|
---|
| 7748 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 7749 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 7750 | # appended to by config.status. When coming back to configure, we
|
---|
| 7751 | # need to make the FD available again.
|
---|
| 7752 | if test "$no_create" != yes; then
|
---|
| 7753 | ac_cs_success=:
|
---|
[10191] | 7754 | ac_config_status_args=
|
---|
| 7755 | test "$silent" = yes &&
|
---|
| 7756 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
[3745] | 7757 | exec 5>/dev/null
|
---|
[10191] | 7758 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
[3745] | 7759 | exec 5>>config.log
|
---|
| 7760 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 7761 | # would make configure fail if this is the last instruction.
|
---|
| 7762 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
| 7763 | fi
|
---|
| 7764 |
|
---|