[3365] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[10192] | 3 | # Generated by GNU Autoconf 2.59.
|
---|
[3365] | 4 | #
|
---|
[10192] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[3365] | 6 | # This configure script is free software; the Free Software Foundation
|
---|
| 7 | # gives unlimited permission to copy, distribute and modify it.
|
---|
[10192] | 8 | ## --------------------- ##
|
---|
| 9 | ## M4sh Initialization. ##
|
---|
| 10 | ## --------------------- ##
|
---|
[3365] | 11 |
|
---|
[8063] | 12 | # Be Bourne compatible
|
---|
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 14 | emulate sh
|
---|
| 15 | NULLCMD=:
|
---|
[10192] | 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+"$@"}'='"$@"'
|
---|
[8063] | 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 20 | set -o posix
|
---|
| 21 | fi
|
---|
[10192] | 22 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[8063] | 23 |
|
---|
[10192] | 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 |
|
---|
[8063] | 65 | # Name of the executable.
|
---|
[10192] | 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'`
|
---|
[8063] | 76 |
|
---|
[10192] | 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 |
|
---|
[8063] | 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 |
|
---|
[10192] | 218 | if mkdir -p . 2>/dev/null; then
|
---|
| 219 | as_mkdir_p=:
|
---|
[8063] | 220 | else
|
---|
[10192] | 221 | test -d ./-p && rmdir ./-p
|
---|
| 222 | as_mkdir_p=false
|
---|
[8063] | 223 | fi
|
---|
| 224 |
|
---|
[10192] | 225 | as_executable_p="test -f"
|
---|
[8063] | 226 |
|
---|
[10192] | 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 |
|
---|
[8063] | 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.
|
---|
[10192] | 241 | $as_unset CDPATH
|
---|
[8063] | 242 |
|
---|
[10192] | 243 |
|
---|
[8063] | 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 | #
|
---|
[3365] | 254 | ac_default_prefix=/usr/local
|
---|
[10192] | 255 | ac_config_libobj_dir=.
|
---|
[8063] | 256 | cross_compiling=no
|
---|
| 257 | subdirs=
|
---|
[10192] | 258 | MFLAGS=
|
---|
| 259 | MAKEFLAGS=
|
---|
[8063] | 260 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
[3365] | 261 |
|
---|
[8063] | 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 |
|
---|
[10192] | 267 | # Identity of this package.
|
---|
| 268 | PACKAGE_NAME=
|
---|
| 269 | PACKAGE_TARNAME=
|
---|
| 270 | PACKAGE_VERSION=
|
---|
| 271 | PACKAGE_STRING=
|
---|
| 272 | PACKAGE_BUGREPORT=
|
---|
[8063] | 273 |
|
---|
| 274 | ac_unique_file="text/MGQuery.cpp"
|
---|
| 275 | # Factoring default headers for most tests.
|
---|
| 276 | ac_includes_default="\
|
---|
| 277 | #include <stdio.h>
|
---|
[10192] | 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
|
---|
[8063] | 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
|
---|
[10192] | 298 | #if HAVE_STRINGS_H
|
---|
| 299 | # include <strings.h>
|
---|
| 300 | #endif
|
---|
[8063] | 301 | #if HAVE_INTTYPES_H
|
---|
| 302 | # include <inttypes.h>
|
---|
[10192] | 303 | #else
|
---|
| 304 | # if HAVE_STDINT_H
|
---|
| 305 | # include <stdint.h>
|
---|
| 306 | # endif
|
---|
[8063] | 307 | #endif
|
---|
| 308 | #if HAVE_UNISTD_H
|
---|
| 309 | # include <unistd.h>
|
---|
| 310 | #endif"
|
---|
| 311 |
|
---|
[13625] | 312 | ac_subdirs_all="$ac_subdirs_all packages/unac"
|
---|
| 313 | 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 ENABLE_ACCENTFOLD 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 subdirs LTLIBOBJS'
|
---|
[10192] | 314 | ac_subst_files=''
|
---|
| 315 |
|
---|
[3365] | 316 | # Initialize some variables set by options.
|
---|
[8063] | 317 | ac_init_help=
|
---|
| 318 | ac_init_version=false
|
---|
[3365] | 319 | # The variables have the same names as the options, with
|
---|
| 320 | # dashes changed to underlines.
|
---|
[8063] | 321 | cache_file=/dev/null
|
---|
[3365] | 322 | exec_prefix=NONE
|
---|
| 323 | no_create=
|
---|
| 324 | no_recursion=
|
---|
| 325 | prefix=NONE
|
---|
| 326 | program_prefix=NONE
|
---|
| 327 | program_suffix=NONE
|
---|
| 328 | program_transform_name=s,x,x,
|
---|
| 329 | silent=
|
---|
| 330 | site=
|
---|
| 331 | srcdir=
|
---|
| 332 | verbose=
|
---|
| 333 | x_includes=NONE
|
---|
| 334 | x_libraries=NONE
|
---|
[8063] | 335 |
|
---|
| 336 | # Installation directory options.
|
---|
| 337 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 338 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 339 | # by default will actually change.
|
---|
| 340 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
[3365] | 341 | bindir='${exec_prefix}/bin'
|
---|
| 342 | sbindir='${exec_prefix}/sbin'
|
---|
| 343 | libexecdir='${exec_prefix}/libexec'
|
---|
| 344 | datadir='${prefix}/share'
|
---|
| 345 | sysconfdir='${prefix}/etc'
|
---|
| 346 | sharedstatedir='${prefix}/com'
|
---|
| 347 | localstatedir='${prefix}/var'
|
---|
| 348 | libdir='${exec_prefix}/lib'
|
---|
| 349 | includedir='${prefix}/include'
|
---|
| 350 | oldincludedir='/usr/include'
|
---|
| 351 | infodir='${prefix}/info'
|
---|
| 352 | mandir='${prefix}/man'
|
---|
| 353 |
|
---|
| 354 | ac_prev=
|
---|
| 355 | for ac_option
|
---|
| 356 | do
|
---|
| 357 | # If the previous option needs an argument, assign it.
|
---|
| 358 | if test -n "$ac_prev"; then
|
---|
| 359 | eval "$ac_prev=\$ac_option"
|
---|
| 360 | ac_prev=
|
---|
| 361 | continue
|
---|
| 362 | fi
|
---|
| 363 |
|
---|
[8063] | 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
[3365] | 365 |
|
---|
| 366 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 367 |
|
---|
[8063] | 368 | case $ac_option in
|
---|
[3365] | 369 |
|
---|
| 370 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 371 | ac_prev=bindir ;;
|
---|
| 372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
[8063] | 373 | bindir=$ac_optarg ;;
|
---|
[3365] | 374 |
|
---|
| 375 | -build | --build | --buil | --bui | --bu)
|
---|
[8063] | 376 | ac_prev=build_alias ;;
|
---|
[3365] | 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
[8063] | 378 | build_alias=$ac_optarg ;;
|
---|
[3365] | 379 |
|
---|
| 380 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 381 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 382 | ac_prev=cache_file ;;
|
---|
| 383 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 384 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
[8063] | 385 | cache_file=$ac_optarg ;;
|
---|
[3365] | 386 |
|
---|
[8063] | 387 | --config-cache | -C)
|
---|
| 388 | cache_file=config.cache ;;
|
---|
| 389 |
|
---|
[3365] | 390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
| 391 | ac_prev=datadir ;;
|
---|
| 392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
| 393 | | --da=*)
|
---|
[8063] | 394 | datadir=$ac_optarg ;;
|
---|
[3365] | 395 |
|
---|
| 396 | -disable-* | --disable-*)
|
---|
[8063] | 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
[3365] | 398 | # Reject names that are not valid shell variable names.
|
---|
[10192] | 399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[8063] | 400 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 401 | { (exit 1); exit 1; }; }
|
---|
| 402 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 403 | eval "enable_$ac_feature=no" ;;
|
---|
[3365] | 404 |
|
---|
| 405 | -enable-* | --enable-*)
|
---|
[8063] | 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
[3365] | 407 | # Reject names that are not valid shell variable names.
|
---|
[10192] | 408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[8063] | 409 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 410 | { (exit 1); exit 1; }; }
|
---|
| 411 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 412 | case $ac_option in
|
---|
| 413 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
[3365] | 414 | *) ac_optarg=yes ;;
|
---|
| 415 | esac
|
---|
[8063] | 416 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
[3365] | 417 |
|
---|
| 418 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 419 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 420 | | --exec | --exe | --ex)
|
---|
| 421 | ac_prev=exec_prefix ;;
|
---|
| 422 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 423 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 424 | | --exec=* | --exe=* | --ex=*)
|
---|
[8063] | 425 | exec_prefix=$ac_optarg ;;
|
---|
[3365] | 426 |
|
---|
| 427 | -gas | --gas | --ga | --g)
|
---|
| 428 | # Obsolete; use --with-gas.
|
---|
| 429 | with_gas=yes ;;
|
---|
| 430 |
|
---|
[8063] | 431 | -help | --help | --hel | --he | -h)
|
---|
| 432 | ac_init_help=long ;;
|
---|
| 433 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 434 | ac_init_help=recursive ;;
|
---|
| 435 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 436 | ac_init_help=short ;;
|
---|
[3365] | 437 |
|
---|
| 438 | -host | --host | --hos | --ho)
|
---|
[8063] | 439 | ac_prev=host_alias ;;
|
---|
[3365] | 440 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
[8063] | 441 | host_alias=$ac_optarg ;;
|
---|
[3365] | 442 |
|
---|
| 443 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 444 | | --includ | --inclu | --incl | --inc)
|
---|
| 445 | ac_prev=includedir ;;
|
---|
| 446 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 447 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
[8063] | 448 | includedir=$ac_optarg ;;
|
---|
[3365] | 449 |
|
---|
| 450 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 451 | ac_prev=infodir ;;
|
---|
| 452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
[8063] | 453 | infodir=$ac_optarg ;;
|
---|
[3365] | 454 |
|
---|
| 455 | -libdir | --libdir | --libdi | --libd)
|
---|
| 456 | ac_prev=libdir ;;
|
---|
| 457 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
[8063] | 458 | libdir=$ac_optarg ;;
|
---|
[3365] | 459 |
|
---|
| 460 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 461 | | --libexe | --libex | --libe)
|
---|
| 462 | ac_prev=libexecdir ;;
|
---|
| 463 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 464 | | --libexe=* | --libex=* | --libe=*)
|
---|
[8063] | 465 | libexecdir=$ac_optarg ;;
|
---|
[3365] | 466 |
|
---|
| 467 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
| 468 | | --localstate | --localstat | --localsta | --localst \
|
---|
| 469 | | --locals | --local | --loca | --loc | --lo)
|
---|
| 470 | ac_prev=localstatedir ;;
|
---|
| 471 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
| 472 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
| 473 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
[8063] | 474 | localstatedir=$ac_optarg ;;
|
---|
[3365] | 475 |
|
---|
| 476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 477 | ac_prev=mandir ;;
|
---|
| 478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
[8063] | 479 | mandir=$ac_optarg ;;
|
---|
[3365] | 480 |
|
---|
| 481 | -nfp | --nfp | --nf)
|
---|
| 482 | # Obsolete; use --without-fp.
|
---|
| 483 | with_fp=no ;;
|
---|
| 484 |
|
---|
| 485 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
[10192] | 486 | | --no-cr | --no-c | -n)
|
---|
[3365] | 487 | no_create=yes ;;
|
---|
| 488 |
|
---|
| 489 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 490 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 491 | no_recursion=yes ;;
|
---|
| 492 |
|
---|
| 493 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 494 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 495 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 496 | ac_prev=oldincludedir ;;
|
---|
| 497 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 498 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 499 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
[8063] | 500 | oldincludedir=$ac_optarg ;;
|
---|
[3365] | 501 |
|
---|
| 502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 503 | ac_prev=prefix ;;
|
---|
| 504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
[8063] | 505 | prefix=$ac_optarg ;;
|
---|
[3365] | 506 |
|
---|
| 507 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 508 | | --program-pre | --program-pr | --program-p)
|
---|
| 509 | ac_prev=program_prefix ;;
|
---|
| 510 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 511 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
[8063] | 512 | program_prefix=$ac_optarg ;;
|
---|
[3365] | 513 |
|
---|
| 514 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 515 | | --program-suf | --program-su | --program-s)
|
---|
| 516 | ac_prev=program_suffix ;;
|
---|
| 517 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 518 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
[8063] | 519 | program_suffix=$ac_optarg ;;
|
---|
[3365] | 520 |
|
---|
| 521 | -program-transform-name | --program-transform-name \
|
---|
| 522 | | --program-transform-nam | --program-transform-na \
|
---|
| 523 | | --program-transform-n | --program-transform- \
|
---|
| 524 | | --program-transform | --program-transfor \
|
---|
| 525 | | --program-transfo | --program-transf \
|
---|
| 526 | | --program-trans | --program-tran \
|
---|
| 527 | | --progr-tra | --program-tr | --program-t)
|
---|
| 528 | ac_prev=program_transform_name ;;
|
---|
| 529 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 530 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 531 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 532 | | --program-transform=* | --program-transfor=* \
|
---|
| 533 | | --program-transfo=* | --program-transf=* \
|
---|
| 534 | | --program-trans=* | --program-tran=* \
|
---|
| 535 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
[8063] | 536 | program_transform_name=$ac_optarg ;;
|
---|
[3365] | 537 |
|
---|
| 538 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 539 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 540 | silent=yes ;;
|
---|
| 541 |
|
---|
| 542 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 543 | ac_prev=sbindir ;;
|
---|
| 544 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 545 | | --sbi=* | --sb=*)
|
---|
[8063] | 546 | sbindir=$ac_optarg ;;
|
---|
[3365] | 547 |
|
---|
| 548 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 549 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 550 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 551 | | --sha | --sh)
|
---|
| 552 | ac_prev=sharedstatedir ;;
|
---|
| 553 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 554 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 555 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 556 | | --sha=* | --sh=*)
|
---|
[8063] | 557 | sharedstatedir=$ac_optarg ;;
|
---|
[3365] | 558 |
|
---|
| 559 | -site | --site | --sit)
|
---|
| 560 | ac_prev=site ;;
|
---|
| 561 | -site=* | --site=* | --sit=*)
|
---|
[8063] | 562 | site=$ac_optarg ;;
|
---|
[3365] | 563 |
|
---|
| 564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 565 | ac_prev=srcdir ;;
|
---|
| 566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
[8063] | 567 | srcdir=$ac_optarg ;;
|
---|
[3365] | 568 |
|
---|
| 569 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 570 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 571 | ac_prev=sysconfdir ;;
|
---|
| 572 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 573 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
[8063] | 574 | sysconfdir=$ac_optarg ;;
|
---|
[3365] | 575 |
|
---|
| 576 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
[8063] | 577 | ac_prev=target_alias ;;
|
---|
[3365] | 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
[8063] | 579 | target_alias=$ac_optarg ;;
|
---|
[3365] | 580 |
|
---|
| 581 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 582 | verbose=yes ;;
|
---|
| 583 |
|
---|
[8063] | 584 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 585 | ac_init_version=: ;;
|
---|
[3365] | 586 |
|
---|
| 587 | -with-* | --with-*)
|
---|
[8063] | 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
[3365] | 589 | # Reject names that are not valid shell variable names.
|
---|
[10192] | 590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[8063] | 591 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 592 | { (exit 1); exit 1; }; }
|
---|
[3365] | 593 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
[8063] | 594 | case $ac_option in
|
---|
| 595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
[3365] | 596 | *) ac_optarg=yes ;;
|
---|
| 597 | esac
|
---|
[8063] | 598 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
[3365] | 599 |
|
---|
| 600 | -without-* | --without-*)
|
---|
[8063] | 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
[3365] | 602 | # Reject names that are not valid shell variable names.
|
---|
[10192] | 603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
[8063] | 604 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 605 | { (exit 1); exit 1; }; }
|
---|
| 606 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
| 607 | eval "with_$ac_package=no" ;;
|
---|
[3365] | 608 |
|
---|
| 609 | --x)
|
---|
| 610 | # Obsolete; use --with-x.
|
---|
| 611 | with_x=yes ;;
|
---|
| 612 |
|
---|
| 613 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 614 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 615 | ac_prev=x_includes ;;
|
---|
| 616 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 617 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
[8063] | 618 | x_includes=$ac_optarg ;;
|
---|
[3365] | 619 |
|
---|
| 620 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 621 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 622 | ac_prev=x_libraries ;;
|
---|
| 623 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 624 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
[8063] | 625 | x_libraries=$ac_optarg ;;
|
---|
[3365] | 626 |
|
---|
[8063] | 627 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
| 628 | Try \`$0 --help' for more information." >&2
|
---|
| 629 | { (exit 1); exit 1; }; }
|
---|
[3365] | 630 | ;;
|
---|
| 631 |
|
---|
[8063] | 632 | *=*)
|
---|
| 633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 634 | # Reject names that are not valid shell variable names.
|
---|
[10192] | 635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
[8063] | 636 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
| 637 | { (exit 1); exit 1; }; }
|
---|
| 638 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
| 639 | eval "$ac_envvar='$ac_optarg'"
|
---|
| 640 | export $ac_envvar ;;
|
---|
| 641 |
|
---|
[3365] | 642 | *)
|
---|
[8063] | 643 | # FIXME: should be removed in autoconf 3.0.
|
---|
| 644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
[10192] | 645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
[8063] | 646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
| 647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
[3365] | 648 | ;;
|
---|
| 649 |
|
---|
| 650 | esac
|
---|
| 651 | done
|
---|
| 652 |
|
---|
| 653 | if test -n "$ac_prev"; then
|
---|
[8063] | 654 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
| 655 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
| 656 | { (exit 1); exit 1; }; }
|
---|
[3365] | 657 | fi
|
---|
| 658 |
|
---|
[8063] | 659 | # Be sure to have absolute paths.
|
---|
[10192] | 660 | for ac_var in exec_prefix prefix
|
---|
| 661 | do
|
---|
| 662 | eval ac_val=$`echo $ac_var`
|
---|
| 663 | case $ac_val in
|
---|
| 664 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
| 665 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 666 | { (exit 1); exit 1; }; };;
|
---|
| 667 | esac
|
---|
| 668 | done
|
---|
| 669 |
|
---|
| 670 | # Be sure to have absolute paths.
|
---|
[8063] | 671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
[10192] | 672 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
[3365] | 673 | do
|
---|
[8063] | 674 | eval ac_val=$`echo $ac_var`
|
---|
| 675 | case $ac_val in
|
---|
| 676 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
[10192] | 677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
[8063] | 678 | { (exit 1); exit 1; }; };;
|
---|
[3365] | 679 | esac
|
---|
| 680 | done
|
---|
| 681 |
|
---|
[8063] | 682 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 683 | # used to hold the argument of --host etc.
|
---|
[10192] | 684 | # FIXME: To remove some day.
|
---|
[8063] | 685 | build=$build_alias
|
---|
| 686 | host=$host_alias
|
---|
| 687 | target=$target_alias
|
---|
[3365] | 688 |
|
---|
[10192] | 689 | # FIXME: To remove some day.
|
---|
[8063] | 690 | if test "x$host_alias" != x; then
|
---|
| 691 | if test "x$build_alias" = x; then
|
---|
| 692 | cross_compiling=maybe
|
---|
| 693 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
| 694 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
| 695 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 696 | cross_compiling=yes
|
---|
| 697 | fi
|
---|
| 698 | fi
|
---|
[3365] | 699 |
|
---|
[8063] | 700 | ac_tool_prefix=
|
---|
| 701 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
[3365] | 702 |
|
---|
[8063] | 703 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 704 |
|
---|
[10192] | 705 |
|
---|
[3365] | 706 | # Find the source files, if location was not specified.
|
---|
| 707 | if test -z "$srcdir"; then
|
---|
| 708 | ac_srcdir_defaulted=yes
|
---|
| 709 | # Try the directory containing this script, then its parent.
|
---|
[10192] | 710 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
| 711 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 712 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
| 713 | X"$0" : 'X\(//\)$' \| \
|
---|
| 714 | X"$0" : 'X\(/\)' \| \
|
---|
| 715 | . : '\(.\)' 2>/dev/null ||
|
---|
| 716 | echo X"$0" |
|
---|
| 717 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 718 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 719 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 720 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 721 | s/.*/./; q'`
|
---|
[3365] | 722 | srcdir=$ac_confdir
|
---|
| 723 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 724 | srcdir=..
|
---|
| 725 | fi
|
---|
| 726 | else
|
---|
| 727 | ac_srcdir_defaulted=no
|
---|
| 728 | fi
|
---|
| 729 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 730 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
[10192] | 731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
[8063] | 732 | { (exit 1); exit 1; }; }
|
---|
[3365] | 733 | else
|
---|
[10192] | 734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
[8063] | 735 | { (exit 1); exit 1; }; }
|
---|
[3365] | 736 | fi
|
---|
| 737 | fi
|
---|
[10192] | 738 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
---|
| 739 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
---|
| 740 | { (exit 1); exit 1; }; }
|
---|
[8063] | 741 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
| 742 | ac_env_build_alias_set=${build_alias+set}
|
---|
| 743 | ac_env_build_alias_value=$build_alias
|
---|
| 744 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
| 745 | ac_cv_env_build_alias_value=$build_alias
|
---|
| 746 | ac_env_host_alias_set=${host_alias+set}
|
---|
| 747 | ac_env_host_alias_value=$host_alias
|
---|
| 748 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
| 749 | ac_cv_env_host_alias_value=$host_alias
|
---|
| 750 | ac_env_target_alias_set=${target_alias+set}
|
---|
| 751 | ac_env_target_alias_value=$target_alias
|
---|
| 752 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
| 753 | ac_cv_env_target_alias_value=$target_alias
|
---|
| 754 | ac_env_CXX_set=${CXX+set}
|
---|
| 755 | ac_env_CXX_value=$CXX
|
---|
| 756 | ac_cv_env_CXX_set=${CXX+set}
|
---|
| 757 | ac_cv_env_CXX_value=$CXX
|
---|
| 758 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 759 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 760 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 761 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 762 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 763 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
| 764 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 765 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
| 766 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 767 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 768 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 769 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 770 | ac_env_CC_set=${CC+set}
|
---|
| 771 | ac_env_CC_value=$CC
|
---|
| 772 | ac_cv_env_CC_set=${CC+set}
|
---|
| 773 | ac_cv_env_CC_value=$CC
|
---|
| 774 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 775 | ac_env_CFLAGS_value=$CFLAGS
|
---|
| 776 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 777 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
| 778 | ac_env_CPP_set=${CPP+set}
|
---|
| 779 | ac_env_CPP_value=$CPP
|
---|
| 780 | ac_cv_env_CPP_set=${CPP+set}
|
---|
| 781 | ac_cv_env_CPP_value=$CPP
|
---|
[3365] | 782 |
|
---|
[8063] | 783 | #
|
---|
| 784 | # Report the --help message.
|
---|
| 785 | #
|
---|
| 786 | if test "$ac_init_help" = "long"; then
|
---|
| 787 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 788 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
[10192] | 789 | cat <<_ACEOF
|
---|
[8063] | 790 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
| 791 |
|
---|
| 792 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 793 |
|
---|
| 794 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 795 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 796 |
|
---|
| 797 | Defaults for the options are specified in brackets.
|
---|
| 798 |
|
---|
| 799 | Configuration:
|
---|
| 800 | -h, --help display this help and exit
|
---|
| 801 | --help=short display options specific to this package
|
---|
| 802 | --help=recursive display the short help of all the included packages
|
---|
| 803 | -V, --version display version information and exit
|
---|
| 804 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
| 805 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 806 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 807 | -n, --no-create do not create output files
|
---|
| 808 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 809 |
|
---|
[10192] | 810 | _ACEOF
|
---|
[8063] | 811 |
|
---|
[10192] | 812 | cat <<_ACEOF
|
---|
[8063] | 813 | Installation directories:
|
---|
| 814 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
[10192] | 815 | [$ac_default_prefix]
|
---|
[8063] | 816 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
[10192] | 817 | [PREFIX]
|
---|
[8063] | 818 |
|
---|
| 819 | By default, \`make install' will install all the files in
|
---|
| 820 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 821 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 822 | for instance \`--prefix=\$HOME'.
|
---|
| 823 |
|
---|
| 824 | For better control, use the options below.
|
---|
| 825 |
|
---|
| 826 | Fine tuning of the installation directories:
|
---|
| 827 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 828 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 829 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
| 830 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
| 831 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 832 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 833 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 834 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 835 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 836 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
| 837 | --infodir=DIR info documentation [PREFIX/info]
|
---|
| 838 | --mandir=DIR man documentation [PREFIX/man]
|
---|
[10192] | 839 | _ACEOF
|
---|
[8063] | 840 |
|
---|
[10192] | 841 | cat <<\_ACEOF
|
---|
[8063] | 842 |
|
---|
| 843 | Program names:
|
---|
| 844 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
| 845 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
| 846 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
[10192] | 847 | _ACEOF
|
---|
[8063] | 848 | fi
|
---|
| 849 |
|
---|
| 850 | if test -n "$ac_init_help"; then
|
---|
| 851 |
|
---|
[10192] | 852 | cat <<\_ACEOF
|
---|
[8063] | 853 |
|
---|
| 854 | Optional Features:
|
---|
| 855 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 856 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
[13482] | 857 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
[8063] | 858 | --enable-override-longlong
|
---|
| 859 | overide use of long long with GCC
|
---|
| 860 |
|
---|
| 861 | Optional Packages:
|
---|
| 862 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 863 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 864 | --with-dmalloc use dmalloc, as in
|
---|
| 865 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 866 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 867 | --with-gnu-readline compile with GNU readline support
|
---|
| 868 |
|
---|
| 869 | Some influential environment variables:
|
---|
| 870 | CXX C++ compiler command
|
---|
| 871 | CXXFLAGS C++ compiler flags
|
---|
| 872 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 873 | nonstandard directory <lib dir>
|
---|
| 874 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
| 875 | headers in a nonstandard directory <include dir>
|
---|
| 876 | CC C compiler command
|
---|
| 877 | CFLAGS C compiler flags
|
---|
| 878 | CPP C preprocessor
|
---|
| 879 |
|
---|
| 880 | Use these variables to override the choices made by `configure' or to help
|
---|
| 881 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 882 |
|
---|
[10192] | 883 | _ACEOF
|
---|
[8063] | 884 | fi
|
---|
| 885 |
|
---|
| 886 | if test "$ac_init_help" = "recursive"; then
|
---|
| 887 | # If there are subdirs, report their specific --help.
|
---|
| 888 | ac_popdir=`pwd`
|
---|
[10192] | 889 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
| 890 | test -d $ac_dir || continue
|
---|
| 891 | ac_builddir=.
|
---|
[8063] | 892 |
|
---|
[10192] | 893 | if test "$ac_dir" != .; then
|
---|
| 894 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 895 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 896 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 897 | else
|
---|
| 898 | ac_dir_suffix= ac_top_builddir=
|
---|
| 899 | fi
|
---|
[8063] | 900 |
|
---|
[10192] | 901 | case $srcdir in
|
---|
| 902 | .) # No --srcdir option. We are building in place.
|
---|
| 903 | ac_srcdir=.
|
---|
| 904 | if test -z "$ac_top_builddir"; then
|
---|
| 905 | ac_top_srcdir=.
|
---|
| 906 | else
|
---|
| 907 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 908 | fi ;;
|
---|
| 909 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 910 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 911 | ac_top_srcdir=$srcdir ;;
|
---|
| 912 | *) # Relative path.
|
---|
| 913 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 914 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 915 | esac
|
---|
| 916 |
|
---|
| 917 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 918 | # the directories may not exist.
|
---|
| 919 | case `pwd` in
|
---|
| 920 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 921 | *)
|
---|
| 922 | case "$ac_dir" in
|
---|
| 923 | .) ac_abs_builddir=`pwd`;;
|
---|
| 924 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 925 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 926 | esac;;
|
---|
| 927 | esac
|
---|
| 928 | case $ac_abs_builddir in
|
---|
| 929 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 930 | *)
|
---|
| 931 | case ${ac_top_builddir}. in
|
---|
| 932 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 933 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 934 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 935 | esac;;
|
---|
| 936 | esac
|
---|
| 937 | case $ac_abs_builddir in
|
---|
| 938 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 939 | *)
|
---|
| 940 | case $ac_srcdir in
|
---|
| 941 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 942 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 943 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 944 | esac;;
|
---|
| 945 | esac
|
---|
| 946 | case $ac_abs_builddir in
|
---|
| 947 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 948 | *)
|
---|
| 949 | case $ac_top_srcdir in
|
---|
| 950 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 951 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 952 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 953 | esac;;
|
---|
| 954 | esac
|
---|
| 955 |
|
---|
| 956 | cd $ac_dir
|
---|
[8063] | 957 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[10192] | 958 | if test -f $ac_srcdir/configure.gnu; then
|
---|
[8063] | 959 | echo
|
---|
[10192] | 960 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
| 961 | elif test -f $ac_srcdir/configure; then
|
---|
[8063] | 962 | echo
|
---|
[10192] | 963 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
| 964 | elif test -f $ac_srcdir/configure.ac ||
|
---|
| 965 | test -f $ac_srcdir/configure.in; then
|
---|
[8063] | 966 | echo
|
---|
| 967 | $ac_configure --help
|
---|
| 968 | else
|
---|
[10192] | 969 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
[8063] | 970 | fi
|
---|
| 971 | cd $ac_popdir
|
---|
| 972 | done
|
---|
| 973 | fi
|
---|
| 974 |
|
---|
| 975 | test -n "$ac_init_help" && exit 0
|
---|
| 976 | if $ac_init_version; then
|
---|
[10192] | 977 | cat <<\_ACEOF
|
---|
[8063] | 978 |
|
---|
[10192] | 979 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[8063] | 980 | This configure script is free software; the Free Software Foundation
|
---|
| 981 | gives unlimited permission to copy, distribute and modify it.
|
---|
[10192] | 982 | _ACEOF
|
---|
[8063] | 983 | exit 0
|
---|
| 984 | fi
|
---|
| 985 | exec 5>config.log
|
---|
[10192] | 986 | cat >&5 <<_ACEOF
|
---|
[8063] | 987 | This file contains any messages produced by compilers while
|
---|
| 988 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 989 |
|
---|
| 990 | It was created by $as_me, which was
|
---|
[10192] | 991 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
[8063] | 992 |
|
---|
| 993 | $ $0 $@
|
---|
| 994 |
|
---|
[10192] | 995 | _ACEOF
|
---|
[8063] | 996 | {
|
---|
| 997 | cat <<_ASUNAME
|
---|
[10192] | 998 | ## --------- ##
|
---|
| 999 | ## Platform. ##
|
---|
| 1000 | ## --------- ##
|
---|
[8063] | 1001 |
|
---|
| 1002 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1003 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1004 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1005 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1006 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1007 |
|
---|
| 1008 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1009 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1010 |
|
---|
| 1011 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1012 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1013 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
| 1014 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
| 1015 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1016 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1017 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1018 |
|
---|
[10192] | 1019 | _ASUNAME
|
---|
[8063] | 1020 |
|
---|
[10192] | 1021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1022 | for as_dir in $PATH
|
---|
| 1023 | do
|
---|
| 1024 | IFS=$as_save_IFS
|
---|
| 1025 | test -z "$as_dir" && as_dir=.
|
---|
| 1026 | echo "PATH: $as_dir"
|
---|
| 1027 | done
|
---|
| 1028 |
|
---|
[8063] | 1029 | } >&5
|
---|
| 1030 |
|
---|
[10192] | 1031 | cat >&5 <<_ACEOF
|
---|
[8063] | 1032 |
|
---|
| 1033 |
|
---|
[10192] | 1034 | ## ----------- ##
|
---|
| 1035 | ## Core tests. ##
|
---|
| 1036 | ## ----------- ##
|
---|
| 1037 |
|
---|
| 1038 | _ACEOF
|
---|
| 1039 |
|
---|
| 1040 |
|
---|
[8063] | 1041 | # Keep a trace of the command line.
|
---|
| 1042 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
[10192] | 1043 | # Strip out --silent because we don't want to record it for future runs.
|
---|
[8063] | 1044 | # Also quote any args containing shell meta-characters.
|
---|
[10192] | 1045 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
[8063] | 1046 | ac_configure_args=
|
---|
[10192] | 1047 | ac_configure_args0=
|
---|
| 1048 | ac_configure_args1=
|
---|
[8063] | 1049 | ac_sep=
|
---|
[10192] | 1050 | ac_must_keep_next=false
|
---|
| 1051 | for ac_pass in 1 2
|
---|
[8063] | 1052 | do
|
---|
[10192] | 1053 | for ac_arg
|
---|
| 1054 | do
|
---|
| 1055 | case $ac_arg in
|
---|
| 1056 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1057 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1058 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1059 | continue ;;
|
---|
| 1060 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1061 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1062 | esac
|
---|
| 1063 | case $ac_pass in
|
---|
| 1064 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
| 1065 | 2)
|
---|
| 1066 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
| 1067 | if test $ac_must_keep_next = true; then
|
---|
| 1068 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1069 | else
|
---|
| 1070 | case $ac_arg in
|
---|
| 1071 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1072 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1073 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1074 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1075 | case "$ac_configure_args0 " in
|
---|
| 1076 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1077 | esac
|
---|
| 1078 | ;;
|
---|
| 1079 | -* ) ac_must_keep_next=true ;;
|
---|
| 1080 | esac
|
---|
| 1081 | fi
|
---|
| 1082 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
| 1083 | # Get rid of the leading space.
|
---|
| 1084 | ac_sep=" "
|
---|
| 1085 | ;;
|
---|
| 1086 | esac
|
---|
| 1087 | done
|
---|
[8063] | 1088 | done
|
---|
[10192] | 1089 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1090 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
[8063] | 1091 |
|
---|
| 1092 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1093 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1094 | # would cause problems or look ugly.
|
---|
[10192] | 1095 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
| 1096 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
[8063] | 1097 | trap 'exit_status=$?
|
---|
| 1098 | # Save into config.log some information that might help in debugging.
|
---|
[10192] | 1099 | {
|
---|
| 1100 | echo
|
---|
| 1101 |
|
---|
| 1102 | cat <<\_ASBOX
|
---|
| 1103 | ## ---------------- ##
|
---|
| 1104 | ## Cache variables. ##
|
---|
| 1105 | ## ---------------- ##
|
---|
| 1106 | _ASBOX
|
---|
| 1107 | echo
|
---|
| 1108 | # The following way of writing the cache mishandles newlines in values,
|
---|
[8063] | 1109 | {
|
---|
| 1110 | (set) 2>&1 |
|
---|
| 1111 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
| 1112 | *ac_space=\ *)
|
---|
| 1113 | sed -n \
|
---|
[10192] | 1114 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
| 1115 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
[8063] | 1116 | ;;
|
---|
| 1117 | *)
|
---|
| 1118 | sed -n \
|
---|
[10192] | 1119 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[8063] | 1120 | ;;
|
---|
| 1121 | esac;
|
---|
[10192] | 1122 | }
|
---|
| 1123 | echo
|
---|
| 1124 |
|
---|
| 1125 | cat <<\_ASBOX
|
---|
| 1126 | ## ----------------- ##
|
---|
| 1127 | ## Output variables. ##
|
---|
| 1128 | ## ----------------- ##
|
---|
| 1129 | _ASBOX
|
---|
| 1130 | echo
|
---|
| 1131 | for ac_var in $ac_subst_vars
|
---|
| 1132 | do
|
---|
| 1133 | eval ac_val=$`echo $ac_var`
|
---|
| 1134 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1135 | done | sort
|
---|
| 1136 | echo
|
---|
| 1137 |
|
---|
| 1138 | if test -n "$ac_subst_files"; then
|
---|
| 1139 | cat <<\_ASBOX
|
---|
| 1140 | ## ------------- ##
|
---|
| 1141 | ## Output files. ##
|
---|
| 1142 | ## ------------- ##
|
---|
| 1143 | _ASBOX
|
---|
| 1144 | echo
|
---|
| 1145 | for ac_var in $ac_subst_files
|
---|
| 1146 | do
|
---|
| 1147 | eval ac_val=$`echo $ac_var`
|
---|
| 1148 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1149 | done | sort
|
---|
| 1150 | echo
|
---|
| 1151 | fi
|
---|
| 1152 |
|
---|
| 1153 | if test -s confdefs.h; then
|
---|
| 1154 | cat <<\_ASBOX
|
---|
| 1155 | ## ----------- ##
|
---|
| 1156 | ## confdefs.h. ##
|
---|
| 1157 | ## ----------- ##
|
---|
| 1158 | _ASBOX
|
---|
| 1159 | echo
|
---|
| 1160 | sed "/^$/d" confdefs.h | sort
|
---|
| 1161 | echo
|
---|
| 1162 | fi
|
---|
| 1163 | test "$ac_signal" != 0 &&
|
---|
| 1164 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1165 | echo "$as_me: exit $exit_status"
|
---|
| 1166 | } >&5
|
---|
| 1167 | rm -f core *.core &&
|
---|
| 1168 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[8063] | 1169 | exit $exit_status
|
---|
| 1170 | ' 0
|
---|
| 1171 | for ac_signal in 1 2 13 15; do
|
---|
[10192] | 1172 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
[8063] | 1173 | done
|
---|
| 1174 | ac_signal=0
|
---|
| 1175 |
|
---|
| 1176 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
| 1177 | rm -rf conftest* confdefs.h
|
---|
| 1178 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 1179 | echo >confdefs.h
|
---|
| 1180 |
|
---|
[10192] | 1181 | # Predefined preprocessor variables.
|
---|
| 1182 |
|
---|
| 1183 | cat >>confdefs.h <<_ACEOF
|
---|
| 1184 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1185 | _ACEOF
|
---|
| 1186 |
|
---|
| 1187 |
|
---|
| 1188 | cat >>confdefs.h <<_ACEOF
|
---|
| 1189 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1190 | _ACEOF
|
---|
| 1191 |
|
---|
| 1192 |
|
---|
| 1193 | cat >>confdefs.h <<_ACEOF
|
---|
| 1194 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1195 | _ACEOF
|
---|
| 1196 |
|
---|
| 1197 |
|
---|
| 1198 | cat >>confdefs.h <<_ACEOF
|
---|
| 1199 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1200 | _ACEOF
|
---|
| 1201 |
|
---|
| 1202 |
|
---|
| 1203 | cat >>confdefs.h <<_ACEOF
|
---|
| 1204 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1205 | _ACEOF
|
---|
| 1206 |
|
---|
| 1207 |
|
---|
[8063] | 1208 | # Let the site file select an alternate cache file if it wants to.
|
---|
[3365] | 1209 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 1210 | if test -z "$CONFIG_SITE"; then
|
---|
| 1211 | if test "x$prefix" != xNONE; then
|
---|
| 1212 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 1213 | else
|
---|
| 1214 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 1215 | fi
|
---|
| 1216 | fi
|
---|
| 1217 | for ac_site_file in $CONFIG_SITE; do
|
---|
| 1218 | if test -r "$ac_site_file"; then
|
---|
[10192] | 1219 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
[8063] | 1220 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
[10192] | 1221 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[3365] | 1222 | . "$ac_site_file"
|
---|
| 1223 | fi
|
---|
| 1224 | done
|
---|
| 1225 |
|
---|
| 1226 | if test -r "$cache_file"; then
|
---|
[8063] | 1227 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1228 | # files actually), so we avoid doing that.
|
---|
| 1229 | if test -f "$cache_file"; then
|
---|
[10192] | 1230 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
[8063] | 1231 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
| 1232 | case $cache_file in
|
---|
| 1233 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
| 1234 | *) . ./$cache_file;;
|
---|
| 1235 | esac
|
---|
| 1236 | fi
|
---|
[3365] | 1237 | else
|
---|
[10192] | 1238 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
[8063] | 1239 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
| 1240 | >$cache_file
|
---|
[3365] | 1241 | fi
|
---|
| 1242 |
|
---|
[8063] | 1243 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1244 | # value.
|
---|
[10192] | 1245 | ac_cache_corrupted=false
|
---|
[8063] | 1246 | for ac_var in `(set) 2>&1 |
|
---|
[10192] | 1247 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
[8063] | 1248 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1249 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
| 1250 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
| 1251 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
| 1252 | case $ac_old_set,$ac_new_set in
|
---|
| 1253 | set,)
|
---|
[10192] | 1254 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1255 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
| 1256 | ac_cache_corrupted=: ;;
|
---|
[8063] | 1257 | ,set)
|
---|
[10192] | 1258 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1259 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
| 1260 | ac_cache_corrupted=: ;;
|
---|
[8063] | 1261 | ,);;
|
---|
| 1262 | *)
|
---|
| 1263 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
[10192] | 1264 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1265 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1266 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1267 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1268 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1269 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1270 | ac_cache_corrupted=:
|
---|
[8063] | 1271 | fi;;
|
---|
| 1272 | esac
|
---|
[10192] | 1273 | # Pass precious variables to config.status.
|
---|
| 1274 | if test "$ac_new_set" = set; then
|
---|
| 1275 | case $ac_new_val in
|
---|
| 1276 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1277 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1278 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1279 | esac
|
---|
| 1280 | case " $ac_configure_args " in
|
---|
| 1281 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
| 1282 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 1283 | esac
|
---|
| 1284 | fi
|
---|
[8063] | 1285 | done
|
---|
[10192] | 1286 | if $ac_cache_corrupted; then
|
---|
| 1287 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1288 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1289 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1290 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1291 | { (exit 1); exit 1; }; }
|
---|
[8063] | 1292 | fi
|
---|
| 1293 |
|
---|
[3365] | 1294 | ac_ext=c
|
---|
| 1295 | ac_cpp='$CPP $CPPFLAGS'
|
---|
[8063] | 1296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[3365] | 1299 |
|
---|
| 1300 |
|
---|
| 1301 |
|
---|
[10192] | 1302 |
|
---|
| 1303 |
|
---|
| 1304 |
|
---|
| 1305 |
|
---|
| 1306 |
|
---|
| 1307 |
|
---|
| 1308 |
|
---|
| 1309 |
|
---|
| 1310 |
|
---|
| 1311 |
|
---|
| 1312 |
|
---|
| 1313 |
|
---|
| 1314 |
|
---|
| 1315 |
|
---|
| 1316 |
|
---|
| 1317 |
|
---|
| 1318 | ac_config_headers="$ac_config_headers config.h"
|
---|
| 1319 |
|
---|
[3365] | 1320 | test "$program_prefix" != NONE &&
|
---|
[10192] | 1321 | program_transform_name="s,^,$program_prefix,;$program_transform_name"
|
---|
[3365] | 1322 | # Use a double $ so make ignores it.
|
---|
| 1323 | test "$program_suffix" != NONE &&
|
---|
[10192] | 1324 | program_transform_name="s,\$,$program_suffix,;$program_transform_name"
|
---|
| 1325 | # Double any \ or $. echo might interpret backslashes.
|
---|
| 1326 | # By default was `s,x,x', remove it if useless.
|
---|
| 1327 | cat <<\_ACEOF >conftest.sed
|
---|
| 1328 | s/[\\$]/&&/g;s/;s,x,x,$//
|
---|
| 1329 | _ACEOF
|
---|
| 1330 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
|
---|
| 1331 | rm conftest.sed
|
---|
[3365] | 1332 |
|
---|
| 1333 |
|
---|
| 1334 | PACKAGE=mgpp
|
---|
| 1335 | VERSION=1.3
|
---|
| 1336 |
|
---|
[8059] | 1337 | LDFLAGS=
|
---|
| 1338 |
|
---|
[10192] | 1339 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 1340 | #define PACKAGE "$PACKAGE"
|
---|
[10192] | 1341 | _ACEOF
|
---|
[3365] | 1342 |
|
---|
[10192] | 1343 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 1344 | #define VERSION "$VERSION"
|
---|
[10192] | 1345 | _ACEOF
|
---|
[3365] | 1346 |
|
---|
[10192] | 1347 |
|
---|
| 1348 |
|
---|
| 1349 |
|
---|
[13482] | 1350 | # Check whether --enable-accentfold or --disable-accentfold was given.
|
---|
| 1351 | if test "${enable_accentfold+set}" = set; then
|
---|
| 1352 | enableval="$enable_accentfold"
|
---|
| 1353 | ENABLE_ACCENTFOLD=0
|
---|
| 1354 | else
|
---|
| 1355 | ENABLE_ACCENTFOLD=1
|
---|
| 1356 | fi;
|
---|
| 1357 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1358 | #define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
|
---|
| 1359 | _ACEOF
|
---|
| 1360 |
|
---|
| 1361 |
|
---|
| 1362 |
|
---|
[8063] | 1363 | ac_ext=cc
|
---|
| 1364 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 1365 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1366 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1367 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 1368 | if test -n "$ac_tool_prefix"; then
|
---|
[10192] | 1369 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[8063] | 1370 | do
|
---|
| 1371 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 1372 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[10192] | 1373 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 1374 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1375 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 1376 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1377 | else
|
---|
| 1378 | if test -n "$CXX"; then
|
---|
| 1379 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 1380 | else
|
---|
[10192] | 1381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1382 | for as_dir in $PATH
|
---|
| 1383 | do
|
---|
| 1384 | IFS=$as_save_IFS
|
---|
| 1385 | test -z "$as_dir" && as_dir=.
|
---|
| 1386 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1387 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1388 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
| 1389 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1390 | break 2
|
---|
| 1391 | fi
|
---|
[8063] | 1392 | done
|
---|
[10192] | 1393 | done
|
---|
[3365] | 1394 |
|
---|
[8063] | 1395 | fi
|
---|
| 1396 | fi
|
---|
| 1397 | CXX=$ac_cv_prog_CXX
|
---|
| 1398 | if test -n "$CXX"; then
|
---|
[10192] | 1399 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
[8063] | 1400 | echo "${ECHO_T}$CXX" >&6
|
---|
| 1401 | else
|
---|
[10192] | 1402 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 1403 | echo "${ECHO_T}no" >&6
|
---|
| 1404 | fi
|
---|
[3365] | 1405 |
|
---|
[8063] | 1406 | test -n "$CXX" && break
|
---|
| 1407 | done
|
---|
| 1408 | fi
|
---|
| 1409 | if test -z "$CXX"; then
|
---|
| 1410 | ac_ct_CXX=$CXX
|
---|
[10192] | 1411 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[3365] | 1412 | do
|
---|
[8063] | 1413 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[3365] | 1414 | set dummy $ac_prog; ac_word=$2
|
---|
[10192] | 1415 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 1416 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1417 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 1418 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 1419 | else
|
---|
[8063] | 1420 | if test -n "$ac_ct_CXX"; then
|
---|
| 1421 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
[3365] | 1422 | else
|
---|
[10192] | 1423 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1424 | for as_dir in $PATH
|
---|
| 1425 | do
|
---|
| 1426 | IFS=$as_save_IFS
|
---|
| 1427 | test -z "$as_dir" && as_dir=.
|
---|
| 1428 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1429 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1430 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
| 1431 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1432 | break 2
|
---|
| 1433 | fi
|
---|
[8063] | 1434 | done
|
---|
[10192] | 1435 | done
|
---|
[8063] | 1436 |
|
---|
[3365] | 1437 | fi
|
---|
| 1438 | fi
|
---|
[8063] | 1439 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 1440 | if test -n "$ac_ct_CXX"; then
|
---|
[10192] | 1441 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
[8063] | 1442 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
[3365] | 1443 | else
|
---|
[10192] | 1444 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 1445 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 1446 | fi
|
---|
| 1447 |
|
---|
[8063] | 1448 | test -n "$ac_ct_CXX" && break
|
---|
[3365] | 1449 | done
|
---|
[8063] | 1450 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
[3365] | 1451 |
|
---|
[8063] | 1452 | CXX=$ac_ct_CXX
|
---|
| 1453 | fi
|
---|
[3365] | 1454 |
|
---|
[10192] | 1455 |
|
---|
| 1456 | # Provide some information about the compiler.
|
---|
| 1457 | echo "$as_me:$LINENO:" \
|
---|
| 1458 | "checking for C++ compiler version" >&5
|
---|
| 1459 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 1460 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 1461 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 1462 | ac_status=$?
|
---|
| 1463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1464 | (exit $ac_status); }
|
---|
| 1465 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 1466 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 1467 | ac_status=$?
|
---|
| 1468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1469 | (exit $ac_status); }
|
---|
| 1470 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 1471 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 1472 | ac_status=$?
|
---|
| 1473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1474 | (exit $ac_status); }
|
---|
| 1475 |
|
---|
[8063] | 1476 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1477 | /* confdefs.h. */
|
---|
| 1478 | _ACEOF
|
---|
| 1479 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1480 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1481 | /* end confdefs.h. */
|
---|
[3365] | 1482 |
|
---|
[8063] | 1483 | int
|
---|
| 1484 | main ()
|
---|
| 1485 | {
|
---|
[3365] | 1486 |
|
---|
[8063] | 1487 | ;
|
---|
| 1488 | return 0;
|
---|
| 1489 | }
|
---|
| 1490 | _ACEOF
|
---|
| 1491 | ac_clean_files_save=$ac_clean_files
|
---|
[10192] | 1492 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
[8063] | 1493 | # Try to create an executable without -o first, disregard a.out.
|
---|
[10192] | 1494 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
[8063] | 1495 | # of exeext.
|
---|
[10192] | 1496 | echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
|
---|
| 1497 | echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
|
---|
[8063] | 1498 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
[10192] | 1499 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
[8063] | 1500 | (eval $ac_link_default) 2>&5
|
---|
| 1501 | ac_status=$?
|
---|
[10192] | 1502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1503 | (exit $ac_status); }; then
|
---|
[10192] | 1504 | # Find the output, starting from the most likely. This scheme is
|
---|
| 1505 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
| 1506 | # resort.
|
---|
| 1507 |
|
---|
| 1508 | # Be careful to initialize this variable, since it used to be cached.
|
---|
| 1509 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
| 1510 | ac_cv_exeext=
|
---|
| 1511 | # b.out is created by i960 compilers.
|
---|
| 1512 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
| 1513 | do
|
---|
| 1514 | test -f "$ac_file" || continue
|
---|
[8063] | 1515 | case $ac_file in
|
---|
[10192] | 1516 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
| 1517 | ;;
|
---|
| 1518 | conftest.$ac_ext )
|
---|
| 1519 | # This is the source file.
|
---|
| 1520 | ;;
|
---|
| 1521 | [ab].out )
|
---|
| 1522 | # We found the default executable, but exeext='' is most
|
---|
| 1523 | # certainly right.
|
---|
| 1524 | break;;
|
---|
| 1525 | *.* )
|
---|
| 1526 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1527 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
| 1528 | # but it would be cool to find out if it's true. Does anybody
|
---|
| 1529 | # maintain Libtool? --akim.
|
---|
| 1530 | export ac_cv_exeext
|
---|
| 1531 | break;;
|
---|
| 1532 | * )
|
---|
| 1533 | break;;
|
---|
[8063] | 1534 | esac
|
---|
| 1535 | done
|
---|
| 1536 | else
|
---|
| 1537 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1538 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1539 |
|
---|
| 1540 | { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
|
---|
| 1541 | See \`config.log' for more details." >&5
|
---|
| 1542 | echo "$as_me: error: C++ compiler cannot create executables
|
---|
| 1543 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 1544 | { (exit 77); exit 77; }; }
|
---|
| 1545 | fi
|
---|
[3365] | 1546 |
|
---|
[8063] | 1547 | ac_exeext=$ac_cv_exeext
|
---|
[10192] | 1548 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
[8063] | 1549 | echo "${ECHO_T}$ac_file" >&6
|
---|
[3365] | 1550 |
|
---|
[8063] | 1551 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1552 | # the compiler is broken, or we cross compile.
|
---|
[10192] | 1553 | echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
|
---|
[8063] | 1554 | echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
|
---|
| 1555 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 1556 | # If not cross compiling, check that we can run a simple program.
|
---|
| 1557 | if test "$cross_compiling" != yes; then
|
---|
| 1558 | if { ac_try='./$ac_file'
|
---|
[10192] | 1559 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1560 | (eval $ac_try) 2>&5
|
---|
| 1561 | ac_status=$?
|
---|
[10192] | 1562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1563 | (exit $ac_status); }; }; then
|
---|
| 1564 | cross_compiling=no
|
---|
[3365] | 1565 | else
|
---|
[8063] | 1566 | if test "$cross_compiling" = maybe; then
|
---|
| 1567 | cross_compiling=yes
|
---|
| 1568 | else
|
---|
[10192] | 1569 | { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
|
---|
| 1570 | If you meant to cross compile, use \`--host'.
|
---|
| 1571 | See \`config.log' for more details." >&5
|
---|
[8063] | 1572 | echo "$as_me: error: cannot run C++ compiled programs.
|
---|
[10192] | 1573 | If you meant to cross compile, use \`--host'.
|
---|
| 1574 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 1575 | { (exit 1); exit 1; }; }
|
---|
| 1576 | fi
|
---|
[3365] | 1577 | fi
|
---|
| 1578 | fi
|
---|
[10192] | 1579 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 1580 | echo "${ECHO_T}yes" >&6
|
---|
[3365] | 1581 |
|
---|
[10192] | 1582 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
[8063] | 1583 | ac_clean_files=$ac_clean_files_save
|
---|
| 1584 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1585 | # the compiler is broken, or we cross compile.
|
---|
[10192] | 1586 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
[8063] | 1587 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
[10192] | 1588 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
[8063] | 1589 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
| 1590 |
|
---|
[10192] | 1591 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 1592 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
| 1593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[8063] | 1594 | (eval $ac_link) 2>&5
|
---|
| 1595 | ac_status=$?
|
---|
[10192] | 1596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1597 | (exit $ac_status); }; then
|
---|
| 1598 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 1599 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 1600 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 1601 | # `rm'.
|
---|
[10192] | 1602 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 1603 | test -f "$ac_file" || continue
|
---|
[8063] | 1604 | case $ac_file in
|
---|
[10192] | 1605 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
[8063] | 1606 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
[10192] | 1607 | export ac_cv_exeext
|
---|
| 1608 | break;;
|
---|
[8063] | 1609 | * ) break;;
|
---|
| 1610 | esac
|
---|
| 1611 | done
|
---|
| 1612 | else
|
---|
[10192] | 1613 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1614 | See \`config.log' for more details." >&5
|
---|
| 1615 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1616 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 1617 | { (exit 1); exit 1; }; }
|
---|
[3365] | 1618 | fi
|
---|
| 1619 |
|
---|
[8063] | 1620 | rm -f conftest$ac_cv_exeext
|
---|
[10192] | 1621 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
[8063] | 1622 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
| 1623 |
|
---|
| 1624 | rm -f conftest.$ac_ext
|
---|
| 1625 | EXEEXT=$ac_cv_exeext
|
---|
| 1626 | ac_exeext=$EXEEXT
|
---|
[10192] | 1627 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 1628 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
[8063] | 1629 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 1630 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 1631 | else
|
---|
[8063] | 1632 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1633 | /* confdefs.h. */
|
---|
| 1634 | _ACEOF
|
---|
| 1635 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1636 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1637 | /* end confdefs.h. */
|
---|
[8063] | 1638 |
|
---|
| 1639 | int
|
---|
| 1640 | main ()
|
---|
| 1641 | {
|
---|
| 1642 |
|
---|
| 1643 | ;
|
---|
| 1644 | return 0;
|
---|
| 1645 | }
|
---|
| 1646 | _ACEOF
|
---|
| 1647 | rm -f conftest.o conftest.obj
|
---|
[10192] | 1648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
[8063] | 1649 | (eval $ac_compile) 2>&5
|
---|
| 1650 | ac_status=$?
|
---|
[10192] | 1651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1652 | (exit $ac_status); }; then
|
---|
| 1653 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
| 1654 | case $ac_file in
|
---|
[10192] | 1655 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
[8063] | 1656 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 1657 | break;;
|
---|
| 1658 | esac
|
---|
| 1659 | done
|
---|
[3365] | 1660 | else
|
---|
[8063] | 1661 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1662 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1663 |
|
---|
| 1664 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 1665 | See \`config.log' for more details." >&5
|
---|
| 1666 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 1667 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 1668 | { (exit 1); exit 1; }; }
|
---|
[3365] | 1669 | fi
|
---|
[8063] | 1670 |
|
---|
| 1671 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
[3365] | 1672 | fi
|
---|
[10192] | 1673 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
[8063] | 1674 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
| 1675 | OBJEXT=$ac_cv_objext
|
---|
| 1676 | ac_objext=$OBJEXT
|
---|
[10192] | 1677 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
[8063] | 1678 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
| 1679 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 1680 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1681 | else
|
---|
| 1682 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1683 | /* confdefs.h. */
|
---|
| 1684 | _ACEOF
|
---|
| 1685 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1686 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1687 | /* end confdefs.h. */
|
---|
[3365] | 1688 |
|
---|
[8063] | 1689 | int
|
---|
| 1690 | main ()
|
---|
| 1691 | {
|
---|
| 1692 | #ifndef __GNUC__
|
---|
| 1693 | choke me
|
---|
| 1694 | #endif
|
---|
[3365] | 1695 |
|
---|
[8063] | 1696 | ;
|
---|
| 1697 | return 0;
|
---|
| 1698 | }
|
---|
| 1699 | _ACEOF
|
---|
| 1700 | rm -f conftest.$ac_objext
|
---|
[10192] | 1701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1702 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 1703 | ac_status=$?
|
---|
[10192] | 1704 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1705 | rm -f conftest.er1
|
---|
| 1706 | cat conftest.err >&5
|
---|
| 1707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1708 | (exit $ac_status); } &&
|
---|
[10192] | 1709 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1710 | || test ! -s conftest.err'
|
---|
| 1711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1712 | (eval $ac_try) 2>&5
|
---|
| 1713 | ac_status=$?
|
---|
[10192] | 1714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1715 | (exit $ac_status); }; } &&
|
---|
| 1716 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1718 | (eval $ac_try) 2>&5
|
---|
| 1719 | ac_status=$?
|
---|
| 1720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1721 | (exit $ac_status); }; }; then
|
---|
| 1722 | ac_compiler_gnu=yes
|
---|
[3365] | 1723 | else
|
---|
[8063] | 1724 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1725 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1726 |
|
---|
[8063] | 1727 | ac_compiler_gnu=no
|
---|
[3365] | 1728 | fi
|
---|
[10192] | 1729 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 1730 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
[3365] | 1731 |
|
---|
[8063] | 1732 | fi
|
---|
[10192] | 1733 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
[8063] | 1734 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
| 1735 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 1736 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 1737 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
| 1738 | CXXFLAGS="-g"
|
---|
[10192] | 1739 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
[8063] | 1740 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
| 1741 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 1742 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 1743 | else
|
---|
[8063] | 1744 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1745 | /* confdefs.h. */
|
---|
| 1746 | _ACEOF
|
---|
| 1747 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1748 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1749 | /* end confdefs.h. */
|
---|
[8063] | 1750 |
|
---|
| 1751 | int
|
---|
| 1752 | main ()
|
---|
| 1753 | {
|
---|
| 1754 |
|
---|
| 1755 | ;
|
---|
| 1756 | return 0;
|
---|
| 1757 | }
|
---|
| 1758 | _ACEOF
|
---|
| 1759 | rm -f conftest.$ac_objext
|
---|
[10192] | 1760 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1761 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 1762 | ac_status=$?
|
---|
[10192] | 1763 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1764 | rm -f conftest.er1
|
---|
| 1765 | cat conftest.err >&5
|
---|
| 1766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1767 | (exit $ac_status); } &&
|
---|
[10192] | 1768 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1769 | || test ! -s conftest.err'
|
---|
| 1770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1771 | (eval $ac_try) 2>&5
|
---|
| 1772 | ac_status=$?
|
---|
[10192] | 1773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1774 | (exit $ac_status); }; } &&
|
---|
| 1775 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1777 | (eval $ac_try) 2>&5
|
---|
| 1778 | ac_status=$?
|
---|
| 1779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1780 | (exit $ac_status); }; }; then
|
---|
[3365] | 1781 | ac_cv_prog_cxx_g=yes
|
---|
| 1782 | else
|
---|
[8063] | 1783 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1784 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1785 |
|
---|
[8063] | 1786 | ac_cv_prog_cxx_g=no
|
---|
[3365] | 1787 | fi
|
---|
[10192] | 1788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 1789 | fi
|
---|
[10192] | 1790 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
[8063] | 1791 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
[3365] | 1792 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
[8063] | 1793 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
[3365] | 1794 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 1795 | if test "$GXX" = yes; then
|
---|
| 1796 | CXXFLAGS="-g -O2"
|
---|
| 1797 | else
|
---|
| 1798 | CXXFLAGS="-g"
|
---|
| 1799 | fi
|
---|
| 1800 | else
|
---|
| 1801 | if test "$GXX" = yes; then
|
---|
| 1802 | CXXFLAGS="-O2"
|
---|
| 1803 | else
|
---|
| 1804 | CXXFLAGS=
|
---|
| 1805 | fi
|
---|
| 1806 | fi
|
---|
[8063] | 1807 | for ac_declaration in \
|
---|
[10192] | 1808 | '' \
|
---|
[8063] | 1809 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 1810 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 1811 | 'extern "C" void exit (int) throw ();' \
|
---|
| 1812 | 'extern "C" void exit (int);' \
|
---|
| 1813 | 'void exit (int);'
|
---|
| 1814 | do
|
---|
| 1815 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1816 | /* confdefs.h. */
|
---|
| 1817 | _ACEOF
|
---|
| 1818 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1819 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1820 | /* end confdefs.h. */
|
---|
| 1821 | $ac_declaration
|
---|
[8063] | 1822 | #include <stdlib.h>
|
---|
| 1823 | int
|
---|
| 1824 | main ()
|
---|
| 1825 | {
|
---|
| 1826 | exit (42);
|
---|
| 1827 | ;
|
---|
| 1828 | return 0;
|
---|
| 1829 | }
|
---|
| 1830 | _ACEOF
|
---|
| 1831 | rm -f conftest.$ac_objext
|
---|
[10192] | 1832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1833 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 1834 | ac_status=$?
|
---|
[10192] | 1835 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1836 | rm -f conftest.er1
|
---|
| 1837 | cat conftest.err >&5
|
---|
| 1838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1839 | (exit $ac_status); } &&
|
---|
[10192] | 1840 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1841 | || test ! -s conftest.err'
|
---|
| 1842 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1843 | (eval $ac_try) 2>&5
|
---|
| 1844 | ac_status=$?
|
---|
[10192] | 1845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1846 | (exit $ac_status); }; } &&
|
---|
| 1847 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1849 | (eval $ac_try) 2>&5
|
---|
| 1850 | ac_status=$?
|
---|
| 1851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1852 | (exit $ac_status); }; }; then
|
---|
| 1853 | :
|
---|
| 1854 | else
|
---|
| 1855 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1856 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1857 |
|
---|
[8063] | 1858 | continue
|
---|
| 1859 | fi
|
---|
[10192] | 1860 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 1861 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 1862 | /* confdefs.h. */
|
---|
| 1863 | _ACEOF
|
---|
| 1864 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1865 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1866 | /* end confdefs.h. */
|
---|
[8063] | 1867 | $ac_declaration
|
---|
| 1868 | int
|
---|
| 1869 | main ()
|
---|
| 1870 | {
|
---|
| 1871 | exit (42);
|
---|
| 1872 | ;
|
---|
| 1873 | return 0;
|
---|
| 1874 | }
|
---|
| 1875 | _ACEOF
|
---|
| 1876 | rm -f conftest.$ac_objext
|
---|
[10192] | 1877 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1878 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 1879 | ac_status=$?
|
---|
[10192] | 1880 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1881 | rm -f conftest.er1
|
---|
| 1882 | cat conftest.err >&5
|
---|
| 1883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1884 | (exit $ac_status); } &&
|
---|
[10192] | 1885 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 1886 | || test ! -s conftest.err'
|
---|
| 1887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 1888 | (eval $ac_try) 2>&5
|
---|
| 1889 | ac_status=$?
|
---|
[10192] | 1890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1891 | (exit $ac_status); }; } &&
|
---|
| 1892 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1894 | (eval $ac_try) 2>&5
|
---|
| 1895 | ac_status=$?
|
---|
| 1896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 1897 | (exit $ac_status); }; }; then
|
---|
| 1898 | break
|
---|
| 1899 | else
|
---|
| 1900 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 1901 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1902 |
|
---|
[8063] | 1903 | fi
|
---|
[10192] | 1904 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 1905 | done
|
---|
[10192] | 1906 | rm -f conftest*
|
---|
| 1907 | if test -n "$ac_declaration"; then
|
---|
| 1908 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 1909 | echo $ac_declaration >>confdefs.h
|
---|
| 1910 | echo '#endif' >>confdefs.h
|
---|
| 1911 | fi
|
---|
[3365] | 1912 |
|
---|
[8063] | 1913 | ac_ext=c
|
---|
| 1914 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1915 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1916 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1917 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1918 |
|
---|
[10192] | 1919 | for ac_prog in gawk mawk nawk awk
|
---|
[3365] | 1920 | do
|
---|
[8063] | 1921 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[3365] | 1922 | set dummy $ac_prog; ac_word=$2
|
---|
[10192] | 1923 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 1924 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1925 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 1926 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 1927 | else
|
---|
| 1928 | if test -n "$AWK"; then
|
---|
| 1929 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 1930 | else
|
---|
[10192] | 1931 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1932 | for as_dir in $PATH
|
---|
| 1933 | do
|
---|
| 1934 | IFS=$as_save_IFS
|
---|
| 1935 | test -z "$as_dir" && as_dir=.
|
---|
| 1936 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1937 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1938 | ac_cv_prog_AWK="$ac_prog"
|
---|
| 1939 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1940 | break 2
|
---|
| 1941 | fi
|
---|
[8063] | 1942 | done
|
---|
[10192] | 1943 | done
|
---|
[8063] | 1944 |
|
---|
[3365] | 1945 | fi
|
---|
| 1946 | fi
|
---|
[8063] | 1947 | AWK=$ac_cv_prog_AWK
|
---|
[3365] | 1948 | if test -n "$AWK"; then
|
---|
[10192] | 1949 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
[8063] | 1950 | echo "${ECHO_T}$AWK" >&6
|
---|
[3365] | 1951 | else
|
---|
[10192] | 1952 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 1953 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 1954 | fi
|
---|
| 1955 |
|
---|
[8063] | 1956 | test -n "$AWK" && break
|
---|
[3365] | 1957 | done
|
---|
| 1958 |
|
---|
| 1959 | for ac_prog in 'bison -y' byacc
|
---|
| 1960 | do
|
---|
[8063] | 1961 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[3365] | 1962 | set dummy $ac_prog; ac_word=$2
|
---|
[10192] | 1963 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 1964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1965 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 1966 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 1967 | else
|
---|
| 1968 | if test -n "$YACC"; then
|
---|
| 1969 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 1970 | else
|
---|
[10192] | 1971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1972 | for as_dir in $PATH
|
---|
| 1973 | do
|
---|
| 1974 | IFS=$as_save_IFS
|
---|
| 1975 | test -z "$as_dir" && as_dir=.
|
---|
| 1976 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1977 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1978 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 1979 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1980 | break 2
|
---|
| 1981 | fi
|
---|
[8063] | 1982 | done
|
---|
[10192] | 1983 | done
|
---|
[8063] | 1984 |
|
---|
[3365] | 1985 | fi
|
---|
| 1986 | fi
|
---|
[8063] | 1987 | YACC=$ac_cv_prog_YACC
|
---|
[3365] | 1988 | if test -n "$YACC"; then
|
---|
[10192] | 1989 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
[8063] | 1990 | echo "${ECHO_T}$YACC" >&6
|
---|
[3365] | 1991 | else
|
---|
[10192] | 1992 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 1993 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 1994 | fi
|
---|
| 1995 |
|
---|
[8063] | 1996 | test -n "$YACC" && break
|
---|
[3365] | 1997 | done
|
---|
| 1998 | test -n "$YACC" || YACC="yacc"
|
---|
| 1999 |
|
---|
[8063] | 2000 | ac_ext=c
|
---|
| 2001 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2002 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2003 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2004 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2005 | if test -n "$ac_tool_prefix"; then
|
---|
| 2006 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 2007 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[10192] | 2008 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2009 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2010 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2011 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2012 | else
|
---|
| 2013 | if test -n "$CC"; then
|
---|
| 2014 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2015 | else
|
---|
[10192] | 2016 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2017 | for as_dir in $PATH
|
---|
| 2018 | do
|
---|
| 2019 | IFS=$as_save_IFS
|
---|
| 2020 | test -z "$as_dir" && as_dir=.
|
---|
| 2021 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2022 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2023 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
| 2024 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2025 | break 2
|
---|
| 2026 | fi
|
---|
[8063] | 2027 | done
|
---|
[10192] | 2028 | done
|
---|
[8063] | 2029 |
|
---|
| 2030 | fi
|
---|
| 2031 | fi
|
---|
| 2032 | CC=$ac_cv_prog_CC
|
---|
| 2033 | if test -n "$CC"; then
|
---|
[10192] | 2034 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[8063] | 2035 | echo "${ECHO_T}$CC" >&6
|
---|
| 2036 | else
|
---|
[10192] | 2037 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2038 | echo "${ECHO_T}no" >&6
|
---|
| 2039 | fi
|
---|
| 2040 |
|
---|
| 2041 | fi
|
---|
| 2042 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 2043 | ac_ct_CC=$CC
|
---|
| 2044 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
[3365] | 2045 | set dummy gcc; ac_word=$2
|
---|
[10192] | 2046 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2047 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2048 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2049 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2050 | else
|
---|
[8063] | 2051 | if test -n "$ac_ct_CC"; then
|
---|
| 2052 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2053 | else
|
---|
[10192] | 2054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2055 | for as_dir in $PATH
|
---|
| 2056 | do
|
---|
| 2057 | IFS=$as_save_IFS
|
---|
| 2058 | test -z "$as_dir" && as_dir=.
|
---|
| 2059 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2060 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2061 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
| 2062 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2063 | break 2
|
---|
| 2064 | fi
|
---|
[8063] | 2065 | done
|
---|
[10192] | 2066 | done
|
---|
[8063] | 2067 |
|
---|
| 2068 | fi
|
---|
| 2069 | fi
|
---|
| 2070 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2071 | if test -n "$ac_ct_CC"; then
|
---|
[10192] | 2072 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
[8063] | 2073 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 2074 | else
|
---|
[10192] | 2075 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2076 | echo "${ECHO_T}no" >&6
|
---|
| 2077 | fi
|
---|
| 2078 |
|
---|
| 2079 | CC=$ac_ct_CC
|
---|
| 2080 | else
|
---|
| 2081 | CC="$ac_cv_prog_CC"
|
---|
| 2082 | fi
|
---|
| 2083 |
|
---|
| 2084 | if test -z "$CC"; then
|
---|
| 2085 | if test -n "$ac_tool_prefix"; then
|
---|
| 2086 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
| 2087 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[10192] | 2088 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2089 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2090 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2091 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2092 | else
|
---|
[3365] | 2093 | if test -n "$CC"; then
|
---|
| 2094 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2095 | else
|
---|
[10192] | 2096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2097 | for as_dir in $PATH
|
---|
| 2098 | do
|
---|
| 2099 | IFS=$as_save_IFS
|
---|
| 2100 | test -z "$as_dir" && as_dir=.
|
---|
| 2101 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2102 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2103 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
| 2104 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2105 | break 2
|
---|
| 2106 | fi
|
---|
[8063] | 2107 | done
|
---|
[10192] | 2108 | done
|
---|
[8063] | 2109 |
|
---|
[3365] | 2110 | fi
|
---|
| 2111 | fi
|
---|
[8063] | 2112 | CC=$ac_cv_prog_CC
|
---|
[3365] | 2113 | if test -n "$CC"; then
|
---|
[10192] | 2114 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[8063] | 2115 | echo "${ECHO_T}$CC" >&6
|
---|
[3365] | 2116 | else
|
---|
[10192] | 2117 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2118 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2119 | fi
|
---|
| 2120 |
|
---|
[8063] | 2121 | fi
|
---|
| 2122 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 2123 | ac_ct_CC=$CC
|
---|
| 2124 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 2125 | set dummy cc; ac_word=$2
|
---|
[10192] | 2126 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2127 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2128 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2129 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2130 | else
|
---|
| 2131 | if test -n "$ac_ct_CC"; then
|
---|
| 2132 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2133 | else
|
---|
[10192] | 2134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2135 | for as_dir in $PATH
|
---|
| 2136 | do
|
---|
| 2137 | IFS=$as_save_IFS
|
---|
| 2138 | test -z "$as_dir" && as_dir=.
|
---|
| 2139 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2140 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2141 | ac_cv_prog_ac_ct_CC="cc"
|
---|
| 2142 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2143 | break 2
|
---|
| 2144 | fi
|
---|
[8063] | 2145 | done
|
---|
[10192] | 2146 | done
|
---|
[8063] | 2147 |
|
---|
| 2148 | fi
|
---|
| 2149 | fi
|
---|
| 2150 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2151 | if test -n "$ac_ct_CC"; then
|
---|
[10192] | 2152 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
[8063] | 2153 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 2154 | else
|
---|
[10192] | 2155 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2156 | echo "${ECHO_T}no" >&6
|
---|
| 2157 | fi
|
---|
| 2158 |
|
---|
| 2159 | CC=$ac_ct_CC
|
---|
| 2160 | else
|
---|
| 2161 | CC="$ac_cv_prog_CC"
|
---|
| 2162 | fi
|
---|
| 2163 |
|
---|
| 2164 | fi
|
---|
[3365] | 2165 | if test -z "$CC"; then
|
---|
| 2166 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 2167 | set dummy cc; ac_word=$2
|
---|
[10192] | 2168 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2169 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2170 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2171 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2172 | else
|
---|
| 2173 | if test -n "$CC"; then
|
---|
| 2174 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2175 | else
|
---|
| 2176 | ac_prog_rejected=no
|
---|
[10192] | 2177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2178 | for as_dir in $PATH
|
---|
| 2179 | do
|
---|
| 2180 | IFS=$as_save_IFS
|
---|
| 2181 | test -z "$as_dir" && as_dir=.
|
---|
| 2182 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2183 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2184 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 2185 | ac_prog_rejected=yes
|
---|
| 2186 | continue
|
---|
| 2187 | fi
|
---|
| 2188 | ac_cv_prog_CC="cc"
|
---|
| 2189 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2190 | break 2
|
---|
| 2191 | fi
|
---|
[8063] | 2192 | done
|
---|
[10192] | 2193 | done
|
---|
[8063] | 2194 |
|
---|
[3365] | 2195 | if test $ac_prog_rejected = yes; then
|
---|
| 2196 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 2197 | set dummy $ac_cv_prog_CC
|
---|
| 2198 | shift
|
---|
[8063] | 2199 | if test $# != 0; then
|
---|
[3365] | 2200 | # We chose a different compiler from the bogus one.
|
---|
| 2201 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 2202 | # first if we set CC to just the basename; use the full file name.
|
---|
| 2203 | shift
|
---|
[10192] | 2204 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[3365] | 2205 | fi
|
---|
| 2206 | fi
|
---|
| 2207 | fi
|
---|
| 2208 | fi
|
---|
[8063] | 2209 | CC=$ac_cv_prog_CC
|
---|
[3365] | 2210 | if test -n "$CC"; then
|
---|
[10192] | 2211 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[8063] | 2212 | echo "${ECHO_T}$CC" >&6
|
---|
[3365] | 2213 | else
|
---|
[10192] | 2214 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2215 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2216 | fi
|
---|
| 2217 |
|
---|
[8063] | 2218 | fi
|
---|
| 2219 | if test -z "$CC"; then
|
---|
| 2220 | if test -n "$ac_tool_prefix"; then
|
---|
| 2221 | for ac_prog in cl
|
---|
| 2222 | do
|
---|
| 2223 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2224 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[10192] | 2225 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2226 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2227 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 2228 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2229 | else
|
---|
| 2230 | if test -n "$CC"; then
|
---|
| 2231 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 2232 | else
|
---|
[10192] | 2233 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2234 | for as_dir in $PATH
|
---|
| 2235 | do
|
---|
| 2236 | IFS=$as_save_IFS
|
---|
| 2237 | test -z "$as_dir" && as_dir=.
|
---|
| 2238 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2239 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2240 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
| 2241 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2242 | break 2
|
---|
| 2243 | fi
|
---|
[8063] | 2244 | done
|
---|
[10192] | 2245 | done
|
---|
[8063] | 2246 |
|
---|
[3365] | 2247 | fi
|
---|
| 2248 | fi
|
---|
[8063] | 2249 | CC=$ac_cv_prog_CC
|
---|
[3365] | 2250 | if test -n "$CC"; then
|
---|
[10192] | 2251 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
[8063] | 2252 | echo "${ECHO_T}$CC" >&6
|
---|
[3365] | 2253 | else
|
---|
[10192] | 2254 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2255 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2256 | fi
|
---|
[8063] | 2257 |
|
---|
| 2258 | test -n "$CC" && break
|
---|
| 2259 | done
|
---|
[3365] | 2260 | fi
|
---|
[8063] | 2261 | if test -z "$CC"; then
|
---|
| 2262 | ac_ct_CC=$CC
|
---|
| 2263 | for ac_prog in cl
|
---|
| 2264 | do
|
---|
| 2265 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2266 | set dummy $ac_prog; ac_word=$2
|
---|
[10192] | 2267 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2268 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2269 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 2270 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2271 | else
|
---|
| 2272 | if test -n "$ac_ct_CC"; then
|
---|
| 2273 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 2274 | else
|
---|
[10192] | 2275 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2276 | for as_dir in $PATH
|
---|
| 2277 | do
|
---|
| 2278 | IFS=$as_save_IFS
|
---|
| 2279 | test -z "$as_dir" && as_dir=.
|
---|
| 2280 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2281 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2282 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
| 2283 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2284 | break 2
|
---|
| 2285 | fi
|
---|
[8063] | 2286 | done
|
---|
[10192] | 2287 | done
|
---|
[3365] | 2288 |
|
---|
[8063] | 2289 | fi
|
---|
| 2290 | fi
|
---|
| 2291 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 2292 | if test -n "$ac_ct_CC"; then
|
---|
[10192] | 2293 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
[8063] | 2294 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 2295 | else
|
---|
[10192] | 2296 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2297 | echo "${ECHO_T}no" >&6
|
---|
| 2298 | fi
|
---|
[3365] | 2299 |
|
---|
[8063] | 2300 | test -n "$ac_ct_CC" && break
|
---|
| 2301 | done
|
---|
[3365] | 2302 |
|
---|
[8063] | 2303 | CC=$ac_ct_CC
|
---|
[3365] | 2304 | fi
|
---|
| 2305 |
|
---|
| 2306 | fi
|
---|
| 2307 |
|
---|
[10192] | 2308 |
|
---|
| 2309 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 2310 | See \`config.log' for more details." >&5
|
---|
| 2311 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 2312 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 2313 | { (exit 1); exit 1; }; }
|
---|
| 2314 |
|
---|
[10192] | 2315 | # Provide some information about the compiler.
|
---|
| 2316 | echo "$as_me:$LINENO:" \
|
---|
| 2317 | "checking for C compiler version" >&5
|
---|
| 2318 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 2319 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 2320 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 2321 | ac_status=$?
|
---|
| 2322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2323 | (exit $ac_status); }
|
---|
| 2324 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 2325 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 2326 | ac_status=$?
|
---|
| 2327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2328 | (exit $ac_status); }
|
---|
| 2329 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 2330 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 2331 | ac_status=$?
|
---|
| 2332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2333 | (exit $ac_status); }
|
---|
| 2334 |
|
---|
| 2335 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
[8063] | 2336 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
| 2337 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 2338 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2339 | else
|
---|
[8063] | 2340 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2341 | /* confdefs.h. */
|
---|
| 2342 | _ACEOF
|
---|
| 2343 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2344 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2345 | /* end confdefs.h. */
|
---|
[8063] | 2346 |
|
---|
| 2347 | int
|
---|
| 2348 | main ()
|
---|
| 2349 | {
|
---|
| 2350 | #ifndef __GNUC__
|
---|
| 2351 | choke me
|
---|
[3365] | 2352 | #endif
|
---|
[8063] | 2353 |
|
---|
| 2354 | ;
|
---|
| 2355 | return 0;
|
---|
| 2356 | }
|
---|
| 2357 | _ACEOF
|
---|
| 2358 | rm -f conftest.$ac_objext
|
---|
[10192] | 2359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2360 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2361 | ac_status=$?
|
---|
[10192] | 2362 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2363 | rm -f conftest.er1
|
---|
| 2364 | cat conftest.err >&5
|
---|
| 2365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2366 | (exit $ac_status); } &&
|
---|
[10192] | 2367 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2368 | || test ! -s conftest.err'
|
---|
| 2369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2370 | (eval $ac_try) 2>&5
|
---|
| 2371 | ac_status=$?
|
---|
[10192] | 2372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2373 | (exit $ac_status); }; } &&
|
---|
| 2374 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2376 | (eval $ac_try) 2>&5
|
---|
| 2377 | ac_status=$?
|
---|
| 2378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2379 | (exit $ac_status); }; }; then
|
---|
| 2380 | ac_compiler_gnu=yes
|
---|
[8059] | 2381 | else
|
---|
[8063] | 2382 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2383 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2384 |
|
---|
[8063] | 2385 | ac_compiler_gnu=no
|
---|
[8059] | 2386 | fi
|
---|
[10192] | 2387 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 2388 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
| 2389 |
|
---|
[8059] | 2390 | fi
|
---|
[10192] | 2391 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
[8063] | 2392 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
| 2393 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2394 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2395 | ac_save_CFLAGS=$CFLAGS
|
---|
| 2396 | CFLAGS="-g"
|
---|
[10192] | 2397 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
[8063] | 2398 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
| 2399 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2400 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2401 | else
|
---|
| 2402 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2403 | /* confdefs.h. */
|
---|
| 2404 | _ACEOF
|
---|
| 2405 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2406 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2407 | /* end confdefs.h. */
|
---|
[3365] | 2408 |
|
---|
[8063] | 2409 | int
|
---|
| 2410 | main ()
|
---|
| 2411 | {
|
---|
[8059] | 2412 |
|
---|
[8063] | 2413 | ;
|
---|
| 2414 | return 0;
|
---|
| 2415 | }
|
---|
| 2416 | _ACEOF
|
---|
| 2417 | rm -f conftest.$ac_objext
|
---|
[10192] | 2418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2419 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2420 | ac_status=$?
|
---|
[10192] | 2421 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2422 | rm -f conftest.er1
|
---|
| 2423 | cat conftest.err >&5
|
---|
| 2424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2425 | (exit $ac_status); } &&
|
---|
[10192] | 2426 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2427 | || test ! -s conftest.err'
|
---|
| 2428 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2429 | (eval $ac_try) 2>&5
|
---|
| 2430 | ac_status=$?
|
---|
[10192] | 2431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2432 | (exit $ac_status); }; } &&
|
---|
| 2433 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2435 | (eval $ac_try) 2>&5
|
---|
| 2436 | ac_status=$?
|
---|
| 2437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2438 | (exit $ac_status); }; }; then
|
---|
[3365] | 2439 | ac_cv_prog_cc_g=yes
|
---|
| 2440 | else
|
---|
[8063] | 2441 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2442 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2443 |
|
---|
[8063] | 2444 | ac_cv_prog_cc_g=no
|
---|
[3365] | 2445 | fi
|
---|
[10192] | 2446 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 2447 | fi
|
---|
[10192] | 2448 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
[8063] | 2449 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
[3365] | 2450 | if test "$ac_test_CFLAGS" = set; then
|
---|
[8063] | 2451 | CFLAGS=$ac_save_CFLAGS
|
---|
[3365] | 2452 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2453 | if test "$GCC" = yes; then
|
---|
| 2454 | CFLAGS="-g -O2"
|
---|
| 2455 | else
|
---|
| 2456 | CFLAGS="-g"
|
---|
| 2457 | fi
|
---|
| 2458 | else
|
---|
| 2459 | if test "$GCC" = yes; then
|
---|
| 2460 | CFLAGS="-O2"
|
---|
| 2461 | else
|
---|
| 2462 | CFLAGS=
|
---|
| 2463 | fi
|
---|
| 2464 | fi
|
---|
[10192] | 2465 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
| 2466 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
| 2467 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 2468 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2469 | else
|
---|
| 2470 | ac_cv_prog_cc_stdc=no
|
---|
| 2471 | ac_save_CC=$CC
|
---|
| 2472 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2473 | /* confdefs.h. */
|
---|
| 2474 | _ACEOF
|
---|
| 2475 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2476 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2477 | /* end confdefs.h. */
|
---|
| 2478 | #include <stdarg.h>
|
---|
| 2479 | #include <stdio.h>
|
---|
| 2480 | #include <sys/types.h>
|
---|
| 2481 | #include <sys/stat.h>
|
---|
| 2482 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2483 | struct buf { int x; };
|
---|
| 2484 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2485 | static char *e (p, i)
|
---|
| 2486 | char **p;
|
---|
| 2487 | int i;
|
---|
| 2488 | {
|
---|
| 2489 | return p[i];
|
---|
| 2490 | }
|
---|
| 2491 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2492 | {
|
---|
| 2493 | char *s;
|
---|
| 2494 | va_list v;
|
---|
| 2495 | va_start (v,p);
|
---|
| 2496 | s = g (p, va_arg (v,int));
|
---|
| 2497 | va_end (v);
|
---|
| 2498 | return s;
|
---|
| 2499 | }
|
---|
| 2500 |
|
---|
| 2501 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2502 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2503 | These don't provoke an error unfortunately, instead are silently treated
|
---|
| 2504 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
| 2505 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2506 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
| 2507 | that's true only with -std1. */
|
---|
| 2508 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2509 |
|
---|
| 2510 | int test (int i, double x);
|
---|
| 2511 | struct s1 {int (*f) (int a);};
|
---|
| 2512 | struct s2 {int (*f) (double a);};
|
---|
| 2513 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2514 | int argc;
|
---|
| 2515 | char **argv;
|
---|
| 2516 | int
|
---|
| 2517 | main ()
|
---|
| 2518 | {
|
---|
| 2519 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2520 | ;
|
---|
| 2521 | return 0;
|
---|
| 2522 | }
|
---|
| 2523 | _ACEOF
|
---|
| 2524 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 2525 | # breaks some systems' header files.
|
---|
| 2526 | # AIX -qlanglvl=ansi
|
---|
| 2527 | # Ultrix and OSF/1 -std1
|
---|
| 2528 | # HP-UX 10.20 and later -Ae
|
---|
| 2529 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
| 2530 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
| 2531 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
| 2532 | do
|
---|
| 2533 | CC="$ac_save_CC $ac_arg"
|
---|
| 2534 | rm -f conftest.$ac_objext
|
---|
| 2535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2536 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2537 | ac_status=$?
|
---|
| 2538 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2539 | rm -f conftest.er1
|
---|
| 2540 | cat conftest.err >&5
|
---|
| 2541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2542 | (exit $ac_status); } &&
|
---|
| 2543 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2544 | || test ! -s conftest.err'
|
---|
| 2545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2546 | (eval $ac_try) 2>&5
|
---|
| 2547 | ac_status=$?
|
---|
| 2548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2549 | (exit $ac_status); }; } &&
|
---|
| 2550 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2552 | (eval $ac_try) 2>&5
|
---|
| 2553 | ac_status=$?
|
---|
| 2554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2555 | (exit $ac_status); }; }; then
|
---|
| 2556 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
| 2557 | break
|
---|
| 2558 | else
|
---|
| 2559 | echo "$as_me: failed program was:" >&5
|
---|
| 2560 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2561 |
|
---|
| 2562 | fi
|
---|
| 2563 | rm -f conftest.err conftest.$ac_objext
|
---|
| 2564 | done
|
---|
| 2565 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
| 2566 | CC=$ac_save_CC
|
---|
| 2567 |
|
---|
| 2568 | fi
|
---|
| 2569 |
|
---|
| 2570 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 2571 | x|xno)
|
---|
| 2572 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2573 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
| 2574 | *)
|
---|
| 2575 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 2576 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 2577 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 2578 | esac
|
---|
| 2579 |
|
---|
[8063] | 2580 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
| 2581 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
| 2582 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
| 2583 | # the declaration of exit, since it's the most demanding environment.
|
---|
| 2584 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2585 | #ifndef __cplusplus
|
---|
| 2586 | choke me
|
---|
| 2587 | #endif
|
---|
| 2588 | _ACEOF
|
---|
| 2589 | rm -f conftest.$ac_objext
|
---|
[10192] | 2590 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2591 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2592 | ac_status=$?
|
---|
[10192] | 2593 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2594 | rm -f conftest.er1
|
---|
| 2595 | cat conftest.err >&5
|
---|
| 2596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2597 | (exit $ac_status); } &&
|
---|
[10192] | 2598 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2599 | || test ! -s conftest.err'
|
---|
| 2600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2601 | (eval $ac_try) 2>&5
|
---|
| 2602 | ac_status=$?
|
---|
[10192] | 2603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2604 | (exit $ac_status); }; } &&
|
---|
| 2605 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2607 | (eval $ac_try) 2>&5
|
---|
| 2608 | ac_status=$?
|
---|
| 2609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2610 | (exit $ac_status); }; }; then
|
---|
| 2611 | for ac_declaration in \
|
---|
[10192] | 2612 | '' \
|
---|
[8063] | 2613 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2614 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2615 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2616 | 'extern "C" void exit (int);' \
|
---|
| 2617 | 'void exit (int);'
|
---|
| 2618 | do
|
---|
| 2619 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2620 | /* confdefs.h. */
|
---|
| 2621 | _ACEOF
|
---|
| 2622 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2623 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2624 | /* end confdefs.h. */
|
---|
| 2625 | $ac_declaration
|
---|
[8063] | 2626 | #include <stdlib.h>
|
---|
| 2627 | int
|
---|
| 2628 | main ()
|
---|
| 2629 | {
|
---|
| 2630 | exit (42);
|
---|
| 2631 | ;
|
---|
| 2632 | return 0;
|
---|
| 2633 | }
|
---|
| 2634 | _ACEOF
|
---|
| 2635 | rm -f conftest.$ac_objext
|
---|
[10192] | 2636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2637 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2638 | ac_status=$?
|
---|
[10192] | 2639 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2640 | rm -f conftest.er1
|
---|
| 2641 | cat conftest.err >&5
|
---|
| 2642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2643 | (exit $ac_status); } &&
|
---|
[10192] | 2644 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2645 | || test ! -s conftest.err'
|
---|
| 2646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2647 | (eval $ac_try) 2>&5
|
---|
| 2648 | ac_status=$?
|
---|
[10192] | 2649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2650 | (exit $ac_status); }; } &&
|
---|
| 2651 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2653 | (eval $ac_try) 2>&5
|
---|
| 2654 | ac_status=$?
|
---|
| 2655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2656 | (exit $ac_status); }; }; then
|
---|
| 2657 | :
|
---|
| 2658 | else
|
---|
| 2659 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2660 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2661 |
|
---|
[8063] | 2662 | continue
|
---|
| 2663 | fi
|
---|
[10192] | 2664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 2665 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2666 | /* confdefs.h. */
|
---|
| 2667 | _ACEOF
|
---|
| 2668 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2669 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2670 | /* end confdefs.h. */
|
---|
[8063] | 2671 | $ac_declaration
|
---|
| 2672 | int
|
---|
| 2673 | main ()
|
---|
| 2674 | {
|
---|
| 2675 | exit (42);
|
---|
| 2676 | ;
|
---|
| 2677 | return 0;
|
---|
| 2678 | }
|
---|
| 2679 | _ACEOF
|
---|
| 2680 | rm -f conftest.$ac_objext
|
---|
[10192] | 2681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2682 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 2683 | ac_status=$?
|
---|
[10192] | 2684 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2685 | rm -f conftest.er1
|
---|
| 2686 | cat conftest.err >&5
|
---|
| 2687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2688 | (exit $ac_status); } &&
|
---|
[10192] | 2689 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2690 | || test ! -s conftest.err'
|
---|
| 2691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 2692 | (eval $ac_try) 2>&5
|
---|
| 2693 | ac_status=$?
|
---|
[10192] | 2694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2695 | (exit $ac_status); }; } &&
|
---|
| 2696 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2698 | (eval $ac_try) 2>&5
|
---|
| 2699 | ac_status=$?
|
---|
| 2700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 2701 | (exit $ac_status); }; }; then
|
---|
| 2702 | break
|
---|
| 2703 | else
|
---|
| 2704 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2705 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2706 |
|
---|
[8063] | 2707 | fi
|
---|
[10192] | 2708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 2709 | done
|
---|
[10192] | 2710 | rm -f conftest*
|
---|
| 2711 | if test -n "$ac_declaration"; then
|
---|
| 2712 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2713 | echo $ac_declaration >>confdefs.h
|
---|
| 2714 | echo '#endif' >>confdefs.h
|
---|
| 2715 | fi
|
---|
[3365] | 2716 |
|
---|
[8063] | 2717 | else
|
---|
| 2718 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 2719 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2720 |
|
---|
[8063] | 2721 | fi
|
---|
[10192] | 2722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 2723 | ac_ext=c
|
---|
| 2724 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2725 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2726 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2727 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2728 |
|
---|
[3365] | 2729 | ac_aux_dir=
|
---|
| 2730 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 2731 | if test -f $ac_dir/install-sh; then
|
---|
| 2732 | ac_aux_dir=$ac_dir
|
---|
| 2733 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 2734 | break
|
---|
| 2735 | elif test -f $ac_dir/install.sh; then
|
---|
| 2736 | ac_aux_dir=$ac_dir
|
---|
| 2737 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 2738 | break
|
---|
[8063] | 2739 | elif test -f $ac_dir/shtool; then
|
---|
| 2740 | ac_aux_dir=$ac_dir
|
---|
| 2741 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 2742 | break
|
---|
[3365] | 2743 | fi
|
---|
| 2744 | done
|
---|
| 2745 | if test -z "$ac_aux_dir"; then
|
---|
[10192] | 2746 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
[8063] | 2747 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
| 2748 | { (exit 1); exit 1; }; }
|
---|
[3365] | 2749 | fi
|
---|
[8063] | 2750 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
| 2751 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
| 2752 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
[3365] | 2753 |
|
---|
| 2754 | # Find a good install program. We prefer a C program (faster),
|
---|
| 2755 | # so one script is as good as another. But avoid the broken or
|
---|
| 2756 | # incompatible versions:
|
---|
| 2757 | # SysV /etc/install, /usr/sbin/install
|
---|
| 2758 | # SunOS /usr/etc/install
|
---|
| 2759 | # IRIX /sbin/install
|
---|
| 2760 | # AIX /bin/install
|
---|
[8063] | 2761 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
[3365] | 2762 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 2763 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 2764 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[10192] | 2765 | # OS/2's system install, which has a completely different semantic
|
---|
[3365] | 2766 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[10192] | 2767 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 2768 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
[3365] | 2769 | if test -z "$INSTALL"; then
|
---|
[8063] | 2770 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 2771 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2772 | else
|
---|
[10192] | 2773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2774 | for as_dir in $PATH
|
---|
| 2775 | do
|
---|
| 2776 | IFS=$as_save_IFS
|
---|
| 2777 | test -z "$as_dir" && as_dir=.
|
---|
| 2778 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 2779 | case $as_dir/ in
|
---|
| 2780 | ./ | .// | /cC/* | \
|
---|
| 2781 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
| 2782 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
| 2783 | /usr/ucb/* ) ;;
|
---|
| 2784 | *)
|
---|
| 2785 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 2786 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 2787 | # by default.
|
---|
| 2788 | for ac_prog in ginstall scoinst install; do
|
---|
| 2789 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2790 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[3365] | 2791 | if test $ac_prog = install &&
|
---|
[10192] | 2792 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[3365] | 2793 | # AIX install. It has an incompatible calling convention.
|
---|
| 2794 | :
|
---|
[8063] | 2795 | elif test $ac_prog = install &&
|
---|
[10192] | 2796 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[8063] | 2797 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 2798 | :
|
---|
[3365] | 2799 | else
|
---|
[10192] | 2800 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 2801 | break 3
|
---|
[3365] | 2802 | fi
|
---|
| 2803 | fi
|
---|
| 2804 | done
|
---|
[10192] | 2805 | done
|
---|
| 2806 | ;;
|
---|
| 2807 | esac
|
---|
| 2808 | done
|
---|
[3365] | 2809 |
|
---|
[10192] | 2810 |
|
---|
[3365] | 2811 | fi
|
---|
| 2812 | if test "${ac_cv_path_install+set}" = set; then
|
---|
[8063] | 2813 | INSTALL=$ac_cv_path_install
|
---|
[3365] | 2814 | else
|
---|
| 2815 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 2816 | # path for INSTALL within a source directory, because that will
|
---|
| 2817 | # break other packages using the cache if that directory is
|
---|
| 2818 | # removed, or if the path is relative.
|
---|
[8063] | 2819 | INSTALL=$ac_install_sh
|
---|
[3365] | 2820 | fi
|
---|
| 2821 | fi
|
---|
[10192] | 2822 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
[8063] | 2823 | echo "${ECHO_T}$INSTALL" >&6
|
---|
[3365] | 2824 |
|
---|
| 2825 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 2826 | # It thinks the first close brace ends the variable substitution.
|
---|
| 2827 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 2828 |
|
---|
[8063] | 2829 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
[3365] | 2830 |
|
---|
| 2831 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 2832 |
|
---|
[10192] | 2833 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
[8063] | 2834 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
| 2835 | LN_S=$as_ln_s
|
---|
| 2836 | if test "$LN_S" = "ln -s"; then
|
---|
[10192] | 2837 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 2838 | echo "${ECHO_T}yes" >&6
|
---|
[3365] | 2839 | else
|
---|
[10192] | 2840 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
[8063] | 2841 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
[3365] | 2842 | fi
|
---|
| 2843 |
|
---|
[10192] | 2844 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 2845 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
| 2846 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
[8063] | 2847 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
| 2848 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2849 | else
|
---|
[10192] | 2850 | cat >conftest.make <<\_ACEOF
|
---|
[3365] | 2851 | all:
|
---|
[10192] | 2852 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
| 2853 | _ACEOF
|
---|
[3365] | 2854 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
[8063] | 2855 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
[3365] | 2856 | if test -n "$ac_maketemp"; then
|
---|
| 2857 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 2858 | else
|
---|
| 2859 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 2860 | fi
|
---|
[8063] | 2861 | rm -f conftest.make
|
---|
[3365] | 2862 | fi
|
---|
| 2863 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
[10192] | 2864 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 2865 | echo "${ECHO_T}yes" >&6
|
---|
[3365] | 2866 | SET_MAKE=
|
---|
| 2867 | else
|
---|
[10192] | 2868 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2869 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2870 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 2871 | fi
|
---|
| 2872 |
|
---|
[8063] | 2873 | if test -n "$ac_tool_prefix"; then
|
---|
| 2874 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 2875 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[10192] | 2876 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2877 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2878 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
| 2879 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2880 | else
|
---|
| 2881 | if test -n "$RANLIB"; then
|
---|
| 2882 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 2883 | else
|
---|
[10192] | 2884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2885 | for as_dir in $PATH
|
---|
| 2886 | do
|
---|
| 2887 | IFS=$as_save_IFS
|
---|
| 2888 | test -z "$as_dir" && as_dir=.
|
---|
| 2889 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2890 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2891 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
| 2892 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2893 | break 2
|
---|
| 2894 | fi
|
---|
[8063] | 2895 | done
|
---|
[10192] | 2896 | done
|
---|
[8063] | 2897 |
|
---|
[3365] | 2898 | fi
|
---|
| 2899 | fi
|
---|
[8063] | 2900 | RANLIB=$ac_cv_prog_RANLIB
|
---|
[3365] | 2901 | if test -n "$RANLIB"; then
|
---|
[10192] | 2902 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
[8063] | 2903 | echo "${ECHO_T}$RANLIB" >&6
|
---|
[3365] | 2904 | else
|
---|
[10192] | 2905 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2906 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 2907 | fi
|
---|
| 2908 |
|
---|
[8063] | 2909 | fi
|
---|
| 2910 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 2911 | ac_ct_RANLIB=$RANLIB
|
---|
| 2912 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 2913 | set dummy ranlib; ac_word=$2
|
---|
[10192] | 2914 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
[8063] | 2915 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2916 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 2917 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2918 | else
|
---|
| 2919 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 2920 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 2921 | else
|
---|
[10192] | 2922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2923 | for as_dir in $PATH
|
---|
| 2924 | do
|
---|
| 2925 | IFS=$as_save_IFS
|
---|
| 2926 | test -z "$as_dir" && as_dir=.
|
---|
| 2927 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2928 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2929 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
| 2930 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2931 | break 2
|
---|
| 2932 | fi
|
---|
[8063] | 2933 | done
|
---|
[10192] | 2934 | done
|
---|
[3365] | 2935 |
|
---|
[8063] | 2936 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
| 2937 | fi
|
---|
| 2938 | fi
|
---|
| 2939 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 2940 | if test -n "$ac_ct_RANLIB"; then
|
---|
[10192] | 2941 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
[8063] | 2942 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
| 2943 | else
|
---|
[10192] | 2944 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 2945 | echo "${ECHO_T}no" >&6
|
---|
| 2946 | fi
|
---|
| 2947 |
|
---|
| 2948 | RANLIB=$ac_ct_RANLIB
|
---|
| 2949 | else
|
---|
| 2950 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 2951 | fi
|
---|
| 2952 |
|
---|
[10192] | 2953 |
|
---|
| 2954 |
|
---|
[8063] | 2955 | ac_ext=c
|
---|
| 2956 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2957 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2958 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2959 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[10192] | 2960 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
[8063] | 2961 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
[3365] | 2962 | # On Suns, sometimes $CPP names a directory.
|
---|
| 2963 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 2964 | CPP=
|
---|
| 2965 | fi
|
---|
| 2966 | if test -z "$CPP"; then
|
---|
[8063] | 2967 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 2968 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 2969 | else
|
---|
[8063] | 2970 | # Double quotes because CPP needs to be expanded
|
---|
| 2971 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 2972 | do
|
---|
| 2973 | ac_preproc_ok=false
|
---|
| 2974 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 2975 | do
|
---|
| 2976 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 2977 | # with a fresh cross-compiler works.
|
---|
[10192] | 2978 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 2979 | # <limits.h> exists even on freestanding compilers.
|
---|
[3365] | 2980 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
[8063] | 2981 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 2982 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 2983 | /* confdefs.h. */
|
---|
[8063] | 2984 | _ACEOF
|
---|
[10192] | 2985 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2986 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2987 | /* end confdefs.h. */
|
---|
| 2988 | #ifdef __STDC__
|
---|
| 2989 | # include <limits.h>
|
---|
| 2990 | #else
|
---|
| 2991 | # include <assert.h>
|
---|
| 2992 | #endif
|
---|
| 2993 | Syntax error
|
---|
| 2994 | _ACEOF
|
---|
| 2995 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 2996 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 2997 | ac_status=$?
|
---|
[10192] | 2998 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 2999 | rm -f conftest.er1
|
---|
| 3000 | cat conftest.err >&5
|
---|
[10192] | 3001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3002 | (exit $ac_status); } >/dev/null; then
|
---|
| 3003 | if test -s conftest.err; then
|
---|
| 3004 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3005 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3006 | else
|
---|
| 3007 | ac_cpp_err=
|
---|
| 3008 | fi
|
---|
| 3009 | else
|
---|
| 3010 | ac_cpp_err=yes
|
---|
| 3011 | fi
|
---|
| 3012 | if test -z "$ac_cpp_err"; then
|
---|
[3365] | 3013 | :
|
---|
| 3014 | else
|
---|
[8063] | 3015 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3016 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3017 |
|
---|
[8063] | 3018 | # Broken: fails on valid input.
|
---|
| 3019 | continue
|
---|
| 3020 | fi
|
---|
| 3021 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3022 |
|
---|
| 3023 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3024 | # can be detected and how.
|
---|
| 3025 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3026 | /* confdefs.h. */
|
---|
| 3027 | _ACEOF
|
---|
| 3028 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3029 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3030 | /* end confdefs.h. */
|
---|
[8063] | 3031 | #include <ac_nonexistent.h>
|
---|
| 3032 | _ACEOF
|
---|
[10192] | 3033 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 3034 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3035 | ac_status=$?
|
---|
[10192] | 3036 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 3037 | rm -f conftest.er1
|
---|
| 3038 | cat conftest.err >&5
|
---|
[10192] | 3039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3040 | (exit $ac_status); } >/dev/null; then
|
---|
| 3041 | if test -s conftest.err; then
|
---|
| 3042 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3043 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3044 | else
|
---|
| 3045 | ac_cpp_err=
|
---|
| 3046 | fi
|
---|
[3365] | 3047 | else
|
---|
[8063] | 3048 | ac_cpp_err=yes
|
---|
| 3049 | fi
|
---|
| 3050 | if test -z "$ac_cpp_err"; then
|
---|
| 3051 | # Broken: success on invalid input.
|
---|
| 3052 | continue
|
---|
| 3053 | else
|
---|
| 3054 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3055 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3056 |
|
---|
[8063] | 3057 | # Passes both tests.
|
---|
| 3058 | ac_preproc_ok=:
|
---|
| 3059 | break
|
---|
| 3060 | fi
|
---|
| 3061 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3062 |
|
---|
| 3063 | done
|
---|
| 3064 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3065 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3066 | if $ac_preproc_ok; then
|
---|
[10192] | 3067 | break
|
---|
[8063] | 3068 | fi
|
---|
| 3069 |
|
---|
| 3070 | done
|
---|
| 3071 | ac_cv_prog_CPP=$CPP
|
---|
| 3072 |
|
---|
| 3073 | fi
|
---|
| 3074 | CPP=$ac_cv_prog_CPP
|
---|
| 3075 | else
|
---|
| 3076 | ac_cv_prog_CPP=$CPP
|
---|
| 3077 | fi
|
---|
[10192] | 3078 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
[8063] | 3079 | echo "${ECHO_T}$CPP" >&6
|
---|
| 3080 | ac_preproc_ok=false
|
---|
| 3081 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3082 | do
|
---|
| 3083 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3084 | # with a fresh cross-compiler works.
|
---|
[10192] | 3085 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3086 | # <limits.h> exists even on freestanding compilers.
|
---|
[8063] | 3087 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3088 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3089 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3090 | /* confdefs.h. */
|
---|
[8063] | 3091 | _ACEOF
|
---|
[10192] | 3092 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3093 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3094 | /* end confdefs.h. */
|
---|
| 3095 | #ifdef __STDC__
|
---|
| 3096 | # include <limits.h>
|
---|
| 3097 | #else
|
---|
| 3098 | # include <assert.h>
|
---|
| 3099 | #endif
|
---|
| 3100 | Syntax error
|
---|
| 3101 | _ACEOF
|
---|
| 3102 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 3103 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3104 | ac_status=$?
|
---|
[10192] | 3105 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 3106 | rm -f conftest.er1
|
---|
| 3107 | cat conftest.err >&5
|
---|
[10192] | 3108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3109 | (exit $ac_status); } >/dev/null; then
|
---|
| 3110 | if test -s conftest.err; then
|
---|
| 3111 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3112 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3113 | else
|
---|
| 3114 | ac_cpp_err=
|
---|
| 3115 | fi
|
---|
| 3116 | else
|
---|
| 3117 | ac_cpp_err=yes
|
---|
| 3118 | fi
|
---|
| 3119 | if test -z "$ac_cpp_err"; then
|
---|
[3365] | 3120 | :
|
---|
| 3121 | else
|
---|
[8063] | 3122 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3123 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3124 |
|
---|
[8063] | 3125 | # Broken: fails on valid input.
|
---|
| 3126 | continue
|
---|
[3365] | 3127 | fi
|
---|
[8063] | 3128 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3129 |
|
---|
| 3130 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3131 | # can be detected and how.
|
---|
| 3132 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3133 | /* confdefs.h. */
|
---|
| 3134 | _ACEOF
|
---|
| 3135 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3136 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3137 | /* end confdefs.h. */
|
---|
[8063] | 3138 | #include <ac_nonexistent.h>
|
---|
| 3139 | _ACEOF
|
---|
[10192] | 3140 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 3141 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3142 | ac_status=$?
|
---|
[10192] | 3143 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 3144 | rm -f conftest.er1
|
---|
| 3145 | cat conftest.err >&5
|
---|
[10192] | 3146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3147 | (exit $ac_status); } >/dev/null; then
|
---|
| 3148 | if test -s conftest.err; then
|
---|
| 3149 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3150 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3151 | else
|
---|
| 3152 | ac_cpp_err=
|
---|
| 3153 | fi
|
---|
| 3154 | else
|
---|
| 3155 | ac_cpp_err=yes
|
---|
[3365] | 3156 | fi
|
---|
[8063] | 3157 | if test -z "$ac_cpp_err"; then
|
---|
| 3158 | # Broken: success on invalid input.
|
---|
| 3159 | continue
|
---|
| 3160 | else
|
---|
| 3161 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3162 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3163 |
|
---|
[8063] | 3164 | # Passes both tests.
|
---|
| 3165 | ac_preproc_ok=:
|
---|
| 3166 | break
|
---|
[3365] | 3167 | fi
|
---|
[8063] | 3168 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3169 |
|
---|
| 3170 | done
|
---|
| 3171 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3172 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3173 | if $ac_preproc_ok; then
|
---|
| 3174 | :
|
---|
[3365] | 3175 | else
|
---|
[10192] | 3176 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3177 | See \`config.log' for more details." >&5
|
---|
| 3178 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3179 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 3180 | { (exit 1); exit 1; }; }
|
---|
[3365] | 3181 | fi
|
---|
| 3182 |
|
---|
[8063] | 3183 | ac_ext=c
|
---|
| 3184 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3185 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3186 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3187 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3188 |
|
---|
[10192] | 3189 |
|
---|
| 3190 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 3191 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
| 3192 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
| 3193 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3194 | else
|
---|
| 3195 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
| 3196 | then ac_cv_prog_egrep='grep -E'
|
---|
| 3197 | else ac_cv_prog_egrep='egrep'
|
---|
| 3198 | fi
|
---|
| 3199 | fi
|
---|
| 3200 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
| 3201 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
| 3202 | EGREP=$ac_cv_prog_egrep
|
---|
| 3203 |
|
---|
| 3204 |
|
---|
| 3205 |
|
---|
| 3206 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
[8063] | 3207 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
| 3208 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3209 | /* confdefs.h. */
|
---|
| 3210 | _ACEOF
|
---|
| 3211 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3212 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3213 | /* end confdefs.h. */
|
---|
[3365] | 3214 | #ifdef _AIX
|
---|
| 3215 | yes
|
---|
| 3216 | #endif
|
---|
| 3217 |
|
---|
[8063] | 3218 | _ACEOF
|
---|
[3365] | 3219 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 3220 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
| 3221 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 3222 | echo "${ECHO_T}yes" >&6
|
---|
[10192] | 3223 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3224 | #define _ALL_SOURCE 1
|
---|
[10192] | 3225 | _ACEOF
|
---|
[3365] | 3226 |
|
---|
| 3227 | else
|
---|
[10192] | 3228 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 3229 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 3230 | fi
|
---|
| 3231 | rm -f conftest*
|
---|
| 3232 |
|
---|
[8063] | 3233 |
|
---|
[10192] | 3234 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 3235 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
| 3236 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 3237 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3238 | else
|
---|
| 3239 | ac_func_search_save_LIBS=$LIBS
|
---|
| 3240 | ac_cv_search_strerror=no
|
---|
| 3241 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3242 | /* confdefs.h. */
|
---|
| 3243 | _ACEOF
|
---|
| 3244 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3245 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3246 | /* end confdefs.h. */
|
---|
[3365] | 3247 |
|
---|
[10192] | 3248 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3249 | #ifdef __cplusplus
|
---|
| 3250 | extern "C"
|
---|
| 3251 | #endif
|
---|
| 3252 | /* We use char because int might match the return type of a gcc2
|
---|
| 3253 | builtin and then its argument prototype would still apply. */
|
---|
| 3254 | char strerror ();
|
---|
| 3255 | int
|
---|
| 3256 | main ()
|
---|
| 3257 | {
|
---|
| 3258 | strerror ();
|
---|
| 3259 | ;
|
---|
| 3260 | return 0;
|
---|
| 3261 | }
|
---|
| 3262 | _ACEOF
|
---|
| 3263 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3265 | (eval $ac_link) 2>conftest.er1
|
---|
| 3266 | ac_status=$?
|
---|
| 3267 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3268 | rm -f conftest.er1
|
---|
| 3269 | cat conftest.err >&5
|
---|
| 3270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3271 | (exit $ac_status); } &&
|
---|
| 3272 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3273 | || test ! -s conftest.err'
|
---|
| 3274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3275 | (eval $ac_try) 2>&5
|
---|
| 3276 | ac_status=$?
|
---|
| 3277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3278 | (exit $ac_status); }; } &&
|
---|
| 3279 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3281 | (eval $ac_try) 2>&5
|
---|
| 3282 | ac_status=$?
|
---|
| 3283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3284 | (exit $ac_status); }; }; then
|
---|
| 3285 | ac_cv_search_strerror="none required"
|
---|
[3365] | 3286 | else
|
---|
[10192] | 3287 | echo "$as_me: failed program was:" >&5
|
---|
| 3288 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3289 |
|
---|
[3365] | 3290 | fi
|
---|
[10192] | 3291 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3292 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3293 | if test "$ac_cv_search_strerror" = no; then
|
---|
| 3294 | for ac_lib in cposix; do
|
---|
| 3295 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 3296 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3297 | /* confdefs.h. */
|
---|
| 3298 | _ACEOF
|
---|
| 3299 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3300 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3301 | /* end confdefs.h. */
|
---|
[3365] | 3302 |
|
---|
[10192] | 3303 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3304 | #ifdef __cplusplus
|
---|
| 3305 | extern "C"
|
---|
| 3306 | #endif
|
---|
| 3307 | /* We use char because int might match the return type of a gcc2
|
---|
| 3308 | builtin and then its argument prototype would still apply. */
|
---|
| 3309 | char strerror ();
|
---|
| 3310 | int
|
---|
| 3311 | main ()
|
---|
| 3312 | {
|
---|
| 3313 | strerror ();
|
---|
| 3314 | ;
|
---|
| 3315 | return 0;
|
---|
| 3316 | }
|
---|
| 3317 | _ACEOF
|
---|
| 3318 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3320 | (eval $ac_link) 2>conftest.er1
|
---|
| 3321 | ac_status=$?
|
---|
| 3322 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3323 | rm -f conftest.er1
|
---|
| 3324 | cat conftest.err >&5
|
---|
| 3325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3326 | (exit $ac_status); } &&
|
---|
| 3327 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3328 | || test ! -s conftest.err'
|
---|
| 3329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3330 | (eval $ac_try) 2>&5
|
---|
| 3331 | ac_status=$?
|
---|
| 3332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3333 | (exit $ac_status); }; } &&
|
---|
| 3334 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3336 | (eval $ac_try) 2>&5
|
---|
| 3337 | ac_status=$?
|
---|
| 3338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3339 | (exit $ac_status); }; }; then
|
---|
| 3340 | ac_cv_search_strerror="-l$ac_lib"
|
---|
| 3341 | break
|
---|
| 3342 | else
|
---|
| 3343 | echo "$as_me: failed program was:" >&5
|
---|
| 3344 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3345 |
|
---|
| 3346 | fi
|
---|
| 3347 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3348 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3349 | done
|
---|
| 3350 | fi
|
---|
| 3351 | LIBS=$ac_func_search_save_LIBS
|
---|
| 3352 | fi
|
---|
| 3353 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 3354 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
| 3355 | if test "$ac_cv_search_strerror" != no; then
|
---|
| 3356 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
| 3357 |
|
---|
| 3358 | fi
|
---|
| 3359 |
|
---|
| 3360 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 3361 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 3362 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 3363 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3364 | else
|
---|
| 3365 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3366 | /* confdefs.h. */
|
---|
| 3367 | _ACEOF
|
---|
| 3368 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3369 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3370 | /* end confdefs.h. */
|
---|
| 3371 | #include <stdlib.h>
|
---|
| 3372 | #include <stdarg.h>
|
---|
| 3373 | #include <string.h>
|
---|
| 3374 | #include <float.h>
|
---|
| 3375 |
|
---|
| 3376 | int
|
---|
| 3377 | main ()
|
---|
| 3378 | {
|
---|
| 3379 |
|
---|
| 3380 | ;
|
---|
| 3381 | return 0;
|
---|
| 3382 | }
|
---|
| 3383 | _ACEOF
|
---|
| 3384 | rm -f conftest.$ac_objext
|
---|
| 3385 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3386 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3387 | ac_status=$?
|
---|
| 3388 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3389 | rm -f conftest.er1
|
---|
| 3390 | cat conftest.err >&5
|
---|
| 3391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3392 | (exit $ac_status); } &&
|
---|
| 3393 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3394 | || test ! -s conftest.err'
|
---|
| 3395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3396 | (eval $ac_try) 2>&5
|
---|
| 3397 | ac_status=$?
|
---|
| 3398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3399 | (exit $ac_status); }; } &&
|
---|
| 3400 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3402 | (eval $ac_try) 2>&5
|
---|
| 3403 | ac_status=$?
|
---|
| 3404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3405 | (exit $ac_status); }; }; then
|
---|
| 3406 | ac_cv_header_stdc=yes
|
---|
| 3407 | else
|
---|
| 3408 | echo "$as_me: failed program was:" >&5
|
---|
| 3409 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3410 |
|
---|
| 3411 | ac_cv_header_stdc=no
|
---|
| 3412 | fi
|
---|
| 3413 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3414 |
|
---|
| 3415 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3416 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 3417 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3418 | /* confdefs.h. */
|
---|
| 3419 | _ACEOF
|
---|
| 3420 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3421 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3422 | /* end confdefs.h. */
|
---|
| 3423 | #include <string.h>
|
---|
| 3424 |
|
---|
| 3425 | _ACEOF
|
---|
| 3426 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3427 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 3428 | :
|
---|
| 3429 | else
|
---|
| 3430 | ac_cv_header_stdc=no
|
---|
| 3431 | fi
|
---|
| 3432 | rm -f conftest*
|
---|
| 3433 |
|
---|
| 3434 | fi
|
---|
| 3435 |
|
---|
| 3436 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3437 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 3438 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3439 | /* confdefs.h. */
|
---|
| 3440 | _ACEOF
|
---|
| 3441 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3442 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3443 | /* end confdefs.h. */
|
---|
| 3444 | #include <stdlib.h>
|
---|
| 3445 |
|
---|
| 3446 | _ACEOF
|
---|
| 3447 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3448 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 3449 | :
|
---|
| 3450 | else
|
---|
| 3451 | ac_cv_header_stdc=no
|
---|
| 3452 | fi
|
---|
| 3453 | rm -f conftest*
|
---|
| 3454 |
|
---|
| 3455 | fi
|
---|
| 3456 |
|
---|
| 3457 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3458 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 3459 | if test "$cross_compiling" = yes; then
|
---|
| 3460 | :
|
---|
| 3461 | else
|
---|
| 3462 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3463 | /* confdefs.h. */
|
---|
| 3464 | _ACEOF
|
---|
| 3465 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3466 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3467 | /* end confdefs.h. */
|
---|
| 3468 | #include <ctype.h>
|
---|
| 3469 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 3470 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 3471 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 3472 | #else
|
---|
| 3473 | # define ISLOWER(c) \
|
---|
| 3474 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 3475 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 3476 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 3477 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 3478 | #endif
|
---|
| 3479 |
|
---|
| 3480 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 3481 | int
|
---|
| 3482 | main ()
|
---|
| 3483 | {
|
---|
| 3484 | int i;
|
---|
| 3485 | for (i = 0; i < 256; i++)
|
---|
| 3486 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 3487 | || toupper (i) != TOUPPER (i))
|
---|
| 3488 | exit(2);
|
---|
| 3489 | exit (0);
|
---|
| 3490 | }
|
---|
| 3491 | _ACEOF
|
---|
| 3492 | rm -f conftest$ac_exeext
|
---|
| 3493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3494 | (eval $ac_link) 2>&5
|
---|
| 3495 | ac_status=$?
|
---|
| 3496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3497 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 3498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3499 | (eval $ac_try) 2>&5
|
---|
| 3500 | ac_status=$?
|
---|
| 3501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3502 | (exit $ac_status); }; }; then
|
---|
| 3503 | :
|
---|
| 3504 | else
|
---|
| 3505 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 3506 | echo "$as_me: failed program was:" >&5
|
---|
| 3507 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3508 |
|
---|
| 3509 | ( exit $ac_status )
|
---|
| 3510 | ac_cv_header_stdc=no
|
---|
| 3511 | fi
|
---|
| 3512 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 3513 | fi
|
---|
| 3514 | fi
|
---|
| 3515 | fi
|
---|
| 3516 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 3517 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 3518 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3519 |
|
---|
| 3520 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3521 | #define STDC_HEADERS 1
|
---|
| 3522 | _ACEOF
|
---|
| 3523 |
|
---|
| 3524 | fi
|
---|
| 3525 |
|
---|
| 3526 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 3527 |
|
---|
| 3528 |
|
---|
| 3529 |
|
---|
| 3530 |
|
---|
| 3531 |
|
---|
| 3532 |
|
---|
| 3533 |
|
---|
| 3534 |
|
---|
| 3535 |
|
---|
| 3536 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 3537 | inttypes.h stdint.h unistd.h
|
---|
| 3538 | do
|
---|
| 3539 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 3540 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 3541 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 3542 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 3543 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3544 | else
|
---|
| 3545 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3546 | /* confdefs.h. */
|
---|
| 3547 | _ACEOF
|
---|
| 3548 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3549 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3550 | /* end confdefs.h. */
|
---|
| 3551 | $ac_includes_default
|
---|
| 3552 |
|
---|
| 3553 | #include <$ac_header>
|
---|
| 3554 | _ACEOF
|
---|
| 3555 | rm -f conftest.$ac_objext
|
---|
| 3556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3557 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3558 | ac_status=$?
|
---|
| 3559 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3560 | rm -f conftest.er1
|
---|
| 3561 | cat conftest.err >&5
|
---|
| 3562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3563 | (exit $ac_status); } &&
|
---|
| 3564 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3565 | || test ! -s conftest.err'
|
---|
| 3566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3567 | (eval $ac_try) 2>&5
|
---|
| 3568 | ac_status=$?
|
---|
| 3569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3570 | (exit $ac_status); }; } &&
|
---|
| 3571 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3573 | (eval $ac_try) 2>&5
|
---|
| 3574 | ac_status=$?
|
---|
| 3575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3576 | (exit $ac_status); }; }; then
|
---|
| 3577 | eval "$as_ac_Header=yes"
|
---|
| 3578 | else
|
---|
| 3579 | echo "$as_me: failed program was:" >&5
|
---|
| 3580 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3581 |
|
---|
| 3582 | eval "$as_ac_Header=no"
|
---|
| 3583 | fi
|
---|
| 3584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3585 | fi
|
---|
| 3586 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 3587 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 3588 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 3589 | cat >>confdefs.h <<_ACEOF
|
---|
| 3590 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 3591 | _ACEOF
|
---|
| 3592 |
|
---|
| 3593 | fi
|
---|
| 3594 |
|
---|
| 3595 | done
|
---|
| 3596 |
|
---|
| 3597 |
|
---|
| 3598 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3599 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
[8063] | 3600 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3601 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3602 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[10192] | 3603 | fi
|
---|
| 3604 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3605 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[3365] | 3606 | else
|
---|
[10192] | 3607 | # Is the header compilable?
|
---|
| 3608 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 3609 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
| 3610 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3611 | /* confdefs.h. */
|
---|
| 3612 | _ACEOF
|
---|
| 3613 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3614 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3615 | /* end confdefs.h. */
|
---|
| 3616 | $ac_includes_default
|
---|
[3365] | 3617 | #include <minix/config.h>
|
---|
[8063] | 3618 | _ACEOF
|
---|
[10192] | 3619 | rm -f conftest.$ac_objext
|
---|
| 3620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3621 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3622 | ac_status=$?
|
---|
| 3623 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3624 | rm -f conftest.er1
|
---|
| 3625 | cat conftest.err >&5
|
---|
| 3626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3627 | (exit $ac_status); } &&
|
---|
| 3628 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3629 | || test ! -s conftest.err'
|
---|
| 3630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3631 | (eval $ac_try) 2>&5
|
---|
| 3632 | ac_status=$?
|
---|
| 3633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3634 | (exit $ac_status); }; } &&
|
---|
| 3635 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3637 | (eval $ac_try) 2>&5
|
---|
| 3638 | ac_status=$?
|
---|
| 3639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3640 | (exit $ac_status); }; }; then
|
---|
| 3641 | ac_header_compiler=yes
|
---|
| 3642 | else
|
---|
| 3643 | echo "$as_me: failed program was:" >&5
|
---|
| 3644 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3645 |
|
---|
| 3646 | ac_header_compiler=no
|
---|
| 3647 | fi
|
---|
| 3648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3649 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 3650 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 3651 |
|
---|
| 3652 | # Is the header present?
|
---|
| 3653 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 3654 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
| 3655 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3656 | /* confdefs.h. */
|
---|
| 3657 | _ACEOF
|
---|
| 3658 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3659 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3660 | /* end confdefs.h. */
|
---|
| 3661 | #include <minix/config.h>
|
---|
| 3662 | _ACEOF
|
---|
| 3663 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 3664 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3665 | ac_status=$?
|
---|
[10192] | 3666 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 3667 | rm -f conftest.er1
|
---|
| 3668 | cat conftest.err >&5
|
---|
[10192] | 3669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3670 | (exit $ac_status); } >/dev/null; then
|
---|
| 3671 | if test -s conftest.err; then
|
---|
| 3672 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 3673 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 3674 | else
|
---|
| 3675 | ac_cpp_err=
|
---|
| 3676 | fi
|
---|
[3365] | 3677 | else
|
---|
[8063] | 3678 | ac_cpp_err=yes
|
---|
| 3679 | fi
|
---|
| 3680 | if test -z "$ac_cpp_err"; then
|
---|
[10192] | 3681 | ac_header_preproc=yes
|
---|
[8063] | 3682 | else
|
---|
| 3683 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3684 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3685 |
|
---|
| 3686 | ac_header_preproc=no
|
---|
[3365] | 3687 | fi
|
---|
[8063] | 3688 | rm -f conftest.err conftest.$ac_ext
|
---|
[10192] | 3689 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 3690 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 3691 |
|
---|
| 3692 | # So? What about this header?
|
---|
| 3693 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 3694 | yes:no: )
|
---|
| 3695 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 3696 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 3697 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 3698 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 3699 | ac_header_preproc=yes
|
---|
| 3700 | ;;
|
---|
| 3701 | no:yes:* )
|
---|
| 3702 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 3703 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 3704 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 3705 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 3706 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 3707 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 3708 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 3709 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 3710 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 3711 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 3712 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 3713 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 3714 | (
|
---|
| 3715 | cat <<\_ASBOX
|
---|
| 3716 | ## ------------------------------------------ ##
|
---|
| 3717 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 3718 | ## ------------------------------------------ ##
|
---|
| 3719 | _ASBOX
|
---|
| 3720 | ) |
|
---|
| 3721 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 3722 | ;;
|
---|
| 3723 | esac
|
---|
| 3724 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3725 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3726 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3727 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3728 | else
|
---|
| 3729 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
[3365] | 3730 | fi
|
---|
[10192] | 3731 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
[8063] | 3732 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[10192] | 3733 |
|
---|
| 3734 | fi
|
---|
[8063] | 3735 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
[3365] | 3736 | MINIX=yes
|
---|
| 3737 | else
|
---|
[8063] | 3738 | MINIX=
|
---|
[3365] | 3739 | fi
|
---|
| 3740 |
|
---|
[10192] | 3741 |
|
---|
[3365] | 3742 | if test "$MINIX" = yes; then
|
---|
[8063] | 3743 |
|
---|
[10192] | 3744 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3745 | #define _POSIX_SOURCE 1
|
---|
[10192] | 3746 | _ACEOF
|
---|
[3365] | 3747 |
|
---|
[10192] | 3748 |
|
---|
| 3749 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3750 | #define _POSIX_1_SOURCE 2
|
---|
[10192] | 3751 | _ACEOF
|
---|
[3365] | 3752 |
|
---|
[10192] | 3753 |
|
---|
| 3754 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3755 | #define _MINIX 1
|
---|
[10192] | 3756 | _ACEOF
|
---|
[3365] | 3757 |
|
---|
| 3758 | fi
|
---|
| 3759 |
|
---|
[10192] | 3760 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
[8063] | 3761 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
| 3762 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 3763 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 3764 | else
|
---|
| 3765 | ac_cv_prog_cc_stdc=no
|
---|
| 3766 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 3767 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 3768 | # breaks some systems' header files.
|
---|
| 3769 | # AIX -qlanglvl=ansi
|
---|
| 3770 | # Ultrix and OSF/1 -std1
|
---|
| 3771 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 3772 | # SVR4 -Xc
|
---|
| 3773 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 3774 | do
|
---|
| 3775 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[8063] | 3776 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3777 | /* confdefs.h. */
|
---|
| 3778 | _ACEOF
|
---|
| 3779 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3780 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3781 | /* end confdefs.h. */
|
---|
[3365] | 3782 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 3783 | choke me
|
---|
[8063] | 3784 | #endif
|
---|
[3365] | 3785 |
|
---|
[8063] | 3786 | int
|
---|
| 3787 | main ()
|
---|
| 3788 | {
|
---|
[3365] | 3789 | int test (int i, double x);
|
---|
| 3790 | struct s1 {int (*f) (int a);};
|
---|
| 3791 | struct s2 {int (*f) (double a);};
|
---|
[8063] | 3792 | ;
|
---|
| 3793 | return 0;
|
---|
| 3794 | }
|
---|
| 3795 | _ACEOF
|
---|
| 3796 | rm -f conftest.$ac_objext
|
---|
[10192] | 3797 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3798 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 3799 | ac_status=$?
|
---|
[10192] | 3800 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3801 | rm -f conftest.er1
|
---|
| 3802 | cat conftest.err >&5
|
---|
| 3803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3804 | (exit $ac_status); } &&
|
---|
[10192] | 3805 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3806 | || test ! -s conftest.err'
|
---|
| 3807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 3808 | (eval $ac_try) 2>&5
|
---|
| 3809 | ac_status=$?
|
---|
[10192] | 3810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3811 | (exit $ac_status); }; } &&
|
---|
| 3812 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3814 | (eval $ac_try) 2>&5
|
---|
| 3815 | ac_status=$?
|
---|
| 3816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3817 | (exit $ac_status); }; }; then
|
---|
[3365] | 3818 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 3819 | else
|
---|
[8063] | 3820 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3821 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3822 |
|
---|
[3365] | 3823 | fi
|
---|
[10192] | 3824 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 3825 | done
|
---|
| 3826 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 3827 |
|
---|
| 3828 | fi
|
---|
| 3829 |
|
---|
[10192] | 3830 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
[8063] | 3831 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
[3365] | 3832 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 3833 | x|xno) ;;
|
---|
| 3834 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 3835 | esac
|
---|
| 3836 |
|
---|
[10192] | 3837 |
|
---|
| 3838 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
[8063] | 3839 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
[3365] | 3840 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[10192] | 3841 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 3842 | echo "${ECHO_T}yes" >&6
|
---|
[10192] | 3843 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 3844 | #define PROTOTYPES 1
|
---|
[10192] | 3845 | _ACEOF
|
---|
[3365] | 3846 |
|
---|
| 3847 | U= ANSI2KNR=
|
---|
| 3848 | else
|
---|
[10192] | 3849 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 3850 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 3851 | U=_ ANSI2KNR=ansi2knr
|
---|
| 3852 | fi
|
---|
| 3853 |
|
---|
[10192] | 3854 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
[8063] | 3855 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
| 3856 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 3857 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3858 | else
|
---|
| 3859 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3860 | /* confdefs.h. */
|
---|
| 3861 | _ACEOF
|
---|
| 3862 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3863 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3864 | /* end confdefs.h. */
|
---|
[8063] | 3865 |
|
---|
| 3866 | int
|
---|
| 3867 | main ()
|
---|
| 3868 | {
|
---|
| 3869 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 3870 | #ifndef __cplusplus
|
---|
| 3871 | /* Ultrix mips cc rejects this. */
|
---|
| 3872 | typedef int charset[2];
|
---|
| 3873 | const charset x;
|
---|
| 3874 | /* SunOS 4.1.1 cc rejects this. */
|
---|
| 3875 | char const *const *ccp;
|
---|
| 3876 | char **p;
|
---|
| 3877 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 3878 | struct point {int x, y;};
|
---|
| 3879 | static struct point const zero = {0,0};
|
---|
| 3880 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 3881 | It does not let you subtract one const X* pointer from another in
|
---|
| 3882 | an arm of an if-expression whose if-part is not a constant
|
---|
| 3883 | expression */
|
---|
| 3884 | const char *g = "string";
|
---|
| 3885 | ccp = &g + (g ? g-g : 0);
|
---|
| 3886 | /* HPUX 7.0 cc rejects these. */
|
---|
| 3887 | ++ccp;
|
---|
| 3888 | p = (char**) ccp;
|
---|
| 3889 | ccp = (char const *const *) p;
|
---|
| 3890 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 3891 | char *t;
|
---|
| 3892 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
| 3893 |
|
---|
| 3894 | *t++ = 0;
|
---|
| 3895 | }
|
---|
| 3896 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 3897 | int x[] = {25, 17};
|
---|
| 3898 | const int *foo = &x[0];
|
---|
| 3899 | ++foo;
|
---|
| 3900 | }
|
---|
| 3901 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 3902 | typedef const int *iptr;
|
---|
| 3903 | iptr p = 0;
|
---|
| 3904 | ++p;
|
---|
| 3905 | }
|
---|
| 3906 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 3907 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 3908 | struct s { int j; const int *ap[3]; };
|
---|
| 3909 | struct s *b; b->j = 5;
|
---|
| 3910 | }
|
---|
| 3911 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 3912 | const int foo = 10;
|
---|
| 3913 | }
|
---|
| 3914 | #endif
|
---|
| 3915 |
|
---|
| 3916 | ;
|
---|
| 3917 | return 0;
|
---|
[3365] | 3918 | }
|
---|
[8063] | 3919 | _ACEOF
|
---|
| 3920 | rm -f conftest.$ac_objext
|
---|
[10192] | 3921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3922 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 3923 | ac_status=$?
|
---|
[10192] | 3924 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3925 | rm -f conftest.er1
|
---|
| 3926 | cat conftest.err >&5
|
---|
| 3927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3928 | (exit $ac_status); } &&
|
---|
[10192] | 3929 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3930 | || test ! -s conftest.err'
|
---|
| 3931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 3932 | (eval $ac_try) 2>&5
|
---|
| 3933 | ac_status=$?
|
---|
[10192] | 3934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3935 | (exit $ac_status); }; } &&
|
---|
| 3936 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3938 | (eval $ac_try) 2>&5
|
---|
| 3939 | ac_status=$?
|
---|
| 3940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3941 | (exit $ac_status); }; }; then
|
---|
[3365] | 3942 | ac_cv_c_const=yes
|
---|
| 3943 | else
|
---|
[8063] | 3944 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 3945 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3946 |
|
---|
[8063] | 3947 | ac_cv_c_const=no
|
---|
[3365] | 3948 | fi
|
---|
[10192] | 3949 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 3950 | fi
|
---|
[10192] | 3951 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
[8063] | 3952 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
| 3953 | if test $ac_cv_c_const = no; then
|
---|
[8059] | 3954 |
|
---|
[10192] | 3955 | cat >>confdefs.h <<\_ACEOF
|
---|
[8063] | 3956 | #define const
|
---|
| 3957 | _ACEOF
|
---|
[3365] | 3958 |
|
---|
| 3959 | fi
|
---|
| 3960 |
|
---|
[10192] | 3961 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
[8063] | 3962 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
| 3963 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 3964 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3965 | else
|
---|
| 3966 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 3967 | /* confdefs.h. */
|
---|
| 3968 | _ACEOF
|
---|
| 3969 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3970 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3971 | /* end confdefs.h. */
|
---|
[8063] | 3972 | $ac_includes_default
|
---|
| 3973 | int
|
---|
| 3974 | main ()
|
---|
| 3975 | {
|
---|
| 3976 | if ((off_t *) 0)
|
---|
| 3977 | return 0;
|
---|
| 3978 | if (sizeof (off_t))
|
---|
| 3979 | return 0;
|
---|
| 3980 | ;
|
---|
| 3981 | return 0;
|
---|
| 3982 | }
|
---|
| 3983 | _ACEOF
|
---|
| 3984 | rm -f conftest.$ac_objext
|
---|
[10192] | 3985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3986 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 3987 | ac_status=$?
|
---|
[10192] | 3988 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3989 | rm -f conftest.er1
|
---|
| 3990 | cat conftest.err >&5
|
---|
| 3991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 3992 | (exit $ac_status); } &&
|
---|
[10192] | 3993 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3994 | || test ! -s conftest.err'
|
---|
| 3995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 3996 | (eval $ac_try) 2>&5
|
---|
| 3997 | ac_status=$?
|
---|
[10192] | 3998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3999 | (exit $ac_status); }; } &&
|
---|
| 4000 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4002 | (eval $ac_try) 2>&5
|
---|
| 4003 | ac_status=$?
|
---|
| 4004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4005 | (exit $ac_status); }; }; then
|
---|
[3365] | 4006 | ac_cv_type_off_t=yes
|
---|
| 4007 | else
|
---|
[8063] | 4008 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4009 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4010 |
|
---|
[8063] | 4011 | ac_cv_type_off_t=no
|
---|
[3365] | 4012 | fi
|
---|
[10192] | 4013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 4014 | fi
|
---|
[10192] | 4015 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
[8063] | 4016 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
| 4017 | if test $ac_cv_type_off_t = yes; then
|
---|
| 4018 | :
|
---|
| 4019 | else
|
---|
[8059] | 4020 |
|
---|
[10192] | 4021 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 4022 | #define off_t long
|
---|
[10192] | 4023 | _ACEOF
|
---|
[3365] | 4024 |
|
---|
| 4025 | fi
|
---|
| 4026 |
|
---|
[10192] | 4027 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
[8063] | 4028 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
| 4029 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4030 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4031 | else
|
---|
[8063] | 4032 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4033 | /* confdefs.h. */
|
---|
| 4034 | _ACEOF
|
---|
| 4035 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4036 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4037 | /* end confdefs.h. */
|
---|
[8063] | 4038 | $ac_includes_default
|
---|
| 4039 | int
|
---|
| 4040 | main ()
|
---|
| 4041 | {
|
---|
| 4042 | if ((size_t *) 0)
|
---|
| 4043 | return 0;
|
---|
| 4044 | if (sizeof (size_t))
|
---|
| 4045 | return 0;
|
---|
| 4046 | ;
|
---|
| 4047 | return 0;
|
---|
| 4048 | }
|
---|
| 4049 | _ACEOF
|
---|
| 4050 | rm -f conftest.$ac_objext
|
---|
[10192] | 4051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4052 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4053 | ac_status=$?
|
---|
[10192] | 4054 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4055 | rm -f conftest.er1
|
---|
| 4056 | cat conftest.err >&5
|
---|
| 4057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4058 | (exit $ac_status); } &&
|
---|
[10192] | 4059 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4060 | || test ! -s conftest.err'
|
---|
| 4061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4062 | (eval $ac_try) 2>&5
|
---|
| 4063 | ac_status=$?
|
---|
[10192] | 4064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4065 | (exit $ac_status); }; } &&
|
---|
| 4066 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4068 | (eval $ac_try) 2>&5
|
---|
| 4069 | ac_status=$?
|
---|
| 4070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4071 | (exit $ac_status); }; }; then
|
---|
[3365] | 4072 | ac_cv_type_size_t=yes
|
---|
| 4073 | else
|
---|
[8063] | 4074 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4075 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4076 |
|
---|
[8063] | 4077 | ac_cv_type_size_t=no
|
---|
[3365] | 4078 | fi
|
---|
[10192] | 4079 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 4080 | fi
|
---|
[10192] | 4081 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
[8063] | 4082 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
| 4083 | if test $ac_cv_type_size_t = yes; then
|
---|
| 4084 | :
|
---|
| 4085 | else
|
---|
[8059] | 4086 |
|
---|
[10192] | 4087 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 4088 | #define size_t unsigned
|
---|
[10192] | 4089 | _ACEOF
|
---|
[3365] | 4090 |
|
---|
| 4091 | fi
|
---|
| 4092 |
|
---|
[10192] | 4093 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
[8063] | 4094 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
| 4095 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 4096 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4097 | else
|
---|
[8063] | 4098 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4099 | /* confdefs.h. */
|
---|
| 4100 | _ACEOF
|
---|
| 4101 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4102 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4103 | /* end confdefs.h. */
|
---|
[3365] | 4104 | #include <sys/types.h>
|
---|
| 4105 | #include <sys/time.h>
|
---|
| 4106 | #include <time.h>
|
---|
[8063] | 4107 |
|
---|
| 4108 | int
|
---|
| 4109 | main ()
|
---|
| 4110 | {
|
---|
[10192] | 4111 | if ((struct tm *) 0)
|
---|
| 4112 | return 0;
|
---|
[8063] | 4113 | ;
|
---|
| 4114 | return 0;
|
---|
| 4115 | }
|
---|
| 4116 | _ACEOF
|
---|
| 4117 | rm -f conftest.$ac_objext
|
---|
[10192] | 4118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4119 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4120 | ac_status=$?
|
---|
[10192] | 4121 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4122 | rm -f conftest.er1
|
---|
| 4123 | cat conftest.err >&5
|
---|
| 4124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4125 | (exit $ac_status); } &&
|
---|
[10192] | 4126 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4127 | || test ! -s conftest.err'
|
---|
| 4128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4129 | (eval $ac_try) 2>&5
|
---|
| 4130 | ac_status=$?
|
---|
[10192] | 4131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4132 | (exit $ac_status); }; } &&
|
---|
| 4133 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4135 | (eval $ac_try) 2>&5
|
---|
| 4136 | ac_status=$?
|
---|
| 4137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4138 | (exit $ac_status); }; }; then
|
---|
[3365] | 4139 | ac_cv_header_time=yes
|
---|
| 4140 | else
|
---|
[8063] | 4141 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4142 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4143 |
|
---|
[8063] | 4144 | ac_cv_header_time=no
|
---|
[3365] | 4145 | fi
|
---|
[10192] | 4146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 4147 | fi
|
---|
[10192] | 4148 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
[8063] | 4149 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
| 4150 | if test $ac_cv_header_time = yes; then
|
---|
[8059] | 4151 |
|
---|
[10192] | 4152 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 4153 | #define TIME_WITH_SYS_TIME 1
|
---|
[10192] | 4154 | _ACEOF
|
---|
[3365] | 4155 |
|
---|
| 4156 | fi
|
---|
| 4157 |
|
---|
[10192] | 4158 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
[8063] | 4159 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
| 4160 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 4161 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4162 | else
|
---|
[8063] | 4163 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4164 | /* confdefs.h. */
|
---|
| 4165 | _ACEOF
|
---|
| 4166 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4167 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4168 | /* end confdefs.h. */
|
---|
[3365] | 4169 | #include <sys/types.h>
|
---|
| 4170 | #include <time.h>
|
---|
[8063] | 4171 |
|
---|
| 4172 | int
|
---|
| 4173 | main ()
|
---|
| 4174 | {
|
---|
[3365] | 4175 | struct tm *tp; tp->tm_sec;
|
---|
[8063] | 4176 | ;
|
---|
| 4177 | return 0;
|
---|
| 4178 | }
|
---|
| 4179 | _ACEOF
|
---|
| 4180 | rm -f conftest.$ac_objext
|
---|
[10192] | 4181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4182 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4183 | ac_status=$?
|
---|
[10192] | 4184 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4185 | rm -f conftest.er1
|
---|
| 4186 | cat conftest.err >&5
|
---|
| 4187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4188 | (exit $ac_status); } &&
|
---|
[10192] | 4189 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4190 | || test ! -s conftest.err'
|
---|
| 4191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4192 | (eval $ac_try) 2>&5
|
---|
| 4193 | ac_status=$?
|
---|
[10192] | 4194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4195 | (exit $ac_status); }; } &&
|
---|
| 4196 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4198 | (eval $ac_try) 2>&5
|
---|
| 4199 | ac_status=$?
|
---|
| 4200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4201 | (exit $ac_status); }; }; then
|
---|
[3365] | 4202 | ac_cv_struct_tm=time.h
|
---|
| 4203 | else
|
---|
[8063] | 4204 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4205 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4206 |
|
---|
[8063] | 4207 | ac_cv_struct_tm=sys/time.h
|
---|
[3365] | 4208 | fi
|
---|
[10192] | 4209 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 4210 | fi
|
---|
[10192] | 4211 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
[8063] | 4212 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
| 4213 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
[8059] | 4214 |
|
---|
[10192] | 4215 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 4216 | #define TM_IN_SYS_TIME 1
|
---|
[10192] | 4217 | _ACEOF
|
---|
[3365] | 4218 |
|
---|
| 4219 | fi
|
---|
| 4220 |
|
---|
[10192] | 4221 |
|
---|
[3365] | 4222 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[8063] | 4223 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4224 | /* confdefs.h. */
|
---|
| 4225 | _ACEOF
|
---|
| 4226 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4227 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4228 | /* end confdefs.h. */
|
---|
[3365] | 4229 | #include <stdio.h>
|
---|
| 4230 |
|
---|
[8063] | 4231 | int
|
---|
| 4232 | main ()
|
---|
| 4233 | {
|
---|
| 4234 | FILE *rubbish = popen("yes", "r");
|
---|
| 4235 | ;
|
---|
| 4236 | return 0;
|
---|
| 4237 | }
|
---|
| 4238 | _ACEOF
|
---|
| 4239 | rm -f conftest.$ac_objext
|
---|
[10192] | 4240 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4241 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4242 | ac_status=$?
|
---|
[10192] | 4243 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4244 | rm -f conftest.er1
|
---|
| 4245 | cat conftest.err >&5
|
---|
| 4246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4247 | (exit $ac_status); } &&
|
---|
[10192] | 4248 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4249 | || test ! -s conftest.err'
|
---|
| 4250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4251 | (eval $ac_try) 2>&5
|
---|
| 4252 | ac_status=$?
|
---|
[10192] | 4253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4254 | (exit $ac_status); }; } &&
|
---|
| 4255 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4257 | (eval $ac_try) 2>&5
|
---|
| 4258 | ac_status=$?
|
---|
| 4259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4260 | (exit $ac_status); }; }; then
|
---|
[3365] | 4261 | :
|
---|
| 4262 | else
|
---|
[8063] | 4263 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4264 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4265 |
|
---|
[8063] | 4266 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[3365] | 4267 | fi
|
---|
[10192] | 4268 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 4269 | fi
|
---|
| 4270 |
|
---|
[10192] | 4271 |
|
---|
| 4272 |
|
---|
| 4273 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
[8063] | 4274 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
| 4275 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
| 4276 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4277 | else
|
---|
[8063] | 4278 | ac_check_lib_save_LIBS=$LIBS
|
---|
[8059] | 4279 | LIBS="-lg $LIBS"
|
---|
[8063] | 4280 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4281 | /* confdefs.h. */
|
---|
| 4282 | _ACEOF
|
---|
| 4283 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4284 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4285 | /* end confdefs.h. */
|
---|
[8059] | 4286 |
|
---|
[10192] | 4287 |
|
---|
[8063] | 4288 | int
|
---|
| 4289 | main ()
|
---|
| 4290 | {
|
---|
| 4291 | main ();
|
---|
| 4292 | ;
|
---|
| 4293 | return 0;
|
---|
| 4294 | }
|
---|
| 4295 | _ACEOF
|
---|
| 4296 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4297 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4298 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4299 | ac_status=$?
|
---|
[10192] | 4300 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4301 | rm -f conftest.er1
|
---|
| 4302 | cat conftest.err >&5
|
---|
| 4303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4304 | (exit $ac_status); } &&
|
---|
[10192] | 4305 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4306 | || test ! -s conftest.err'
|
---|
| 4307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4308 | (eval $ac_try) 2>&5
|
---|
| 4309 | ac_status=$?
|
---|
[10192] | 4310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4311 | (exit $ac_status); }; } &&
|
---|
| 4312 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4314 | (eval $ac_try) 2>&5
|
---|
| 4315 | ac_status=$?
|
---|
| 4316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4317 | (exit $ac_status); }; }; then
|
---|
| 4318 | ac_cv_lib_g_main=yes
|
---|
[8059] | 4319 | else
|
---|
[8063] | 4320 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4321 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4322 |
|
---|
[8063] | 4323 | ac_cv_lib_g_main=no
|
---|
[8059] | 4324 | fi
|
---|
[10192] | 4325 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4326 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 4327 | LIBS=$ac_check_lib_save_LIBS
|
---|
[8059] | 4328 | fi
|
---|
[10192] | 4329 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
[8063] | 4330 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
| 4331 | if test $ac_cv_lib_g_main = yes; then
|
---|
[10192] | 4332 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 4333 | #define HAVE_LIBG 1
|
---|
[10192] | 4334 | _ACEOF
|
---|
[8059] | 4335 |
|
---|
| 4336 | LIBS="-lg $LIBS"
|
---|
| 4337 |
|
---|
| 4338 | fi
|
---|
| 4339 |
|
---|
[10192] | 4340 |
|
---|
| 4341 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
[8063] | 4342 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
| 4343 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 4344 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8059] | 4345 | else
|
---|
[8063] | 4346 | ac_check_lib_save_LIBS=$LIBS
|
---|
[3365] | 4347 | LIBS="-lm $LIBS"
|
---|
[8063] | 4348 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4349 | /* confdefs.h. */
|
---|
| 4350 | _ACEOF
|
---|
| 4351 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4352 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4353 | /* end confdefs.h. */
|
---|
[3365] | 4354 |
|
---|
[10192] | 4355 |
|
---|
[8063] | 4356 | int
|
---|
| 4357 | main ()
|
---|
| 4358 | {
|
---|
| 4359 | main ();
|
---|
| 4360 | ;
|
---|
| 4361 | return 0;
|
---|
| 4362 | }
|
---|
| 4363 | _ACEOF
|
---|
| 4364 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4366 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4367 | ac_status=$?
|
---|
[10192] | 4368 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4369 | rm -f conftest.er1
|
---|
| 4370 | cat conftest.err >&5
|
---|
| 4371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4372 | (exit $ac_status); } &&
|
---|
[10192] | 4373 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4374 | || test ! -s conftest.err'
|
---|
| 4375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4376 | (eval $ac_try) 2>&5
|
---|
| 4377 | ac_status=$?
|
---|
[10192] | 4378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4379 | (exit $ac_status); }; } &&
|
---|
| 4380 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4382 | (eval $ac_try) 2>&5
|
---|
| 4383 | ac_status=$?
|
---|
| 4384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4385 | (exit $ac_status); }; }; then
|
---|
| 4386 | ac_cv_lib_m_main=yes
|
---|
[3365] | 4387 | else
|
---|
[8063] | 4388 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4389 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4390 |
|
---|
[8063] | 4391 | ac_cv_lib_m_main=no
|
---|
[3365] | 4392 | fi
|
---|
[10192] | 4393 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4394 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 4395 | LIBS=$ac_check_lib_save_LIBS
|
---|
[3365] | 4396 | fi
|
---|
[10192] | 4397 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
[8063] | 4398 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
| 4399 | if test $ac_cv_lib_m_main = yes; then
|
---|
[10192] | 4400 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 4401 | #define HAVE_LIBM 1
|
---|
[10192] | 4402 | _ACEOF
|
---|
[3365] | 4403 |
|
---|
| 4404 | LIBS="-lm $LIBS"
|
---|
| 4405 |
|
---|
| 4406 | fi
|
---|
| 4407 |
|
---|
[10192] | 4408 |
|
---|
| 4409 | echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
|
---|
[8063] | 4410 | echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
|
---|
| 4411 | if test "${ac_cv_lib_stdcpp_main+set}" = set; then
|
---|
| 4412 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8059] | 4413 | else
|
---|
[8063] | 4414 | ac_check_lib_save_LIBS=$LIBS
|
---|
[8059] | 4415 | LIBS="-lstdc++ $LIBS"
|
---|
[8063] | 4416 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4417 | /* confdefs.h. */
|
---|
| 4418 | _ACEOF
|
---|
| 4419 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4420 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4421 | /* end confdefs.h. */
|
---|
[8059] | 4422 |
|
---|
[10192] | 4423 |
|
---|
[8063] | 4424 | int
|
---|
| 4425 | main ()
|
---|
| 4426 | {
|
---|
| 4427 | main ();
|
---|
| 4428 | ;
|
---|
| 4429 | return 0;
|
---|
| 4430 | }
|
---|
| 4431 | _ACEOF
|
---|
| 4432 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4433 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4434 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4435 | ac_status=$?
|
---|
[10192] | 4436 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4437 | rm -f conftest.er1
|
---|
| 4438 | cat conftest.err >&5
|
---|
| 4439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4440 | (exit $ac_status); } &&
|
---|
[10192] | 4441 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4442 | || test ! -s conftest.err'
|
---|
| 4443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4444 | (eval $ac_try) 2>&5
|
---|
| 4445 | ac_status=$?
|
---|
[10192] | 4446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4447 | (exit $ac_status); }; } &&
|
---|
| 4448 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4450 | (eval $ac_try) 2>&5
|
---|
| 4451 | ac_status=$?
|
---|
| 4452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4453 | (exit $ac_status); }; }; then
|
---|
| 4454 | ac_cv_lib_stdcpp_main=yes
|
---|
[8059] | 4455 | else
|
---|
[8063] | 4456 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4457 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4458 |
|
---|
[8063] | 4459 | ac_cv_lib_stdcpp_main=no
|
---|
[8059] | 4460 | fi
|
---|
[10192] | 4461 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4462 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 4463 | LIBS=$ac_check_lib_save_LIBS
|
---|
[8059] | 4464 | fi
|
---|
[10192] | 4465 | echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
|
---|
[8063] | 4466 | echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
|
---|
| 4467 | if test $ac_cv_lib_stdcpp_main = yes; then
|
---|
[10192] | 4468 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 4469 | #define HAVE_LIBSTDC__ 1
|
---|
[10192] | 4470 | _ACEOF
|
---|
[8059] | 4471 |
|
---|
| 4472 | LIBS="-lstdc++ $LIBS"
|
---|
| 4473 |
|
---|
| 4474 | fi
|
---|
| 4475 |
|
---|
[10192] | 4476 |
|
---|
| 4477 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
[8063] | 4478 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
| 4479 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
| 4480 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8059] | 4481 | else
|
---|
[8063] | 4482 | ac_check_lib_save_LIBS=$LIBS
|
---|
[8059] | 4483 | LIBS="-lcrypt $LIBS"
|
---|
[8063] | 4484 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4485 | /* confdefs.h. */
|
---|
| 4486 | _ACEOF
|
---|
| 4487 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4488 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4489 | /* end confdefs.h. */
|
---|
[8059] | 4490 |
|
---|
[10192] | 4491 |
|
---|
[8063] | 4492 | int
|
---|
| 4493 | main ()
|
---|
| 4494 | {
|
---|
| 4495 | main ();
|
---|
| 4496 | ;
|
---|
| 4497 | return 0;
|
---|
| 4498 | }
|
---|
| 4499 | _ACEOF
|
---|
| 4500 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4502 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4503 | ac_status=$?
|
---|
[10192] | 4504 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4505 | rm -f conftest.er1
|
---|
| 4506 | cat conftest.err >&5
|
---|
| 4507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4508 | (exit $ac_status); } &&
|
---|
[10192] | 4509 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4510 | || test ! -s conftest.err'
|
---|
| 4511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4512 | (eval $ac_try) 2>&5
|
---|
| 4513 | ac_status=$?
|
---|
[10192] | 4514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4515 | (exit $ac_status); }; } &&
|
---|
| 4516 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4518 | (eval $ac_try) 2>&5
|
---|
| 4519 | ac_status=$?
|
---|
| 4520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4521 | (exit $ac_status); }; }; then
|
---|
| 4522 | ac_cv_lib_crypt_main=yes
|
---|
[8059] | 4523 | else
|
---|
[8063] | 4524 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4525 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4526 |
|
---|
[8063] | 4527 | ac_cv_lib_crypt_main=no
|
---|
[8059] | 4528 | fi
|
---|
[10192] | 4529 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4530 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 4531 | LIBS=$ac_check_lib_save_LIBS
|
---|
[8059] | 4532 | fi
|
---|
[10192] | 4533 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
[8063] | 4534 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
| 4535 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
[10192] | 4536 | cat >>confdefs.h <<_ACEOF
|
---|
[8063] | 4537 | #define HAVE_LIBCRYPT 1
|
---|
[10192] | 4538 | _ACEOF
|
---|
[8059] | 4539 |
|
---|
| 4540 | LIBS="-lcrypt $LIBS"
|
---|
| 4541 |
|
---|
| 4542 | fi
|
---|
| 4543 |
|
---|
[13482] | 4544 | if test $ENABLE_ACCENTFOLD = 1; then
|
---|
[10192] | 4545 |
|
---|
[13482] | 4546 | echo "$as_me:$LINENO: checking for main in -lICONV" >&5
|
---|
| 4547 | echo $ECHO_N "checking for main in -lICONV... $ECHO_C" >&6
|
---|
| 4548 | if test "${ac_cv_lib_ICONV_main+set}" = set; then
|
---|
| 4549 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4550 | else
|
---|
| 4551 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4552 | LIBS="-lICONV $LIBS"
|
---|
| 4553 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4554 | /* confdefs.h. */
|
---|
| 4555 | _ACEOF
|
---|
| 4556 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4557 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4558 | /* end confdefs.h. */
|
---|
[10192] | 4559 |
|
---|
| 4560 |
|
---|
[13482] | 4561 | int
|
---|
| 4562 | main ()
|
---|
| 4563 | {
|
---|
| 4564 | main ();
|
---|
| 4565 | ;
|
---|
| 4566 | return 0;
|
---|
| 4567 | }
|
---|
| 4568 | _ACEOF
|
---|
| 4569 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4570 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4571 | (eval $ac_link) 2>conftest.er1
|
---|
| 4572 | ac_status=$?
|
---|
| 4573 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4574 | rm -f conftest.er1
|
---|
| 4575 | cat conftest.err >&5
|
---|
| 4576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4577 | (exit $ac_status); } &&
|
---|
| 4578 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4579 | || test ! -s conftest.err'
|
---|
| 4580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4581 | (eval $ac_try) 2>&5
|
---|
| 4582 | ac_status=$?
|
---|
| 4583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4584 | (exit $ac_status); }; } &&
|
---|
| 4585 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4587 | (eval $ac_try) 2>&5
|
---|
| 4588 | ac_status=$?
|
---|
| 4589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4590 | (exit $ac_status); }; }; then
|
---|
| 4591 | ac_cv_lib_ICONV_main=yes
|
---|
| 4592 | else
|
---|
| 4593 | echo "$as_me: failed program was:" >&5
|
---|
| 4594 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[10192] | 4595 |
|
---|
[13482] | 4596 | ac_cv_lib_ICONV_main=no
|
---|
| 4597 | fi
|
---|
| 4598 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4599 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4600 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4601 | fi
|
---|
| 4602 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICONV_main" >&5
|
---|
| 4603 | echo "${ECHO_T}$ac_cv_lib_ICONV_main" >&6
|
---|
| 4604 | if test $ac_cv_lib_ICONV_main = yes; then
|
---|
| 4605 | cat >>confdefs.h <<_ACEOF
|
---|
| 4606 | #define HAVE_LIBICONV 1
|
---|
| 4607 | _ACEOF
|
---|
[10192] | 4608 |
|
---|
[13482] | 4609 | LIBS="-lICONV $LIBS"
|
---|
[10192] | 4610 |
|
---|
[13482] | 4611 | fi
|
---|
| 4612 | ac_cv_lib_ICONV=ac_cv_lib_ICONV_main
|
---|
| 4613 |
|
---|
| 4614 | fi
|
---|
| 4615 |
|
---|
| 4616 |
|
---|
| 4617 |
|
---|
| 4618 |
|
---|
| 4619 |
|
---|
| 4620 |
|
---|
| 4621 |
|
---|
[3365] | 4622 | ac_header_dirent=no
|
---|
[8063] | 4623 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
[10192] | 4624 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 4625 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
[8063] | 4626 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
[10192] | 4627 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[8063] | 4628 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4629 | else
|
---|
[8063] | 4630 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4631 | /* confdefs.h. */
|
---|
| 4632 | _ACEOF
|
---|
| 4633 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4634 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4635 | /* end confdefs.h. */
|
---|
[3365] | 4636 | #include <sys/types.h>
|
---|
| 4637 | #include <$ac_hdr>
|
---|
[8063] | 4638 |
|
---|
| 4639 | int
|
---|
| 4640 | main ()
|
---|
| 4641 | {
|
---|
[10192] | 4642 | if ((DIR *) 0)
|
---|
| 4643 | return 0;
|
---|
[8063] | 4644 | ;
|
---|
| 4645 | return 0;
|
---|
| 4646 | }
|
---|
| 4647 | _ACEOF
|
---|
| 4648 | rm -f conftest.$ac_objext
|
---|
[10192] | 4649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4650 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4651 | ac_status=$?
|
---|
[10192] | 4652 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4653 | rm -f conftest.er1
|
---|
| 4654 | cat conftest.err >&5
|
---|
| 4655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4656 | (exit $ac_status); } &&
|
---|
[10192] | 4657 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4658 | || test ! -s conftest.err'
|
---|
| 4659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4660 | (eval $ac_try) 2>&5
|
---|
| 4661 | ac_status=$?
|
---|
[10192] | 4662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4663 | (exit $ac_status); }; } &&
|
---|
| 4664 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4666 | (eval $ac_try) 2>&5
|
---|
| 4667 | ac_status=$?
|
---|
| 4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4669 | (exit $ac_status); }; }; then
|
---|
[10192] | 4670 | eval "$as_ac_Header=yes"
|
---|
[3365] | 4671 | else
|
---|
[8063] | 4672 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4673 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4674 |
|
---|
| 4675 | eval "$as_ac_Header=no"
|
---|
[3365] | 4676 | fi
|
---|
[10192] | 4677 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 4678 | fi
|
---|
[10192] | 4679 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4680 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 4681 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4682 | cat >>confdefs.h <<_ACEOF
|
---|
| 4683 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
| 4684 | _ACEOF
|
---|
[8063] | 4685 |
|
---|
| 4686 | ac_header_dirent=$ac_hdr; break
|
---|
[3365] | 4687 | fi
|
---|
[8063] | 4688 |
|
---|
[3365] | 4689 | done
|
---|
| 4690 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 4691 | if test $ac_header_dirent = dirent.h; then
|
---|
[10192] | 4692 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4693 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4694 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
[8063] | 4695 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4696 | else
|
---|
[10192] | 4697 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4698 | ac_cv_search_opendir=no
|
---|
[8063] | 4699 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4700 | /* confdefs.h. */
|
---|
| 4701 | _ACEOF
|
---|
| 4702 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4703 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4704 | /* end confdefs.h. */
|
---|
[8063] | 4705 |
|
---|
[3365] | 4706 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 4707 | #ifdef __cplusplus
|
---|
| 4708 | extern "C"
|
---|
| 4709 | #endif
|
---|
[3365] | 4710 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 4711 | builtin and then its argument prototype would still apply. */
|
---|
| 4712 | char opendir ();
|
---|
| 4713 | int
|
---|
| 4714 | main ()
|
---|
| 4715 | {
|
---|
| 4716 | opendir ();
|
---|
| 4717 | ;
|
---|
| 4718 | return 0;
|
---|
| 4719 | }
|
---|
| 4720 | _ACEOF
|
---|
| 4721 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4722 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4723 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4724 | ac_status=$?
|
---|
[10192] | 4725 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4726 | rm -f conftest.er1
|
---|
| 4727 | cat conftest.err >&5
|
---|
| 4728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4729 | (exit $ac_status); } &&
|
---|
[10192] | 4730 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4731 | || test ! -s conftest.err'
|
---|
| 4732 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4733 | (eval $ac_try) 2>&5
|
---|
| 4734 | ac_status=$?
|
---|
[10192] | 4735 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4736 | (exit $ac_status); }; } &&
|
---|
| 4737 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4739 | (eval $ac_try) 2>&5
|
---|
| 4740 | ac_status=$?
|
---|
| 4741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4742 | (exit $ac_status); }; }; then
|
---|
[10192] | 4743 | ac_cv_search_opendir="none required"
|
---|
[3365] | 4744 | else
|
---|
[8063] | 4745 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4746 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4747 |
|
---|
[3365] | 4748 | fi
|
---|
[10192] | 4749 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4750 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4751 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4752 | for ac_lib in dir; do
|
---|
| 4753 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4754 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4755 | /* confdefs.h. */
|
---|
| 4756 | _ACEOF
|
---|
| 4757 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4758 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4759 | /* end confdefs.h. */
|
---|
| 4760 |
|
---|
| 4761 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4762 | #ifdef __cplusplus
|
---|
| 4763 | extern "C"
|
---|
| 4764 | #endif
|
---|
| 4765 | /* We use char because int might match the return type of a gcc2
|
---|
| 4766 | builtin and then its argument prototype would still apply. */
|
---|
| 4767 | char opendir ();
|
---|
| 4768 | int
|
---|
| 4769 | main ()
|
---|
| 4770 | {
|
---|
| 4771 | opendir ();
|
---|
| 4772 | ;
|
---|
| 4773 | return 0;
|
---|
| 4774 | }
|
---|
| 4775 | _ACEOF
|
---|
| 4776 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4778 | (eval $ac_link) 2>conftest.er1
|
---|
| 4779 | ac_status=$?
|
---|
| 4780 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4781 | rm -f conftest.er1
|
---|
| 4782 | cat conftest.err >&5
|
---|
| 4783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4784 | (exit $ac_status); } &&
|
---|
| 4785 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4786 | || test ! -s conftest.err'
|
---|
| 4787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4788 | (eval $ac_try) 2>&5
|
---|
| 4789 | ac_status=$?
|
---|
| 4790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4791 | (exit $ac_status); }; } &&
|
---|
| 4792 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4794 | (eval $ac_try) 2>&5
|
---|
| 4795 | ac_status=$?
|
---|
| 4796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4797 | (exit $ac_status); }; }; then
|
---|
| 4798 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4799 | break
|
---|
| 4800 | else
|
---|
| 4801 | echo "$as_me: failed program was:" >&5
|
---|
| 4802 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4803 |
|
---|
[3365] | 4804 | fi
|
---|
[10192] | 4805 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4806 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4807 | done
|
---|
[3365] | 4808 | fi
|
---|
[10192] | 4809 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4810 | fi
|
---|
| 4811 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4812 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4813 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4814 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[3365] | 4815 |
|
---|
[10192] | 4816 | fi
|
---|
| 4817 |
|
---|
[3365] | 4818 | else
|
---|
[10192] | 4819 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4820 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4821 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
[8063] | 4822 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4823 | else
|
---|
[10192] | 4824 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4825 | ac_cv_search_opendir=no
|
---|
[8063] | 4826 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4827 | /* confdefs.h. */
|
---|
| 4828 | _ACEOF
|
---|
| 4829 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4830 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4831 | /* end confdefs.h. */
|
---|
[8063] | 4832 |
|
---|
[3365] | 4833 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 4834 | #ifdef __cplusplus
|
---|
| 4835 | extern "C"
|
---|
| 4836 | #endif
|
---|
[3365] | 4837 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 4838 | builtin and then its argument prototype would still apply. */
|
---|
| 4839 | char opendir ();
|
---|
| 4840 | int
|
---|
| 4841 | main ()
|
---|
| 4842 | {
|
---|
| 4843 | opendir ();
|
---|
| 4844 | ;
|
---|
| 4845 | return 0;
|
---|
| 4846 | }
|
---|
| 4847 | _ACEOF
|
---|
| 4848 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 4849 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4850 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 4851 | ac_status=$?
|
---|
[10192] | 4852 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4853 | rm -f conftest.er1
|
---|
| 4854 | cat conftest.err >&5
|
---|
| 4855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4856 | (exit $ac_status); } &&
|
---|
[10192] | 4857 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4858 | || test ! -s conftest.err'
|
---|
| 4859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 4860 | (eval $ac_try) 2>&5
|
---|
| 4861 | ac_status=$?
|
---|
[10192] | 4862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4863 | (exit $ac_status); }; } &&
|
---|
| 4864 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4866 | (eval $ac_try) 2>&5
|
---|
| 4867 | ac_status=$?
|
---|
| 4868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 4869 | (exit $ac_status); }; }; then
|
---|
[10192] | 4870 | ac_cv_search_opendir="none required"
|
---|
[3365] | 4871 | else
|
---|
[8063] | 4872 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4873 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4874 |
|
---|
[3365] | 4875 | fi
|
---|
[10192] | 4876 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4877 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4878 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4879 | for ac_lib in x; do
|
---|
| 4880 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4881 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4882 | /* confdefs.h. */
|
---|
| 4883 | _ACEOF
|
---|
| 4884 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4885 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4886 | /* end confdefs.h. */
|
---|
| 4887 |
|
---|
| 4888 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4889 | #ifdef __cplusplus
|
---|
| 4890 | extern "C"
|
---|
| 4891 | #endif
|
---|
| 4892 | /* We use char because int might match the return type of a gcc2
|
---|
| 4893 | builtin and then its argument prototype would still apply. */
|
---|
| 4894 | char opendir ();
|
---|
| 4895 | int
|
---|
| 4896 | main ()
|
---|
| 4897 | {
|
---|
| 4898 | opendir ();
|
---|
| 4899 | ;
|
---|
| 4900 | return 0;
|
---|
| 4901 | }
|
---|
| 4902 | _ACEOF
|
---|
| 4903 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4905 | (eval $ac_link) 2>conftest.er1
|
---|
| 4906 | ac_status=$?
|
---|
| 4907 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4908 | rm -f conftest.er1
|
---|
| 4909 | cat conftest.err >&5
|
---|
| 4910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4911 | (exit $ac_status); } &&
|
---|
| 4912 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4913 | || test ! -s conftest.err'
|
---|
| 4914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4915 | (eval $ac_try) 2>&5
|
---|
| 4916 | ac_status=$?
|
---|
| 4917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4918 | (exit $ac_status); }; } &&
|
---|
| 4919 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4921 | (eval $ac_try) 2>&5
|
---|
| 4922 | ac_status=$?
|
---|
| 4923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4924 | (exit $ac_status); }; }; then
|
---|
| 4925 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4926 | break
|
---|
| 4927 | else
|
---|
| 4928 | echo "$as_me: failed program was:" >&5
|
---|
| 4929 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4930 |
|
---|
[3365] | 4931 | fi
|
---|
[10192] | 4932 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4933 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4934 | done
|
---|
[3365] | 4935 | fi
|
---|
[10192] | 4936 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4937 | fi
|
---|
| 4938 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4939 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4940 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4941 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[3365] | 4942 |
|
---|
| 4943 | fi
|
---|
| 4944 |
|
---|
[10192] | 4945 | fi
|
---|
| 4946 |
|
---|
| 4947 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
[8063] | 4948 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 4949 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 4950 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 4951 | else
|
---|
[8063] | 4952 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 4953 | /* confdefs.h. */
|
---|
| 4954 | _ACEOF
|
---|
| 4955 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4956 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4957 | /* end confdefs.h. */
|
---|
[3365] | 4958 | #include <stdlib.h>
|
---|
| 4959 | #include <stdarg.h>
|
---|
| 4960 | #include <string.h>
|
---|
| 4961 | #include <float.h>
|
---|
[8063] | 4962 |
|
---|
[10192] | 4963 | int
|
---|
| 4964 | main ()
|
---|
| 4965 | {
|
---|
| 4966 |
|
---|
| 4967 | ;
|
---|
| 4968 | return 0;
|
---|
| 4969 | }
|
---|
[8063] | 4970 | _ACEOF
|
---|
[10192] | 4971 | rm -f conftest.$ac_objext
|
---|
| 4972 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4973 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 4974 | ac_status=$?
|
---|
[10192] | 4975 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 4976 | rm -f conftest.er1
|
---|
| 4977 | cat conftest.err >&5
|
---|
[10192] | 4978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4979 | (exit $ac_status); } &&
|
---|
| 4980 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4981 | || test ! -s conftest.err'
|
---|
| 4982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4983 | (eval $ac_try) 2>&5
|
---|
| 4984 | ac_status=$?
|
---|
| 4985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4986 | (exit $ac_status); }; } &&
|
---|
| 4987 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4989 | (eval $ac_try) 2>&5
|
---|
| 4990 | ac_status=$?
|
---|
| 4991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4992 | (exit $ac_status); }; }; then
|
---|
[3365] | 4993 | ac_cv_header_stdc=yes
|
---|
| 4994 | else
|
---|
[8063] | 4995 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 4996 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4997 |
|
---|
| 4998 | ac_cv_header_stdc=no
|
---|
[3365] | 4999 | fi
|
---|
[10192] | 5000 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5001 |
|
---|
| 5002 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5003 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[8063] | 5004 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5005 | /* confdefs.h. */
|
---|
| 5006 | _ACEOF
|
---|
| 5007 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5008 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5009 | /* end confdefs.h. */
|
---|
[3365] | 5010 | #include <string.h>
|
---|
[8063] | 5011 |
|
---|
| 5012 | _ACEOF
|
---|
[3365] | 5013 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5014 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
[3365] | 5015 | :
|
---|
| 5016 | else
|
---|
| 5017 | ac_cv_header_stdc=no
|
---|
| 5018 | fi
|
---|
| 5019 | rm -f conftest*
|
---|
| 5020 |
|
---|
| 5021 | fi
|
---|
| 5022 |
|
---|
| 5023 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5024 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[8063] | 5025 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5026 | /* confdefs.h. */
|
---|
| 5027 | _ACEOF
|
---|
| 5028 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5029 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5030 | /* end confdefs.h. */
|
---|
[3365] | 5031 | #include <stdlib.h>
|
---|
[8063] | 5032 |
|
---|
| 5033 | _ACEOF
|
---|
[3365] | 5034 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5035 | $EGREP "free" >/dev/null 2>&1; then
|
---|
[3365] | 5036 | :
|
---|
| 5037 | else
|
---|
| 5038 | ac_cv_header_stdc=no
|
---|
| 5039 | fi
|
---|
| 5040 | rm -f conftest*
|
---|
| 5041 |
|
---|
| 5042 | fi
|
---|
| 5043 |
|
---|
| 5044 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5045 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[8063] | 5046 | if test "$cross_compiling" = yes; then
|
---|
[3365] | 5047 | :
|
---|
| 5048 | else
|
---|
[8063] | 5049 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5050 | /* confdefs.h. */
|
---|
| 5051 | _ACEOF
|
---|
| 5052 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5053 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5054 | /* end confdefs.h. */
|
---|
[3365] | 5055 | #include <ctype.h>
|
---|
[8063] | 5056 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5057 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5058 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5059 | #else
|
---|
[10192] | 5060 | # define ISLOWER(c) \
|
---|
| 5061 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5062 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5063 | || ('s' <= (c) && (c) <= 'z'))
|
---|
[8063] | 5064 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5065 | #endif
|
---|
| 5066 |
|
---|
[8059] | 5067 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
[8063] | 5068 | int
|
---|
| 5069 | main ()
|
---|
| 5070 | {
|
---|
| 5071 | int i;
|
---|
| 5072 | for (i = 0; i < 256; i++)
|
---|
| 5073 | if (XOR (islower (i), ISLOWER (i))
|
---|
[10192] | 5074 | || toupper (i) != TOUPPER (i))
|
---|
[8063] | 5075 | exit(2);
|
---|
| 5076 | exit (0);
|
---|
| 5077 | }
|
---|
| 5078 | _ACEOF
|
---|
| 5079 | rm -f conftest$ac_exeext
|
---|
[10192] | 5080 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[8063] | 5081 | (eval $ac_link) 2>&5
|
---|
| 5082 | ac_status=$?
|
---|
[10192] | 5083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5084 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[10192] | 5085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5086 | (eval $ac_try) 2>&5
|
---|
| 5087 | ac_status=$?
|
---|
[10192] | 5088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5089 | (exit $ac_status); }; }; then
|
---|
[3365] | 5090 | :
|
---|
| 5091 | else
|
---|
[8063] | 5092 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5093 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5094 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5095 |
|
---|
| 5096 | ( exit $ac_status )
|
---|
[8063] | 5097 | ac_cv_header_stdc=no
|
---|
[3365] | 5098 | fi
|
---|
[10192] | 5099 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5100 | fi
|
---|
| 5101 | fi
|
---|
| 5102 | fi
|
---|
[10192] | 5103 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
[8063] | 5104 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 5105 | if test $ac_cv_header_stdc = yes; then
|
---|
[8059] | 5106 |
|
---|
[10192] | 5107 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5108 | #define STDC_HEADERS 1
|
---|
[10192] | 5109 | _ACEOF
|
---|
[3365] | 5110 |
|
---|
| 5111 | fi
|
---|
| 5112 |
|
---|
[10192] | 5113 |
|
---|
| 5114 |
|
---|
| 5115 |
|
---|
| 5116 |
|
---|
| 5117 |
|
---|
| 5118 |
|
---|
| 5119 |
|
---|
| 5120 |
|
---|
[8063] | 5121 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
|
---|
[3365] | 5122 | do
|
---|
[10192] | 5123 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5124 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5125 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
[8063] | 5126 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
[10192] | 5127 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
[8063] | 5128 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[10192] | 5129 | fi
|
---|
| 5130 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5131 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[3365] | 5132 | else
|
---|
[10192] | 5133 | # Is the header compilable?
|
---|
| 5134 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5135 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
| 5136 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5137 | /* confdefs.h. */
|
---|
| 5138 | _ACEOF
|
---|
| 5139 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5140 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5141 | /* end confdefs.h. */
|
---|
| 5142 | $ac_includes_default
|
---|
[8063] | 5143 | #include <$ac_header>
|
---|
| 5144 | _ACEOF
|
---|
[10192] | 5145 | rm -f conftest.$ac_objext
|
---|
| 5146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5147 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5148 | ac_status=$?
|
---|
| 5149 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5150 | rm -f conftest.er1
|
---|
| 5151 | cat conftest.err >&5
|
---|
| 5152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5153 | (exit $ac_status); } &&
|
---|
| 5154 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5155 | || test ! -s conftest.err'
|
---|
| 5156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5157 | (eval $ac_try) 2>&5
|
---|
| 5158 | ac_status=$?
|
---|
| 5159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5160 | (exit $ac_status); }; } &&
|
---|
| 5161 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5163 | (eval $ac_try) 2>&5
|
---|
| 5164 | ac_status=$?
|
---|
| 5165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5166 | (exit $ac_status); }; }; then
|
---|
| 5167 | ac_header_compiler=yes
|
---|
| 5168 | else
|
---|
| 5169 | echo "$as_me: failed program was:" >&5
|
---|
| 5170 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5171 |
|
---|
| 5172 | ac_header_compiler=no
|
---|
| 5173 | fi
|
---|
| 5174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5175 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 5176 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 5177 |
|
---|
| 5178 | # Is the header present?
|
---|
| 5179 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 5180 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
| 5181 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5182 | /* confdefs.h. */
|
---|
| 5183 | _ACEOF
|
---|
| 5184 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5185 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5186 | /* end confdefs.h. */
|
---|
| 5187 | #include <$ac_header>
|
---|
| 5188 | _ACEOF
|
---|
| 5189 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 5190 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 5191 | ac_status=$?
|
---|
[10192] | 5192 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 5193 | rm -f conftest.er1
|
---|
| 5194 | cat conftest.err >&5
|
---|
[10192] | 5195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5196 | (exit $ac_status); } >/dev/null; then
|
---|
| 5197 | if test -s conftest.err; then
|
---|
| 5198 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 5199 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 5200 | else
|
---|
| 5201 | ac_cpp_err=
|
---|
| 5202 | fi
|
---|
[3365] | 5203 | else
|
---|
[8063] | 5204 | ac_cpp_err=yes
|
---|
| 5205 | fi
|
---|
| 5206 | if test -z "$ac_cpp_err"; then
|
---|
[10192] | 5207 | ac_header_preproc=yes
|
---|
[8063] | 5208 | else
|
---|
| 5209 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5210 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5211 |
|
---|
| 5212 | ac_header_preproc=no
|
---|
[3365] | 5213 | fi
|
---|
[8063] | 5214 | rm -f conftest.err conftest.$ac_ext
|
---|
[10192] | 5215 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 5216 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 5217 |
|
---|
| 5218 | # So? What about this header?
|
---|
| 5219 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 5220 | yes:no: )
|
---|
| 5221 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 5222 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 5223 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 5224 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 5225 | ac_header_preproc=yes
|
---|
| 5226 | ;;
|
---|
| 5227 | no:yes:* )
|
---|
| 5228 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 5229 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 5230 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 5231 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 5232 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 5233 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 5234 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 5235 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 5236 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 5237 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 5238 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 5239 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
| 5240 | (
|
---|
| 5241 | cat <<\_ASBOX
|
---|
| 5242 | ## ------------------------------------------ ##
|
---|
| 5243 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 5244 | ## ------------------------------------------ ##
|
---|
| 5245 | _ASBOX
|
---|
| 5246 | ) |
|
---|
| 5247 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 5248 | ;;
|
---|
| 5249 | esac
|
---|
| 5250 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5251 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5252 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5253 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5254 | else
|
---|
| 5255 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
[3365] | 5256 | fi
|
---|
[10192] | 5257 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5258 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[8063] | 5259 |
|
---|
[3365] | 5260 | fi
|
---|
[10192] | 5261 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 5262 | cat >>confdefs.h <<_ACEOF
|
---|
| 5263 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 5264 | _ACEOF
|
---|
| 5265 |
|
---|
| 5266 | fi
|
---|
| 5267 |
|
---|
[3365] | 5268 | done
|
---|
| 5269 |
|
---|
[8063] | 5270 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5271 | /* confdefs.h. */
|
---|
| 5272 | _ACEOF
|
---|
| 5273 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5274 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5275 | /* end confdefs.h. */
|
---|
[3365] | 5276 | #include <stdio.h>
|
---|
[8063] | 5277 |
|
---|
| 5278 | _ACEOF
|
---|
[3365] | 5279 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5280 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 5281 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5282 | #define HAVE_FREAD_DECL 1
|
---|
[10192] | 5283 | _ACEOF
|
---|
[3365] | 5284 |
|
---|
| 5285 | fi
|
---|
| 5286 | rm -f conftest*
|
---|
| 5287 |
|
---|
[8063] | 5288 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5289 | /* confdefs.h. */
|
---|
| 5290 | _ACEOF
|
---|
| 5291 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5292 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5293 | /* end confdefs.h. */
|
---|
[3365] | 5294 | #include <stdio.h>
|
---|
[8063] | 5295 |
|
---|
| 5296 | _ACEOF
|
---|
[3365] | 5297 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5298 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 5299 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5300 | #define HAVE_FGETC_DECL 1
|
---|
[10192] | 5301 | _ACEOF
|
---|
[3365] | 5302 |
|
---|
| 5303 | fi
|
---|
| 5304 | rm -f conftest*
|
---|
| 5305 |
|
---|
[8063] | 5306 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5307 | /* confdefs.h. */
|
---|
| 5308 | _ACEOF
|
---|
| 5309 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5310 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5311 | /* end confdefs.h. */
|
---|
[3365] | 5312 | #include <sys/procfs.h>
|
---|
[8063] | 5313 |
|
---|
| 5314 | _ACEOF
|
---|
[3365] | 5315 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5316 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 5317 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5318 | #define HAVE_PR_BRKSIZE 1
|
---|
[10192] | 5319 | _ACEOF
|
---|
[3365] | 5320 |
|
---|
| 5321 | fi
|
---|
| 5322 | rm -f conftest*
|
---|
| 5323 |
|
---|
[10192] | 5324 |
|
---|
[3365] | 5325 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5326 | # for constant arguments. Useless!
|
---|
[10192] | 5327 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
[8063] | 5328 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
| 5329 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 5330 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5331 | else
|
---|
[8063] | 5332 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5333 | /* confdefs.h. */
|
---|
| 5334 | _ACEOF
|
---|
| 5335 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5336 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5337 | /* end confdefs.h. */
|
---|
[3365] | 5338 | #include <alloca.h>
|
---|
[8063] | 5339 | int
|
---|
| 5340 | main ()
|
---|
| 5341 | {
|
---|
| 5342 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 5343 | ;
|
---|
| 5344 | return 0;
|
---|
| 5345 | }
|
---|
| 5346 | _ACEOF
|
---|
| 5347 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5349 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5350 | ac_status=$?
|
---|
[10192] | 5351 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5352 | rm -f conftest.er1
|
---|
| 5353 | cat conftest.err >&5
|
---|
| 5354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5355 | (exit $ac_status); } &&
|
---|
[10192] | 5356 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5357 | || test ! -s conftest.err'
|
---|
| 5358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5359 | (eval $ac_try) 2>&5
|
---|
| 5360 | ac_status=$?
|
---|
[10192] | 5361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5362 | (exit $ac_status); }; } &&
|
---|
| 5363 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5365 | (eval $ac_try) 2>&5
|
---|
| 5366 | ac_status=$?
|
---|
| 5367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5368 | (exit $ac_status); }; }; then
|
---|
| 5369 | ac_cv_working_alloca_h=yes
|
---|
[3365] | 5370 | else
|
---|
[8063] | 5371 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5372 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5373 |
|
---|
[8063] | 5374 | ac_cv_working_alloca_h=no
|
---|
[3365] | 5375 | fi
|
---|
[10192] | 5376 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5377 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5378 | fi
|
---|
[10192] | 5379 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
[8063] | 5380 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
| 5381 | if test $ac_cv_working_alloca_h = yes; then
|
---|
[3365] | 5382 |
|
---|
[10192] | 5383 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5384 | #define HAVE_ALLOCA_H 1
|
---|
[10192] | 5385 | _ACEOF
|
---|
[3365] | 5386 |
|
---|
| 5387 | fi
|
---|
| 5388 |
|
---|
[10192] | 5389 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
[8063] | 5390 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
| 5391 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 5392 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5393 | else
|
---|
[8063] | 5394 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5395 | /* confdefs.h. */
|
---|
| 5396 | _ACEOF
|
---|
| 5397 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5398 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5399 | /* end confdefs.h. */
|
---|
[3365] | 5400 | #ifdef __GNUC__
|
---|
| 5401 | # define alloca __builtin_alloca
|
---|
| 5402 | #else
|
---|
| 5403 | # ifdef _MSC_VER
|
---|
| 5404 | # include <malloc.h>
|
---|
| 5405 | # define alloca _alloca
|
---|
| 5406 | # else
|
---|
| 5407 | # if HAVE_ALLOCA_H
|
---|
| 5408 | # include <alloca.h>
|
---|
| 5409 | # else
|
---|
| 5410 | # ifdef _AIX
|
---|
| 5411 | #pragma alloca
|
---|
| 5412 | # else
|
---|
| 5413 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5414 | char *alloca ();
|
---|
| 5415 | # endif
|
---|
| 5416 | # endif
|
---|
| 5417 | # endif
|
---|
| 5418 | # endif
|
---|
| 5419 | #endif
|
---|
| 5420 |
|
---|
[8063] | 5421 | int
|
---|
| 5422 | main ()
|
---|
| 5423 | {
|
---|
| 5424 | char *p = (char *) alloca (1);
|
---|
| 5425 | ;
|
---|
| 5426 | return 0;
|
---|
| 5427 | }
|
---|
| 5428 | _ACEOF
|
---|
| 5429 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5431 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5432 | ac_status=$?
|
---|
[10192] | 5433 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5434 | rm -f conftest.er1
|
---|
| 5435 | cat conftest.err >&5
|
---|
| 5436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5437 | (exit $ac_status); } &&
|
---|
[10192] | 5438 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5439 | || test ! -s conftest.err'
|
---|
| 5440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5441 | (eval $ac_try) 2>&5
|
---|
| 5442 | ac_status=$?
|
---|
[10192] | 5443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5444 | (exit $ac_status); }; } &&
|
---|
| 5445 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5447 | (eval $ac_try) 2>&5
|
---|
| 5448 | ac_status=$?
|
---|
| 5449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5450 | (exit $ac_status); }; }; then
|
---|
[3365] | 5451 | ac_cv_func_alloca_works=yes
|
---|
| 5452 | else
|
---|
[8063] | 5453 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5454 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5455 |
|
---|
[8063] | 5456 | ac_cv_func_alloca_works=no
|
---|
[3365] | 5457 | fi
|
---|
[10192] | 5458 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5459 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5460 | fi
|
---|
[10192] | 5461 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
[8063] | 5462 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
[3365] | 5463 |
|
---|
| 5464 | if test $ac_cv_func_alloca_works = yes; then
|
---|
[8063] | 5465 |
|
---|
[10192] | 5466 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5467 | #define HAVE_ALLOCA 1
|
---|
[10192] | 5468 | _ACEOF
|
---|
[3365] | 5469 |
|
---|
[8063] | 5470 | else
|
---|
| 5471 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5472 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5473 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5474 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
[8059] | 5475 |
|
---|
[8063] | 5476 | ALLOCA=alloca.$ac_objext
|
---|
| 5477 |
|
---|
[10192] | 5478 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5479 | #define C_ALLOCA 1
|
---|
[10192] | 5480 | _ACEOF
|
---|
[3365] | 5481 |
|
---|
[10192] | 5482 |
|
---|
| 5483 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
[8063] | 5484 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
| 5485 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 5486 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5487 | else
|
---|
[8063] | 5488 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5489 | /* confdefs.h. */
|
---|
| 5490 | _ACEOF
|
---|
| 5491 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5492 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5493 | /* end confdefs.h. */
|
---|
[3365] | 5494 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
| 5495 | webecray
|
---|
| 5496 | #else
|
---|
| 5497 | wenotbecray
|
---|
| 5498 | #endif
|
---|
| 5499 |
|
---|
[8063] | 5500 | _ACEOF
|
---|
[3365] | 5501 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5502 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
[3365] | 5503 | ac_cv_os_cray=yes
|
---|
| 5504 | else
|
---|
| 5505 | ac_cv_os_cray=no
|
---|
| 5506 | fi
|
---|
| 5507 | rm -f conftest*
|
---|
| 5508 |
|
---|
| 5509 | fi
|
---|
[10192] | 5510 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
[8063] | 5511 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
[3365] | 5512 | if test $ac_cv_os_cray = yes; then
|
---|
[8063] | 5513 | for ac_func in _getb67 GETB67 getb67; do
|
---|
[10192] | 5514 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5515 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 5516 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 5517 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 5518 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5519 | else
|
---|
[8063] | 5520 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5521 | /* confdefs.h. */
|
---|
| 5522 | _ACEOF
|
---|
| 5523 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5524 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5525 | /* end confdefs.h. */
|
---|
| 5526 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5527 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5528 | #define $ac_func innocuous_$ac_func
|
---|
| 5529 |
|
---|
[3365] | 5530 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 5531 | which can conflict with char $ac_func (); below.
|
---|
| 5532 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5533 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5534 |
|
---|
| 5535 | #ifdef __STDC__
|
---|
| 5536 | # include <limits.h>
|
---|
| 5537 | #else
|
---|
| 5538 | # include <assert.h>
|
---|
| 5539 | #endif
|
---|
| 5540 |
|
---|
| 5541 | #undef $ac_func
|
---|
| 5542 |
|
---|
[3365] | 5543 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 5544 | #ifdef __cplusplus
|
---|
| 5545 | extern "C"
|
---|
[10192] | 5546 | {
|
---|
[8063] | 5547 | #endif
|
---|
[3365] | 5548 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 5549 | builtin and then its argument prototype would still apply. */
|
---|
| 5550 | char $ac_func ();
|
---|
[3365] | 5551 | /* The GNU C library defines this for functions which it implements
|
---|
| 5552 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5553 | something starting with __ and the normal name is an alias. */
|
---|
| 5554 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5555 | choke me
|
---|
| 5556 | #else
|
---|
[10192] | 5557 | char (*f) () = $ac_func;
|
---|
[3365] | 5558 | #endif
|
---|
[10192] | 5559 | #ifdef __cplusplus
|
---|
| 5560 | }
|
---|
| 5561 | #endif
|
---|
[3365] | 5562 |
|
---|
[10192] | 5563 | int
|
---|
| 5564 | main ()
|
---|
| 5565 | {
|
---|
| 5566 | return f != $ac_func;
|
---|
[8063] | 5567 | ;
|
---|
| 5568 | return 0;
|
---|
| 5569 | }
|
---|
| 5570 | _ACEOF
|
---|
| 5571 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5573 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5574 | ac_status=$?
|
---|
[10192] | 5575 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5576 | rm -f conftest.er1
|
---|
| 5577 | cat conftest.err >&5
|
---|
| 5578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5579 | (exit $ac_status); } &&
|
---|
[10192] | 5580 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5581 | || test ! -s conftest.err'
|
---|
| 5582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5583 | (eval $ac_try) 2>&5
|
---|
| 5584 | ac_status=$?
|
---|
[10192] | 5585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5586 | (exit $ac_status); }; } &&
|
---|
| 5587 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5589 | (eval $ac_try) 2>&5
|
---|
| 5590 | ac_status=$?
|
---|
| 5591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5592 | (exit $ac_status); }; }; then
|
---|
[10192] | 5593 | eval "$as_ac_var=yes"
|
---|
[3365] | 5594 | else
|
---|
[8063] | 5595 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5596 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5597 |
|
---|
| 5598 | eval "$as_ac_var=no"
|
---|
[3365] | 5599 | fi
|
---|
[10192] | 5600 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5601 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5602 | fi
|
---|
[10192] | 5603 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5604 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5605 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[3365] | 5606 |
|
---|
[10192] | 5607 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 5608 | #define CRAY_STACKSEG_END $ac_func
|
---|
[10192] | 5609 | _ACEOF
|
---|
[3365] | 5610 |
|
---|
[8063] | 5611 | break
|
---|
[3365] | 5612 | fi
|
---|
| 5613 |
|
---|
[8063] | 5614 | done
|
---|
[3365] | 5615 | fi
|
---|
| 5616 |
|
---|
[10192] | 5617 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
[8063] | 5618 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
| 5619 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 5620 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5621 | else
|
---|
| 5622 | if test "$cross_compiling" = yes; then
|
---|
| 5623 | ac_cv_c_stack_direction=0
|
---|
| 5624 | else
|
---|
[8063] | 5625 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5626 | /* confdefs.h. */
|
---|
| 5627 | _ACEOF
|
---|
| 5628 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5629 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5630 | /* end confdefs.h. */
|
---|
[8063] | 5631 | int
|
---|
[3365] | 5632 | find_stack_direction ()
|
---|
| 5633 | {
|
---|
| 5634 | static char *addr = 0;
|
---|
| 5635 | auto char dummy;
|
---|
| 5636 | if (addr == 0)
|
---|
| 5637 | {
|
---|
| 5638 | addr = &dummy;
|
---|
| 5639 | return find_stack_direction ();
|
---|
| 5640 | }
|
---|
| 5641 | else
|
---|
| 5642 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5643 | }
|
---|
[8063] | 5644 |
|
---|
| 5645 | int
|
---|
[3365] | 5646 | main ()
|
---|
| 5647 | {
|
---|
[8063] | 5648 | exit (find_stack_direction () < 0);
|
---|
[3365] | 5649 | }
|
---|
[8063] | 5650 | _ACEOF
|
---|
| 5651 | rm -f conftest$ac_exeext
|
---|
[10192] | 5652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[8063] | 5653 | (eval $ac_link) 2>&5
|
---|
| 5654 | ac_status=$?
|
---|
[10192] | 5655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5656 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[10192] | 5657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5658 | (eval $ac_try) 2>&5
|
---|
| 5659 | ac_status=$?
|
---|
[10192] | 5660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5661 | (exit $ac_status); }; }; then
|
---|
[3365] | 5662 | ac_cv_c_stack_direction=1
|
---|
| 5663 | else
|
---|
[8063] | 5664 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5665 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5666 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5667 |
|
---|
| 5668 | ( exit $ac_status )
|
---|
[8063] | 5669 | ac_cv_c_stack_direction=-1
|
---|
[3365] | 5670 | fi
|
---|
[10192] | 5671 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5672 | fi
|
---|
| 5673 | fi
|
---|
[10192] | 5674 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
[8063] | 5675 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
[3365] | 5676 |
|
---|
[10192] | 5677 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 5678 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[10192] | 5679 | _ACEOF
|
---|
[3365] | 5680 |
|
---|
[10192] | 5681 |
|
---|
[3365] | 5682 | fi
|
---|
| 5683 |
|
---|
[8063] | 5684 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[10192] | 5685 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
[8063] | 5686 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
| 5687 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 5688 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5689 | else
|
---|
| 5690 | ac_pattern="Autoconf.*'x'"
|
---|
[8063] | 5691 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5692 | /* confdefs.h. */
|
---|
| 5693 | _ACEOF
|
---|
| 5694 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5695 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5696 | /* end confdefs.h. */
|
---|
[3365] | 5697 | #include <sgtty.h>
|
---|
| 5698 | Autoconf TIOCGETP
|
---|
[8063] | 5699 | _ACEOF
|
---|
[3365] | 5700 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5701 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[3365] | 5702 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5703 | else
|
---|
| 5704 | ac_cv_prog_gcc_traditional=no
|
---|
| 5705 | fi
|
---|
| 5706 | rm -f conftest*
|
---|
| 5707 |
|
---|
[10192] | 5708 |
|
---|
[3365] | 5709 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[8063] | 5710 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5711 | /* confdefs.h. */
|
---|
| 5712 | _ACEOF
|
---|
| 5713 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5714 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5715 | /* end confdefs.h. */
|
---|
[3365] | 5716 | #include <termio.h>
|
---|
| 5717 | Autoconf TCGETA
|
---|
[8063] | 5718 | _ACEOF
|
---|
[3365] | 5719 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[10192] | 5720 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[3365] | 5721 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5722 | fi
|
---|
| 5723 | rm -f conftest*
|
---|
| 5724 |
|
---|
| 5725 | fi
|
---|
| 5726 | fi
|
---|
[10192] | 5727 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
[8063] | 5728 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
[3365] | 5729 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5730 | CC="$CC -traditional"
|
---|
| 5731 | fi
|
---|
| 5732 | fi
|
---|
| 5733 |
|
---|
[10192] | 5734 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
[8063] | 5735 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
| 5736 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 5737 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5738 | else
|
---|
[8063] | 5739 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5740 | /* confdefs.h. */
|
---|
| 5741 | _ACEOF
|
---|
| 5742 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5743 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5744 | /* end confdefs.h. */
|
---|
[3365] | 5745 | #include <sys/types.h>
|
---|
| 5746 | #include <signal.h>
|
---|
| 5747 | #ifdef signal
|
---|
[8063] | 5748 | # undef signal
|
---|
[3365] | 5749 | #endif
|
---|
| 5750 | #ifdef __cplusplus
|
---|
| 5751 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 5752 | #else
|
---|
| 5753 | void (*signal ()) ();
|
---|
| 5754 | #endif
|
---|
| 5755 |
|
---|
[8063] | 5756 | int
|
---|
| 5757 | main ()
|
---|
| 5758 | {
|
---|
[3365] | 5759 | int i;
|
---|
[8063] | 5760 | ;
|
---|
| 5761 | return 0;
|
---|
| 5762 | }
|
---|
| 5763 | _ACEOF
|
---|
| 5764 | rm -f conftest.$ac_objext
|
---|
[10192] | 5765 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5766 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 5767 | ac_status=$?
|
---|
[10192] | 5768 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5769 | rm -f conftest.er1
|
---|
| 5770 | cat conftest.err >&5
|
---|
| 5771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5772 | (exit $ac_status); } &&
|
---|
[10192] | 5773 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5774 | || test ! -s conftest.err'
|
---|
| 5775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5776 | (eval $ac_try) 2>&5
|
---|
| 5777 | ac_status=$?
|
---|
[10192] | 5778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5779 | (exit $ac_status); }; } &&
|
---|
| 5780 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5782 | (eval $ac_try) 2>&5
|
---|
| 5783 | ac_status=$?
|
---|
| 5784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5785 | (exit $ac_status); }; }; then
|
---|
[3365] | 5786 | ac_cv_type_signal=void
|
---|
| 5787 | else
|
---|
[8063] | 5788 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5789 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5790 |
|
---|
[8063] | 5791 | ac_cv_type_signal=int
|
---|
[3365] | 5792 | fi
|
---|
[10192] | 5793 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[3365] | 5794 | fi
|
---|
[10192] | 5795 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
[8063] | 5796 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
[3365] | 5797 |
|
---|
[10192] | 5798 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 5799 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[10192] | 5800 | _ACEOF
|
---|
[3365] | 5801 |
|
---|
[10192] | 5802 |
|
---|
| 5803 |
|
---|
[8063] | 5804 | for ac_func in vprintf
|
---|
| 5805 | do
|
---|
[10192] | 5806 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5807 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 5808 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 5809 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 5810 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5811 | else
|
---|
[8063] | 5812 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5813 | /* confdefs.h. */
|
---|
| 5814 | _ACEOF
|
---|
| 5815 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5816 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5817 | /* end confdefs.h. */
|
---|
| 5818 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5819 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5820 | #define $ac_func innocuous_$ac_func
|
---|
| 5821 |
|
---|
[3365] | 5822 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 5823 | which can conflict with char $ac_func (); below.
|
---|
| 5824 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5825 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5826 |
|
---|
| 5827 | #ifdef __STDC__
|
---|
| 5828 | # include <limits.h>
|
---|
| 5829 | #else
|
---|
| 5830 | # include <assert.h>
|
---|
| 5831 | #endif
|
---|
| 5832 |
|
---|
| 5833 | #undef $ac_func
|
---|
| 5834 |
|
---|
[3365] | 5835 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 5836 | #ifdef __cplusplus
|
---|
| 5837 | extern "C"
|
---|
[10192] | 5838 | {
|
---|
[8063] | 5839 | #endif
|
---|
[3365] | 5840 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 5841 | builtin and then its argument prototype would still apply. */
|
---|
| 5842 | char $ac_func ();
|
---|
[3365] | 5843 | /* The GNU C library defines this for functions which it implements
|
---|
| 5844 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5845 | something starting with __ and the normal name is an alias. */
|
---|
[8063] | 5846 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[3365] | 5847 | choke me
|
---|
| 5848 | #else
|
---|
[10192] | 5849 | char (*f) () = $ac_func;
|
---|
[3365] | 5850 | #endif
|
---|
[10192] | 5851 | #ifdef __cplusplus
|
---|
| 5852 | }
|
---|
| 5853 | #endif
|
---|
[3365] | 5854 |
|
---|
[10192] | 5855 | int
|
---|
| 5856 | main ()
|
---|
| 5857 | {
|
---|
| 5858 | return f != $ac_func;
|
---|
[8063] | 5859 | ;
|
---|
| 5860 | return 0;
|
---|
| 5861 | }
|
---|
| 5862 | _ACEOF
|
---|
| 5863 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5865 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5866 | ac_status=$?
|
---|
[10192] | 5867 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5868 | rm -f conftest.er1
|
---|
| 5869 | cat conftest.err >&5
|
---|
| 5870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5871 | (exit $ac_status); } &&
|
---|
[10192] | 5872 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5873 | || test ! -s conftest.err'
|
---|
| 5874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5875 | (eval $ac_try) 2>&5
|
---|
| 5876 | ac_status=$?
|
---|
[10192] | 5877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5878 | (exit $ac_status); }; } &&
|
---|
| 5879 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5881 | (eval $ac_try) 2>&5
|
---|
| 5882 | ac_status=$?
|
---|
| 5883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5884 | (exit $ac_status); }; }; then
|
---|
[10192] | 5885 | eval "$as_ac_var=yes"
|
---|
[3365] | 5886 | else
|
---|
[8063] | 5887 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5888 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5889 |
|
---|
| 5890 | eval "$as_ac_var=no"
|
---|
[3365] | 5891 | fi
|
---|
[10192] | 5892 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5893 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5894 | fi
|
---|
[10192] | 5895 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5896 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5897 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 5898 | cat >>confdefs.h <<_ACEOF
|
---|
| 5899 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 5900 | _ACEOF
|
---|
[3365] | 5901 |
|
---|
[10192] | 5902 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
[8063] | 5903 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
| 5904 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 5905 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 5906 | else
|
---|
[8063] | 5907 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 5908 | /* confdefs.h. */
|
---|
| 5909 | _ACEOF
|
---|
| 5910 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5911 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5912 | /* end confdefs.h. */
|
---|
| 5913 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 5914 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5915 | #define _doprnt innocuous__doprnt
|
---|
| 5916 |
|
---|
[3365] | 5917 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 5918 | which can conflict with char _doprnt (); below.
|
---|
| 5919 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5920 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5921 |
|
---|
| 5922 | #ifdef __STDC__
|
---|
| 5923 | # include <limits.h>
|
---|
| 5924 | #else
|
---|
| 5925 | # include <assert.h>
|
---|
| 5926 | #endif
|
---|
| 5927 |
|
---|
| 5928 | #undef _doprnt
|
---|
| 5929 |
|
---|
[3365] | 5930 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 5931 | #ifdef __cplusplus
|
---|
| 5932 | extern "C"
|
---|
[10192] | 5933 | {
|
---|
[8063] | 5934 | #endif
|
---|
[3365] | 5935 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 5936 | builtin and then its argument prototype would still apply. */
|
---|
| 5937 | char _doprnt ();
|
---|
[3365] | 5938 | /* The GNU C library defines this for functions which it implements
|
---|
| 5939 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5940 | something starting with __ and the normal name is an alias. */
|
---|
| 5941 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
| 5942 | choke me
|
---|
| 5943 | #else
|
---|
[10192] | 5944 | char (*f) () = _doprnt;
|
---|
[3365] | 5945 | #endif
|
---|
[10192] | 5946 | #ifdef __cplusplus
|
---|
| 5947 | }
|
---|
| 5948 | #endif
|
---|
[3365] | 5949 |
|
---|
[10192] | 5950 | int
|
---|
| 5951 | main ()
|
---|
| 5952 | {
|
---|
| 5953 | return f != _doprnt;
|
---|
[8063] | 5954 | ;
|
---|
| 5955 | return 0;
|
---|
| 5956 | }
|
---|
| 5957 | _ACEOF
|
---|
| 5958 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 5959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5960 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 5961 | ac_status=$?
|
---|
[10192] | 5962 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5963 | rm -f conftest.er1
|
---|
| 5964 | cat conftest.err >&5
|
---|
| 5965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5966 | (exit $ac_status); } &&
|
---|
[10192] | 5967 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5968 | || test ! -s conftest.err'
|
---|
| 5969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 5970 | (eval $ac_try) 2>&5
|
---|
| 5971 | ac_status=$?
|
---|
[10192] | 5972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5973 | (exit $ac_status); }; } &&
|
---|
| 5974 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5976 | (eval $ac_try) 2>&5
|
---|
| 5977 | ac_status=$?
|
---|
| 5978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 5979 | (exit $ac_status); }; }; then
|
---|
| 5980 | ac_cv_func__doprnt=yes
|
---|
[3365] | 5981 | else
|
---|
[8063] | 5982 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 5983 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5984 |
|
---|
[8063] | 5985 | ac_cv_func__doprnt=no
|
---|
[3365] | 5986 | fi
|
---|
[10192] | 5987 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5988 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 5989 | fi
|
---|
[10192] | 5990 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
[8063] | 5991 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
| 5992 | if test $ac_cv_func__doprnt = yes; then
|
---|
[3365] | 5993 |
|
---|
[10192] | 5994 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 5995 | #define HAVE_DOPRNT 1
|
---|
[10192] | 5996 | _ACEOF
|
---|
[3365] | 5997 |
|
---|
| 5998 | fi
|
---|
| 5999 |
|
---|
| 6000 | fi
|
---|
[8063] | 6001 | done
|
---|
[3365] | 6002 |
|
---|
[10192] | 6003 |
|
---|
| 6004 |
|
---|
| 6005 |
|
---|
| 6006 |
|
---|
| 6007 |
|
---|
| 6008 |
|
---|
| 6009 |
|
---|
| 6010 |
|
---|
| 6011 |
|
---|
| 6012 |
|
---|
| 6013 |
|
---|
[3365] | 6014 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
| 6015 | do
|
---|
[10192] | 6016 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6017 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 6018 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 6019 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 6020 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6021 | else
|
---|
[8063] | 6022 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6023 | /* confdefs.h. */
|
---|
| 6024 | _ACEOF
|
---|
| 6025 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6026 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6027 | /* end confdefs.h. */
|
---|
| 6028 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6029 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6030 | #define $ac_func innocuous_$ac_func
|
---|
| 6031 |
|
---|
[3365] | 6032 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6033 | which can conflict with char $ac_func (); below.
|
---|
| 6034 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6035 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6036 |
|
---|
| 6037 | #ifdef __STDC__
|
---|
| 6038 | # include <limits.h>
|
---|
| 6039 | #else
|
---|
| 6040 | # include <assert.h>
|
---|
| 6041 | #endif
|
---|
| 6042 |
|
---|
| 6043 | #undef $ac_func
|
---|
| 6044 |
|
---|
[3365] | 6045 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6046 | #ifdef __cplusplus
|
---|
| 6047 | extern "C"
|
---|
[10192] | 6048 | {
|
---|
[8063] | 6049 | #endif
|
---|
[3365] | 6050 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6051 | builtin and then its argument prototype would still apply. */
|
---|
| 6052 | char $ac_func ();
|
---|
[3365] | 6053 | /* The GNU C library defines this for functions which it implements
|
---|
| 6054 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6055 | something starting with __ and the normal name is an alias. */
|
---|
| 6056 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6057 | choke me
|
---|
| 6058 | #else
|
---|
[10192] | 6059 | char (*f) () = $ac_func;
|
---|
[3365] | 6060 | #endif
|
---|
[10192] | 6061 | #ifdef __cplusplus
|
---|
| 6062 | }
|
---|
| 6063 | #endif
|
---|
[3365] | 6064 |
|
---|
[10192] | 6065 | int
|
---|
| 6066 | main ()
|
---|
| 6067 | {
|
---|
| 6068 | return f != $ac_func;
|
---|
[8063] | 6069 | ;
|
---|
| 6070 | return 0;
|
---|
| 6071 | }
|
---|
| 6072 | _ACEOF
|
---|
| 6073 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6075 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6076 | ac_status=$?
|
---|
[10192] | 6077 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6078 | rm -f conftest.er1
|
---|
| 6079 | cat conftest.err >&5
|
---|
| 6080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6081 | (exit $ac_status); } &&
|
---|
[10192] | 6082 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6083 | || test ! -s conftest.err'
|
---|
| 6084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6085 | (eval $ac_try) 2>&5
|
---|
| 6086 | ac_status=$?
|
---|
[10192] | 6087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6088 | (exit $ac_status); }; } &&
|
---|
| 6089 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6091 | (eval $ac_try) 2>&5
|
---|
| 6092 | ac_status=$?
|
---|
| 6093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6094 | (exit $ac_status); }; }; then
|
---|
[10192] | 6095 | eval "$as_ac_var=yes"
|
---|
[3365] | 6096 | else
|
---|
[8063] | 6097 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6098 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6099 |
|
---|
| 6100 | eval "$as_ac_var=no"
|
---|
[3365] | 6101 | fi
|
---|
[10192] | 6102 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6103 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6104 | fi
|
---|
[10192] | 6105 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6106 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6107 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6108 | cat >>confdefs.h <<_ACEOF
|
---|
| 6109 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6110 | _ACEOF
|
---|
[8059] | 6111 |
|
---|
[3365] | 6112 | fi
|
---|
| 6113 | done
|
---|
| 6114 |
|
---|
[10192] | 6115 |
|
---|
| 6116 |
|
---|
| 6117 |
|
---|
[3365] | 6118 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6119 | do
|
---|
[10192] | 6120 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6121 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 6122 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 6123 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 6124 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6125 | else
|
---|
[8063] | 6126 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6127 | /* confdefs.h. */
|
---|
| 6128 | _ACEOF
|
---|
| 6129 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6130 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6131 | /* end confdefs.h. */
|
---|
| 6132 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6133 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6134 | #define $ac_func innocuous_$ac_func
|
---|
| 6135 |
|
---|
[3365] | 6136 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6137 | which can conflict with char $ac_func (); below.
|
---|
| 6138 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6139 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6140 |
|
---|
| 6141 | #ifdef __STDC__
|
---|
| 6142 | # include <limits.h>
|
---|
| 6143 | #else
|
---|
| 6144 | # include <assert.h>
|
---|
| 6145 | #endif
|
---|
| 6146 |
|
---|
| 6147 | #undef $ac_func
|
---|
| 6148 |
|
---|
[3365] | 6149 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6150 | #ifdef __cplusplus
|
---|
| 6151 | extern "C"
|
---|
[10192] | 6152 | {
|
---|
[8063] | 6153 | #endif
|
---|
[3365] | 6154 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6155 | builtin and then its argument prototype would still apply. */
|
---|
| 6156 | char $ac_func ();
|
---|
[3365] | 6157 | /* The GNU C library defines this for functions which it implements
|
---|
| 6158 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6159 | something starting with __ and the normal name is an alias. */
|
---|
| 6160 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6161 | choke me
|
---|
| 6162 | #else
|
---|
[10192] | 6163 | char (*f) () = $ac_func;
|
---|
[3365] | 6164 | #endif
|
---|
[10192] | 6165 | #ifdef __cplusplus
|
---|
| 6166 | }
|
---|
| 6167 | #endif
|
---|
[3365] | 6168 |
|
---|
[10192] | 6169 | int
|
---|
| 6170 | main ()
|
---|
| 6171 | {
|
---|
| 6172 | return f != $ac_func;
|
---|
[8063] | 6173 | ;
|
---|
| 6174 | return 0;
|
---|
| 6175 | }
|
---|
| 6176 | _ACEOF
|
---|
| 6177 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6178 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6179 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6180 | ac_status=$?
|
---|
[10192] | 6181 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6182 | rm -f conftest.er1
|
---|
| 6183 | cat conftest.err >&5
|
---|
| 6184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6185 | (exit $ac_status); } &&
|
---|
[10192] | 6186 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6187 | || test ! -s conftest.err'
|
---|
| 6188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6189 | (eval $ac_try) 2>&5
|
---|
| 6190 | ac_status=$?
|
---|
[10192] | 6191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6192 | (exit $ac_status); }; } &&
|
---|
| 6193 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6195 | (eval $ac_try) 2>&5
|
---|
| 6196 | ac_status=$?
|
---|
| 6197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6198 | (exit $ac_status); }; }; then
|
---|
[10192] | 6199 | eval "$as_ac_var=yes"
|
---|
[3365] | 6200 | else
|
---|
[8063] | 6201 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6202 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6203 |
|
---|
| 6204 | eval "$as_ac_var=no"
|
---|
[3365] | 6205 | fi
|
---|
[10192] | 6206 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6207 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6208 | fi
|
---|
[10192] | 6209 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6210 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6211 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6212 | cat >>confdefs.h <<_ACEOF
|
---|
| 6213 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6214 | _ACEOF
|
---|
[8059] | 6215 |
|
---|
[3365] | 6216 | else
|
---|
[10192] | 6217 | case $LIBOBJS in
|
---|
| 6218 | "$ac_func.$ac_objext" | \
|
---|
| 6219 | *" $ac_func.$ac_objext" | \
|
---|
| 6220 | "$ac_func.$ac_objext "* | \
|
---|
| 6221 | *" $ac_func.$ac_objext "* ) ;;
|
---|
| 6222 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
| 6223 | esac
|
---|
| 6224 |
|
---|
[3365] | 6225 | fi
|
---|
| 6226 | done
|
---|
| 6227 |
|
---|
[10192] | 6228 |
|
---|
| 6229 |
|
---|
| 6230 |
|
---|
| 6231 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
[8063] | 6232 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
| 6233 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
| 6234 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[8059] | 6235 | else
|
---|
[8063] | 6236 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6237 | /* confdefs.h. */
|
---|
| 6238 | _ACEOF
|
---|
| 6239 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6240 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6241 | /* end confdefs.h. */
|
---|
| 6242 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 6243 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6244 | #define textdomain innocuous_textdomain
|
---|
| 6245 |
|
---|
[8059] | 6246 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6247 | which can conflict with char textdomain (); below.
|
---|
| 6248 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6249 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6250 |
|
---|
| 6251 | #ifdef __STDC__
|
---|
| 6252 | # include <limits.h>
|
---|
| 6253 | #else
|
---|
| 6254 | # include <assert.h>
|
---|
| 6255 | #endif
|
---|
| 6256 |
|
---|
| 6257 | #undef textdomain
|
---|
| 6258 |
|
---|
[8059] | 6259 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6260 | #ifdef __cplusplus
|
---|
| 6261 | extern "C"
|
---|
[10192] | 6262 | {
|
---|
[8063] | 6263 | #endif
|
---|
[8059] | 6264 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6265 | builtin and then its argument prototype would still apply. */
|
---|
[8059] | 6266 | char textdomain ();
|
---|
| 6267 | /* The GNU C library defines this for functions which it implements
|
---|
| 6268 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6269 | something starting with __ and the normal name is an alias. */
|
---|
[8063] | 6270 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
[8059] | 6271 | choke me
|
---|
| 6272 | #else
|
---|
[10192] | 6273 | char (*f) () = textdomain;
|
---|
[8059] | 6274 | #endif
|
---|
[10192] | 6275 | #ifdef __cplusplus
|
---|
| 6276 | }
|
---|
| 6277 | #endif
|
---|
[8059] | 6278 |
|
---|
[10192] | 6279 | int
|
---|
| 6280 | main ()
|
---|
| 6281 | {
|
---|
| 6282 | return f != textdomain;
|
---|
[8063] | 6283 | ;
|
---|
| 6284 | return 0;
|
---|
| 6285 | }
|
---|
| 6286 | _ACEOF
|
---|
| 6287 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6288 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6289 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6290 | ac_status=$?
|
---|
[10192] | 6291 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6292 | rm -f conftest.er1
|
---|
| 6293 | cat conftest.err >&5
|
---|
| 6294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6295 | (exit $ac_status); } &&
|
---|
[10192] | 6296 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6297 | || test ! -s conftest.err'
|
---|
| 6298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6299 | (eval $ac_try) 2>&5
|
---|
| 6300 | ac_status=$?
|
---|
[10192] | 6301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6302 | (exit $ac_status); }; } &&
|
---|
| 6303 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6305 | (eval $ac_try) 2>&5
|
---|
| 6306 | ac_status=$?
|
---|
| 6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6308 | (exit $ac_status); }; }; then
|
---|
| 6309 | ac_cv_func_textdomain=yes
|
---|
[8059] | 6310 | else
|
---|
[8063] | 6311 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6312 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6313 |
|
---|
[8063] | 6314 | ac_cv_func_textdomain=no
|
---|
[8059] | 6315 | fi
|
---|
[10192] | 6316 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6317 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8059] | 6318 | fi
|
---|
[10192] | 6319 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
[8063] | 6320 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
| 6321 | if test $ac_cv_func_textdomain = yes; then
|
---|
[10192] | 6322 | cat >>confdefs.h <<\_ACEOF
|
---|
[8059] | 6323 | #define ENABLE_NLS 1
|
---|
[10192] | 6324 | _ACEOF
|
---|
[8063] | 6325 |
|
---|
[8059] | 6326 | fi
|
---|
| 6327 |
|
---|
[10192] | 6328 |
|
---|
| 6329 | # we need to set an extended JNI path for Mac OS/Darwin, as jni.h is on
|
---|
| 6330 | # a non-standard Path
|
---|
[10917] | 6331 | # is there a better way to do this??
|
---|
| 6332 | echo "$as_me:$LINENO: checking for OS to set JNI options" >&5
|
---|
| 6333 | echo $ECHO_N "checking for OS to set JNI options... $ECHO_C" >&6
|
---|
| 6334 | # set defaults
|
---|
| 6335 | JNIINC=""
|
---|
| 6336 | JNISUFFIX="so"
|
---|
| 6337 | JNIFLAGS="-shared"
|
---|
| 6338 |
|
---|
[10192] | 6339 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[10917] | 6340 | echo "$as_me:$LINENO: result: Darwin" >&5
|
---|
| 6341 | echo "${ECHO_T}Darwin" >&6
|
---|
[10192] | 6342 | JNIINC="-I/System/Library/Frameworks/JavaVM.framework/Headers/ "
|
---|
| 6343 | JNISUFFIX="jnilib"
|
---|
[10917] | 6344 | JNIFLAGS="-dynamiclib -fno-common -single_module -framework JavaVM"
|
---|
[10192] | 6345 | fi
|
---|
[10917] | 6346 | if test "`(uname -s) 2> /dev/null`" = 'SunOS'; then
|
---|
| 6347 | echo "$as_me:$LINENO: result: Solaris" >&5
|
---|
| 6348 | echo "${ECHO_T}Solaris" >&6
|
---|
| 6349 | JNIINC="-I\$(JAVA_HOME)/include/solaris "
|
---|
| 6350 | fi
|
---|
| 6351 | if test "`(uname -s) 2> /dev/null`" = 'Linux'; then
|
---|
| 6352 | echo "$as_me:$LINENO: result: Linux" >&5
|
---|
| 6353 | echo "${ECHO_T}Linux" >&6
|
---|
| 6354 | JNIINC="-I\$(JAVA_HOME)/include/linux "
|
---|
| 6355 | fi
|
---|
[10192] | 6356 |
|
---|
| 6357 |
|
---|
| 6358 |
|
---|
| 6359 |
|
---|
[10917] | 6360 |
|
---|
[3365] | 6361 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 6362 | # ---------------------------------------------------------------------------
|
---|
[10192] | 6363 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
[8063] | 6364 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
[3365] | 6365 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[10192] | 6366 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 6367 | echo "${ECHO_T}yes" >&6
|
---|
[10192] | 6368 | case $LIBOBJS in
|
---|
| 6369 | "gmalloc.$ac_objext" | \
|
---|
| 6370 | *" gmalloc.$ac_objext" | \
|
---|
| 6371 | "gmalloc.$ac_objext "* | \
|
---|
| 6372 | *" gmalloc.$ac_objext "* ) ;;
|
---|
| 6373 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
| 6374 | esac
|
---|
| 6375 |
|
---|
| 6376 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 6377 | #define HAVE_VALLOC 1
|
---|
[10192] | 6378 | _ACEOF
|
---|
[3365] | 6379 |
|
---|
| 6380 | else
|
---|
[10192] | 6381 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 6382 | echo "${ECHO_T}no" >&6
|
---|
| 6383 |
|
---|
| 6384 | for ac_func in valloc
|
---|
[3365] | 6385 | do
|
---|
[10192] | 6386 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6387 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
[8063] | 6388 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
[10192] | 6389 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
[8063] | 6390 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6391 | else
|
---|
[8063] | 6392 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6393 | /* confdefs.h. */
|
---|
| 6394 | _ACEOF
|
---|
| 6395 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6396 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6397 | /* end confdefs.h. */
|
---|
| 6398 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6399 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6400 | #define $ac_func innocuous_$ac_func
|
---|
| 6401 |
|
---|
[3365] | 6402 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6403 | which can conflict with char $ac_func (); below.
|
---|
| 6404 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6405 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6406 |
|
---|
| 6407 | #ifdef __STDC__
|
---|
| 6408 | # include <limits.h>
|
---|
| 6409 | #else
|
---|
| 6410 | # include <assert.h>
|
---|
| 6411 | #endif
|
---|
| 6412 |
|
---|
| 6413 | #undef $ac_func
|
---|
| 6414 |
|
---|
[3365] | 6415 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6416 | #ifdef __cplusplus
|
---|
| 6417 | extern "C"
|
---|
[10192] | 6418 | {
|
---|
[8063] | 6419 | #endif
|
---|
[3365] | 6420 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6421 | builtin and then its argument prototype would still apply. */
|
---|
| 6422 | char $ac_func ();
|
---|
[3365] | 6423 | /* The GNU C library defines this for functions which it implements
|
---|
| 6424 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6425 | something starting with __ and the normal name is an alias. */
|
---|
| 6426 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6427 | choke me
|
---|
| 6428 | #else
|
---|
[10192] | 6429 | char (*f) () = $ac_func;
|
---|
[3365] | 6430 | #endif
|
---|
[10192] | 6431 | #ifdef __cplusplus
|
---|
| 6432 | }
|
---|
| 6433 | #endif
|
---|
[3365] | 6434 |
|
---|
[10192] | 6435 | int
|
---|
| 6436 | main ()
|
---|
| 6437 | {
|
---|
| 6438 | return f != $ac_func;
|
---|
[8063] | 6439 | ;
|
---|
| 6440 | return 0;
|
---|
| 6441 | }
|
---|
| 6442 | _ACEOF
|
---|
| 6443 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6444 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6445 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6446 | ac_status=$?
|
---|
[10192] | 6447 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6448 | rm -f conftest.er1
|
---|
| 6449 | cat conftest.err >&5
|
---|
| 6450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6451 | (exit $ac_status); } &&
|
---|
[10192] | 6452 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6453 | || test ! -s conftest.err'
|
---|
| 6454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6455 | (eval $ac_try) 2>&5
|
---|
| 6456 | ac_status=$?
|
---|
[10192] | 6457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6458 | (exit $ac_status); }; } &&
|
---|
| 6459 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6461 | (eval $ac_try) 2>&5
|
---|
| 6462 | ac_status=$?
|
---|
| 6463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6464 | (exit $ac_status); }; }; then
|
---|
[10192] | 6465 | eval "$as_ac_var=yes"
|
---|
[3365] | 6466 | else
|
---|
[8063] | 6467 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6468 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6469 |
|
---|
| 6470 | eval "$as_ac_var=no"
|
---|
[3365] | 6471 | fi
|
---|
[10192] | 6472 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6473 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6474 | fi
|
---|
[10192] | 6475 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6476 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6477 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6478 | cat >>confdefs.h <<_ACEOF
|
---|
| 6479 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6480 | _ACEOF
|
---|
[8059] | 6481 |
|
---|
[3365] | 6482 | fi
|
---|
| 6483 | done
|
---|
| 6484 |
|
---|
| 6485 | fi
|
---|
| 6486 |
|
---|
[10192] | 6487 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
[8063] | 6488 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
| 6489 |
|
---|
[3365] | 6490 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
| 6491 | if test "${with_dmalloc+set}" = set; then
|
---|
| 6492 | withval="$with_dmalloc"
|
---|
| 6493 | if test "$withval" = yes; then
|
---|
[10192] | 6494 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 6495 | echo "${ECHO_T}yes" >&6
|
---|
[10192] | 6496 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 6497 | #define WITH_DMALLOC 1
|
---|
[10192] | 6498 | _ACEOF
|
---|
[3365] | 6499 |
|
---|
| 6500 | LIBS="$LIBS -ldmalloc"
|
---|
| 6501 | LDFLAGS="$LDFLAGS -g"
|
---|
| 6502 | else
|
---|
[10192] | 6503 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 6504 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 6505 | fi
|
---|
| 6506 | else
|
---|
[10192] | 6507 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 6508 | echo "${ECHO_T}no" >&6
|
---|
| 6509 | fi;
|
---|
[3365] | 6510 |
|
---|
[10192] | 6511 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
[8063] | 6512 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
[3365] | 6513 |
|
---|
| 6514 | # Check whether --with-regex or --without-regex was given.
|
---|
| 6515 | if test "${with_regex+set}" = set; then
|
---|
| 6516 | withval="$with_regex"
|
---|
| 6517 | if test "$withval" = yes; then
|
---|
| 6518 | ac_with_regex=1
|
---|
[10192] | 6519 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
[8063] | 6520 | echo "${ECHO_T}regex" >&6
|
---|
[10192] | 6521 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 6522 | #define WITH_REGEX 1
|
---|
[10192] | 6523 | _ACEOF
|
---|
[3365] | 6524 |
|
---|
[10848] | 6525 | case $LIBOBJS in
|
---|
| 6526 | "regex.$ac_objext" | \
|
---|
| 6527 | *" regex.$ac_objext" | \
|
---|
| 6528 | "regex.$ac_objext "* | \
|
---|
| 6529 | *" regex.$ac_objext "* ) ;;
|
---|
| 6530 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
| 6531 | esac
|
---|
| 6532 |
|
---|
[3365] | 6533 | fi
|
---|
[8063] | 6534 | fi;
|
---|
[3365] | 6535 | if test -z "$ac_with_regex"; then
|
---|
[10192] | 6536 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
[8063] | 6537 | echo "${ECHO_T}rx" >&6
|
---|
[10192] | 6538 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
[8063] | 6539 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
| 6540 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
| 6541 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6542 | else
|
---|
[8063] | 6543 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6544 | /* confdefs.h. */
|
---|
| 6545 | _ACEOF
|
---|
| 6546 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6547 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6548 | /* end confdefs.h. */
|
---|
| 6549 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 6550 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6551 | #define re_rx_search innocuous_re_rx_search
|
---|
| 6552 |
|
---|
[3365] | 6553 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[10192] | 6554 | which can conflict with char re_rx_search (); below.
|
---|
| 6555 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6556 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6557 |
|
---|
| 6558 | #ifdef __STDC__
|
---|
| 6559 | # include <limits.h>
|
---|
| 6560 | #else
|
---|
| 6561 | # include <assert.h>
|
---|
| 6562 | #endif
|
---|
| 6563 |
|
---|
| 6564 | #undef re_rx_search
|
---|
| 6565 |
|
---|
[3365] | 6566 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8063] | 6567 | #ifdef __cplusplus
|
---|
| 6568 | extern "C"
|
---|
[10192] | 6569 | {
|
---|
[8063] | 6570 | #endif
|
---|
[3365] | 6571 | /* We use char because int might match the return type of a gcc2
|
---|
[8063] | 6572 | builtin and then its argument prototype would still apply. */
|
---|
| 6573 | char re_rx_search ();
|
---|
[3365] | 6574 | /* The GNU C library defines this for functions which it implements
|
---|
| 6575 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6576 | something starting with __ and the normal name is an alias. */
|
---|
| 6577 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
| 6578 | choke me
|
---|
| 6579 | #else
|
---|
[10192] | 6580 | char (*f) () = re_rx_search;
|
---|
[3365] | 6581 | #endif
|
---|
[10192] | 6582 | #ifdef __cplusplus
|
---|
| 6583 | }
|
---|
| 6584 | #endif
|
---|
[3365] | 6585 |
|
---|
[10192] | 6586 | int
|
---|
| 6587 | main ()
|
---|
| 6588 | {
|
---|
| 6589 | return f != re_rx_search;
|
---|
[8063] | 6590 | ;
|
---|
| 6591 | return 0;
|
---|
| 6592 | }
|
---|
| 6593 | _ACEOF
|
---|
| 6594 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 6595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6596 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 6597 | ac_status=$?
|
---|
[10192] | 6598 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6599 | rm -f conftest.er1
|
---|
| 6600 | cat conftest.err >&5
|
---|
| 6601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6602 | (exit $ac_status); } &&
|
---|
[10192] | 6603 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6604 | || test ! -s conftest.err'
|
---|
| 6605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6606 | (eval $ac_try) 2>&5
|
---|
| 6607 | ac_status=$?
|
---|
[10192] | 6608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6609 | (exit $ac_status); }; } &&
|
---|
| 6610 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6612 | (eval $ac_try) 2>&5
|
---|
| 6613 | ac_status=$?
|
---|
| 6614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6615 | (exit $ac_status); }; }; then
|
---|
| 6616 | ac_cv_func_re_rx_search=yes
|
---|
[3365] | 6617 | else
|
---|
[8063] | 6618 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6619 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6620 |
|
---|
[8063] | 6621 | ac_cv_func_re_rx_search=no
|
---|
[3365] | 6622 | fi
|
---|
[10192] | 6623 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6624 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3365] | 6625 | fi
|
---|
[10192] | 6626 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
[8063] | 6627 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
| 6628 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
[3365] | 6629 | :
|
---|
| 6630 | else
|
---|
[10192] | 6631 | echo "$as_me:$LINENO: checking for unsigned char *" >&5
|
---|
[8063] | 6632 | echo $ECHO_N "checking for unsigned char *... $ECHO_C" >&6
|
---|
| 6633 | if test "${ac_cv_type_unsigned_char_p+set}" = set; then
|
---|
| 6634 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 6635 | else
|
---|
[8063] | 6636 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6637 | /* confdefs.h. */
|
---|
| 6638 | _ACEOF
|
---|
| 6639 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6640 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6641 | /* end confdefs.h. */
|
---|
[8063] | 6642 | $ac_includes_default
|
---|
| 6643 | int
|
---|
| 6644 | main ()
|
---|
| 6645 | {
|
---|
| 6646 | if ((unsigned char * *) 0)
|
---|
| 6647 | return 0;
|
---|
| 6648 | if (sizeof (unsigned char *))
|
---|
| 6649 | return 0;
|
---|
| 6650 | ;
|
---|
| 6651 | return 0;
|
---|
| 6652 | }
|
---|
| 6653 | _ACEOF
|
---|
| 6654 | rm -f conftest.$ac_objext
|
---|
[10192] | 6655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6656 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6657 | ac_status=$?
|
---|
[10192] | 6658 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6659 | rm -f conftest.er1
|
---|
| 6660 | cat conftest.err >&5
|
---|
| 6661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6662 | (exit $ac_status); } &&
|
---|
[10192] | 6663 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6664 | || test ! -s conftest.err'
|
---|
| 6665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6666 | (eval $ac_try) 2>&5
|
---|
| 6667 | ac_status=$?
|
---|
[10192] | 6668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6669 | (exit $ac_status); }; } &&
|
---|
| 6670 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6672 | (eval $ac_try) 2>&5
|
---|
| 6673 | ac_status=$?
|
---|
| 6674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6675 | (exit $ac_status); }; }; then
|
---|
| 6676 | ac_cv_type_unsigned_char_p=yes
|
---|
| 6677 | else
|
---|
| 6678 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6679 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6680 |
|
---|
[8063] | 6681 | ac_cv_type_unsigned_char_p=no
|
---|
| 6682 | fi
|
---|
[10192] | 6683 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 6684 | fi
|
---|
[10192] | 6685 | echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_char_p" >&5
|
---|
[8063] | 6686 | echo "${ECHO_T}$ac_cv_type_unsigned_char_p" >&6
|
---|
| 6687 |
|
---|
[10192] | 6688 | echo "$as_me:$LINENO: checking size of unsigned char *" >&5
|
---|
[8063] | 6689 | echo $ECHO_N "checking size of unsigned char *... $ECHO_C" >&6
|
---|
| 6690 | if test "${ac_cv_sizeof_unsigned_char_p+set}" = set; then
|
---|
| 6691 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6692 | else
|
---|
| 6693 | if test "$ac_cv_type_unsigned_char_p" = yes; then
|
---|
[10192] | 6694 | # The cast to unsigned long works around a bug in the HP C Compiler
|
---|
| 6695 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
|
---|
| 6696 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
|
---|
| 6697 | # This bug is HP SR number 8606223364.
|
---|
[3365] | 6698 | if test "$cross_compiling" = yes; then
|
---|
[8063] | 6699 | # Depending upon the size, compute the lo and hi bounds.
|
---|
| 6700 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6701 | /* confdefs.h. */
|
---|
| 6702 | _ACEOF
|
---|
| 6703 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6704 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6705 | /* end confdefs.h. */
|
---|
[8063] | 6706 | $ac_includes_default
|
---|
| 6707 | int
|
---|
| 6708 | main ()
|
---|
| 6709 | {
|
---|
[10192] | 6710 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) >= 0)];
|
---|
| 6711 | test_array [0] = 0
|
---|
| 6712 |
|
---|
[8063] | 6713 | ;
|
---|
| 6714 | return 0;
|
---|
| 6715 | }
|
---|
| 6716 | _ACEOF
|
---|
| 6717 | rm -f conftest.$ac_objext
|
---|
[10192] | 6718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6719 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6720 | ac_status=$?
|
---|
[10192] | 6721 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6722 | rm -f conftest.er1
|
---|
| 6723 | cat conftest.err >&5
|
---|
| 6724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6725 | (exit $ac_status); } &&
|
---|
[10192] | 6726 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6727 | || test ! -s conftest.err'
|
---|
| 6728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6729 | (eval $ac_try) 2>&5
|
---|
| 6730 | ac_status=$?
|
---|
[10192] | 6731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6732 | (exit $ac_status); }; } &&
|
---|
| 6733 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6735 | (eval $ac_try) 2>&5
|
---|
| 6736 | ac_status=$?
|
---|
| 6737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6738 | (exit $ac_status); }; }; then
|
---|
| 6739 | ac_lo=0 ac_mid=0
|
---|
| 6740 | while :; do
|
---|
| 6741 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6742 | /* confdefs.h. */
|
---|
| 6743 | _ACEOF
|
---|
| 6744 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6745 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6746 | /* end confdefs.h. */
|
---|
[8063] | 6747 | $ac_includes_default
|
---|
| 6748 | int
|
---|
| 6749 | main ()
|
---|
| 6750 | {
|
---|
[10192] | 6751 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) <= $ac_mid)];
|
---|
| 6752 | test_array [0] = 0
|
---|
| 6753 |
|
---|
[8063] | 6754 | ;
|
---|
| 6755 | return 0;
|
---|
| 6756 | }
|
---|
| 6757 | _ACEOF
|
---|
| 6758 | rm -f conftest.$ac_objext
|
---|
[10192] | 6759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6760 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6761 | ac_status=$?
|
---|
[10192] | 6762 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6763 | rm -f conftest.er1
|
---|
| 6764 | cat conftest.err >&5
|
---|
| 6765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6766 | (exit $ac_status); } &&
|
---|
[10192] | 6767 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6768 | || test ! -s conftest.err'
|
---|
| 6769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6770 | (eval $ac_try) 2>&5
|
---|
| 6771 | ac_status=$?
|
---|
[10192] | 6772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6773 | (exit $ac_status); }; } &&
|
---|
| 6774 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6776 | (eval $ac_try) 2>&5
|
---|
| 6777 | ac_status=$?
|
---|
| 6778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6779 | (exit $ac_status); }; }; then
|
---|
| 6780 | ac_hi=$ac_mid; break
|
---|
[3365] | 6781 | else
|
---|
[8063] | 6782 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6783 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6784 |
|
---|
| 6785 | ac_lo=`expr $ac_mid + 1`
|
---|
| 6786 | if test $ac_lo -le $ac_mid; then
|
---|
| 6787 | ac_lo= ac_hi=
|
---|
| 6788 | break
|
---|
| 6789 | fi
|
---|
| 6790 | ac_mid=`expr 2 '*' $ac_mid + 1`
|
---|
[8063] | 6791 | fi
|
---|
[10192] | 6792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 6793 | done
|
---|
| 6794 | else
|
---|
| 6795 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6796 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6797 |
|
---|
| 6798 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6799 | /* confdefs.h. */
|
---|
| 6800 | _ACEOF
|
---|
| 6801 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6802 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6803 | /* end confdefs.h. */
|
---|
| 6804 | $ac_includes_default
|
---|
| 6805 | int
|
---|
| 6806 | main ()
|
---|
| 6807 | {
|
---|
| 6808 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) < 0)];
|
---|
| 6809 | test_array [0] = 0
|
---|
| 6810 |
|
---|
| 6811 | ;
|
---|
| 6812 | return 0;
|
---|
| 6813 | }
|
---|
| 6814 | _ACEOF
|
---|
| 6815 | rm -f conftest.$ac_objext
|
---|
| 6816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6817 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6818 | ac_status=$?
|
---|
| 6819 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6820 | rm -f conftest.er1
|
---|
| 6821 | cat conftest.err >&5
|
---|
| 6822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6823 | (exit $ac_status); } &&
|
---|
| 6824 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6825 | || test ! -s conftest.err'
|
---|
| 6826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6827 | (eval $ac_try) 2>&5
|
---|
| 6828 | ac_status=$?
|
---|
| 6829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6830 | (exit $ac_status); }; } &&
|
---|
| 6831 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6833 | (eval $ac_try) 2>&5
|
---|
| 6834 | ac_status=$?
|
---|
| 6835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6836 | (exit $ac_status); }; }; then
|
---|
| 6837 | ac_hi=-1 ac_mid=-1
|
---|
[8063] | 6838 | while :; do
|
---|
| 6839 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6840 | /* confdefs.h. */
|
---|
| 6841 | _ACEOF
|
---|
| 6842 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6843 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6844 | /* end confdefs.h. */
|
---|
[8063] | 6845 | $ac_includes_default
|
---|
| 6846 | int
|
---|
| 6847 | main ()
|
---|
[3365] | 6848 | {
|
---|
[10192] | 6849 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) >= $ac_mid)];
|
---|
| 6850 | test_array [0] = 0
|
---|
| 6851 |
|
---|
[8063] | 6852 | ;
|
---|
| 6853 | return 0;
|
---|
[3365] | 6854 | }
|
---|
[8063] | 6855 | _ACEOF
|
---|
| 6856 | rm -f conftest.$ac_objext
|
---|
[10192] | 6857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6858 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6859 | ac_status=$?
|
---|
[10192] | 6860 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6861 | rm -f conftest.er1
|
---|
| 6862 | cat conftest.err >&5
|
---|
| 6863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6864 | (exit $ac_status); } &&
|
---|
[10192] | 6865 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6866 | || test ! -s conftest.err'
|
---|
| 6867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6868 | (eval $ac_try) 2>&5
|
---|
| 6869 | ac_status=$?
|
---|
[10192] | 6870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6871 | (exit $ac_status); }; } &&
|
---|
| 6872 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6874 | (eval $ac_try) 2>&5
|
---|
| 6875 | ac_status=$?
|
---|
| 6876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6877 | (exit $ac_status); }; }; then
|
---|
| 6878 | ac_lo=$ac_mid; break
|
---|
[3365] | 6879 | else
|
---|
[8063] | 6880 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6881 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6882 |
|
---|
| 6883 | ac_hi=`expr '(' $ac_mid ')' - 1`
|
---|
| 6884 | if test $ac_mid -le $ac_hi; then
|
---|
| 6885 | ac_lo= ac_hi=
|
---|
| 6886 | break
|
---|
| 6887 | fi
|
---|
| 6888 | ac_mid=`expr 2 '*' $ac_mid`
|
---|
[8063] | 6889 | fi
|
---|
[10192] | 6890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 6891 | done
|
---|
[10192] | 6892 | else
|
---|
| 6893 | echo "$as_me: failed program was:" >&5
|
---|
| 6894 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6895 |
|
---|
| 6896 | ac_lo= ac_hi=
|
---|
[8063] | 6897 | fi
|
---|
[10192] | 6898 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 6899 | fi
|
---|
| 6900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 6901 | # Binary search between lo and hi bounds.
|
---|
| 6902 | while test "x$ac_lo" != "x$ac_hi"; do
|
---|
| 6903 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
|
---|
| 6904 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6905 | /* confdefs.h. */
|
---|
| 6906 | _ACEOF
|
---|
| 6907 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6908 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6909 | /* end confdefs.h. */
|
---|
[8063] | 6910 | $ac_includes_default
|
---|
| 6911 | int
|
---|
| 6912 | main ()
|
---|
| 6913 | {
|
---|
[10192] | 6914 | static int test_array [1 - 2 * !(((long) (sizeof (unsigned char *))) <= $ac_mid)];
|
---|
| 6915 | test_array [0] = 0
|
---|
| 6916 |
|
---|
[8063] | 6917 | ;
|
---|
| 6918 | return 0;
|
---|
| 6919 | }
|
---|
| 6920 | _ACEOF
|
---|
| 6921 | rm -f conftest.$ac_objext
|
---|
[10192] | 6922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6923 | (eval $ac_compile) 2>conftest.er1
|
---|
[8063] | 6924 | ac_status=$?
|
---|
[10192] | 6925 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6926 | rm -f conftest.er1
|
---|
| 6927 | cat conftest.err >&5
|
---|
| 6928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6929 | (exit $ac_status); } &&
|
---|
[10192] | 6930 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6931 | || test ! -s conftest.err'
|
---|
| 6932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 6933 | (eval $ac_try) 2>&5
|
---|
| 6934 | ac_status=$?
|
---|
[10192] | 6935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6936 | (exit $ac_status); }; } &&
|
---|
| 6937 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6939 | (eval $ac_try) 2>&5
|
---|
| 6940 | ac_status=$?
|
---|
| 6941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 6942 | (exit $ac_status); }; }; then
|
---|
| 6943 | ac_hi=$ac_mid
|
---|
| 6944 | else
|
---|
| 6945 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 6946 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6947 |
|
---|
| 6948 | ac_lo=`expr '(' $ac_mid ')' + 1`
|
---|
[8063] | 6949 | fi
|
---|
[10192] | 6950 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 6951 | done
|
---|
[10192] | 6952 | case $ac_lo in
|
---|
| 6953 | ?*) ac_cv_sizeof_unsigned_char_p=$ac_lo;;
|
---|
| 6954 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *), 77
|
---|
| 6955 | See \`config.log' for more details." >&5
|
---|
| 6956 | echo "$as_me: error: cannot compute sizeof (unsigned char *), 77
|
---|
| 6957 | See \`config.log' for more details." >&2;}
|
---|
| 6958 | { (exit 1); exit 1; }; } ;;
|
---|
| 6959 | esac
|
---|
[8063] | 6960 | else
|
---|
| 6961 | if test "$cross_compiling" = yes; then
|
---|
[10192] | 6962 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
|
---|
| 6963 | See \`config.log' for more details." >&5
|
---|
| 6964 | echo "$as_me: error: cannot run test program while cross compiling
|
---|
| 6965 | See \`config.log' for more details." >&2;}
|
---|
[8063] | 6966 | { (exit 1); exit 1; }; }
|
---|
| 6967 | else
|
---|
| 6968 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 6969 | /* confdefs.h. */
|
---|
| 6970 | _ACEOF
|
---|
| 6971 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6972 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6973 | /* end confdefs.h. */
|
---|
[8063] | 6974 | $ac_includes_default
|
---|
[10192] | 6975 | long longval () { return (long) (sizeof (unsigned char *)); }
|
---|
| 6976 | unsigned long ulongval () { return (long) (sizeof (unsigned char *)); }
|
---|
| 6977 | #include <stdio.h>
|
---|
| 6978 | #include <stdlib.h>
|
---|
[8063] | 6979 | int
|
---|
| 6980 | main ()
|
---|
| 6981 | {
|
---|
[10192] | 6982 |
|
---|
| 6983 | FILE *f = fopen ("conftest.val", "w");
|
---|
| 6984 | if (! f)
|
---|
| 6985 | exit (1);
|
---|
| 6986 | if (((long) (sizeof (unsigned char *))) < 0)
|
---|
| 6987 | {
|
---|
| 6988 | long i = longval ();
|
---|
| 6989 | if (i != ((long) (sizeof (unsigned char *))))
|
---|
| 6990 | exit (1);
|
---|
| 6991 | fprintf (f, "%ld\n", i);
|
---|
| 6992 | }
|
---|
| 6993 | else
|
---|
| 6994 | {
|
---|
| 6995 | unsigned long i = ulongval ();
|
---|
| 6996 | if (i != ((long) (sizeof (unsigned char *))))
|
---|
| 6997 | exit (1);
|
---|
| 6998 | fprintf (f, "%lu\n", i);
|
---|
| 6999 | }
|
---|
| 7000 | exit (ferror (f) || fclose (f) != 0);
|
---|
| 7001 |
|
---|
[8063] | 7002 | ;
|
---|
| 7003 | return 0;
|
---|
| 7004 | }
|
---|
| 7005 | _ACEOF
|
---|
| 7006 | rm -f conftest$ac_exeext
|
---|
[10192] | 7007 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
[8063] | 7008 | (eval $ac_link) 2>&5
|
---|
| 7009 | ac_status=$?
|
---|
[10192] | 7010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7011 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
[10192] | 7012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 7013 | (eval $ac_try) 2>&5
|
---|
| 7014 | ac_status=$?
|
---|
[10192] | 7015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7016 | (exit $ac_status); }; }; then
|
---|
| 7017 | ac_cv_sizeof_unsigned_char_p=`cat conftest.val`
|
---|
| 7018 | else
|
---|
| 7019 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7020 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 7021 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7022 |
|
---|
| 7023 | ( exit $ac_status )
|
---|
| 7024 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned char *), 77
|
---|
| 7025 | See \`config.log' for more details." >&5
|
---|
| 7026 | echo "$as_me: error: cannot compute sizeof (unsigned char *), 77
|
---|
| 7027 | See \`config.log' for more details." >&2;}
|
---|
| 7028 | { (exit 1); exit 1; }; }
|
---|
[8063] | 7029 | fi
|
---|
[10192] | 7030 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[8063] | 7031 | fi
|
---|
| 7032 | fi
|
---|
| 7033 | rm -f conftest.val
|
---|
| 7034 | else
|
---|
[8059] | 7035 | ac_cv_sizeof_unsigned_char_p=0
|
---|
[3365] | 7036 | fi
|
---|
| 7037 | fi
|
---|
[10192] | 7038 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char_p" >&5
|
---|
[8063] | 7039 | echo "${ECHO_T}$ac_cv_sizeof_unsigned_char_p" >&6
|
---|
[10192] | 7040 | cat >>confdefs.h <<_ACEOF
|
---|
[3365] | 7041 | #define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
|
---|
[10192] | 7042 | _ACEOF
|
---|
[3365] | 7043 |
|
---|
[10192] | 7044 |
|
---|
[3365] | 7045 | if test "$ac_cv_sizeof_unsigned_char_p" = 8
|
---|
| 7046 | then
|
---|
[10192] | 7047 | { echo "$as_me:$LINENO: WARNING: I'm forcing you to use regex because I can't
|
---|
[8063] | 7048 | find a local rx library and the one included with this
|
---|
| 7049 | distribution doesn't work on 64-bit machines like yours" >&5
|
---|
| 7050 | echo "$as_me: WARNING: I'm forcing you to use regex because I can't
|
---|
| 7051 | find a local rx library and the one included with this
|
---|
| 7052 | distribution doesn't work on 64-bit machines like yours" >&2;}
|
---|
[10848] | 7053 | case $LIBOBJS in
|
---|
| 7054 | "regex.$ac_objext" | \
|
---|
| 7055 | *" regex.$ac_objext" | \
|
---|
| 7056 | "regex.$ac_objext "* | \
|
---|
| 7057 | *" regex.$ac_objext "* ) ;;
|
---|
| 7058 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
| 7059 | esac
|
---|
| 7060 |
|
---|
[3365] | 7061 | else
|
---|
[10848] | 7062 | case $LIBOBJS in
|
---|
| 7063 | "rx.$ac_objext" | \
|
---|
| 7064 | *" rx.$ac_objext" | \
|
---|
| 7065 | "rx.$ac_objext "* | \
|
---|
| 7066 | *" rx.$ac_objext "* ) ;;
|
---|
| 7067 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
| 7068 | esac
|
---|
| 7069 |
|
---|
[3365] | 7070 | fi
|
---|
[8063] | 7071 |
|
---|
[3365] | 7072 | fi
|
---|
| 7073 |
|
---|
| 7074 | fi
|
---|
| 7075 |
|
---|
[10192] | 7076 | echo "$as_me:$LINENO: checking whether GNU readline requested" >&5
|
---|
[8063] | 7077 | echo $ECHO_N "checking whether GNU readline requested... $ECHO_C" >&6
|
---|
| 7078 |
|
---|
| 7079 | # Check whether --with-gnu_readline or --without-gnu_readline was given.
|
---|
[3365] | 7080 | if test "${with_gnu_readline+set}" = set; then
|
---|
| 7081 | withval="$with_gnu_readline"
|
---|
| 7082 | if test "$withval" = yes; then
|
---|
[10192] | 7083 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
[8063] | 7084 | echo "${ECHO_T}yes" >&6
|
---|
[3365] | 7085 | ac_with_gnu_readline=1
|
---|
| 7086 | else
|
---|
[10192] | 7087 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 7088 | echo "${ECHO_T}no" >&6
|
---|
[3365] | 7089 | fi
|
---|
| 7090 | else
|
---|
[10192] | 7091 | echo "$as_me:$LINENO: result: no" >&5
|
---|
[8063] | 7092 | echo "${ECHO_T}no" >&6
|
---|
| 7093 | fi;
|
---|
[3365] | 7094 |
|
---|
| 7095 | if test -n "$ac_with_gnu_readline"; then
|
---|
[10192] | 7096 | if test "${ac_cv_header_readline_readline_h+set}" = set; then
|
---|
| 7097 | echo "$as_me:$LINENO: checking for readline/readline.h" >&5
|
---|
[8063] | 7098 | echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
|
---|
| 7099 | if test "${ac_cv_header_readline_readline_h+set}" = set; then
|
---|
| 7100 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[10192] | 7101 | fi
|
---|
| 7102 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
|
---|
| 7103 | echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
|
---|
[3365] | 7104 | else
|
---|
[10192] | 7105 | # Is the header compilable?
|
---|
| 7106 | echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
|
---|
| 7107 | echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6
|
---|
| 7108 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7109 | /* confdefs.h. */
|
---|
| 7110 | _ACEOF
|
---|
| 7111 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7112 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7113 | /* end confdefs.h. */
|
---|
| 7114 | $ac_includes_default
|
---|
[3365] | 7115 | #include <readline/readline.h>
|
---|
[8063] | 7116 | _ACEOF
|
---|
[10192] | 7117 | rm -f conftest.$ac_objext
|
---|
| 7118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7119 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7120 | ac_status=$?
|
---|
| 7121 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7122 | rm -f conftest.er1
|
---|
| 7123 | cat conftest.err >&5
|
---|
| 7124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7125 | (exit $ac_status); } &&
|
---|
| 7126 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7127 | || test ! -s conftest.err'
|
---|
| 7128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7129 | (eval $ac_try) 2>&5
|
---|
| 7130 | ac_status=$?
|
---|
| 7131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7132 | (exit $ac_status); }; } &&
|
---|
| 7133 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7135 | (eval $ac_try) 2>&5
|
---|
| 7136 | ac_status=$?
|
---|
| 7137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7138 | (exit $ac_status); }; }; then
|
---|
| 7139 | ac_header_compiler=yes
|
---|
| 7140 | else
|
---|
| 7141 | echo "$as_me: failed program was:" >&5
|
---|
| 7142 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7143 |
|
---|
| 7144 | ac_header_compiler=no
|
---|
| 7145 | fi
|
---|
| 7146 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7147 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 7148 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 7149 |
|
---|
| 7150 | # Is the header present?
|
---|
| 7151 | echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
|
---|
| 7152 | echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6
|
---|
| 7153 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7154 | /* confdefs.h. */
|
---|
| 7155 | _ACEOF
|
---|
| 7156 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7157 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7158 | /* end confdefs.h. */
|
---|
| 7159 | #include <readline/readline.h>
|
---|
| 7160 | _ACEOF
|
---|
| 7161 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
[8063] | 7162 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 7163 | ac_status=$?
|
---|
[10192] | 7164 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
[8063] | 7165 | rm -f conftest.er1
|
---|
| 7166 | cat conftest.err >&5
|
---|
[10192] | 7167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7168 | (exit $ac_status); } >/dev/null; then
|
---|
| 7169 | if test -s conftest.err; then
|
---|
| 7170 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
[10192] | 7171 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
[8063] | 7172 | else
|
---|
| 7173 | ac_cpp_err=
|
---|
| 7174 | fi
|
---|
[3365] | 7175 | else
|
---|
[8063] | 7176 | ac_cpp_err=yes
|
---|
| 7177 | fi
|
---|
| 7178 | if test -z "$ac_cpp_err"; then
|
---|
[10192] | 7179 | ac_header_preproc=yes
|
---|
[8063] | 7180 | else
|
---|
| 7181 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 7182 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7183 |
|
---|
| 7184 | ac_header_preproc=no
|
---|
[3365] | 7185 | fi
|
---|
[8063] | 7186 | rm -f conftest.err conftest.$ac_ext
|
---|
[10192] | 7187 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 7188 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 7189 |
|
---|
| 7190 | # So? What about this header?
|
---|
| 7191 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 7192 | yes:no: )
|
---|
| 7193 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 7194 | echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 7195 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
|
---|
| 7196 | echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
|
---|
| 7197 | ac_header_preproc=yes
|
---|
| 7198 | ;;
|
---|
| 7199 | no:yes:* )
|
---|
| 7200 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
|
---|
| 7201 | echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
|
---|
| 7202 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
|
---|
| 7203 | echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
|
---|
| 7204 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
|
---|
| 7205 | echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
|
---|
| 7206 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 7207 | echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 7208 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
|
---|
| 7209 | echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 7210 | { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
|
---|
| 7211 | echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 7212 | (
|
---|
| 7213 | cat <<\_ASBOX
|
---|
| 7214 | ## ------------------------------------------ ##
|
---|
| 7215 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 7216 | ## ------------------------------------------ ##
|
---|
| 7217 | _ASBOX
|
---|
| 7218 | ) |
|
---|
| 7219 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 7220 | ;;
|
---|
| 7221 | esac
|
---|
| 7222 | echo "$as_me:$LINENO: checking for readline/readline.h" >&5
|
---|
| 7223 | echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
|
---|
| 7224 | if test "${ac_cv_header_readline_readline_h+set}" = set; then
|
---|
| 7225 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7226 | else
|
---|
| 7227 | ac_cv_header_readline_readline_h=$ac_header_preproc
|
---|
[3365] | 7228 | fi
|
---|
[10192] | 7229 | echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
|
---|
[8063] | 7230 | echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
|
---|
[10192] | 7231 |
|
---|
| 7232 | fi
|
---|
[8063] | 7233 | if test $ac_cv_header_readline_readline_h = yes; then
|
---|
[3365] | 7234 | ac_mg_readline_header_found=1
|
---|
| 7235 | else
|
---|
[10192] | 7236 | { echo "$as_me:$LINENO: WARNING: Can't find GNU readline headers; configuring without \
|
---|
[8063] | 7237 | GNU readline support" >&5
|
---|
| 7238 | echo "$as_me: WARNING: Can't find GNU readline headers; configuring without \
|
---|
| 7239 | GNU readline support" >&2;}
|
---|
[3365] | 7240 | fi
|
---|
| 7241 |
|
---|
[10192] | 7242 |
|
---|
[3365] | 7243 | if test -n "$ac_mg_readline_header_found"; then
|
---|
| 7244 | # first check whether we can find the readline library itself
|
---|
[10192] | 7245 | echo "$as_me:$LINENO: checking for main in -lreadline" >&5
|
---|
[8063] | 7246 | echo $ECHO_N "checking for main in -lreadline... $ECHO_C" >&6
|
---|
| 7247 | if test "${ac_cv_lib_readline_main+set}" = set; then
|
---|
| 7248 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 7249 | else
|
---|
[8063] | 7250 | ac_check_lib_save_LIBS=$LIBS
|
---|
[3365] | 7251 | LIBS="-lreadline $LIBS"
|
---|
[8063] | 7252 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 7253 | /* confdefs.h. */
|
---|
| 7254 | _ACEOF
|
---|
| 7255 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7256 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7257 | /* end confdefs.h. */
|
---|
[3365] | 7258 |
|
---|
[10192] | 7259 |
|
---|
[8063] | 7260 | int
|
---|
| 7261 | main ()
|
---|
| 7262 | {
|
---|
| 7263 | main ();
|
---|
| 7264 | ;
|
---|
| 7265 | return 0;
|
---|
| 7266 | }
|
---|
| 7267 | _ACEOF
|
---|
| 7268 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 7269 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7270 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 7271 | ac_status=$?
|
---|
[10192] | 7272 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7273 | rm -f conftest.er1
|
---|
| 7274 | cat conftest.err >&5
|
---|
| 7275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7276 | (exit $ac_status); } &&
|
---|
[10192] | 7277 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7278 | || test ! -s conftest.err'
|
---|
| 7279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 7280 | (eval $ac_try) 2>&5
|
---|
| 7281 | ac_status=$?
|
---|
[10192] | 7282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7283 | (exit $ac_status); }; } &&
|
---|
| 7284 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 7285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7286 | (eval $ac_try) 2>&5
|
---|
| 7287 | ac_status=$?
|
---|
| 7288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7289 | (exit $ac_status); }; }; then
|
---|
| 7290 | ac_cv_lib_readline_main=yes
|
---|
[3365] | 7291 | else
|
---|
[8063] | 7292 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 7293 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7294 |
|
---|
[8063] | 7295 | ac_cv_lib_readline_main=no
|
---|
[3365] | 7296 | fi
|
---|
[10192] | 7297 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 7298 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 7299 | LIBS=$ac_check_lib_save_LIBS
|
---|
[3365] | 7300 | fi
|
---|
[10192] | 7301 | echo "$as_me:$LINENO: result: $ac_cv_lib_readline_main" >&5
|
---|
[8063] | 7302 | echo "${ECHO_T}$ac_cv_lib_readline_main" >&6
|
---|
| 7303 | if test $ac_cv_lib_readline_main = yes; then
|
---|
[3365] | 7304 | ac_mg_readline_lib_found=1
|
---|
[10192] | 7305 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 7306 | #define WITH_GNU_READLINE 1
|
---|
[10192] | 7307 | _ACEOF
|
---|
[3365] | 7308 |
|
---|
| 7309 | LIBS="$LIBS -lreadline"
|
---|
| 7310 | else
|
---|
[10192] | 7311 | { echo "$as_me:$LINENO: WARNING: Can't find GNU readline library; configuring without \
|
---|
[8063] | 7312 | GNU readline support" >&5
|
---|
| 7313 | echo "$as_me: WARNING: Can't find GNU readline library; configuring without \
|
---|
| 7314 | GNU readline support" >&2;}
|
---|
[3365] | 7315 | fi
|
---|
| 7316 |
|
---|
| 7317 | if test -n "$ac_mg_readline_lib_found"; then
|
---|
[8063] | 7318 | # on some systems, readline needs curses. It is difficult to
|
---|
[3365] | 7319 | # determine whether this is necessary on the current system,
|
---|
| 7320 | # since other undefined symbols can be turned up by an
|
---|
| 7321 | # AC_CHECK_LIB(readline, readline) test that are actually defined
|
---|
| 7322 | # by mg itself (e.g. xmalloc, xrealloc). So, if we find libcurses,
|
---|
| 7323 | # we just bung it on and hope for the best.
|
---|
[10192] | 7324 | echo "$as_me:$LINENO: checking for main in -lcurses" >&5
|
---|
[8063] | 7325 | echo $ECHO_N "checking for main in -lcurses... $ECHO_C" >&6
|
---|
| 7326 | if test "${ac_cv_lib_curses_main+set}" = set; then
|
---|
| 7327 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3365] | 7328 | else
|
---|
[8063] | 7329 | ac_check_lib_save_LIBS=$LIBS
|
---|
[3365] | 7330 | LIBS="-lcurses $LIBS"
|
---|
[8063] | 7331 | cat >conftest.$ac_ext <<_ACEOF
|
---|
[10192] | 7332 | /* confdefs.h. */
|
---|
| 7333 | _ACEOF
|
---|
| 7334 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7335 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7336 | /* end confdefs.h. */
|
---|
[3365] | 7337 |
|
---|
[10192] | 7338 |
|
---|
[8063] | 7339 | int
|
---|
| 7340 | main ()
|
---|
| 7341 | {
|
---|
| 7342 | main ();
|
---|
| 7343 | ;
|
---|
| 7344 | return 0;
|
---|
| 7345 | }
|
---|
| 7346 | _ACEOF
|
---|
| 7347 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
[10192] | 7348 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7349 | (eval $ac_link) 2>conftest.er1
|
---|
[8063] | 7350 | ac_status=$?
|
---|
[10192] | 7351 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7352 | rm -f conftest.er1
|
---|
| 7353 | cat conftest.err >&5
|
---|
| 7354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7355 | (exit $ac_status); } &&
|
---|
[10192] | 7356 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7357 | || test ! -s conftest.err'
|
---|
| 7358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[8063] | 7359 | (eval $ac_try) 2>&5
|
---|
| 7360 | ac_status=$?
|
---|
[10192] | 7361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7362 | (exit $ac_status); }; } &&
|
---|
| 7363 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 7364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7365 | (eval $ac_try) 2>&5
|
---|
| 7366 | ac_status=$?
|
---|
| 7367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
[8063] | 7368 | (exit $ac_status); }; }; then
|
---|
| 7369 | ac_cv_lib_curses_main=yes
|
---|
[3365] | 7370 | else
|
---|
[8063] | 7371 | echo "$as_me: failed program was:" >&5
|
---|
[10192] | 7372 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7373 |
|
---|
[8063] | 7374 | ac_cv_lib_curses_main=no
|
---|
[3365] | 7375 | fi
|
---|
[10192] | 7376 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 7377 | conftest$ac_exeext conftest.$ac_ext
|
---|
[8063] | 7378 | LIBS=$ac_check_lib_save_LIBS
|
---|
[3365] | 7379 | fi
|
---|
[10192] | 7380 | echo "$as_me:$LINENO: result: $ac_cv_lib_curses_main" >&5
|
---|
[8063] | 7381 | echo "${ECHO_T}$ac_cv_lib_curses_main" >&6
|
---|
| 7382 | if test $ac_cv_lib_curses_main = yes; then
|
---|
[3365] | 7383 | LIBS="$LIBS -lcurses"
|
---|
| 7384 | fi
|
---|
| 7385 |
|
---|
| 7386 | fi
|
---|
| 7387 | fi
|
---|
| 7388 | fi
|
---|
| 7389 |
|
---|
[10192] | 7390 |
|
---|
[10848] | 7391 | # text for endianness
|
---|
| 7392 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 7393 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
| 7394 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
| 7395 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7396 | else
|
---|
| 7397 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 7398 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7399 | /* confdefs.h. */
|
---|
| 7400 | _ACEOF
|
---|
| 7401 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7402 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7403 | /* end confdefs.h. */
|
---|
| 7404 | #include <sys/types.h>
|
---|
| 7405 | #include <sys/param.h>
|
---|
| 7406 |
|
---|
| 7407 | int
|
---|
| 7408 | main ()
|
---|
| 7409 | {
|
---|
| 7410 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
| 7411 | bogus endian macros
|
---|
| 7412 | #endif
|
---|
| 7413 |
|
---|
| 7414 | ;
|
---|
| 7415 | return 0;
|
---|
| 7416 | }
|
---|
| 7417 | _ACEOF
|
---|
| 7418 | rm -f conftest.$ac_objext
|
---|
| 7419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7420 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7421 | ac_status=$?
|
---|
| 7422 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7423 | rm -f conftest.er1
|
---|
| 7424 | cat conftest.err >&5
|
---|
| 7425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7426 | (exit $ac_status); } &&
|
---|
| 7427 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7428 | || test ! -s conftest.err'
|
---|
| 7429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7430 | (eval $ac_try) 2>&5
|
---|
| 7431 | ac_status=$?
|
---|
| 7432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7433 | (exit $ac_status); }; } &&
|
---|
| 7434 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7436 | (eval $ac_try) 2>&5
|
---|
| 7437 | ac_status=$?
|
---|
| 7438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7439 | (exit $ac_status); }; }; then
|
---|
| 7440 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
| 7441 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7442 | /* confdefs.h. */
|
---|
| 7443 | _ACEOF
|
---|
| 7444 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7445 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7446 | /* end confdefs.h. */
|
---|
| 7447 | #include <sys/types.h>
|
---|
| 7448 | #include <sys/param.h>
|
---|
| 7449 |
|
---|
| 7450 | int
|
---|
| 7451 | main ()
|
---|
| 7452 | {
|
---|
| 7453 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
| 7454 | not big endian
|
---|
| 7455 | #endif
|
---|
| 7456 |
|
---|
| 7457 | ;
|
---|
| 7458 | return 0;
|
---|
| 7459 | }
|
---|
| 7460 | _ACEOF
|
---|
| 7461 | rm -f conftest.$ac_objext
|
---|
| 7462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7463 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7464 | ac_status=$?
|
---|
| 7465 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7466 | rm -f conftest.er1
|
---|
| 7467 | cat conftest.err >&5
|
---|
| 7468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7469 | (exit $ac_status); } &&
|
---|
| 7470 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7471 | || test ! -s conftest.err'
|
---|
| 7472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7473 | (eval $ac_try) 2>&5
|
---|
| 7474 | ac_status=$?
|
---|
| 7475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7476 | (exit $ac_status); }; } &&
|
---|
| 7477 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7479 | (eval $ac_try) 2>&5
|
---|
| 7480 | ac_status=$?
|
---|
| 7481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7482 | (exit $ac_status); }; }; then
|
---|
| 7483 | ac_cv_c_bigendian=yes
|
---|
| 7484 | else
|
---|
| 7485 | echo "$as_me: failed program was:" >&5
|
---|
| 7486 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7487 |
|
---|
| 7488 | ac_cv_c_bigendian=no
|
---|
| 7489 | fi
|
---|
| 7490 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7491 | else
|
---|
| 7492 | echo "$as_me: failed program was:" >&5
|
---|
| 7493 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7494 |
|
---|
| 7495 | # It does not; compile a test program.
|
---|
| 7496 | if test "$cross_compiling" = yes; then
|
---|
| 7497 | # try to guess the endianness by grepping values into an object file
|
---|
| 7498 | ac_cv_c_bigendian=unknown
|
---|
| 7499 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7500 | /* confdefs.h. */
|
---|
| 7501 | _ACEOF
|
---|
| 7502 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7503 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7504 | /* end confdefs.h. */
|
---|
| 7505 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 7506 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 7507 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
| 7508 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 7509 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 7510 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
| 7511 | int
|
---|
| 7512 | main ()
|
---|
| 7513 | {
|
---|
| 7514 | _ascii (); _ebcdic ();
|
---|
| 7515 | ;
|
---|
| 7516 | return 0;
|
---|
| 7517 | }
|
---|
| 7518 | _ACEOF
|
---|
| 7519 | rm -f conftest.$ac_objext
|
---|
| 7520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7521 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7522 | ac_status=$?
|
---|
| 7523 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7524 | rm -f conftest.er1
|
---|
| 7525 | cat conftest.err >&5
|
---|
| 7526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7527 | (exit $ac_status); } &&
|
---|
| 7528 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7529 | || test ! -s conftest.err'
|
---|
| 7530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7531 | (eval $ac_try) 2>&5
|
---|
| 7532 | ac_status=$?
|
---|
| 7533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7534 | (exit $ac_status); }; } &&
|
---|
| 7535 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7537 | (eval $ac_try) 2>&5
|
---|
| 7538 | ac_status=$?
|
---|
| 7539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7540 | (exit $ac_status); }; }; then
|
---|
| 7541 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
| 7542 | ac_cv_c_bigendian=yes
|
---|
| 7543 | fi
|
---|
| 7544 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 7545 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 7546 | ac_cv_c_bigendian=no
|
---|
| 7547 | else
|
---|
| 7548 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 7549 | ac_cv_c_bigendian=unknown
|
---|
| 7550 | fi
|
---|
| 7551 | fi
|
---|
| 7552 | else
|
---|
| 7553 | echo "$as_me: failed program was:" >&5
|
---|
| 7554 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7555 |
|
---|
| 7556 | fi
|
---|
| 7557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7558 | else
|
---|
| 7559 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7560 | /* confdefs.h. */
|
---|
| 7561 | _ACEOF
|
---|
| 7562 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7563 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7564 | /* end confdefs.h. */
|
---|
| 7565 | int
|
---|
| 7566 | main ()
|
---|
| 7567 | {
|
---|
| 7568 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 7569 | union
|
---|
| 7570 | {
|
---|
| 7571 | long l;
|
---|
| 7572 | char c[sizeof (long)];
|
---|
| 7573 | } u;
|
---|
| 7574 | u.l = 1;
|
---|
| 7575 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
| 7576 | }
|
---|
| 7577 | _ACEOF
|
---|
| 7578 | rm -f conftest$ac_exeext
|
---|
| 7579 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7580 | (eval $ac_link) 2>&5
|
---|
| 7581 | ac_status=$?
|
---|
| 7582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7583 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 7584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7585 | (eval $ac_try) 2>&5
|
---|
| 7586 | ac_status=$?
|
---|
| 7587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7588 | (exit $ac_status); }; }; then
|
---|
| 7589 | ac_cv_c_bigendian=no
|
---|
| 7590 | else
|
---|
| 7591 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7592 | echo "$as_me: failed program was:" >&5
|
---|
| 7593 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7594 |
|
---|
| 7595 | ( exit $ac_status )
|
---|
| 7596 | ac_cv_c_bigendian=yes
|
---|
| 7597 | fi
|
---|
| 7598 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 7599 | fi
|
---|
| 7600 | fi
|
---|
| 7601 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7602 | fi
|
---|
| 7603 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 7604 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
| 7605 | case $ac_cv_c_bigendian in
|
---|
| 7606 | yes)
|
---|
| 7607 |
|
---|
| 7608 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7609 | #define WORDS_BIGENDIAN 1
|
---|
| 7610 | _ACEOF
|
---|
| 7611 | ;;
|
---|
| 7612 | no)
|
---|
| 7613 | ;;
|
---|
| 7614 | *)
|
---|
| 7615 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 7616 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 7617 | echo "$as_me: error: unknown endianness
|
---|
| 7618 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
| 7619 | { (exit 1); exit 1; }; } ;;
|
---|
| 7620 | esac
|
---|
| 7621 |
|
---|
| 7622 |
|
---|
[3365] | 7623 | # ---------------------------------------------------------------------------
|
---|
| 7624 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[10192] | 7625 | case $LIBOBJS in
|
---|
| 7626 | "xmalloc.$ac_objext" | \
|
---|
| 7627 | *" xmalloc.$ac_objext" | \
|
---|
| 7628 | "xmalloc.$ac_objext "* | \
|
---|
| 7629 | *" xmalloc.$ac_objext "* ) ;;
|
---|
| 7630 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
| 7631 | esac
|
---|
| 7632 |
|
---|
| 7633 | case $LIBOBJS in
|
---|
| 7634 | "error.$ac_objext" | \
|
---|
| 7635 | *" error.$ac_objext" | \
|
---|
| 7636 | "error.$ac_objext "* | \
|
---|
| 7637 | *" error.$ac_objext "* ) ;;
|
---|
| 7638 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
| 7639 | esac
|
---|
| 7640 |
|
---|
[3365] | 7641 | fi
|
---|
| 7642 |
|
---|
[10192] | 7643 |
|
---|
[3365] | 7644 | # ---------------------------------------------------------------------------
|
---|
| 7645 | # see if the user wants to override use of long long
|
---|
| 7646 | # Check whether --enable-override-longlong or --disable-override-longlong was given.
|
---|
| 7647 | if test "${enable_override_longlong+set}" = set; then
|
---|
| 7648 | enableval="$enable_override_longlong"
|
---|
[10192] | 7649 | cat >>confdefs.h <<\_ACEOF
|
---|
[3365] | 7650 | #define DISABLE_LONG_LONG 1
|
---|
[10192] | 7651 | _ACEOF
|
---|
[3365] | 7652 |
|
---|
[8063] | 7653 | fi;
|
---|
[3365] | 7654 |
|
---|
[10848] | 7655 |
|
---|
[3365] | 7656 | # ---------------------------------------------------------------------------
|
---|
| 7657 |
|
---|
[13625] | 7658 |
|
---|
| 7659 |
|
---|
| 7660 | subdirs="$subdirs packages/unac"
|
---|
| 7661 |
|
---|
| 7662 |
|
---|
[10192] | 7663 | ac_config_files="$ac_config_files Makefile text/Makefile lib/Makefile jni/Makefile java/org/greenstone/mgpp/Makefile"
|
---|
| 7664 | ac_config_commands="$ac_config_commands default"
|
---|
[8063] | 7665 | cat >confcache <<\_ACEOF
|
---|
[3365] | 7666 | # This file is a shell script that caches the results of configure
|
---|
| 7667 | # tests run on this system so they can be shared between configure
|
---|
[8063] | 7668 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 7669 | # It is not useful on other systems. If it contains results you don't
|
---|
| 7670 | # want to keep, you may remove or edit it.
|
---|
[3365] | 7671 | #
|
---|
[8063] | 7672 | # config.status only pays attention to the cache file if you give it
|
---|
| 7673 | # the --recheck option to rerun configure.
|
---|
[3365] | 7674 | #
|
---|
[10192] | 7675 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
[8063] | 7676 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 7677 | # following values.
|
---|
| 7678 |
|
---|
| 7679 | _ACEOF
|
---|
| 7680 |
|
---|
[3365] | 7681 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 7682 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
| 7683 | # So, don't put newlines in cache variables' values.
|
---|
| 7684 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 7685 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[8063] | 7686 | {
|
---|
| 7687 | (set) 2>&1 |
|
---|
| 7688 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 7689 | *ac_space=\ *)
|
---|
| 7690 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 7691 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 7692 | sed -n \
|
---|
[10192] | 7693 | "s/'/'\\\\''/g;
|
---|
| 7694 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[8063] | 7695 | ;;
|
---|
| 7696 | *)
|
---|
| 7697 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
| 7698 | sed -n \
|
---|
[10192] | 7699 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[8063] | 7700 | ;;
|
---|
| 7701 | esac;
|
---|
| 7702 | } |
|
---|
| 7703 | sed '
|
---|
| 7704 | t clear
|
---|
| 7705 | : clear
|
---|
| 7706 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 7707 | t end
|
---|
| 7708 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 7709 | : end' >>confcache
|
---|
[10192] | 7710 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
[3365] | 7711 | if test -w $cache_file; then
|
---|
[8063] | 7712 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
| 7713 | cat confcache >$cache_file
|
---|
[3365] | 7714 | else
|
---|
| 7715 | echo "not updating unwritable cache $cache_file"
|
---|
| 7716 | fi
|
---|
| 7717 | fi
|
---|
| 7718 | rm -f confcache
|
---|
| 7719 |
|
---|
| 7720 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 7721 | # Let make expand exec_prefix.
|
---|
| 7722 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 7723 |
|
---|
[8063] | 7724 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 7725 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 7726 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7727 | # (actually we leave an empty line to preserve line numbers).
|
---|
[3365] | 7728 | if test "x$srcdir" = x.; then
|
---|
[10192] | 7729 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
[8063] | 7730 | s/:*\$(srcdir):*/:/;
|
---|
| 7731 | s/:*\${srcdir}:*/:/;
|
---|
| 7732 | s/:*@srcdir@:*/:/;
|
---|
[10192] | 7733 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
[8063] | 7734 | s/:*$//;
|
---|
[10192] | 7735 | s/^[^=]*=[ ]*$//;
|
---|
[8063] | 7736 | }'
|
---|
[3365] | 7737 | fi
|
---|
| 7738 |
|
---|
| 7739 | DEFS=-DHAVE_CONFIG_H
|
---|
| 7740 |
|
---|
[10192] | 7741 | ac_libobjs=
|
---|
| 7742 | ac_ltlibobjs=
|
---|
| 7743 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 7744 | # 1. Remove the extension, and $U if already installed.
|
---|
| 7745 | ac_i=`echo "$ac_i" |
|
---|
| 7746 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
| 7747 | # 2. Add them.
|
---|
| 7748 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
| 7749 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
| 7750 | done
|
---|
| 7751 | LIBOBJS=$ac_libobjs
|
---|
| 7752 |
|
---|
| 7753 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 7754 |
|
---|
| 7755 |
|
---|
| 7756 |
|
---|
[3365] | 7757 | : ${CONFIG_STATUS=./config.status}
|
---|
[8063] | 7758 | ac_clean_files_save=$ac_clean_files
|
---|
| 7759 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
[10192] | 7760 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
[8063] | 7761 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 7762 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
| 7763 | #! $SHELL
|
---|
[10192] | 7764 | # Generated by $as_me.
|
---|
[3365] | 7765 | # Run this file to recreate the current configuration.
|
---|
| 7766 | # Compiler output produced by configure, useful for debugging
|
---|
[8063] | 7767 | # configure, is in config.log if it exists.
|
---|
[3365] | 7768 |
|
---|
[8063] | 7769 | debug=false
|
---|
[10192] | 7770 | ac_cs_recheck=false
|
---|
| 7771 | ac_cs_silent=false
|
---|
[8063] | 7772 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
| 7773 | _ACEOF
|
---|
| 7774 |
|
---|
| 7775 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[10192] | 7776 | ## --------------------- ##
|
---|
| 7777 | ## M4sh Initialization. ##
|
---|
| 7778 | ## --------------------- ##
|
---|
| 7779 |
|
---|
[8063] | 7780 | # Be Bourne compatible
|
---|
| 7781 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 7782 | emulate sh
|
---|
| 7783 | NULLCMD=:
|
---|
[10192] | 7784 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 7785 | # is contrary to our usage. Disable this feature.
|
---|
| 7786 | alias -g '${1+"$@"}'='"$@"'
|
---|
[8063] | 7787 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 7788 | set -o posix
|
---|
| 7789 | fi
|
---|
[10192] | 7790 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[8063] | 7791 |
|
---|
[10192] | 7792 | # Support unset when possible.
|
---|
| 7793 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 7794 | as_unset=unset
|
---|
| 7795 | else
|
---|
| 7796 | as_unset=false
|
---|
| 7797 | fi
|
---|
| 7798 |
|
---|
| 7799 |
|
---|
| 7800 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 7801 | $as_unset ENV MAIL MAILPATH
|
---|
| 7802 | PS1='$ '
|
---|
| 7803 | PS2='> '
|
---|
| 7804 | PS4='+ '
|
---|
| 7805 |
|
---|
| 7806 | # NLS nuisances.
|
---|
| 7807 | for as_var in \
|
---|
| 7808 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 7809 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 7810 | LC_TELEPHONE LC_TIME
|
---|
| 7811 | do
|
---|
| 7812 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 7813 | eval $as_var=C; export $as_var
|
---|
| 7814 | else
|
---|
| 7815 | $as_unset $as_var
|
---|
| 7816 | fi
|
---|
| 7817 | done
|
---|
| 7818 |
|
---|
| 7819 | # Required to use basename.
|
---|
| 7820 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7821 | as_expr=expr
|
---|
| 7822 | else
|
---|
| 7823 | as_expr=false
|
---|
| 7824 | fi
|
---|
| 7825 |
|
---|
| 7826 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
| 7827 | as_basename=basename
|
---|
| 7828 | else
|
---|
| 7829 | as_basename=false
|
---|
| 7830 | fi
|
---|
| 7831 |
|
---|
| 7832 |
|
---|
[8063] | 7833 | # Name of the executable.
|
---|
[10192] | 7834 | as_me=`$as_basename "$0" ||
|
---|
| 7835 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 7836 | X"$0" : 'X\(//\)$' \| \
|
---|
| 7837 | X"$0" : 'X\(/\)$' \| \
|
---|
| 7838 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7839 | echo X/"$0" |
|
---|
| 7840 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 7841 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7842 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 7843 | s/.*/./; q'`
|
---|
[8063] | 7844 |
|
---|
[10192] | 7845 |
|
---|
| 7846 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 7847 | # Avoid depending upon Character Ranges.
|
---|
| 7848 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 7849 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 7850 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 7851 | as_cr_digits='0123456789'
|
---|
| 7852 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 7853 |
|
---|
| 7854 | # The user is always right.
|
---|
| 7855 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 7856 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 7857 | echo "exit 0" >>conf$$.sh
|
---|
| 7858 | chmod +x conf$$.sh
|
---|
| 7859 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 7860 | PATH_SEPARATOR=';'
|
---|
| 7861 | else
|
---|
| 7862 | PATH_SEPARATOR=:
|
---|
| 7863 | fi
|
---|
| 7864 | rm -f conf$$.sh
|
---|
| 7865 | fi
|
---|
| 7866 |
|
---|
| 7867 |
|
---|
| 7868 | as_lineno_1=$LINENO
|
---|
| 7869 | as_lineno_2=$LINENO
|
---|
| 7870 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7871 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7872 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 7873 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 7874 | # relative or not.
|
---|
| 7875 | case $0 in
|
---|
| 7876 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 7877 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7878 | for as_dir in $PATH
|
---|
| 7879 | do
|
---|
| 7880 | IFS=$as_save_IFS
|
---|
| 7881 | test -z "$as_dir" && as_dir=.
|
---|
| 7882 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 7883 | done
|
---|
| 7884 |
|
---|
| 7885 | ;;
|
---|
| 7886 | esac
|
---|
| 7887 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 7888 | # in which case we are not to be found in the path.
|
---|
| 7889 | if test "x$as_myself" = x; then
|
---|
| 7890 | as_myself=$0
|
---|
| 7891 | fi
|
---|
| 7892 | if test ! -f "$as_myself"; then
|
---|
| 7893 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
| 7894 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
| 7895 | { (exit 1); exit 1; }; }
|
---|
| 7896 | fi
|
---|
| 7897 | case $CONFIG_SHELL in
|
---|
| 7898 | '')
|
---|
| 7899 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7900 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 7901 | do
|
---|
| 7902 | IFS=$as_save_IFS
|
---|
| 7903 | test -z "$as_dir" && as_dir=.
|
---|
| 7904 | for as_base in sh bash ksh sh5; do
|
---|
| 7905 | case $as_dir in
|
---|
| 7906 | /*)
|
---|
| 7907 | if ("$as_dir/$as_base" -c '
|
---|
| 7908 | as_lineno_1=$LINENO
|
---|
| 7909 | as_lineno_2=$LINENO
|
---|
| 7910 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7911 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7912 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 7913 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 7914 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 7915 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 7916 | export CONFIG_SHELL
|
---|
| 7917 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 7918 | fi;;
|
---|
| 7919 | esac
|
---|
| 7920 | done
|
---|
| 7921 | done
|
---|
| 7922 | ;;
|
---|
| 7923 | esac
|
---|
| 7924 |
|
---|
| 7925 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 7926 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 7927 | # line-number line before each line; the second 'sed' does the real
|
---|
| 7928 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 7929 | # with the numbered line, and appends trailing '-' during
|
---|
| 7930 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 7931 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 7932 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 7933 | sed '=' <$as_myself |
|
---|
| 7934 | sed '
|
---|
| 7935 | N
|
---|
| 7936 | s,$,-,
|
---|
| 7937 | : loop
|
---|
| 7938 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 7939 | t loop
|
---|
| 7940 | s,-$,,
|
---|
| 7941 | s,^['$as_cr_digits']*\n,,
|
---|
| 7942 | ' >$as_me.lineno &&
|
---|
| 7943 | chmod +x $as_me.lineno ||
|
---|
| 7944 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
| 7945 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
| 7946 | { (exit 1); exit 1; }; }
|
---|
| 7947 |
|
---|
| 7948 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 7949 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 7950 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 7951 | . ./$as_me.lineno
|
---|
| 7952 | # Exit status is that of the last command.
|
---|
| 7953 | exit
|
---|
| 7954 | }
|
---|
| 7955 |
|
---|
| 7956 |
|
---|
| 7957 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 7958 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 7959 | ' ECHO_T=' ' ;;
|
---|
| 7960 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 7961 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
| 7962 | esac
|
---|
| 7963 |
|
---|
[8063] | 7964 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7965 | as_expr=expr
|
---|
| 7966 | else
|
---|
| 7967 | as_expr=false
|
---|
| 7968 | fi
|
---|
| 7969 |
|
---|
| 7970 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7971 | echo >conf$$.file
|
---|
| 7972 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7973 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 7974 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 7975 | if test -f conf$$.exe; then
|
---|
| 7976 | # Don't use ln at all; we don't have any links
|
---|
| 7977 | as_ln_s='cp -p'
|
---|
| 7978 | else
|
---|
| 7979 | as_ln_s='ln -s'
|
---|
| 7980 | fi
|
---|
| 7981 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7982 | as_ln_s=ln
|
---|
| 7983 | else
|
---|
| 7984 | as_ln_s='cp -p'
|
---|
| 7985 | fi
|
---|
| 7986 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7987 |
|
---|
[10192] | 7988 | if mkdir -p . 2>/dev/null; then
|
---|
| 7989 | as_mkdir_p=:
|
---|
[8063] | 7990 | else
|
---|
[10192] | 7991 | test -d ./-p && rmdir ./-p
|
---|
| 7992 | as_mkdir_p=false
|
---|
[8063] | 7993 | fi
|
---|
| 7994 |
|
---|
[10192] | 7995 | as_executable_p="test -f"
|
---|
[8063] | 7996 |
|
---|
[10192] | 7997 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 7998 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7999 |
|
---|
| 8000 | # Sed expression to map a string onto a valid variable name.
|
---|
| 8001 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 8002 |
|
---|
| 8003 |
|
---|
[8063] | 8004 | # IFS
|
---|
| 8005 | # We need space, tab and new line, in precisely that order.
|
---|
| 8006 | as_nl='
|
---|
| 8007 | '
|
---|
| 8008 | IFS=" $as_nl"
|
---|
| 8009 |
|
---|
| 8010 | # CDPATH.
|
---|
[10192] | 8011 | $as_unset CDPATH
|
---|
[8063] | 8012 |
|
---|
| 8013 | exec 6>&1
|
---|
| 8014 |
|
---|
[10192] | 8015 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
| 8016 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
| 8017 | # values after options handling. Logging --version etc. is OK.
|
---|
| 8018 | exec 5>>config.log
|
---|
| 8019 | {
|
---|
| 8020 | echo
|
---|
| 8021 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 8022 | ## Running $as_me. ##
|
---|
| 8023 | _ASBOX
|
---|
| 8024 | } >&5
|
---|
| 8025 | cat >&5 <<_CSEOF
|
---|
| 8026 |
|
---|
| 8027 | This file was extended by $as_me, which was
|
---|
| 8028 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
| 8029 |
|
---|
| 8030 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 8031 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 8032 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 8033 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 8034 | $ $0 $@
|
---|
| 8035 |
|
---|
| 8036 | _CSEOF
|
---|
| 8037 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
| 8038 | echo >&5
|
---|
[8063] | 8039 | _ACEOF
|
---|
| 8040 |
|
---|
| 8041 | # Files that config.status was made for.
|
---|
| 8042 | if test -n "$ac_config_files"; then
|
---|
| 8043 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
| 8044 | fi
|
---|
| 8045 |
|
---|
| 8046 | if test -n "$ac_config_headers"; then
|
---|
| 8047 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
| 8048 | fi
|
---|
| 8049 |
|
---|
| 8050 | if test -n "$ac_config_links"; then
|
---|
| 8051 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
| 8052 | fi
|
---|
| 8053 |
|
---|
| 8054 | if test -n "$ac_config_commands"; then
|
---|
| 8055 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
| 8056 | fi
|
---|
| 8057 |
|
---|
[10192] | 8058 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8059 |
|
---|
| 8060 | ac_cs_usage="\
|
---|
| 8061 | \`$as_me' instantiates files from templates according to the
|
---|
| 8062 | current configuration.
|
---|
| 8063 |
|
---|
| 8064 | Usage: $0 [OPTIONS] [FILE]...
|
---|
| 8065 |
|
---|
| 8066 | -h, --help print this help, then exit
|
---|
| 8067 | -V, --version print version number, then exit
|
---|
[10192] | 8068 | -q, --quiet do not print progress messages
|
---|
[8063] | 8069 | -d, --debug don't remove temporary files
|
---|
| 8070 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
| 8071 | --file=FILE[:TEMPLATE]
|
---|
[10192] | 8072 | instantiate the configuration file FILE
|
---|
[8063] | 8073 | --header=FILE[:TEMPLATE]
|
---|
[10192] | 8074 | instantiate the configuration header FILE
|
---|
[8063] | 8075 |
|
---|
| 8076 | Configuration files:
|
---|
| 8077 | $config_files
|
---|
| 8078 |
|
---|
| 8079 | Configuration headers:
|
---|
| 8080 | $config_headers
|
---|
| 8081 |
|
---|
| 8082 | Configuration commands:
|
---|
| 8083 | $config_commands
|
---|
| 8084 |
|
---|
| 8085 | Report bugs to <[email protected]>."
|
---|
[10192] | 8086 | _ACEOF
|
---|
[8063] | 8087 |
|
---|
[10192] | 8088 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[8063] | 8089 | ac_cs_version="\\
|
---|
| 8090 | config.status
|
---|
[10192] | 8091 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
[8063] | 8092 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
| 8093 |
|
---|
[10192] | 8094 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[8063] | 8095 | This config.status script is free software; the Free Software Foundation
|
---|
| 8096 | gives unlimited permission to copy, distribute and modify it."
|
---|
| 8097 | srcdir=$srcdir
|
---|
| 8098 | INSTALL="$INSTALL"
|
---|
[10192] | 8099 | _ACEOF
|
---|
[8063] | 8100 |
|
---|
[10192] | 8101 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8102 | # If no file are specified by the user, then we need to provide default
|
---|
| 8103 | # value. By we need to know if files were specified by the user.
|
---|
| 8104 | ac_need_defaults=:
|
---|
| 8105 | while test $# != 0
|
---|
[3365] | 8106 | do
|
---|
[8063] | 8107 | case $1 in
|
---|
| 8108 | --*=*)
|
---|
| 8109 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
| 8110 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
[10192] | 8111 | ac_shift=:
|
---|
[8063] | 8112 | ;;
|
---|
[10192] | 8113 | -*)
|
---|
| 8114 | ac_option=$1
|
---|
| 8115 | ac_optarg=$2
|
---|
| 8116 | ac_shift=shift
|
---|
| 8117 | ;;
|
---|
[8063] | 8118 | *) # This is not an option, so the user has probably given explicit
|
---|
| 8119 | # arguments.
|
---|
[10192] | 8120 | ac_option=$1
|
---|
[8063] | 8121 | ac_need_defaults=false;;
|
---|
| 8122 | esac
|
---|
| 8123 |
|
---|
[10192] | 8124 | case $ac_option in
|
---|
[8063] | 8125 | # Handling of the options.
|
---|
[10192] | 8126 | _ACEOF
|
---|
| 8127 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[3365] | 8128 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
[10192] | 8129 | ac_cs_recheck=: ;;
|
---|
[8063] | 8130 | --version | --vers* | -V )
|
---|
| 8131 | echo "$ac_cs_version"; exit 0 ;;
|
---|
| 8132 | --he | --h)
|
---|
| 8133 | # Conflict between --help and --header
|
---|
[10192] | 8134 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
[8063] | 8135 | Try \`$0 --help' for more information." >&5
|
---|
| 8136 | echo "$as_me: error: ambiguous option: $1
|
---|
| 8137 | Try \`$0 --help' for more information." >&2;}
|
---|
| 8138 | { (exit 1); exit 1; }; };;
|
---|
| 8139 | --help | --hel | -h )
|
---|
| 8140 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
| 8141 | --debug | --d* | -d )
|
---|
| 8142 | debug=: ;;
|
---|
| 8143 | --file | --fil | --fi | --f )
|
---|
[10192] | 8144 | $ac_shift
|
---|
| 8145 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
[8063] | 8146 | ac_need_defaults=false;;
|
---|
| 8147 | --header | --heade | --head | --hea )
|
---|
[10192] | 8148 | $ac_shift
|
---|
| 8149 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
[8063] | 8150 | ac_need_defaults=false;;
|
---|
[10192] | 8151 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 8152 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 8153 | ac_cs_silent=: ;;
|
---|
[8063] | 8154 |
|
---|
| 8155 | # This is an error.
|
---|
[10192] | 8156 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
[8063] | 8157 | Try \`$0 --help' for more information." >&5
|
---|
| 8158 | echo "$as_me: error: unrecognized option: $1
|
---|
| 8159 | Try \`$0 --help' for more information." >&2;}
|
---|
| 8160 | { (exit 1); exit 1; }; } ;;
|
---|
[10192] | 8161 |
|
---|
| 8162 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
| 8163 |
|
---|
[3365] | 8164 | esac
|
---|
[8063] | 8165 | shift
|
---|
[3365] | 8166 | done
|
---|
| 8167 |
|
---|
[10192] | 8168 | ac_configure_extra_args=
|
---|
[3365] | 8169 |
|
---|
[10192] | 8170 | if $ac_cs_silent; then
|
---|
| 8171 | exec 6>/dev/null
|
---|
| 8172 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
| 8173 | fi
|
---|
[8063] | 8174 |
|
---|
[10192] | 8175 | _ACEOF
|
---|
| 8176 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8177 | if \$ac_cs_recheck; then
|
---|
| 8178 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 8179 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
| 8180 | fi
|
---|
[8063] | 8181 |
|
---|
| 8182 | _ACEOF
|
---|
[3365] | 8183 |
|
---|
[10192] | 8184 |
|
---|
| 8185 |
|
---|
| 8186 |
|
---|
| 8187 |
|
---|
| 8188 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8189 | for ac_config_target in $ac_config_targets
|
---|
| 8190 | do
|
---|
| 8191 | case "$ac_config_target" in
|
---|
| 8192 | # Handling of arguments.
|
---|
| 8193 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 8194 | "text/Makefile" ) CONFIG_FILES="$CONFIG_FILES text/Makefile" ;;
|
---|
| 8195 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
---|
| 8196 | "jni/Makefile" ) CONFIG_FILES="$CONFIG_FILES jni/Makefile" ;;
|
---|
| 8197 | "java/org/greenstone/mgpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES java/org/greenstone/mgpp/Makefile" ;;
|
---|
| 8198 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
|
---|
| 8199 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 8200 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 8201 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 8202 | { (exit 1); exit 1; }; };;
|
---|
| 8203 | esac
|
---|
| 8204 | done
|
---|
| 8205 |
|
---|
[8063] | 8206 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 8207 | # then the envvar interface is used. Set only those that are not.
|
---|
| 8208 | # We use the long form for the default assignment because of an extremely
|
---|
| 8209 | # bizarre bug on SunOS 4.1.3.
|
---|
| 8210 | if $ac_need_defaults; then
|
---|
| 8211 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 8212 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 8213 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
| 8214 | fi
|
---|
[3365] | 8215 |
|
---|
[10192] | 8216 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
| 8217 | # simply because there is no reason to put it here, and in addition,
|
---|
| 8218 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[8063] | 8219 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
| 8220 | $debug ||
|
---|
| 8221 | {
|
---|
| 8222 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
[10192] | 8223 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
[8063] | 8224 | }
|
---|
| 8225 |
|
---|
| 8226 | # Create a (secure) tmp directory for tmp files.
|
---|
[10192] | 8227 |
|
---|
[8063] | 8228 | {
|
---|
[10192] | 8229 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
[8063] | 8230 | test -n "$tmp" && test -d "$tmp"
|
---|
| 8231 | } ||
|
---|
| 8232 | {
|
---|
[10192] | 8233 | tmp=./confstat$$-$RANDOM
|
---|
[8063] | 8234 | (umask 077 && mkdir $tmp)
|
---|
| 8235 | } ||
|
---|
| 8236 | {
|
---|
[10192] | 8237 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
[8063] | 8238 | { (exit 1); exit 1; }
|
---|
| 8239 | }
|
---|
| 8240 |
|
---|
[10192] | 8241 | _ACEOF
|
---|
[8063] | 8242 |
|
---|
[10192] | 8243 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[8063] | 8244 |
|
---|
| 8245 | #
|
---|
| 8246 | # CONFIG_FILES section.
|
---|
| 8247 | #
|
---|
| 8248 |
|
---|
| 8249 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 8250 | # This happens for instance when ./config.status config.h
|
---|
| 8251 | if test -n "\$CONFIG_FILES"; then
|
---|
| 8252 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 8253 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
| 8254 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
| 8255 | s,@SHELL@,$SHELL,;t t
|
---|
[10192] | 8256 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
| 8257 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
| 8258 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
| 8259 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
| 8260 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
| 8261 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
[8063] | 8262 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
| 8263 | s,@prefix@,$prefix,;t t
|
---|
| 8264 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
| 8265 | s,@bindir@,$bindir,;t t
|
---|
| 8266 | s,@sbindir@,$sbindir,;t t
|
---|
| 8267 | s,@libexecdir@,$libexecdir,;t t
|
---|
| 8268 | s,@datadir@,$datadir,;t t
|
---|
| 8269 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
| 8270 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
| 8271 | s,@localstatedir@,$localstatedir,;t t
|
---|
| 8272 | s,@libdir@,$libdir,;t t
|
---|
| 8273 | s,@includedir@,$includedir,;t t
|
---|
| 8274 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
| 8275 | s,@infodir@,$infodir,;t t
|
---|
| 8276 | s,@mandir@,$mandir,;t t
|
---|
[10192] | 8277 | s,@build_alias@,$build_alias,;t t
|
---|
| 8278 | s,@host_alias@,$host_alias,;t t
|
---|
| 8279 | s,@target_alias@,$target_alias,;t t
|
---|
| 8280 | s,@DEFS@,$DEFS,;t t
|
---|
[8063] | 8281 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
| 8282 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
| 8283 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
| 8284 | s,@LIBS@,$LIBS,;t t
|
---|
| 8285 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
| 8286 | s,@VERSION@,$VERSION,;t t
|
---|
[13482] | 8287 | s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
|
---|
[8063] | 8288 | s,@CXX@,$CXX,;t t
|
---|
| 8289 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
| 8290 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
| 8291 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
| 8292 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
| 8293 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
| 8294 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
| 8295 | s,@AWK@,$AWK,;t t
|
---|
| 8296 | s,@YACC@,$YACC,;t t
|
---|
| 8297 | s,@CC@,$CC,;t t
|
---|
| 8298 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
| 8299 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
| 8300 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
| 8301 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
| 8302 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
| 8303 | s,@LN_S@,$LN_S,;t t
|
---|
| 8304 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
| 8305 | s,@RANLIB@,$RANLIB,;t t
|
---|
| 8306 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
| 8307 | s,@CPP@,$CPP,;t t
|
---|
[10192] | 8308 | s,@EGREP@,$EGREP,;t t
|
---|
[8063] | 8309 | s,@U@,$U,;t t
|
---|
| 8310 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
| 8311 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
| 8312 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
[10192] | 8313 | s,@JNIINC@,$JNIINC,;t t
|
---|
| 8314 | s,@JNISUFFIX@,$JNISUFFIX,;t t
|
---|
| 8315 | s,@JNIFLAGS@,$JNIFLAGS,;t t
|
---|
[13625] | 8316 | s,@subdirs@,$subdirs,;t t
|
---|
[10192] | 8317 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
[8059] | 8318 | CEOF
|
---|
[8063] | 8319 |
|
---|
[10192] | 8320 | _ACEOF
|
---|
[3365] | 8321 |
|
---|
[10192] | 8322 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8323 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 8324 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 8325 | ac_max_sed_lines=48
|
---|
| 8326 | ac_sed_frag=1 # Number of current file.
|
---|
| 8327 | ac_beg=1 # First line for current file.
|
---|
| 8328 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
| 8329 | ac_more_lines=:
|
---|
| 8330 | ac_sed_cmds=
|
---|
| 8331 | while $ac_more_lines; do
|
---|
| 8332 | if test $ac_beg -gt 1; then
|
---|
| 8333 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
[3365] | 8334 | else
|
---|
[8063] | 8335 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
[3365] | 8336 | fi
|
---|
[8063] | 8337 | if test ! -s $tmp/subs.frag; then
|
---|
| 8338 | ac_more_lines=false
|
---|
| 8339 | else
|
---|
| 8340 | # The purpose of the label and of the branching condition is to
|
---|
| 8341 | # speed up the sed processing (if there are no `@' at all, there
|
---|
| 8342 | # is no need to browse any of the substitutions).
|
---|
| 8343 | # These are the two extra sed commands mentioned above.
|
---|
| 8344 | (echo ':t
|
---|
| 8345 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
| 8346 | if test -z "$ac_sed_cmds"; then
|
---|
[10192] | 8347 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
[8063] | 8348 | else
|
---|
[10192] | 8349 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
[8063] | 8350 | fi
|
---|
| 8351 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
| 8352 | ac_beg=$ac_end
|
---|
| 8353 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
| 8354 | fi
|
---|
| 8355 | done
|
---|
| 8356 | if test -z "$ac_sed_cmds"; then
|
---|
| 8357 | ac_sed_cmds=cat
|
---|
[3365] | 8358 | fi
|
---|
[8063] | 8359 | fi # test -n "$CONFIG_FILES"
|
---|
[3365] | 8360 |
|
---|
[10192] | 8361 | _ACEOF
|
---|
| 8362 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8363 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
[3365] | 8364 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[8063] | 8365 | case $ac_file in
|
---|
| 8366 | - | *:- | *:-:* ) # input from stdin
|
---|
[10192] | 8367 | cat >$tmp/stdin
|
---|
| 8368 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8369 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[8063] | 8370 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
[10192] | 8371 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[8063] | 8372 | * ) ac_file_in=$ac_file.in ;;
|
---|
[3365] | 8373 | esac
|
---|
| 8374 |
|
---|
[8063] | 8375 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
[10192] | 8376 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8377 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8378 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8379 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8380 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8381 | . : '\(.\)' 2>/dev/null ||
|
---|
[8063] | 8382 | echo X"$ac_file" |
|
---|
| 8383 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8384 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8385 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8386 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8387 | s/.*/./; q'`
|
---|
[10192] | 8388 | { if $as_mkdir_p; then
|
---|
| 8389 | mkdir -p "$ac_dir"
|
---|
[3365] | 8390 | else
|
---|
[10192] | 8391 | as_dir="$ac_dir"
|
---|
| 8392 | as_dirs=
|
---|
| 8393 | while test ! -d "$as_dir"; do
|
---|
| 8394 | as_dirs="$as_dir $as_dirs"
|
---|
| 8395 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8396 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8397 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8398 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8399 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8400 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8401 | echo X"$as_dir" |
|
---|
| 8402 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8403 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8404 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8405 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8406 | s/.*/./; q'`
|
---|
| 8407 | done
|
---|
| 8408 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8409 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8410 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8411 | { (exit 1); exit 1; }; }; }
|
---|
[3365] | 8412 |
|
---|
[10192] | 8413 | ac_builddir=.
|
---|
| 8414 |
|
---|
| 8415 | if test "$ac_dir" != .; then
|
---|
| 8416 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8417 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8418 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8419 | else
|
---|
| 8420 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8421 | fi
|
---|
| 8422 |
|
---|
| 8423 | case $srcdir in
|
---|
| 8424 | .) # No --srcdir option. We are building in place.
|
---|
| 8425 | ac_srcdir=.
|
---|
| 8426 | if test -z "$ac_top_builddir"; then
|
---|
| 8427 | ac_top_srcdir=.
|
---|
| 8428 | else
|
---|
| 8429 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8430 | fi ;;
|
---|
| 8431 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8432 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8433 | ac_top_srcdir=$srcdir ;;
|
---|
[3365] | 8434 | *) # Relative path.
|
---|
[10192] | 8435 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8436 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8437 | esac
|
---|
[3365] | 8438 |
|
---|
[10192] | 8439 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8440 | # the directories may not exist.
|
---|
| 8441 | case `pwd` in
|
---|
| 8442 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8443 | *)
|
---|
| 8444 | case "$ac_dir" in
|
---|
| 8445 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8446 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8447 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8448 | esac;;
|
---|
| 8449 | esac
|
---|
| 8450 | case $ac_abs_builddir in
|
---|
| 8451 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8452 | *)
|
---|
| 8453 | case ${ac_top_builddir}. in
|
---|
| 8454 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8455 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8456 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8457 | esac;;
|
---|
| 8458 | esac
|
---|
| 8459 | case $ac_abs_builddir in
|
---|
| 8460 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8461 | *)
|
---|
| 8462 | case $ac_srcdir in
|
---|
| 8463 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8464 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8465 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8466 | esac;;
|
---|
| 8467 | esac
|
---|
| 8468 | case $ac_abs_builddir in
|
---|
| 8469 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8470 | *)
|
---|
| 8471 | case $ac_top_srcdir in
|
---|
| 8472 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8473 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8474 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8475 | esac;;
|
---|
| 8476 | esac
|
---|
| 8477 |
|
---|
| 8478 |
|
---|
[8063] | 8479 | case $INSTALL in
|
---|
| 8480 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[10192] | 8481 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
[3365] | 8482 | esac
|
---|
| 8483 |
|
---|
[8063] | 8484 | if test x"$ac_file" != x-; then
|
---|
[10192] | 8485 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
[8063] | 8486 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8487 | rm -f "$ac_file"
|
---|
| 8488 | fi
|
---|
| 8489 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8490 | # use $as_me), people would be surprised to read:
|
---|
[10192] | 8491 | # /* config.h. Generated by config.status. */
|
---|
| 8492 | if test x"$ac_file" = x-; then
|
---|
| 8493 | configure_input=
|
---|
| 8494 | else
|
---|
| 8495 | configure_input="$ac_file. "
|
---|
| 8496 | fi
|
---|
| 8497 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
| 8498 | sed 's,.*/,,'` by configure."
|
---|
[3365] | 8499 |
|
---|
[8063] | 8500 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8501 | # src tree.
|
---|
| 8502 | ac_file_inputs=`IFS=:
|
---|
| 8503 | for f in $ac_file_in; do
|
---|
| 8504 | case $f in
|
---|
| 8505 | -) echo $tmp/stdin ;;
|
---|
| 8506 | [\\/$]*)
|
---|
[10192] | 8507 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8508 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[8063] | 8509 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8510 | { (exit 1); exit 1; }; }
|
---|
[10192] | 8511 | echo "$f";;
|
---|
[8063] | 8512 | *) # Relative
|
---|
[10192] | 8513 | if test -f "$f"; then
|
---|
| 8514 | # Build tree
|
---|
| 8515 | echo "$f"
|
---|
| 8516 | elif test -f "$srcdir/$f"; then
|
---|
| 8517 | # Source tree
|
---|
| 8518 | echo "$srcdir/$f"
|
---|
| 8519 | else
|
---|
| 8520 | # /dev/null tree
|
---|
| 8521 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[8063] | 8522 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8523 | { (exit 1); exit 1; }; }
|
---|
[10192] | 8524 | fi;;
|
---|
[8063] | 8525 | esac
|
---|
| 8526 | done` || { (exit 1); exit 1; }
|
---|
[10192] | 8527 | _ACEOF
|
---|
| 8528 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[8063] | 8529 | sed "$ac_vpsub
|
---|
| 8530 | $extrasub
|
---|
[10192] | 8531 | _ACEOF
|
---|
| 8532 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8533 | :t
|
---|
| 8534 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
| 8535 | s,@configure_input@,$configure_input,;t t
|
---|
| 8536 | s,@srcdir@,$ac_srcdir,;t t
|
---|
[10192] | 8537 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
[8063] | 8538 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
[10192] | 8539 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
| 8540 | s,@builddir@,$ac_builddir,;t t
|
---|
| 8541 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
| 8542 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
| 8543 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
[8063] | 8544 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
| 8545 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
| 8546 | rm -f $tmp/stdin
|
---|
| 8547 | if test x"$ac_file" != x-; then
|
---|
| 8548 | mv $tmp/out $ac_file
|
---|
| 8549 | else
|
---|
| 8550 | cat $tmp/out
|
---|
| 8551 | rm -f $tmp/out
|
---|
| 8552 | fi
|
---|
[3365] | 8553 |
|
---|
[8063] | 8554 | done
|
---|
[10192] | 8555 | _ACEOF
|
---|
| 8556 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8557 |
|
---|
| 8558 | #
|
---|
| 8559 | # CONFIG_HEADER section.
|
---|
| 8560 | #
|
---|
| 8561 |
|
---|
[3365] | 8562 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 8563 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 8564 | #
|
---|
| 8565 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
[10192] | 8566 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 8567 | ac_dB='[ ].*$,\1#\2'
|
---|
[8063] | 8568 | ac_dC=' '
|
---|
| 8569 | ac_dD=',;t'
|
---|
| 8570 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
[10192] | 8571 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
[8063] | 8572 | ac_uB='$,\1#\2define\3'
|
---|
[3365] | 8573 | ac_uC=' '
|
---|
[8063] | 8574 | ac_uD=',;t'
|
---|
[3365] | 8575 |
|
---|
[8063] | 8576 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
[3365] | 8577 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[8063] | 8578 | case $ac_file in
|
---|
| 8579 | - | *:- | *:-:* ) # input from stdin
|
---|
[10192] | 8580 | cat >$tmp/stdin
|
---|
| 8581 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8582 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[8063] | 8583 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
[10192] | 8584 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
[8063] | 8585 | * ) ac_file_in=$ac_file.in ;;
|
---|
[3365] | 8586 | esac
|
---|
| 8587 |
|
---|
[10192] | 8588 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
[8063] | 8589 | echo "$as_me: creating $ac_file" >&6;}
|
---|
[3365] | 8590 |
|
---|
[8063] | 8591 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8592 | # src tree.
|
---|
| 8593 | ac_file_inputs=`IFS=:
|
---|
| 8594 | for f in $ac_file_in; do
|
---|
| 8595 | case $f in
|
---|
| 8596 | -) echo $tmp/stdin ;;
|
---|
| 8597 | [\\/$]*)
|
---|
[10192] | 8598 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8599 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[8063] | 8600 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8601 | { (exit 1); exit 1; }; }
|
---|
[10192] | 8602 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
| 8603 | echo "$f";;
|
---|
[8063] | 8604 | *) # Relative
|
---|
[10192] | 8605 | if test -f "$f"; then
|
---|
| 8606 | # Build tree
|
---|
| 8607 | echo "$f"
|
---|
| 8608 | elif test -f "$srcdir/$f"; then
|
---|
| 8609 | # Source tree
|
---|
| 8610 | echo "$srcdir/$f"
|
---|
| 8611 | else
|
---|
| 8612 | # /dev/null tree
|
---|
| 8613 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
[8063] | 8614 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8615 | { (exit 1); exit 1; }; }
|
---|
[10192] | 8616 | fi;;
|
---|
[8063] | 8617 | esac
|
---|
| 8618 | done` || { (exit 1); exit 1; }
|
---|
| 8619 | # Remove the trailing spaces.
|
---|
[10192] | 8620 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
[3365] | 8621 |
|
---|
[10192] | 8622 | _ACEOF
|
---|
[3365] | 8623 |
|
---|
[8063] | 8624 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
| 8625 | # `conftest.undefs', that substitutes the proper values into
|
---|
| 8626 | # config.h.in to produce config.h. The first handles `#define'
|
---|
| 8627 | # templates, and the second `#undef' templates.
|
---|
| 8628 | # And first: Protect against being on the right side of a sed subst in
|
---|
| 8629 | # config.status. Protect against being in an unquoted here document
|
---|
| 8630 | # in config.status.
|
---|
| 8631 | rm -f conftest.defines conftest.undefs
|
---|
| 8632 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
| 8633 | # Putting comments in sed scripts is not portable.
|
---|
| 8634 | #
|
---|
| 8635 | # `end' is used to avoid that the second main sed command (meant for
|
---|
| 8636 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
| 8637 | # See the Autoconf documentation for `clear'.
|
---|
[10192] | 8638 | cat >confdef2sed.sed <<\_ACEOF
|
---|
[8063] | 8639 | s/[\\&,]/\\&/g
|
---|
| 8640 | s,[\\$`],\\&,g
|
---|
| 8641 | t clear
|
---|
| 8642 | : clear
|
---|
[10192] | 8643 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
[8063] | 8644 | t end
|
---|
[10192] | 8645 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
[8063] | 8646 | : end
|
---|
[10192] | 8647 | _ACEOF
|
---|
[8063] | 8648 | # If some macros were called several times there might be several times
|
---|
| 8649 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
| 8650 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
| 8651 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
| 8652 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
| 8653 | rm -f confdef2sed.sed
|
---|
[3365] | 8654 |
|
---|
| 8655 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 8656 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 8657 | # on some systems where configure will not decide to define it.
|
---|
[10192] | 8658 | cat >>conftest.undefs <<\_ACEOF
|
---|
| 8659 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
| 8660 | _ACEOF
|
---|
[3365] | 8661 |
|
---|
[8063] | 8662 | # Break up conftest.defines because some shells have a limit on the size
|
---|
| 8663 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8664 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
[10192] | 8665 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
[8063] | 8666 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
| 8667 | echo ' :' >>$CONFIG_STATUS
|
---|
| 8668 | rm -f conftest.tail
|
---|
| 8669 | while grep . conftest.defines >/dev/null
|
---|
| 8670 | do
|
---|
| 8671 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
| 8672 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8673 | # Speed up: don't consider the non `#define' lines.
|
---|
[10192] | 8674 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
[8063] | 8675 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8676 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8677 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8678 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
| 8679 | echo 'CEOF
|
---|
| 8680 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
| 8681 | rm -f $tmp/in
|
---|
| 8682 | mv $tmp/out $tmp/in
|
---|
| 8683 | ' >>$CONFIG_STATUS
|
---|
| 8684 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
| 8685 | rm -f conftest.defines
|
---|
| 8686 | mv conftest.tail conftest.defines
|
---|
| 8687 | done
|
---|
| 8688 | rm -f conftest.defines
|
---|
[10192] | 8689 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
[8063] | 8690 | echo >>$CONFIG_STATUS
|
---|
[3365] | 8691 |
|
---|
[8063] | 8692 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
| 8693 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8694 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
[3365] | 8695 | rm -f conftest.tail
|
---|
[8063] | 8696 | while grep . conftest.undefs >/dev/null
|
---|
[3365] | 8697 | do
|
---|
[8063] | 8698 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
| 8699 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8700 | # Speed up: don't consider the non `#undef'
|
---|
[10192] | 8701 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
[8063] | 8702 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8703 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8704 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8705 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
[3365] | 8706 | echo 'CEOF
|
---|
[8063] | 8707 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
| 8708 | rm -f $tmp/in
|
---|
| 8709 | mv $tmp/out $tmp/in
|
---|
| 8710 | ' >>$CONFIG_STATUS
|
---|
| 8711 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
| 8712 | rm -f conftest.undefs
|
---|
| 8713 | mv conftest.tail conftest.undefs
|
---|
[3365] | 8714 | done
|
---|
[8063] | 8715 | rm -f conftest.undefs
|
---|
[3365] | 8716 |
|
---|
[10192] | 8717 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8718 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8719 | # use $as_me), people would be surprised to read:
|
---|
[10192] | 8720 | # /* config.h. Generated by config.status. */
|
---|
[8063] | 8721 | if test x"$ac_file" = x-; then
|
---|
[10192] | 8722 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
[3365] | 8723 | else
|
---|
[10192] | 8724 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
[8063] | 8725 | fi
|
---|
| 8726 | cat $tmp/in >>$tmp/config.h
|
---|
| 8727 | rm -f $tmp/in
|
---|
| 8728 | if test x"$ac_file" != x-; then
|
---|
[10192] | 8729 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
| 8730 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
[8063] | 8731 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
| 8732 | else
|
---|
[10192] | 8733 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8734 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8735 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8736 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8737 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8738 | . : '\(.\)' 2>/dev/null ||
|
---|
[8063] | 8739 | echo X"$ac_file" |
|
---|
| 8740 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8741 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8742 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8743 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8744 | s/.*/./; q'`
|
---|
[10192] | 8745 | { if $as_mkdir_p; then
|
---|
| 8746 | mkdir -p "$ac_dir"
|
---|
| 8747 | else
|
---|
| 8748 | as_dir="$ac_dir"
|
---|
| 8749 | as_dirs=
|
---|
| 8750 | while test ! -d "$as_dir"; do
|
---|
| 8751 | as_dirs="$as_dir $as_dirs"
|
---|
| 8752 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8753 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8754 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8755 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8756 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8757 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8758 | echo X"$as_dir" |
|
---|
| 8759 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8760 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8761 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8762 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8763 | s/.*/./; q'`
|
---|
| 8764 | done
|
---|
| 8765 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8766 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8767 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8768 | { (exit 1); exit 1; }; }; }
|
---|
[8063] | 8769 |
|
---|
| 8770 | rm -f $ac_file
|
---|
| 8771 | mv $tmp/config.h $ac_file
|
---|
[3365] | 8772 | fi
|
---|
[8063] | 8773 | else
|
---|
| 8774 | cat $tmp/config.h
|
---|
| 8775 | rm -f $tmp/config.h
|
---|
[3365] | 8776 | fi
|
---|
[8063] | 8777 | done
|
---|
[10192] | 8778 | _ACEOF
|
---|
| 8779 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[3365] | 8780 |
|
---|
[8063] | 8781 | #
|
---|
| 8782 | # CONFIG_COMMANDS section.
|
---|
| 8783 | #
|
---|
| 8784 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
|
---|
| 8785 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
|
---|
| 8786 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
[10192] | 8787 | ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
|
---|
| 8788 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8789 | X"$ac_dest" : 'X\(//\)[^/]' \| \
|
---|
| 8790 | X"$ac_dest" : 'X\(//\)$' \| \
|
---|
| 8791 | X"$ac_dest" : 'X\(/\)' \| \
|
---|
| 8792 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8793 | echo X"$ac_dest" |
|
---|
| 8794 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8795 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8796 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8797 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8798 | s/.*/./; q'`
|
---|
| 8799 | { if $as_mkdir_p; then
|
---|
| 8800 | mkdir -p "$ac_dir"
|
---|
| 8801 | else
|
---|
| 8802 | as_dir="$ac_dir"
|
---|
| 8803 | as_dirs=
|
---|
| 8804 | while test ! -d "$as_dir"; do
|
---|
| 8805 | as_dirs="$as_dir $as_dirs"
|
---|
| 8806 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8807 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8808 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8809 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8810 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8811 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8812 | echo X"$as_dir" |
|
---|
| 8813 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8814 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8815 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8816 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8817 | s/.*/./; q'`
|
---|
| 8818 | done
|
---|
| 8819 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8820 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8821 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8822 | { (exit 1); exit 1; }; }; }
|
---|
[8063] | 8823 |
|
---|
[10192] | 8824 | ac_builddir=.
|
---|
| 8825 |
|
---|
| 8826 | if test "$ac_dir" != .; then
|
---|
| 8827 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8828 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8829 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8830 | else
|
---|
| 8831 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8832 | fi
|
---|
| 8833 |
|
---|
| 8834 | case $srcdir in
|
---|
| 8835 | .) # No --srcdir option. We are building in place.
|
---|
| 8836 | ac_srcdir=.
|
---|
| 8837 | if test -z "$ac_top_builddir"; then
|
---|
| 8838 | ac_top_srcdir=.
|
---|
| 8839 | else
|
---|
| 8840 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8841 | fi ;;
|
---|
| 8842 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8843 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8844 | ac_top_srcdir=$srcdir ;;
|
---|
| 8845 | *) # Relative path.
|
---|
| 8846 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8847 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8848 | esac
|
---|
| 8849 |
|
---|
| 8850 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8851 | # the directories may not exist.
|
---|
| 8852 | case `pwd` in
|
---|
| 8853 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8854 | *)
|
---|
| 8855 | case "$ac_dir" in
|
---|
| 8856 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8857 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8858 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8859 | esac;;
|
---|
| 8860 | esac
|
---|
| 8861 | case $ac_abs_builddir in
|
---|
| 8862 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8863 | *)
|
---|
| 8864 | case ${ac_top_builddir}. in
|
---|
| 8865 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8866 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8867 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8868 | esac;;
|
---|
| 8869 | esac
|
---|
| 8870 | case $ac_abs_builddir in
|
---|
| 8871 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8872 | *)
|
---|
| 8873 | case $ac_srcdir in
|
---|
| 8874 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8875 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8876 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8877 | esac;;
|
---|
| 8878 | esac
|
---|
| 8879 | case $ac_abs_builddir in
|
---|
| 8880 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8881 | *)
|
---|
| 8882 | case $ac_top_srcdir in
|
---|
| 8883 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8884 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8885 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8886 | esac;;
|
---|
| 8887 | esac
|
---|
| 8888 |
|
---|
| 8889 |
|
---|
| 8890 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
|
---|
| 8891 | echo "$as_me: executing $ac_dest commands" >&6;}
|
---|
[8063] | 8892 | case $ac_dest in
|
---|
| 8893 | default ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
|
---|
| 8894 | esac
|
---|
| 8895 | done
|
---|
[10192] | 8896 | _ACEOF
|
---|
[3365] | 8897 |
|
---|
[10192] | 8898 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[8063] | 8899 |
|
---|
| 8900 | { (exit 0); exit 0; }
|
---|
[10192] | 8901 | _ACEOF
|
---|
[3365] | 8902 | chmod +x $CONFIG_STATUS
|
---|
[8063] | 8903 | ac_clean_files=$ac_clean_files_save
|
---|
[3365] | 8904 |
|
---|
[10192] | 8905 |
|
---|
[8063] | 8906 | # configure is writing to config.log, and then calls config.status.
|
---|
| 8907 | # config.status does its own redirection, appending to config.log.
|
---|
| 8908 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 8909 | # by configure, so config.status won't be able to write to it; its
|
---|
| 8910 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 8911 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 8912 | # appended to by config.status. When coming back to configure, we
|
---|
| 8913 | # need to make the FD available again.
|
---|
| 8914 | if test "$no_create" != yes; then
|
---|
| 8915 | ac_cs_success=:
|
---|
[10192] | 8916 | ac_config_status_args=
|
---|
| 8917 | test "$silent" = yes &&
|
---|
| 8918 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
[8063] | 8919 | exec 5>/dev/null
|
---|
[10192] | 8920 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
[8063] | 8921 | exec 5>>config.log
|
---|
| 8922 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 8923 | # would make configure fail if this is the last instruction.
|
---|
| 8924 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
| 8925 | fi
|
---|
| 8926 |
|
---|
[13625] | 8927 | #
|
---|
| 8928 | # CONFIG_SUBDIRS section.
|
---|
| 8929 | #
|
---|
| 8930 | if test "$no_recursion" != yes; then
|
---|
| 8931 |
|
---|
| 8932 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
| 8933 | ac_sub_configure_args=
|
---|
| 8934 | ac_prev=
|
---|
| 8935 | for ac_arg in $ac_configure_args; do
|
---|
| 8936 | if test -n "$ac_prev"; then
|
---|
| 8937 | ac_prev=
|
---|
| 8938 | continue
|
---|
| 8939 | fi
|
---|
| 8940 | case $ac_arg in
|
---|
| 8941 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 8942 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 8943 | ac_prev=cache_file ;;
|
---|
| 8944 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 8945 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
| 8946 | | --c=*)
|
---|
| 8947 | ;;
|
---|
| 8948 | --config-cache | -C)
|
---|
| 8949 | ;;
|
---|
| 8950 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 8951 | ac_prev=srcdir ;;
|
---|
| 8952 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 8953 | ;;
|
---|
| 8954 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 8955 | ac_prev=prefix ;;
|
---|
| 8956 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 8957 | ;;
|
---|
| 8958 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
| 8959 | esac
|
---|
| 8960 | done
|
---|
| 8961 |
|
---|
| 8962 | # Always prepend --prefix to ensure using the same prefix
|
---|
| 8963 | # in subdir configurations.
|
---|
| 8964 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
| 8965 |
|
---|
| 8966 | ac_popdir=`pwd`
|
---|
| 8967 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
| 8968 |
|
---|
| 8969 | # Do not complain, so a configure script can configure whichever
|
---|
| 8970 | # parts of a large source tree are present.
|
---|
| 8971 | test -d $srcdir/$ac_dir || continue
|
---|
| 8972 |
|
---|
| 8973 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
| 8974 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
| 8975 | { if $as_mkdir_p; then
|
---|
| 8976 | mkdir -p "$ac_dir"
|
---|
| 8977 | else
|
---|
| 8978 | as_dir="$ac_dir"
|
---|
| 8979 | as_dirs=
|
---|
| 8980 | while test ! -d "$as_dir"; do
|
---|
| 8981 | as_dirs="$as_dir $as_dirs"
|
---|
| 8982 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8983 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8984 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8985 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8986 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8987 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8988 | echo X"$as_dir" |
|
---|
| 8989 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8990 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8991 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8992 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8993 | s/.*/./; q'`
|
---|
| 8994 | done
|
---|
| 8995 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8996 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8997 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8998 | { (exit 1); exit 1; }; }; }
|
---|
| 8999 |
|
---|
| 9000 | ac_builddir=.
|
---|
| 9001 |
|
---|
| 9002 | if test "$ac_dir" != .; then
|
---|
| 9003 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 9004 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 9005 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 9006 | else
|
---|
| 9007 | ac_dir_suffix= ac_top_builddir=
|
---|
| 9008 | fi
|
---|
| 9009 |
|
---|
| 9010 | case $srcdir in
|
---|
| 9011 | .) # No --srcdir option. We are building in place.
|
---|
| 9012 | ac_srcdir=.
|
---|
| 9013 | if test -z "$ac_top_builddir"; then
|
---|
| 9014 | ac_top_srcdir=.
|
---|
| 9015 | else
|
---|
| 9016 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 9017 | fi ;;
|
---|
| 9018 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 9019 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 9020 | ac_top_srcdir=$srcdir ;;
|
---|
| 9021 | *) # Relative path.
|
---|
| 9022 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 9023 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 9024 | esac
|
---|
| 9025 |
|
---|
| 9026 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 9027 | # the directories may not exist.
|
---|
| 9028 | case `pwd` in
|
---|
| 9029 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 9030 | *)
|
---|
| 9031 | case "$ac_dir" in
|
---|
| 9032 | .) ac_abs_builddir=`pwd`;;
|
---|
| 9033 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 9034 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 9035 | esac;;
|
---|
| 9036 | esac
|
---|
| 9037 | case $ac_abs_builddir in
|
---|
| 9038 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 9039 | *)
|
---|
| 9040 | case ${ac_top_builddir}. in
|
---|
| 9041 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 9042 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 9043 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 9044 | esac;;
|
---|
| 9045 | esac
|
---|
| 9046 | case $ac_abs_builddir in
|
---|
| 9047 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 9048 | *)
|
---|
| 9049 | case $ac_srcdir in
|
---|
| 9050 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 9051 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 9052 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 9053 | esac;;
|
---|
| 9054 | esac
|
---|
| 9055 | case $ac_abs_builddir in
|
---|
| 9056 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 9057 | *)
|
---|
| 9058 | case $ac_top_srcdir in
|
---|
| 9059 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 9060 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 9061 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 9062 | esac;;
|
---|
| 9063 | esac
|
---|
| 9064 |
|
---|
| 9065 |
|
---|
| 9066 | cd $ac_dir
|
---|
| 9067 |
|
---|
| 9068 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
| 9069 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 9070 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
| 9071 | elif test -f $ac_srcdir/configure; then
|
---|
| 9072 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
| 9073 | elif test -f $ac_srcdir/configure.in; then
|
---|
| 9074 | ac_sub_configure=$ac_configure
|
---|
| 9075 | else
|
---|
| 9076 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
| 9077 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
| 9078 | ac_sub_configure=
|
---|
| 9079 | fi
|
---|
| 9080 |
|
---|
| 9081 | # The recursion is here.
|
---|
| 9082 | if test -n "$ac_sub_configure"; then
|
---|
| 9083 | # Make the cache file name correct relative to the subdirectory.
|
---|
| 9084 | case $cache_file in
|
---|
| 9085 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
| 9086 | *) # Relative path.
|
---|
| 9087 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
| 9088 | esac
|
---|
| 9089 |
|
---|
| 9090 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
| 9091 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
| 9092 | # The eval makes quoting arguments work.
|
---|
| 9093 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
| 9094 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
| 9095 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
| 9096 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
| 9097 | { (exit 1); exit 1; }; }
|
---|
| 9098 | fi
|
---|
| 9099 |
|
---|
| 9100 | cd $ac_popdir
|
---|
| 9101 | done
|
---|
| 9102 | fi
|
---|
| 9103 |
|
---|