[562] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[8756] | 3 | # Generated by GNU Autoconf 2.59.
|
---|
[562] | 4 | #
|
---|
[8756] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[562] | 6 | # This configure script is free software; the Free Software Foundation
|
---|
| 7 | # gives unlimited permission to copy, distribute and modify it.
|
---|
[8756] | 8 | ## --------------------- ##
|
---|
| 9 | ## M4sh Initialization. ##
|
---|
| 10 | ## --------------------- ##
|
---|
[562] | 11 |
|
---|
[8756] | 12 | # Be Bourne compatible
|
---|
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 14 | emulate sh
|
---|
| 15 | NULLCMD=:
|
---|
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 17 | # is contrary to our usage. Disable this feature.
|
---|
| 18 | alias -g '${1+"$@"}'='"$@"'
|
---|
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 20 | set -o posix
|
---|
| 21 | fi
|
---|
| 22 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 23 |
|
---|
| 24 | # Support unset when possible.
|
---|
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 26 | as_unset=unset
|
---|
| 27 | else
|
---|
| 28 | as_unset=false
|
---|
| 29 | fi
|
---|
| 30 |
|
---|
| 31 |
|
---|
| 32 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 33 | $as_unset ENV MAIL MAILPATH
|
---|
| 34 | PS1='$ '
|
---|
| 35 | PS2='> '
|
---|
| 36 | PS4='+ '
|
---|
| 37 |
|
---|
| 38 | # NLS nuisances.
|
---|
| 39 | for as_var in \
|
---|
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 42 | LC_TELEPHONE LC_TIME
|
---|
| 43 | do
|
---|
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 45 | eval $as_var=C; export $as_var
|
---|
| 46 | else
|
---|
| 47 | $as_unset $as_var
|
---|
| 48 | fi
|
---|
| 49 | done
|
---|
| 50 |
|
---|
| 51 | # Required to use basename.
|
---|
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 53 | as_expr=expr
|
---|
| 54 | else
|
---|
| 55 | as_expr=false
|
---|
| 56 | fi
|
---|
| 57 |
|
---|
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
| 59 | as_basename=basename
|
---|
| 60 | else
|
---|
| 61 | as_basename=false
|
---|
| 62 | fi
|
---|
| 63 |
|
---|
| 64 |
|
---|
| 65 | # Name of the executable.
|
---|
| 66 | as_me=`$as_basename "$0" ||
|
---|
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 68 | X"$0" : 'X\(//\)$' \| \
|
---|
| 69 | X"$0" : 'X\(/\)$' \| \
|
---|
| 70 | . : '\(.\)' 2>/dev/null ||
|
---|
| 71 | echo X/"$0" |
|
---|
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 74 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 75 | s/.*/./; q'`
|
---|
| 76 |
|
---|
| 77 |
|
---|
| 78 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 79 | # Avoid depending upon Character Ranges.
|
---|
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 83 | as_cr_digits='0123456789'
|
---|
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 85 |
|
---|
| 86 | # The user is always right.
|
---|
| 87 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 88 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 89 | echo "exit 0" >>conf$$.sh
|
---|
| 90 | chmod +x conf$$.sh
|
---|
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 92 | PATH_SEPARATOR=';'
|
---|
| 93 | else
|
---|
| 94 | PATH_SEPARATOR=:
|
---|
| 95 | fi
|
---|
| 96 | rm -f conf$$.sh
|
---|
| 97 | fi
|
---|
| 98 |
|
---|
| 99 |
|
---|
| 100 | as_lineno_1=$LINENO
|
---|
| 101 | as_lineno_2=$LINENO
|
---|
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 105 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 106 | # relative or not.
|
---|
| 107 | case $0 in
|
---|
| 108 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 110 | for as_dir in $PATH
|
---|
| 111 | do
|
---|
| 112 | IFS=$as_save_IFS
|
---|
| 113 | test -z "$as_dir" && as_dir=.
|
---|
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 115 | done
|
---|
| 116 |
|
---|
| 117 | ;;
|
---|
| 118 | esac
|
---|
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 120 | # in which case we are not to be found in the path.
|
---|
| 121 | if test "x$as_myself" = x; then
|
---|
| 122 | as_myself=$0
|
---|
| 123 | fi
|
---|
| 124 | if test ! -f "$as_myself"; then
|
---|
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
|
---|
| 126 | { (exit 1); exit 1; }; }
|
---|
| 127 | fi
|
---|
| 128 | case $CONFIG_SHELL in
|
---|
| 129 | '')
|
---|
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 132 | do
|
---|
| 133 | IFS=$as_save_IFS
|
---|
| 134 | test -z "$as_dir" && as_dir=.
|
---|
| 135 | for as_base in sh bash ksh sh5; do
|
---|
| 136 | case $as_dir in
|
---|
| 137 | /*)
|
---|
| 138 | if ("$as_dir/$as_base" -c '
|
---|
| 139 | as_lineno_1=$LINENO
|
---|
| 140 | as_lineno_2=$LINENO
|
---|
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 146 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 147 | export CONFIG_SHELL
|
---|
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 149 | fi;;
|
---|
| 150 | esac
|
---|
| 151 | done
|
---|
| 152 | done
|
---|
| 153 | ;;
|
---|
| 154 | esac
|
---|
| 155 |
|
---|
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 158 | # line-number line before each line; the second 'sed' does the real
|
---|
| 159 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 160 | # with the numbered line, and appends trailing '-' during
|
---|
| 161 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 164 | sed '=' <$as_myself |
|
---|
| 165 | sed '
|
---|
| 166 | N
|
---|
| 167 | s,$,-,
|
---|
| 168 | : loop
|
---|
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 170 | t loop
|
---|
| 171 | s,-$,,
|
---|
| 172 | s,^['$as_cr_digits']*\n,,
|
---|
| 173 | ' >$as_me.lineno &&
|
---|
| 174 | chmod +x $as_me.lineno ||
|
---|
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
| 176 | { (exit 1); exit 1; }; }
|
---|
| 177 |
|
---|
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 179 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 180 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 181 | . ./$as_me.lineno
|
---|
| 182 | # Exit status is that of the last command.
|
---|
| 183 | exit
|
---|
| 184 | }
|
---|
| 185 |
|
---|
| 186 |
|
---|
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 188 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 189 | ' ECHO_T=' ' ;;
|
---|
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
| 192 | esac
|
---|
| 193 |
|
---|
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 195 | as_expr=expr
|
---|
| 196 | else
|
---|
| 197 | as_expr=false
|
---|
| 198 | fi
|
---|
| 199 |
|
---|
| 200 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 201 | echo >conf$$.file
|
---|
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 205 | if test -f conf$$.exe; then
|
---|
| 206 | # Don't use ln at all; we don't have any links
|
---|
| 207 | as_ln_s='cp -p'
|
---|
| 208 | else
|
---|
| 209 | as_ln_s='ln -s'
|
---|
| 210 | fi
|
---|
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 212 | as_ln_s=ln
|
---|
| 213 | else
|
---|
| 214 | as_ln_s='cp -p'
|
---|
| 215 | fi
|
---|
| 216 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 217 |
|
---|
| 218 | if mkdir -p . 2>/dev/null; then
|
---|
| 219 | as_mkdir_p=:
|
---|
| 220 | else
|
---|
| 221 | test -d ./-p && rmdir ./-p
|
---|
| 222 | as_mkdir_p=false
|
---|
| 223 | fi
|
---|
| 224 |
|
---|
| 225 | as_executable_p="test -f"
|
---|
| 226 |
|
---|
| 227 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 229 |
|
---|
| 230 | # Sed expression to map a string onto a valid variable name.
|
---|
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 232 |
|
---|
| 233 |
|
---|
| 234 | # IFS
|
---|
| 235 | # We need space, tab and new line, in precisely that order.
|
---|
| 236 | as_nl='
|
---|
| 237 | '
|
---|
| 238 | IFS=" $as_nl"
|
---|
| 239 |
|
---|
| 240 | # CDPATH.
|
---|
| 241 | $as_unset CDPATH
|
---|
| 242 |
|
---|
| 243 |
|
---|
| 244 | # Name of the host.
|
---|
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
| 246 | # so uname gets run too.
|
---|
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 248 |
|
---|
| 249 | exec 6>&1
|
---|
| 250 |
|
---|
| 251 | #
|
---|
| 252 | # Initializations.
|
---|
| 253 | #
|
---|
[562] | 254 | ac_default_prefix=/usr/local
|
---|
[8756] | 255 | ac_config_libobj_dir=.
|
---|
| 256 | cross_compiling=no
|
---|
| 257 | subdirs=
|
---|
| 258 | MFLAGS=
|
---|
| 259 | MAKEFLAGS=
|
---|
| 260 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
[562] | 261 |
|
---|
[8756] | 262 | # Maximum number of lines to put in a shell here document.
|
---|
| 263 | # This variable seems obsolete. It should probably be removed, and
|
---|
| 264 | # only ac_max_sed_lines should be used.
|
---|
| 265 | : ${ac_max_here_lines=38}
|
---|
| 266 |
|
---|
| 267 | # Identity of this package.
|
---|
| 268 | PACKAGE_NAME=
|
---|
| 269 | PACKAGE_TARNAME=
|
---|
| 270 | PACKAGE_VERSION=
|
---|
| 271 | PACKAGE_STRING=
|
---|
| 272 | PACKAGE_BUGREPORT=
|
---|
| 273 |
|
---|
[15908] | 274 | ac_unique_file="src/lib/text_t.h"
|
---|
[8756] | 275 | # Factoring default headers for most tests.
|
---|
| 276 | ac_includes_default="\
|
---|
| 277 | #include <stdio.h>
|
---|
| 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
|
---|
| 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
|
---|
| 298 | #if HAVE_STRINGS_H
|
---|
| 299 | # include <strings.h>
|
---|
| 300 | #endif
|
---|
| 301 | #if HAVE_INTTYPES_H
|
---|
| 302 | # include <inttypes.h>
|
---|
| 303 | #else
|
---|
| 304 | # if HAVE_STDINT_H
|
---|
| 305 | # include <stdint.h>
|
---|
| 306 | # endif
|
---|
| 307 | #endif
|
---|
| 308 | #if HAVE_UNISTD_H
|
---|
| 309 | # include <unistd.h>
|
---|
| 310 | #endif"
|
---|
| 311 |
|
---|
[13777] | 312 | ac_subdirs_all="$ac_subdirs_all packages indexers"
|
---|
[15794] | 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 USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_ACCENTFOLD USE_SQLITE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC GDBM_LIBPATH GDBM_INCLUDE gsdlos MODULEDIRS subdirs LTLIBOBJS'
|
---|
[8756] | 314 | ac_subst_files=''
|
---|
| 315 |
|
---|
[562] | 316 | # Initialize some variables set by options.
|
---|
[8756] | 317 | ac_init_help=
|
---|
| 318 | ac_init_version=false
|
---|
[562] | 319 | # The variables have the same names as the options, with
|
---|
| 320 | # dashes changed to underlines.
|
---|
[8756] | 321 | cache_file=/dev/null
|
---|
[562] | 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
|
---|
[8756] | 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.
|
---|
[562] | 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 |
|
---|
[8756] | 364 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
[562] | 365 |
|
---|
| 366 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 367 |
|
---|
[8756] | 368 | case $ac_option in
|
---|
[562] | 369 |
|
---|
| 370 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 371 | ac_prev=bindir ;;
|
---|
| 372 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
[8756] | 373 | bindir=$ac_optarg ;;
|
---|
[562] | 374 |
|
---|
| 375 | -build | --build | --buil | --bui | --bu)
|
---|
[8756] | 376 | ac_prev=build_alias ;;
|
---|
[562] | 377 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
[8756] | 378 | build_alias=$ac_optarg ;;
|
---|
[562] | 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=*)
|
---|
[8756] | 385 | cache_file=$ac_optarg ;;
|
---|
[562] | 386 |
|
---|
[8756] | 387 | --config-cache | -C)
|
---|
| 388 | cache_file=config.cache ;;
|
---|
| 389 |
|
---|
[562] | 390 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
| 391 | ac_prev=datadir ;;
|
---|
| 392 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
| 393 | | --da=*)
|
---|
[8756] | 394 | datadir=$ac_optarg ;;
|
---|
[562] | 395 |
|
---|
| 396 | -disable-* | --disable-*)
|
---|
[8756] | 397 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
[562] | 398 | # Reject names that are not valid shell variable names.
|
---|
[8756] | 399 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 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" ;;
|
---|
[562] | 404 |
|
---|
| 405 | -enable-* | --enable-*)
|
---|
[8756] | 406 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
[562] | 407 | # Reject names that are not valid shell variable names.
|
---|
[8756] | 408 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 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"`;;
|
---|
[562] | 414 | *) ac_optarg=yes ;;
|
---|
| 415 | esac
|
---|
[8756] | 416 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
[562] | 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=*)
|
---|
[8756] | 425 | exec_prefix=$ac_optarg ;;
|
---|
[562] | 426 |
|
---|
| 427 | -gas | --gas | --ga | --g)
|
---|
| 428 | # Obsolete; use --with-gas.
|
---|
| 429 | with_gas=yes ;;
|
---|
| 430 |
|
---|
[8756] | 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 ;;
|
---|
[562] | 437 |
|
---|
| 438 | -host | --host | --hos | --ho)
|
---|
[8756] | 439 | ac_prev=host_alias ;;
|
---|
[562] | 440 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
[8756] | 441 | host_alias=$ac_optarg ;;
|
---|
[562] | 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=*)
|
---|
[8756] | 448 | includedir=$ac_optarg ;;
|
---|
[562] | 449 |
|
---|
| 450 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 451 | ac_prev=infodir ;;
|
---|
| 452 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
[8756] | 453 | infodir=$ac_optarg ;;
|
---|
[562] | 454 |
|
---|
| 455 | -libdir | --libdir | --libdi | --libd)
|
---|
| 456 | ac_prev=libdir ;;
|
---|
| 457 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
[8756] | 458 | libdir=$ac_optarg ;;
|
---|
[562] | 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=*)
|
---|
[8756] | 465 | libexecdir=$ac_optarg ;;
|
---|
[562] | 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=*)
|
---|
[8756] | 474 | localstatedir=$ac_optarg ;;
|
---|
[562] | 475 |
|
---|
| 476 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 477 | ac_prev=mandir ;;
|
---|
| 478 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
[8756] | 479 | mandir=$ac_optarg ;;
|
---|
[562] | 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 \
|
---|
[8756] | 486 | | --no-cr | --no-c | -n)
|
---|
[562] | 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=*)
|
---|
[8756] | 500 | oldincludedir=$ac_optarg ;;
|
---|
[562] | 501 |
|
---|
| 502 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 503 | ac_prev=prefix ;;
|
---|
| 504 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
[8756] | 505 | prefix=$ac_optarg ;;
|
---|
[562] | 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=*)
|
---|
[8756] | 512 | program_prefix=$ac_optarg ;;
|
---|
[562] | 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=*)
|
---|
[8756] | 519 | program_suffix=$ac_optarg ;;
|
---|
[562] | 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=*)
|
---|
[8756] | 536 | program_transform_name=$ac_optarg ;;
|
---|
[562] | 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=*)
|
---|
[8756] | 546 | sbindir=$ac_optarg ;;
|
---|
[562] | 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=*)
|
---|
[8756] | 557 | sharedstatedir=$ac_optarg ;;
|
---|
[562] | 558 |
|
---|
| 559 | -site | --site | --sit)
|
---|
| 560 | ac_prev=site ;;
|
---|
| 561 | -site=* | --site=* | --sit=*)
|
---|
[8756] | 562 | site=$ac_optarg ;;
|
---|
[562] | 563 |
|
---|
| 564 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 565 | ac_prev=srcdir ;;
|
---|
| 566 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
[8756] | 567 | srcdir=$ac_optarg ;;
|
---|
[562] | 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=*)
|
---|
[8756] | 574 | sysconfdir=$ac_optarg ;;
|
---|
[562] | 575 |
|
---|
| 576 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
[8756] | 577 | ac_prev=target_alias ;;
|
---|
[562] | 578 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
[8756] | 579 | target_alias=$ac_optarg ;;
|
---|
[562] | 580 |
|
---|
| 581 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 582 | verbose=yes ;;
|
---|
| 583 |
|
---|
[8756] | 584 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 585 | ac_init_version=: ;;
|
---|
[562] | 586 |
|
---|
| 587 | -with-* | --with-*)
|
---|
[8756] | 588 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
[562] | 589 | # Reject names that are not valid shell variable names.
|
---|
[8756] | 590 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 591 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 592 | { (exit 1); exit 1; }; }
|
---|
[562] | 593 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
[8756] | 594 | case $ac_option in
|
---|
| 595 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
[562] | 596 | *) ac_optarg=yes ;;
|
---|
| 597 | esac
|
---|
[8756] | 598 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
[562] | 599 |
|
---|
| 600 | -without-* | --without-*)
|
---|
[8756] | 601 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
[562] | 602 | # Reject names that are not valid shell variable names.
|
---|
[8756] | 603 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 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" ;;
|
---|
[562] | 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=*)
|
---|
[8756] | 618 | x_includes=$ac_optarg ;;
|
---|
[562] | 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=*)
|
---|
[8756] | 625 | x_libraries=$ac_optarg ;;
|
---|
[562] | 626 |
|
---|
[8756] | 627 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
| 628 | Try \`$0 --help' for more information." >&2
|
---|
| 629 | { (exit 1); exit 1; }; }
|
---|
[562] | 630 | ;;
|
---|
| 631 |
|
---|
[8756] | 632 | *=*)
|
---|
| 633 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 634 | # Reject names that are not valid shell variable names.
|
---|
| 635 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
| 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 |
|
---|
[562] | 642 | *)
|
---|
[8756] | 643 | # FIXME: should be removed in autoconf 3.0.
|
---|
| 644 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
| 645 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
| 646 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
| 647 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
[562] | 648 | ;;
|
---|
| 649 |
|
---|
| 650 | esac
|
---|
| 651 | done
|
---|
| 652 |
|
---|
| 653 | if test -n "$ac_prev"; then
|
---|
[8756] | 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; }; }
|
---|
[562] | 657 | fi
|
---|
| 658 |
|
---|
[8756] | 659 | # Be sure to have absolute paths.
|
---|
| 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
|
---|
[8200] | 669 |
|
---|
[8756] | 670 | # Be sure to have absolute paths.
|
---|
| 671 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
| 672 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
[562] | 673 | do
|
---|
[8756] | 674 | eval ac_val=$`echo $ac_var`
|
---|
| 675 | case $ac_val in
|
---|
| 676 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
| 677 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 678 | { (exit 1); exit 1; }; };;
|
---|
[562] | 679 | esac
|
---|
| 680 | done
|
---|
| 681 |
|
---|
[8756] | 682 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 683 | # used to hold the argument of --host etc.
|
---|
| 684 | # FIXME: To remove some day.
|
---|
| 685 | build=$build_alias
|
---|
| 686 | host=$host_alias
|
---|
| 687 | target=$target_alias
|
---|
[562] | 688 |
|
---|
[8756] | 689 | # FIXME: To remove some day.
|
---|
| 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
|
---|
[562] | 699 |
|
---|
[8756] | 700 | ac_tool_prefix=
|
---|
| 701 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
[562] | 702 |
|
---|
[8756] | 703 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 704 |
|
---|
| 705 |
|
---|
[562] | 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.
|
---|
[8756] | 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'`
|
---|
[562] | 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
|
---|
[8756] | 731 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
| 732 | { (exit 1); exit 1; }; }
|
---|
[562] | 733 | else
|
---|
[8756] | 734 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
| 735 | { (exit 1); exit 1; }; }
|
---|
[562] | 736 | fi
|
---|
| 737 | fi
|
---|
[8756] | 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; }; }
|
---|
| 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_CC_set=${CC+set}
|
---|
| 755 | ac_env_CC_value=$CC
|
---|
| 756 | ac_cv_env_CC_set=${CC+set}
|
---|
| 757 | ac_cv_env_CC_value=$CC
|
---|
| 758 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 759 | ac_env_CFLAGS_value=$CFLAGS
|
---|
| 760 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 761 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
| 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_CXX_set=${CXX+set}
|
---|
| 771 | ac_env_CXX_value=$CXX
|
---|
| 772 | ac_cv_env_CXX_set=${CXX+set}
|
---|
| 773 | ac_cv_env_CXX_value=$CXX
|
---|
| 774 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 775 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 776 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 777 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 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
|
---|
[562] | 782 |
|
---|
[8756] | 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.
|
---|
| 789 | cat <<_ACEOF
|
---|
| 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 |
|
---|
| 810 | _ACEOF
|
---|
| 811 |
|
---|
| 812 | cat <<_ACEOF
|
---|
| 813 | Installation directories:
|
---|
| 814 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
| 815 | [$ac_default_prefix]
|
---|
| 816 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
| 817 | [PREFIX]
|
---|
| 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]
|
---|
| 839 | _ACEOF
|
---|
| 840 |
|
---|
| 841 | cat <<\_ACEOF
|
---|
| 842 |
|
---|
| 843 | System types:
|
---|
| 844 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 845 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
| 846 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
| 847 | _ACEOF
|
---|
| 848 | fi
|
---|
| 849 |
|
---|
| 850 | if test -n "$ac_init_help"; then
|
---|
| 851 |
|
---|
| 852 | cat <<\_ACEOF
|
---|
| 853 |
|
---|
| 854 | Optional Features:
|
---|
| 855 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 856 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 857 | --enable-corba Enable CORBA support
|
---|
| 858 | --enable-z3950 Enable Z39.50 client support
|
---|
[15816] | 859 | --disable-yaz Disable YAZ compilation
|
---|
| 860 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
[16288] | 861 | --disable-sqlite Disable SQLite support
|
---|
[8756] | 862 |
|
---|
| 863 | Optional Packages:
|
---|
| 864 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 865 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 866 | --with-micodir Use installed MICO directory
|
---|
| 867 | --with-gdbm=dir Use local gdbm library and headers
|
---|
| 868 | --with-dmalloc use dmalloc, as in
|
---|
| 869 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 870 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 871 |
|
---|
| 872 | Some influential environment variables:
|
---|
| 873 | CC C compiler command
|
---|
| 874 | CFLAGS C compiler flags
|
---|
| 875 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 876 | nonstandard directory <lib dir>
|
---|
| 877 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
| 878 | headers in a nonstandard directory <include dir>
|
---|
| 879 | CXX C++ compiler command
|
---|
| 880 | CXXFLAGS C++ compiler flags
|
---|
| 881 | CPP C preprocessor
|
---|
| 882 |
|
---|
| 883 | Use these variables to override the choices made by `configure' or to help
|
---|
| 884 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 885 |
|
---|
| 886 | _ACEOF
|
---|
| 887 | fi
|
---|
| 888 |
|
---|
| 889 | if test "$ac_init_help" = "recursive"; then
|
---|
| 890 | # If there are subdirs, report their specific --help.
|
---|
| 891 | ac_popdir=`pwd`
|
---|
| 892 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
| 893 | test -d $ac_dir || continue
|
---|
| 894 | ac_builddir=.
|
---|
| 895 |
|
---|
| 896 | if test "$ac_dir" != .; then
|
---|
| 897 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 898 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 899 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 900 | else
|
---|
| 901 | ac_dir_suffix= ac_top_builddir=
|
---|
| 902 | fi
|
---|
| 903 |
|
---|
| 904 | case $srcdir in
|
---|
| 905 | .) # No --srcdir option. We are building in place.
|
---|
| 906 | ac_srcdir=.
|
---|
| 907 | if test -z "$ac_top_builddir"; then
|
---|
| 908 | ac_top_srcdir=.
|
---|
| 909 | else
|
---|
| 910 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 911 | fi ;;
|
---|
| 912 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 913 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 914 | ac_top_srcdir=$srcdir ;;
|
---|
| 915 | *) # Relative path.
|
---|
| 916 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 917 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 918 | esac
|
---|
| 919 |
|
---|
| 920 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 921 | # the directories may not exist.
|
---|
| 922 | case `pwd` in
|
---|
| 923 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 924 | *)
|
---|
| 925 | case "$ac_dir" in
|
---|
| 926 | .) ac_abs_builddir=`pwd`;;
|
---|
| 927 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 928 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 929 | esac;;
|
---|
| 930 | esac
|
---|
| 931 | case $ac_abs_builddir in
|
---|
| 932 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 933 | *)
|
---|
| 934 | case ${ac_top_builddir}. in
|
---|
| 935 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 936 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 937 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 938 | esac;;
|
---|
| 939 | esac
|
---|
| 940 | case $ac_abs_builddir in
|
---|
| 941 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 942 | *)
|
---|
| 943 | case $ac_srcdir in
|
---|
| 944 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 945 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 946 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 947 | esac;;
|
---|
| 948 | esac
|
---|
| 949 | case $ac_abs_builddir in
|
---|
| 950 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 951 | *)
|
---|
| 952 | case $ac_top_srcdir in
|
---|
| 953 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 954 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 955 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 956 | esac;;
|
---|
| 957 | esac
|
---|
| 958 |
|
---|
| 959 | cd $ac_dir
|
---|
| 960 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
| 961 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 962 | echo
|
---|
| 963 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
| 964 | elif test -f $ac_srcdir/configure; then
|
---|
| 965 | echo
|
---|
| 966 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
| 967 | elif test -f $ac_srcdir/configure.ac ||
|
---|
| 968 | test -f $ac_srcdir/configure.in; then
|
---|
| 969 | echo
|
---|
| 970 | $ac_configure --help
|
---|
| 971 | else
|
---|
| 972 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
| 973 | fi
|
---|
| 974 | cd $ac_popdir
|
---|
| 975 | done
|
---|
| 976 | fi
|
---|
| 977 |
|
---|
| 978 | test -n "$ac_init_help" && exit 0
|
---|
| 979 | if $ac_init_version; then
|
---|
| 980 | cat <<\_ACEOF
|
---|
| 981 |
|
---|
| 982 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
| 983 | This configure script is free software; the Free Software Foundation
|
---|
| 984 | gives unlimited permission to copy, distribute and modify it.
|
---|
| 985 | _ACEOF
|
---|
| 986 | exit 0
|
---|
| 987 | fi
|
---|
| 988 | exec 5>config.log
|
---|
| 989 | cat >&5 <<_ACEOF
|
---|
| 990 | This file contains any messages produced by compilers while
|
---|
| 991 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 992 |
|
---|
| 993 | It was created by $as_me, which was
|
---|
| 994 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
| 995 |
|
---|
| 996 | $ $0 $@
|
---|
| 997 |
|
---|
| 998 | _ACEOF
|
---|
| 999 | {
|
---|
| 1000 | cat <<_ASUNAME
|
---|
| 1001 | ## --------- ##
|
---|
| 1002 | ## Platform. ##
|
---|
| 1003 | ## --------- ##
|
---|
| 1004 |
|
---|
| 1005 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1006 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1007 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1008 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1009 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1010 |
|
---|
| 1011 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1012 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1013 |
|
---|
| 1014 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1015 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1016 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
| 1017 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
| 1018 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1019 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1020 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1021 |
|
---|
| 1022 | _ASUNAME
|
---|
| 1023 |
|
---|
| 1024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1025 | for as_dir in $PATH
|
---|
| 1026 | do
|
---|
| 1027 | IFS=$as_save_IFS
|
---|
| 1028 | test -z "$as_dir" && as_dir=.
|
---|
| 1029 | echo "PATH: $as_dir"
|
---|
| 1030 | done
|
---|
| 1031 |
|
---|
| 1032 | } >&5
|
---|
| 1033 |
|
---|
| 1034 | cat >&5 <<_ACEOF
|
---|
| 1035 |
|
---|
| 1036 |
|
---|
| 1037 | ## ----------- ##
|
---|
| 1038 | ## Core tests. ##
|
---|
| 1039 | ## ----------- ##
|
---|
| 1040 |
|
---|
| 1041 | _ACEOF
|
---|
| 1042 |
|
---|
| 1043 |
|
---|
| 1044 | # Keep a trace of the command line.
|
---|
| 1045 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 1046 | # Strip out --silent because we don't want to record it for future runs.
|
---|
| 1047 | # Also quote any args containing shell meta-characters.
|
---|
| 1048 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
| 1049 | ac_configure_args=
|
---|
| 1050 | ac_configure_args0=
|
---|
| 1051 | ac_configure_args1=
|
---|
| 1052 | ac_sep=
|
---|
| 1053 | ac_must_keep_next=false
|
---|
| 1054 | for ac_pass in 1 2
|
---|
| 1055 | do
|
---|
| 1056 | for ac_arg
|
---|
| 1057 | do
|
---|
| 1058 | case $ac_arg in
|
---|
| 1059 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1060 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1061 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1062 | continue ;;
|
---|
| 1063 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1064 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1065 | esac
|
---|
| 1066 | case $ac_pass in
|
---|
| 1067 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
| 1068 | 2)
|
---|
| 1069 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
| 1070 | if test $ac_must_keep_next = true; then
|
---|
| 1071 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1072 | else
|
---|
| 1073 | case $ac_arg in
|
---|
| 1074 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1075 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1076 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1077 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1078 | case "$ac_configure_args0 " in
|
---|
| 1079 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1080 | esac
|
---|
| 1081 | ;;
|
---|
| 1082 | -* ) ac_must_keep_next=true ;;
|
---|
| 1083 | esac
|
---|
| 1084 | fi
|
---|
| 1085 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
| 1086 | # Get rid of the leading space.
|
---|
| 1087 | ac_sep=" "
|
---|
| 1088 | ;;
|
---|
| 1089 | esac
|
---|
| 1090 | done
|
---|
| 1091 | done
|
---|
| 1092 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1093 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
| 1094 |
|
---|
| 1095 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1096 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1097 | # would cause problems or look ugly.
|
---|
| 1098 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
| 1099 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
| 1100 | trap 'exit_status=$?
|
---|
| 1101 | # Save into config.log some information that might help in debugging.
|
---|
| 1102 | {
|
---|
| 1103 | echo
|
---|
| 1104 |
|
---|
| 1105 | cat <<\_ASBOX
|
---|
| 1106 | ## ---------------- ##
|
---|
| 1107 | ## Cache variables. ##
|
---|
| 1108 | ## ---------------- ##
|
---|
| 1109 | _ASBOX
|
---|
| 1110 | echo
|
---|
| 1111 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 1112 | {
|
---|
| 1113 | (set) 2>&1 |
|
---|
| 1114 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
| 1115 | *ac_space=\ *)
|
---|
| 1116 | sed -n \
|
---|
| 1117 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
| 1118 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
| 1119 | ;;
|
---|
| 1120 | *)
|
---|
| 1121 | sed -n \
|
---|
| 1122 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
| 1123 | ;;
|
---|
| 1124 | esac;
|
---|
| 1125 | }
|
---|
| 1126 | echo
|
---|
| 1127 |
|
---|
| 1128 | cat <<\_ASBOX
|
---|
| 1129 | ## ----------------- ##
|
---|
| 1130 | ## Output variables. ##
|
---|
| 1131 | ## ----------------- ##
|
---|
| 1132 | _ASBOX
|
---|
| 1133 | echo
|
---|
| 1134 | for ac_var in $ac_subst_vars
|
---|
| 1135 | do
|
---|
| 1136 | eval ac_val=$`echo $ac_var`
|
---|
| 1137 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1138 | done | sort
|
---|
| 1139 | echo
|
---|
| 1140 |
|
---|
| 1141 | if test -n "$ac_subst_files"; then
|
---|
| 1142 | cat <<\_ASBOX
|
---|
| 1143 | ## ------------- ##
|
---|
| 1144 | ## Output files. ##
|
---|
| 1145 | ## ------------- ##
|
---|
| 1146 | _ASBOX
|
---|
| 1147 | echo
|
---|
| 1148 | for ac_var in $ac_subst_files
|
---|
| 1149 | do
|
---|
| 1150 | eval ac_val=$`echo $ac_var`
|
---|
| 1151 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1152 | done | sort
|
---|
| 1153 | echo
|
---|
| 1154 | fi
|
---|
| 1155 |
|
---|
| 1156 | if test -s confdefs.h; then
|
---|
| 1157 | cat <<\_ASBOX
|
---|
| 1158 | ## ----------- ##
|
---|
| 1159 | ## confdefs.h. ##
|
---|
| 1160 | ## ----------- ##
|
---|
| 1161 | _ASBOX
|
---|
| 1162 | echo
|
---|
| 1163 | sed "/^$/d" confdefs.h | sort
|
---|
| 1164 | echo
|
---|
| 1165 | fi
|
---|
| 1166 | test "$ac_signal" != 0 &&
|
---|
| 1167 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1168 | echo "$as_me: exit $exit_status"
|
---|
| 1169 | } >&5
|
---|
| 1170 | rm -f core *.core &&
|
---|
| 1171 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
| 1172 | exit $exit_status
|
---|
| 1173 | ' 0
|
---|
| 1174 | for ac_signal in 1 2 13 15; do
|
---|
| 1175 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
| 1176 | done
|
---|
| 1177 | ac_signal=0
|
---|
| 1178 |
|
---|
| 1179 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
| 1180 | rm -rf conftest* confdefs.h
|
---|
| 1181 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 1182 | echo >confdefs.h
|
---|
| 1183 |
|
---|
| 1184 | # Predefined preprocessor variables.
|
---|
| 1185 |
|
---|
| 1186 | cat >>confdefs.h <<_ACEOF
|
---|
| 1187 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1188 | _ACEOF
|
---|
| 1189 |
|
---|
| 1190 |
|
---|
| 1191 | cat >>confdefs.h <<_ACEOF
|
---|
| 1192 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1193 | _ACEOF
|
---|
| 1194 |
|
---|
| 1195 |
|
---|
| 1196 | cat >>confdefs.h <<_ACEOF
|
---|
| 1197 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1198 | _ACEOF
|
---|
| 1199 |
|
---|
| 1200 |
|
---|
| 1201 | cat >>confdefs.h <<_ACEOF
|
---|
| 1202 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1203 | _ACEOF
|
---|
| 1204 |
|
---|
| 1205 |
|
---|
| 1206 | cat >>confdefs.h <<_ACEOF
|
---|
| 1207 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1208 | _ACEOF
|
---|
| 1209 |
|
---|
| 1210 |
|
---|
| 1211 | # Let the site file select an alternate cache file if it wants to.
|
---|
[562] | 1212 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 1213 | if test -z "$CONFIG_SITE"; then
|
---|
| 1214 | if test "x$prefix" != xNONE; then
|
---|
| 1215 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 1216 | else
|
---|
| 1217 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 1218 | fi
|
---|
| 1219 | fi
|
---|
| 1220 | for ac_site_file in $CONFIG_SITE; do
|
---|
| 1221 | if test -r "$ac_site_file"; then
|
---|
[8756] | 1222 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
| 1223 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
| 1224 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[562] | 1225 | . "$ac_site_file"
|
---|
| 1226 | fi
|
---|
| 1227 | done
|
---|
| 1228 |
|
---|
| 1229 | if test -r "$cache_file"; then
|
---|
[8756] | 1230 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1231 | # files actually), so we avoid doing that.
|
---|
| 1232 | if test -f "$cache_file"; then
|
---|
| 1233 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
| 1234 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
| 1235 | case $cache_file in
|
---|
| 1236 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
| 1237 | *) . ./$cache_file;;
|
---|
| 1238 | esac
|
---|
| 1239 | fi
|
---|
[562] | 1240 | else
|
---|
[8756] | 1241 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
| 1242 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
| 1243 | >$cache_file
|
---|
[562] | 1244 | fi
|
---|
| 1245 |
|
---|
[8756] | 1246 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1247 | # value.
|
---|
| 1248 | ac_cache_corrupted=false
|
---|
| 1249 | for ac_var in `(set) 2>&1 |
|
---|
| 1250 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
| 1251 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1252 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
| 1253 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
| 1254 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
| 1255 | case $ac_old_set,$ac_new_set in
|
---|
| 1256 | set,)
|
---|
| 1257 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1258 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
| 1259 | ac_cache_corrupted=: ;;
|
---|
| 1260 | ,set)
|
---|
| 1261 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1262 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
| 1263 | ac_cache_corrupted=: ;;
|
---|
| 1264 | ,);;
|
---|
| 1265 | *)
|
---|
| 1266 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
| 1267 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1268 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1269 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1270 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1271 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1272 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1273 | ac_cache_corrupted=:
|
---|
| 1274 | fi;;
|
---|
| 1275 | esac
|
---|
| 1276 | # Pass precious variables to config.status.
|
---|
| 1277 | if test "$ac_new_set" = set; then
|
---|
| 1278 | case $ac_new_val in
|
---|
| 1279 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1280 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1281 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1282 | esac
|
---|
| 1283 | case " $ac_configure_args " in
|
---|
| 1284 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
| 1285 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 1286 | esac
|
---|
| 1287 | fi
|
---|
| 1288 | done
|
---|
| 1289 | if $ac_cache_corrupted; then
|
---|
| 1290 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1291 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1292 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1293 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1294 | { (exit 1); exit 1; }; }
|
---|
| 1295 | fi
|
---|
| 1296 |
|
---|
[562] | 1297 | ac_ext=c
|
---|
| 1298 | ac_cpp='$CPP $CPPFLAGS'
|
---|
[8756] | 1299 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1300 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1301 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[562] | 1302 |
|
---|
| 1303 |
|
---|
| 1304 |
|
---|
[8200] | 1305 |
|
---|
| 1306 |
|
---|
[8756] | 1307 |
|
---|
| 1308 |
|
---|
| 1309 |
|
---|
| 1310 |
|
---|
| 1311 |
|
---|
| 1312 |
|
---|
| 1313 |
|
---|
| 1314 |
|
---|
| 1315 |
|
---|
| 1316 |
|
---|
| 1317 |
|
---|
| 1318 |
|
---|
| 1319 |
|
---|
| 1320 |
|
---|
| 1321 | ac_config_headers="$ac_config_headers config.h"
|
---|
| 1322 |
|
---|
| 1323 |
|
---|
[562] | 1324 | PACKAGE=gsdl
|
---|
[681] | 1325 | VERSION=2.1
|
---|
[8756] | 1326 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 1327 | #define PACKAGE "$PACKAGE"
|
---|
[8756] | 1328 | _ACEOF
|
---|
[562] | 1329 |
|
---|
[8756] | 1330 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 1331 | #define VERSION "$VERSION"
|
---|
[8756] | 1332 | _ACEOF
|
---|
[562] | 1333 |
|
---|
[8200] | 1334 |
|
---|
| 1335 |
|
---|
| 1336 |
|
---|
[567] | 1337 | USE_FASTCGI=0
|
---|
| 1338 | if test USE_FASTCGI = 1; then
|
---|
[8756] | 1339 | cat >>confdefs.h <<\_ACEOF
|
---|
[567] | 1340 | #define USE_FASTCGI 1
|
---|
[8756] | 1341 | _ACEOF
|
---|
[567] | 1342 |
|
---|
[8200] | 1343 |
|
---|
[3631] | 1344 | fi
|
---|
[567] | 1345 |
|
---|
[3631] | 1346 | if test USE_LANGACTION = 1; then
|
---|
[8756] | 1347 | cat >>confdefs.h <<\_ACEOF
|
---|
[3631] | 1348 | #define USE_LANGACTION 1
|
---|
[8756] | 1349 | _ACEOF
|
---|
[3631] | 1350 |
|
---|
[8200] | 1351 |
|
---|
[567] | 1352 | fi
|
---|
| 1353 |
|
---|
[1860] | 1354 | # Check whether --enable-corba or --disable-corba was given.
|
---|
| 1355 | if test "${enable_corba+set}" = set; then
|
---|
| 1356 | enableval="$enable_corba"
|
---|
[2471] | 1357 | USE_CORBA=1
|
---|
[1860] | 1358 | else
|
---|
[2471] | 1359 | USE_CORBA=0
|
---|
[8756] | 1360 | fi;
|
---|
| 1361 | cat >>confdefs.h <<_ACEOF
|
---|
[2297] | 1362 | #define USE_CORBA $USE_CORBA
|
---|
[8756] | 1363 | _ACEOF
|
---|
[1860] | 1364 |
|
---|
[8200] | 1365 |
|
---|
| 1366 |
|
---|
[8756] | 1367 |
|
---|
[1860] | 1368 | # Check whether --with-micodir or --without-micodir was given.
|
---|
| 1369 | if test "${with_micodir+set}" = set; then
|
---|
| 1370 | withval="$with_micodir"
|
---|
[2471] | 1371 | MICO_DIR=$enableval
|
---|
[1860] | 1372 | else
|
---|
[2471] | 1373 | MICO_DIR="default"
|
---|
[8756] | 1374 | fi;
|
---|
| 1375 | cat >>confdefs.h <<_ACEOF
|
---|
[2297] | 1376 | #define MICO_DIR "$MICO_DIR"
|
---|
[8756] | 1377 | _ACEOF
|
---|
[1860] | 1378 |
|
---|
[8200] | 1379 |
|
---|
| 1380 |
|
---|
[1938] | 1381 | # Check whether --enable-z3950 or --disable-z3950 was given.
|
---|
| 1382 | if test "${enable_z3950+set}" = set; then
|
---|
| 1383 | enableval="$enable_z3950"
|
---|
| 1384 | USE_Z3950=1
|
---|
| 1385 | else
|
---|
| 1386 | USE_Z3950=0
|
---|
[8756] | 1387 | fi;
|
---|
[2297] | 1388 | if test USE_Z3950 = 1; then
|
---|
[8756] | 1389 | cat >>confdefs.h <<\_ACEOF
|
---|
[2297] | 1390 | #define USE_Z3950 $USE_Z3950
|
---|
[8756] | 1391 | _ACEOF
|
---|
[1938] | 1392 |
|
---|
[8200] | 1393 |
|
---|
[2297] | 1394 | fi
|
---|
[1938] | 1395 |
|
---|
[12492] | 1396 | # Check whether --enable-yaz or --disable-yaz was given.
|
---|
| 1397 | if test "${enable_yaz+set}" = set; then
|
---|
| 1398 | enableval="$enable_yaz"
|
---|
| 1399 | USE_YAZ=0
|
---|
| 1400 | else
|
---|
| 1401 | USE_YAZ=1
|
---|
| 1402 | fi;
|
---|
| 1403 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1404 | #define USE_YAZ $USE_YAZ
|
---|
| 1405 | _ACEOF
|
---|
[8756] | 1406 |
|
---|
[12492] | 1407 |
|
---|
| 1408 |
|
---|
| 1409 |
|
---|
[2279] | 1410 | # Check whether --with-gdbm or --without-gdbm was given.
|
---|
| 1411 | if test "${with_gdbm+set}" = set; then
|
---|
| 1412 | withval="$with_gdbm"
|
---|
| 1413 | gdbmdir=$withval
|
---|
[8756] | 1414 | fi;
|
---|
[2279] | 1415 |
|
---|
[12922] | 1416 | # Check whether --enable-accentfold or --disable-accentfold was given.
|
---|
| 1417 | if test "${enable_accentfold+set}" = set; then
|
---|
| 1418 | enableval="$enable_accentfold"
|
---|
| 1419 | ENABLE_ACCENTFOLD=0
|
---|
| 1420 | else
|
---|
| 1421 | ENABLE_ACCENTFOLD=1
|
---|
| 1422 | fi;
|
---|
| 1423 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1424 | #define ENABLE_ACCENTFOLD $ENABLE_ACCENTFOLD
|
---|
| 1425 | _ACEOF
|
---|
| 1426 |
|
---|
| 1427 |
|
---|
[15901] | 1428 |
|
---|
[15794] | 1429 | # Check whether --enable-sqlite or --disable-sqlite was given.
|
---|
| 1430 | if test "${enable_sqlite+set}" = set; then
|
---|
| 1431 | enableval="$enable_sqlite"
|
---|
[16288] | 1432 | USE_SQLITE=0
|
---|
| 1433 | else
|
---|
[15794] | 1434 | USE_SQLITE=1
|
---|
| 1435 | fi;
|
---|
| 1436 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1437 | #define USE_SQLITE $USE_SQLITE
|
---|
| 1438 | _ACEOF
|
---|
[12922] | 1439 |
|
---|
[15794] | 1440 |
|
---|
[15901] | 1441 |
|
---|
[14169] | 1442 | LDFLAGS=$LDFLAGS
|
---|
[15551] | 1443 |
|
---|
[1722] | 1444 | if test -z "$CFLAGS"; then
|
---|
[794] | 1445 | CFLAGS=-O2
|
---|
[1722] | 1446 | fi
|
---|
[576] | 1447 |
|
---|
| 1448 |
|
---|
[15551] | 1449 |
|
---|
[8756] | 1450 | ac_ext=c
|
---|
| 1451 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1452 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1453 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1454 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1455 | if test -n "$ac_tool_prefix"; then
|
---|
| 1456 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 1457 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
| 1458 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1459 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1460 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1461 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1462 | else
|
---|
| 1463 | if test -n "$CC"; then
|
---|
| 1464 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1465 | else
|
---|
| 1466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1467 | for as_dir in $PATH
|
---|
| 1468 | do
|
---|
| 1469 | IFS=$as_save_IFS
|
---|
| 1470 | test -z "$as_dir" && as_dir=.
|
---|
| 1471 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1472 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1473 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
| 1474 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1475 | break 2
|
---|
| 1476 | fi
|
---|
| 1477 | done
|
---|
| 1478 | done
|
---|
| 1479 |
|
---|
| 1480 | fi
|
---|
| 1481 | fi
|
---|
| 1482 | CC=$ac_cv_prog_CC
|
---|
| 1483 | if test -n "$CC"; then
|
---|
| 1484 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1485 | echo "${ECHO_T}$CC" >&6
|
---|
| 1486 | else
|
---|
| 1487 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1488 | echo "${ECHO_T}no" >&6
|
---|
| 1489 | fi
|
---|
| 1490 |
|
---|
| 1491 | fi
|
---|
| 1492 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1493 | ac_ct_CC=$CC
|
---|
| 1494 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
[562] | 1495 | set dummy gcc; ac_word=$2
|
---|
[8756] | 1496 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1497 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1498 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1499 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1500 | else
|
---|
[8756] | 1501 | if test -n "$ac_ct_CC"; then
|
---|
| 1502 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1503 | else
|
---|
| 1504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1505 | for as_dir in $PATH
|
---|
| 1506 | do
|
---|
| 1507 | IFS=$as_save_IFS
|
---|
| 1508 | test -z "$as_dir" && as_dir=.
|
---|
| 1509 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1510 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1511 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
| 1512 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1513 | break 2
|
---|
| 1514 | fi
|
---|
| 1515 | done
|
---|
| 1516 | done
|
---|
| 1517 |
|
---|
| 1518 | fi
|
---|
| 1519 | fi
|
---|
| 1520 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1521 | if test -n "$ac_ct_CC"; then
|
---|
| 1522 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1523 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1524 | else
|
---|
| 1525 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1526 | echo "${ECHO_T}no" >&6
|
---|
| 1527 | fi
|
---|
| 1528 |
|
---|
| 1529 | CC=$ac_ct_CC
|
---|
| 1530 | else
|
---|
| 1531 | CC="$ac_cv_prog_CC"
|
---|
| 1532 | fi
|
---|
| 1533 |
|
---|
| 1534 | if test -z "$CC"; then
|
---|
| 1535 | if test -n "$ac_tool_prefix"; then
|
---|
| 1536 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
| 1537 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
| 1538 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1539 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1540 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1541 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1542 | else
|
---|
[562] | 1543 | if test -n "$CC"; then
|
---|
| 1544 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1545 | else
|
---|
[8756] | 1546 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1547 | for as_dir in $PATH
|
---|
| 1548 | do
|
---|
| 1549 | IFS=$as_save_IFS
|
---|
| 1550 | test -z "$as_dir" && as_dir=.
|
---|
| 1551 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1552 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1553 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
| 1554 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1555 | break 2
|
---|
| 1556 | fi
|
---|
| 1557 | done
|
---|
| 1558 | done
|
---|
| 1559 |
|
---|
[562] | 1560 | fi
|
---|
| 1561 | fi
|
---|
[8756] | 1562 | CC=$ac_cv_prog_CC
|
---|
[562] | 1563 | if test -n "$CC"; then
|
---|
[8756] | 1564 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1565 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1566 | else
|
---|
[8756] | 1567 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1568 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1569 | fi
|
---|
| 1570 |
|
---|
[8756] | 1571 | fi
|
---|
| 1572 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1573 | ac_ct_CC=$CC
|
---|
| 1574 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1575 | set dummy cc; ac_word=$2
|
---|
| 1576 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1577 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1578 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1579 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1580 | else
|
---|
| 1581 | if test -n "$ac_ct_CC"; then
|
---|
| 1582 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1583 | else
|
---|
| 1584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1585 | for as_dir in $PATH
|
---|
| 1586 | do
|
---|
| 1587 | IFS=$as_save_IFS
|
---|
| 1588 | test -z "$as_dir" && as_dir=.
|
---|
| 1589 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1590 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1591 | ac_cv_prog_ac_ct_CC="cc"
|
---|
| 1592 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1593 | break 2
|
---|
| 1594 | fi
|
---|
| 1595 | done
|
---|
| 1596 | done
|
---|
| 1597 |
|
---|
| 1598 | fi
|
---|
| 1599 | fi
|
---|
| 1600 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1601 | if test -n "$ac_ct_CC"; then
|
---|
| 1602 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1603 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1604 | else
|
---|
| 1605 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1606 | echo "${ECHO_T}no" >&6
|
---|
| 1607 | fi
|
---|
| 1608 |
|
---|
| 1609 | CC=$ac_ct_CC
|
---|
| 1610 | else
|
---|
| 1611 | CC="$ac_cv_prog_CC"
|
---|
| 1612 | fi
|
---|
| 1613 |
|
---|
| 1614 | fi
|
---|
[562] | 1615 | if test -z "$CC"; then
|
---|
| 1616 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1617 | set dummy cc; ac_word=$2
|
---|
[8756] | 1618 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1619 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1620 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1621 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1622 | else
|
---|
| 1623 | if test -n "$CC"; then
|
---|
| 1624 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1625 | else
|
---|
| 1626 | ac_prog_rejected=no
|
---|
[8756] | 1627 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1628 | for as_dir in $PATH
|
---|
| 1629 | do
|
---|
| 1630 | IFS=$as_save_IFS
|
---|
| 1631 | test -z "$as_dir" && as_dir=.
|
---|
| 1632 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1633 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1634 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 1635 | ac_prog_rejected=yes
|
---|
| 1636 | continue
|
---|
| 1637 | fi
|
---|
| 1638 | ac_cv_prog_CC="cc"
|
---|
| 1639 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1640 | break 2
|
---|
| 1641 | fi
|
---|
| 1642 | done
|
---|
| 1643 | done
|
---|
| 1644 |
|
---|
[562] | 1645 | if test $ac_prog_rejected = yes; then
|
---|
| 1646 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 1647 | set dummy $ac_cv_prog_CC
|
---|
| 1648 | shift
|
---|
[8756] | 1649 | if test $# != 0; then
|
---|
[562] | 1650 | # We chose a different compiler from the bogus one.
|
---|
| 1651 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 1652 | # first if we set CC to just the basename; use the full file name.
|
---|
| 1653 | shift
|
---|
[8756] | 1654 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[562] | 1655 | fi
|
---|
| 1656 | fi
|
---|
| 1657 | fi
|
---|
| 1658 | fi
|
---|
[8756] | 1659 | CC=$ac_cv_prog_CC
|
---|
[562] | 1660 | if test -n "$CC"; then
|
---|
[8756] | 1661 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1662 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1663 | else
|
---|
[8756] | 1664 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1665 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1666 | fi
|
---|
| 1667 |
|
---|
[8756] | 1668 | fi
|
---|
| 1669 | if test -z "$CC"; then
|
---|
| 1670 | if test -n "$ac_tool_prefix"; then
|
---|
| 1671 | for ac_prog in cl
|
---|
| 1672 | do
|
---|
| 1673 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 1674 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
| 1675 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1677 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1678 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1679 | else
|
---|
| 1680 | if test -n "$CC"; then
|
---|
| 1681 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1682 | else
|
---|
[8756] | 1683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1684 | for as_dir in $PATH
|
---|
| 1685 | do
|
---|
| 1686 | IFS=$as_save_IFS
|
---|
| 1687 | test -z "$as_dir" && as_dir=.
|
---|
| 1688 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1689 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1690 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
| 1691 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1692 | break 2
|
---|
| 1693 | fi
|
---|
| 1694 | done
|
---|
| 1695 | done
|
---|
| 1696 |
|
---|
[562] | 1697 | fi
|
---|
| 1698 | fi
|
---|
[8756] | 1699 | CC=$ac_cv_prog_CC
|
---|
[562] | 1700 | if test -n "$CC"; then
|
---|
[8756] | 1701 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1702 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1703 | else
|
---|
[8756] | 1704 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1705 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1706 | fi
|
---|
[8756] | 1707 |
|
---|
| 1708 | test -n "$CC" && break
|
---|
| 1709 | done
|
---|
| 1710 | fi
|
---|
| 1711 | if test -z "$CC"; then
|
---|
| 1712 | ac_ct_CC=$CC
|
---|
| 1713 | for ac_prog in cl
|
---|
| 1714 | do
|
---|
| 1715 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 1716 | set dummy $ac_prog; ac_word=$2
|
---|
| 1717 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1718 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1719 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1720 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1721 | else
|
---|
| 1722 | if test -n "$ac_ct_CC"; then
|
---|
| 1723 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1724 | else
|
---|
| 1725 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1726 | for as_dir in $PATH
|
---|
| 1727 | do
|
---|
| 1728 | IFS=$as_save_IFS
|
---|
| 1729 | test -z "$as_dir" && as_dir=.
|
---|
| 1730 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1731 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1732 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
| 1733 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1734 | break 2
|
---|
[8200] | 1735 | fi
|
---|
[8756] | 1736 | done
|
---|
| 1737 | done
|
---|
| 1738 |
|
---|
[562] | 1739 | fi
|
---|
[8756] | 1740 | fi
|
---|
| 1741 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1742 | if test -n "$ac_ct_CC"; then
|
---|
| 1743 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1744 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1745 | else
|
---|
| 1746 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1747 | echo "${ECHO_T}no" >&6
|
---|
| 1748 | fi
|
---|
[562] | 1749 |
|
---|
[8756] | 1750 | test -n "$ac_ct_CC" && break
|
---|
| 1751 | done
|
---|
[562] | 1752 |
|
---|
[8756] | 1753 | CC=$ac_ct_CC
|
---|
| 1754 | fi
|
---|
[562] | 1755 |
|
---|
[8756] | 1756 | fi
|
---|
[562] | 1757 |
|
---|
| 1758 |
|
---|
[8756] | 1759 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 1760 | See \`config.log' for more details." >&5
|
---|
| 1761 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 1762 | See \`config.log' for more details." >&2;}
|
---|
| 1763 | { (exit 1); exit 1; }; }
|
---|
| 1764 |
|
---|
| 1765 | # Provide some information about the compiler.
|
---|
| 1766 | echo "$as_me:$LINENO:" \
|
---|
| 1767 | "checking for C compiler version" >&5
|
---|
| 1768 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 1769 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 1770 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 1771 | ac_status=$?
|
---|
| 1772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1773 | (exit $ac_status); }
|
---|
| 1774 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 1775 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 1776 | ac_status=$?
|
---|
| 1777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1778 | (exit $ac_status); }
|
---|
| 1779 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 1780 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 1781 | ac_status=$?
|
---|
| 1782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1783 | (exit $ac_status); }
|
---|
| 1784 |
|
---|
| 1785 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1786 | /* confdefs.h. */
|
---|
| 1787 | _ACEOF
|
---|
| 1788 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1789 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1790 | /* end confdefs.h. */
|
---|
| 1791 |
|
---|
| 1792 | int
|
---|
| 1793 | main ()
|
---|
| 1794 | {
|
---|
| 1795 |
|
---|
| 1796 | ;
|
---|
| 1797 | return 0;
|
---|
| 1798 | }
|
---|
| 1799 | _ACEOF
|
---|
| 1800 | ac_clean_files_save=$ac_clean_files
|
---|
| 1801 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
| 1802 | # Try to create an executable without -o first, disregard a.out.
|
---|
| 1803 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
| 1804 | # of exeext.
|
---|
| 1805 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
| 1806 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
| 1807 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
| 1808 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
| 1809 | (eval $ac_link_default) 2>&5
|
---|
| 1810 | ac_status=$?
|
---|
| 1811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1812 | (exit $ac_status); }; then
|
---|
| 1813 | # Find the output, starting from the most likely. This scheme is
|
---|
| 1814 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
| 1815 | # resort.
|
---|
| 1816 |
|
---|
| 1817 | # Be careful to initialize this variable, since it used to be cached.
|
---|
| 1818 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
| 1819 | ac_cv_exeext=
|
---|
| 1820 | # b.out is created by i960 compilers.
|
---|
| 1821 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
| 1822 | do
|
---|
| 1823 | test -f "$ac_file" || continue
|
---|
| 1824 | case $ac_file in
|
---|
| 1825 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
| 1826 | ;;
|
---|
| 1827 | conftest.$ac_ext )
|
---|
| 1828 | # This is the source file.
|
---|
| 1829 | ;;
|
---|
| 1830 | [ab].out )
|
---|
| 1831 | # We found the default executable, but exeext='' is most
|
---|
| 1832 | # certainly right.
|
---|
| 1833 | break;;
|
---|
| 1834 | *.* )
|
---|
| 1835 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1836 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
| 1837 | # but it would be cool to find out if it's true. Does anybody
|
---|
| 1838 | # maintain Libtool? --akim.
|
---|
| 1839 | export ac_cv_exeext
|
---|
| 1840 | break;;
|
---|
| 1841 | * )
|
---|
| 1842 | break;;
|
---|
| 1843 | esac
|
---|
| 1844 | done
|
---|
| 1845 | else
|
---|
| 1846 | echo "$as_me: failed program was:" >&5
|
---|
| 1847 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1848 |
|
---|
| 1849 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
| 1850 | See \`config.log' for more details." >&5
|
---|
| 1851 | echo "$as_me: error: C compiler cannot create executables
|
---|
| 1852 | See \`config.log' for more details." >&2;}
|
---|
| 1853 | { (exit 77); exit 77; }; }
|
---|
| 1854 | fi
|
---|
| 1855 |
|
---|
| 1856 | ac_exeext=$ac_cv_exeext
|
---|
| 1857 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
| 1858 | echo "${ECHO_T}$ac_file" >&6
|
---|
| 1859 |
|
---|
| 1860 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1861 | # the compiler is broken, or we cross compile.
|
---|
| 1862 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
| 1863 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
| 1864 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 1865 | # If not cross compiling, check that we can run a simple program.
|
---|
| 1866 | if test "$cross_compiling" != yes; then
|
---|
| 1867 | if { ac_try='./$ac_file'
|
---|
| 1868 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1869 | (eval $ac_try) 2>&5
|
---|
| 1870 | ac_status=$?
|
---|
| 1871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1872 | (exit $ac_status); }; }; then
|
---|
| 1873 | cross_compiling=no
|
---|
[562] | 1874 | else
|
---|
[8756] | 1875 | if test "$cross_compiling" = maybe; then
|
---|
| 1876 | cross_compiling=yes
|
---|
| 1877 | else
|
---|
| 1878 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
| 1879 | If you meant to cross compile, use \`--host'.
|
---|
| 1880 | See \`config.log' for more details." >&5
|
---|
| 1881 | echo "$as_me: error: cannot run C compiled programs.
|
---|
| 1882 | If you meant to cross compile, use \`--host'.
|
---|
| 1883 | See \`config.log' for more details." >&2;}
|
---|
| 1884 | { (exit 1); exit 1; }; }
|
---|
| 1885 | fi
|
---|
[562] | 1886 | fi
|
---|
| 1887 | fi
|
---|
[8756] | 1888 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 1889 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 1890 |
|
---|
[8756] | 1891 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
| 1892 | ac_clean_files=$ac_clean_files_save
|
---|
| 1893 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1894 | # the compiler is broken, or we cross compile.
|
---|
| 1895 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
| 1896 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
| 1897 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
| 1898 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
| 1899 |
|
---|
| 1900 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 1901 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
| 1902 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 1903 | (eval $ac_link) 2>&5
|
---|
| 1904 | ac_status=$?
|
---|
| 1905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1906 | (exit $ac_status); }; then
|
---|
| 1907 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 1908 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 1909 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 1910 | # `rm'.
|
---|
| 1911 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 1912 | test -f "$ac_file" || continue
|
---|
| 1913 | case $ac_file in
|
---|
| 1914 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
| 1915 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1916 | export ac_cv_exeext
|
---|
| 1917 | break;;
|
---|
| 1918 | * ) break;;
|
---|
| 1919 | esac
|
---|
| 1920 | done
|
---|
| 1921 | else
|
---|
| 1922 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1923 | See \`config.log' for more details." >&5
|
---|
| 1924 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1925 | See \`config.log' for more details." >&2;}
|
---|
| 1926 | { (exit 1); exit 1; }; }
|
---|
[562] | 1927 | fi
|
---|
| 1928 |
|
---|
[8756] | 1929 | rm -f conftest$ac_cv_exeext
|
---|
| 1930 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
| 1931 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
| 1932 |
|
---|
| 1933 | rm -f conftest.$ac_ext
|
---|
| 1934 | EXEEXT=$ac_cv_exeext
|
---|
| 1935 | ac_exeext=$EXEEXT
|
---|
| 1936 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 1937 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
| 1938 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 1939 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1940 | else
|
---|
[8756] | 1941 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1942 | /* confdefs.h. */
|
---|
| 1943 | _ACEOF
|
---|
| 1944 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1945 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1946 | /* end confdefs.h. */
|
---|
| 1947 |
|
---|
| 1948 | int
|
---|
| 1949 | main ()
|
---|
| 1950 | {
|
---|
| 1951 |
|
---|
| 1952 | ;
|
---|
| 1953 | return 0;
|
---|
| 1954 | }
|
---|
| 1955 | _ACEOF
|
---|
| 1956 | rm -f conftest.o conftest.obj
|
---|
| 1957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1958 | (eval $ac_compile) 2>&5
|
---|
| 1959 | ac_status=$?
|
---|
| 1960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1961 | (exit $ac_status); }; then
|
---|
| 1962 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
| 1963 | case $ac_file in
|
---|
| 1964 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
| 1965 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 1966 | break;;
|
---|
| 1967 | esac
|
---|
| 1968 | done
|
---|
[562] | 1969 | else
|
---|
[8756] | 1970 | echo "$as_me: failed program was:" >&5
|
---|
| 1971 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1972 |
|
---|
| 1973 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 1974 | See \`config.log' for more details." >&5
|
---|
| 1975 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 1976 | See \`config.log' for more details." >&2;}
|
---|
| 1977 | { (exit 1); exit 1; }; }
|
---|
[562] | 1978 | fi
|
---|
[8756] | 1979 |
|
---|
| 1980 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
[562] | 1981 | fi
|
---|
[8756] | 1982 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
| 1983 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
| 1984 | OBJEXT=$ac_cv_objext
|
---|
| 1985 | ac_objext=$OBJEXT
|
---|
| 1986 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
| 1987 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
| 1988 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 1989 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1990 | else
|
---|
| 1991 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1992 | /* confdefs.h. */
|
---|
| 1993 | _ACEOF
|
---|
| 1994 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1995 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1996 | /* end confdefs.h. */
|
---|
[562] | 1997 |
|
---|
[8756] | 1998 | int
|
---|
| 1999 | main ()
|
---|
| 2000 | {
|
---|
| 2001 | #ifndef __GNUC__
|
---|
| 2002 | choke me
|
---|
| 2003 | #endif
|
---|
[562] | 2004 |
|
---|
[8756] | 2005 | ;
|
---|
| 2006 | return 0;
|
---|
| 2007 | }
|
---|
| 2008 | _ACEOF
|
---|
| 2009 | rm -f conftest.$ac_objext
|
---|
| 2010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2011 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2012 | ac_status=$?
|
---|
| 2013 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2014 | rm -f conftest.er1
|
---|
| 2015 | cat conftest.err >&5
|
---|
| 2016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2017 | (exit $ac_status); } &&
|
---|
| 2018 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2019 | || test ! -s conftest.err'
|
---|
| 2020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2021 | (eval $ac_try) 2>&5
|
---|
| 2022 | ac_status=$?
|
---|
| 2023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2024 | (exit $ac_status); }; } &&
|
---|
| 2025 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2027 | (eval $ac_try) 2>&5
|
---|
| 2028 | ac_status=$?
|
---|
| 2029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2030 | (exit $ac_status); }; }; then
|
---|
| 2031 | ac_compiler_gnu=yes
|
---|
[562] | 2032 | else
|
---|
[8756] | 2033 | echo "$as_me: failed program was:" >&5
|
---|
| 2034 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2035 |
|
---|
| 2036 | ac_compiler_gnu=no
|
---|
[562] | 2037 | fi
|
---|
[8756] | 2038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2039 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
[562] | 2040 |
|
---|
[8756] | 2041 | fi
|
---|
| 2042 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 2043 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
| 2044 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2045 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2046 | ac_save_CFLAGS=$CFLAGS
|
---|
| 2047 | CFLAGS="-g"
|
---|
| 2048 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
| 2049 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
| 2050 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2051 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 2052 | else
|
---|
[8756] | 2053 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2054 | /* confdefs.h. */
|
---|
| 2055 | _ACEOF
|
---|
| 2056 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2057 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2058 | /* end confdefs.h. */
|
---|
| 2059 |
|
---|
| 2060 | int
|
---|
| 2061 | main ()
|
---|
| 2062 | {
|
---|
| 2063 |
|
---|
| 2064 | ;
|
---|
| 2065 | return 0;
|
---|
| 2066 | }
|
---|
| 2067 | _ACEOF
|
---|
| 2068 | rm -f conftest.$ac_objext
|
---|
| 2069 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2070 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2071 | ac_status=$?
|
---|
| 2072 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2073 | rm -f conftest.er1
|
---|
| 2074 | cat conftest.err >&5
|
---|
| 2075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2076 | (exit $ac_status); } &&
|
---|
| 2077 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2078 | || test ! -s conftest.err'
|
---|
| 2079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2080 | (eval $ac_try) 2>&5
|
---|
| 2081 | ac_status=$?
|
---|
| 2082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2083 | (exit $ac_status); }; } &&
|
---|
| 2084 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2085 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2086 | (eval $ac_try) 2>&5
|
---|
| 2087 | ac_status=$?
|
---|
| 2088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2089 | (exit $ac_status); }; }; then
|
---|
[562] | 2090 | ac_cv_prog_cc_g=yes
|
---|
| 2091 | else
|
---|
[8756] | 2092 | echo "$as_me: failed program was:" >&5
|
---|
| 2093 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2094 |
|
---|
[8756] | 2095 | ac_cv_prog_cc_g=no
|
---|
[562] | 2096 | fi
|
---|
[8756] | 2097 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2098 | fi
|
---|
| 2099 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
| 2100 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
[562] | 2101 | if test "$ac_test_CFLAGS" = set; then
|
---|
[8756] | 2102 | CFLAGS=$ac_save_CFLAGS
|
---|
[562] | 2103 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2104 | if test "$GCC" = yes; then
|
---|
| 2105 | CFLAGS="-g -O2"
|
---|
| 2106 | else
|
---|
| 2107 | CFLAGS="-g"
|
---|
| 2108 | fi
|
---|
| 2109 | else
|
---|
| 2110 | if test "$GCC" = yes; then
|
---|
| 2111 | CFLAGS="-O2"
|
---|
| 2112 | else
|
---|
| 2113 | CFLAGS=
|
---|
| 2114 | fi
|
---|
| 2115 | fi
|
---|
[8756] | 2116 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
| 2117 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
| 2118 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 2119 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2120 | else
|
---|
| 2121 | ac_cv_prog_cc_stdc=no
|
---|
| 2122 | ac_save_CC=$CC
|
---|
| 2123 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2124 | /* confdefs.h. */
|
---|
| 2125 | _ACEOF
|
---|
| 2126 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2127 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2128 | /* end confdefs.h. */
|
---|
| 2129 | #include <stdarg.h>
|
---|
| 2130 | #include <stdio.h>
|
---|
| 2131 | #include <sys/types.h>
|
---|
| 2132 | #include <sys/stat.h>
|
---|
| 2133 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2134 | struct buf { int x; };
|
---|
| 2135 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2136 | static char *e (p, i)
|
---|
| 2137 | char **p;
|
---|
| 2138 | int i;
|
---|
| 2139 | {
|
---|
| 2140 | return p[i];
|
---|
| 2141 | }
|
---|
| 2142 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2143 | {
|
---|
| 2144 | char *s;
|
---|
| 2145 | va_list v;
|
---|
| 2146 | va_start (v,p);
|
---|
| 2147 | s = g (p, va_arg (v,int));
|
---|
| 2148 | va_end (v);
|
---|
| 2149 | return s;
|
---|
| 2150 | }
|
---|
[8200] | 2151 |
|
---|
[8756] | 2152 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2153 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2154 | These don't provoke an error unfortunately, instead are silently treated
|
---|
| 2155 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
| 2156 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2157 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
| 2158 | that's true only with -std1. */
|
---|
| 2159 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2160 |
|
---|
| 2161 | int test (int i, double x);
|
---|
| 2162 | struct s1 {int (*f) (int a);};
|
---|
| 2163 | struct s2 {int (*f) (double a);};
|
---|
| 2164 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2165 | int argc;
|
---|
| 2166 | char **argv;
|
---|
| 2167 | int
|
---|
| 2168 | main ()
|
---|
| 2169 | {
|
---|
| 2170 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2171 | ;
|
---|
| 2172 | return 0;
|
---|
| 2173 | }
|
---|
| 2174 | _ACEOF
|
---|
| 2175 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 2176 | # breaks some systems' header files.
|
---|
| 2177 | # AIX -qlanglvl=ansi
|
---|
| 2178 | # Ultrix and OSF/1 -std1
|
---|
| 2179 | # HP-UX 10.20 and later -Ae
|
---|
| 2180 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
| 2181 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
| 2182 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[562] | 2183 | do
|
---|
[8756] | 2184 | CC="$ac_save_CC $ac_arg"
|
---|
| 2185 | rm -f conftest.$ac_objext
|
---|
| 2186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2187 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2188 | ac_status=$?
|
---|
| 2189 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2190 | rm -f conftest.er1
|
---|
| 2191 | cat conftest.err >&5
|
---|
| 2192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2193 | (exit $ac_status); } &&
|
---|
| 2194 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2195 | || test ! -s conftest.err'
|
---|
| 2196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2197 | (eval $ac_try) 2>&5
|
---|
| 2198 | ac_status=$?
|
---|
| 2199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2200 | (exit $ac_status); }; } &&
|
---|
| 2201 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2203 | (eval $ac_try) 2>&5
|
---|
| 2204 | ac_status=$?
|
---|
| 2205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2206 | (exit $ac_status); }; }; then
|
---|
| 2207 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
| 2208 | break
|
---|
[562] | 2209 | else
|
---|
[8756] | 2210 | echo "$as_me: failed program was:" >&5
|
---|
| 2211 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2212 |
|
---|
[562] | 2213 | fi
|
---|
[8756] | 2214 | rm -f conftest.err conftest.$ac_objext
|
---|
| 2215 | done
|
---|
| 2216 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
| 2217 | CC=$ac_save_CC
|
---|
| 2218 |
|
---|
[562] | 2219 | fi
|
---|
[8756] | 2220 |
|
---|
| 2221 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 2222 | x|xno)
|
---|
| 2223 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2224 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
| 2225 | *)
|
---|
| 2226 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 2227 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 2228 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 2229 | esac
|
---|
| 2230 |
|
---|
| 2231 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
| 2232 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
| 2233 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
| 2234 | # the declaration of exit, since it's the most demanding environment.
|
---|
| 2235 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2236 | #ifndef __cplusplus
|
---|
| 2237 | choke me
|
---|
| 2238 | #endif
|
---|
| 2239 | _ACEOF
|
---|
| 2240 | rm -f conftest.$ac_objext
|
---|
| 2241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2242 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2243 | ac_status=$?
|
---|
| 2244 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2245 | rm -f conftest.er1
|
---|
| 2246 | cat conftest.err >&5
|
---|
| 2247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2248 | (exit $ac_status); } &&
|
---|
| 2249 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2250 | || test ! -s conftest.err'
|
---|
| 2251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2252 | (eval $ac_try) 2>&5
|
---|
| 2253 | ac_status=$?
|
---|
| 2254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2255 | (exit $ac_status); }; } &&
|
---|
| 2256 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2258 | (eval $ac_try) 2>&5
|
---|
| 2259 | ac_status=$?
|
---|
| 2260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2261 | (exit $ac_status); }; }; then
|
---|
| 2262 | for ac_declaration in \
|
---|
| 2263 | '' \
|
---|
| 2264 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2265 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2266 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2267 | 'extern "C" void exit (int);' \
|
---|
| 2268 | 'void exit (int);'
|
---|
| 2269 | do
|
---|
| 2270 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2271 | /* confdefs.h. */
|
---|
| 2272 | _ACEOF
|
---|
| 2273 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2274 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2275 | /* end confdefs.h. */
|
---|
| 2276 | $ac_declaration
|
---|
| 2277 | #include <stdlib.h>
|
---|
| 2278 | int
|
---|
| 2279 | main ()
|
---|
| 2280 | {
|
---|
| 2281 | exit (42);
|
---|
| 2282 | ;
|
---|
| 2283 | return 0;
|
---|
| 2284 | }
|
---|
| 2285 | _ACEOF
|
---|
| 2286 | rm -f conftest.$ac_objext
|
---|
| 2287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2288 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2289 | ac_status=$?
|
---|
| 2290 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2291 | rm -f conftest.er1
|
---|
| 2292 | cat conftest.err >&5
|
---|
| 2293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2294 | (exit $ac_status); } &&
|
---|
| 2295 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2296 | || test ! -s conftest.err'
|
---|
| 2297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2298 | (eval $ac_try) 2>&5
|
---|
| 2299 | ac_status=$?
|
---|
| 2300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2301 | (exit $ac_status); }; } &&
|
---|
| 2302 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2304 | (eval $ac_try) 2>&5
|
---|
| 2305 | ac_status=$?
|
---|
| 2306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2307 | (exit $ac_status); }; }; then
|
---|
| 2308 | :
|
---|
[562] | 2309 | else
|
---|
[8756] | 2310 | echo "$as_me: failed program was:" >&5
|
---|
| 2311 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2312 |
|
---|
| 2313 | continue
|
---|
[562] | 2314 | fi
|
---|
[8756] | 2315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2316 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2317 | /* confdefs.h. */
|
---|
| 2318 | _ACEOF
|
---|
| 2319 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2320 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2321 | /* end confdefs.h. */
|
---|
| 2322 | $ac_declaration
|
---|
| 2323 | int
|
---|
| 2324 | main ()
|
---|
| 2325 | {
|
---|
| 2326 | exit (42);
|
---|
| 2327 | ;
|
---|
| 2328 | return 0;
|
---|
| 2329 | }
|
---|
| 2330 | _ACEOF
|
---|
| 2331 | rm -f conftest.$ac_objext
|
---|
| 2332 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2333 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2334 | ac_status=$?
|
---|
| 2335 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2336 | rm -f conftest.er1
|
---|
| 2337 | cat conftest.err >&5
|
---|
| 2338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2339 | (exit $ac_status); } &&
|
---|
| 2340 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2341 | || test ! -s conftest.err'
|
---|
| 2342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2343 | (eval $ac_try) 2>&5
|
---|
| 2344 | ac_status=$?
|
---|
| 2345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2346 | (exit $ac_status); }; } &&
|
---|
| 2347 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2349 | (eval $ac_try) 2>&5
|
---|
| 2350 | ac_status=$?
|
---|
| 2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2352 | (exit $ac_status); }; }; then
|
---|
| 2353 | break
|
---|
| 2354 | else
|
---|
| 2355 | echo "$as_me: failed program was:" >&5
|
---|
| 2356 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[562] | 2357 |
|
---|
[8756] | 2358 | fi
|
---|
| 2359 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 2360 | done
|
---|
[8756] | 2361 | rm -f conftest*
|
---|
| 2362 | if test -n "$ac_declaration"; then
|
---|
| 2363 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2364 | echo $ac_declaration >>confdefs.h
|
---|
| 2365 | echo '#endif' >>confdefs.h
|
---|
| 2366 | fi
|
---|
[562] | 2367 |
|
---|
[8756] | 2368 | else
|
---|
| 2369 | echo "$as_me: failed program was:" >&5
|
---|
| 2370 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2371 |
|
---|
[8756] | 2372 | fi
|
---|
| 2373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2374 | ac_ext=c
|
---|
| 2375 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2376 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2377 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2378 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[8200] | 2379 |
|
---|
[8756] | 2380 | ac_ext=cc
|
---|
[8200] | 2381 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 2382 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2383 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2384 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 2385 | if test -n "$ac_tool_prefix"; then
|
---|
| 2386 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
| 2387 | do
|
---|
| 2388 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2389 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
| 2390 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2391 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2392 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 2393 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2394 | else
|
---|
| 2395 | if test -n "$CXX"; then
|
---|
| 2396 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 2397 | else
|
---|
| 2398 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2399 | for as_dir in $PATH
|
---|
| 2400 | do
|
---|
| 2401 | IFS=$as_save_IFS
|
---|
| 2402 | test -z "$as_dir" && as_dir=.
|
---|
| 2403 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2404 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2405 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
| 2406 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2407 | break 2
|
---|
| 2408 | fi
|
---|
| 2409 | done
|
---|
| 2410 | done
|
---|
[8200] | 2411 |
|
---|
[8756] | 2412 | fi
|
---|
| 2413 | fi
|
---|
| 2414 | CXX=$ac_cv_prog_CXX
|
---|
| 2415 | if test -n "$CXX"; then
|
---|
| 2416 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
| 2417 | echo "${ECHO_T}$CXX" >&6
|
---|
| 2418 | else
|
---|
| 2419 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2420 | echo "${ECHO_T}no" >&6
|
---|
| 2421 | fi
|
---|
[8200] | 2422 |
|
---|
[8756] | 2423 | test -n "$CXX" && break
|
---|
| 2424 | done
|
---|
| 2425 | fi
|
---|
| 2426 | if test -z "$CXX"; then
|
---|
| 2427 | ac_ct_CXX=$CXX
|
---|
| 2428 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
| 2429 | do
|
---|
| 2430 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2431 | set dummy $ac_prog; ac_word=$2
|
---|
| 2432 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2433 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2434 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 2435 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2436 | else
|
---|
| 2437 | if test -n "$ac_ct_CXX"; then
|
---|
| 2438 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 2439 | else
|
---|
| 2440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2441 | for as_dir in $PATH
|
---|
| 2442 | do
|
---|
| 2443 | IFS=$as_save_IFS
|
---|
| 2444 | test -z "$as_dir" && as_dir=.
|
---|
| 2445 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2446 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2447 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
| 2448 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2449 | break 2
|
---|
| 2450 | fi
|
---|
| 2451 | done
|
---|
| 2452 | done
|
---|
[8200] | 2453 |
|
---|
[8756] | 2454 | fi
|
---|
| 2455 | fi
|
---|
| 2456 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 2457 | if test -n "$ac_ct_CXX"; then
|
---|
| 2458 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
| 2459 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
[3631] | 2460 | else
|
---|
[8756] | 2461 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2462 | echo "${ECHO_T}no" >&6
|
---|
[3631] | 2463 | fi
|
---|
[562] | 2464 |
|
---|
[8756] | 2465 | test -n "$ac_ct_CXX" && break
|
---|
| 2466 | done
|
---|
| 2467 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
| 2468 |
|
---|
| 2469 | CXX=$ac_ct_CXX
|
---|
[3631] | 2470 | fi
|
---|
[562] | 2471 |
|
---|
[8756] | 2472 |
|
---|
| 2473 | # Provide some information about the compiler.
|
---|
| 2474 | echo "$as_me:$LINENO:" \
|
---|
| 2475 | "checking for C++ compiler version" >&5
|
---|
| 2476 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 2477 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 2478 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 2479 | ac_status=$?
|
---|
| 2480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2481 | (exit $ac_status); }
|
---|
| 2482 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 2483 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 2484 | ac_status=$?
|
---|
| 2485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2486 | (exit $ac_status); }
|
---|
| 2487 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 2488 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 2489 | ac_status=$?
|
---|
| 2490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2491 | (exit $ac_status); }
|
---|
| 2492 |
|
---|
| 2493 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
| 2494 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
| 2495 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 2496 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3631] | 2497 | else
|
---|
[8756] | 2498 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2499 | /* confdefs.h. */
|
---|
| 2500 | _ACEOF
|
---|
| 2501 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2502 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2503 | /* end confdefs.h. */
|
---|
| 2504 |
|
---|
| 2505 | int
|
---|
| 2506 | main ()
|
---|
| 2507 | {
|
---|
| 2508 | #ifndef __GNUC__
|
---|
| 2509 | choke me
|
---|
[3631] | 2510 | #endif
|
---|
[8756] | 2511 |
|
---|
| 2512 | ;
|
---|
| 2513 | return 0;
|
---|
| 2514 | }
|
---|
| 2515 | _ACEOF
|
---|
| 2516 | rm -f conftest.$ac_objext
|
---|
| 2517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2518 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2519 | ac_status=$?
|
---|
| 2520 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2521 | rm -f conftest.er1
|
---|
| 2522 | cat conftest.err >&5
|
---|
| 2523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2524 | (exit $ac_status); } &&
|
---|
| 2525 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2526 | || test ! -s conftest.err'
|
---|
| 2527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2528 | (eval $ac_try) 2>&5
|
---|
| 2529 | ac_status=$?
|
---|
| 2530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2531 | (exit $ac_status); }; } &&
|
---|
| 2532 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2534 | (eval $ac_try) 2>&5
|
---|
| 2535 | ac_status=$?
|
---|
| 2536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2537 | (exit $ac_status); }; }; then
|
---|
| 2538 | ac_compiler_gnu=yes
|
---|
[8200] | 2539 | else
|
---|
[8756] | 2540 | echo "$as_me: failed program was:" >&5
|
---|
| 2541 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2542 |
|
---|
| 2543 | ac_compiler_gnu=no
|
---|
[8200] | 2544 | fi
|
---|
[8756] | 2545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2546 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 2547 |
|
---|
[8200] | 2548 | fi
|
---|
[8756] | 2549 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
| 2550 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
| 2551 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2552 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 2553 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
| 2554 | CXXFLAGS="-g"
|
---|
| 2555 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
| 2556 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
| 2557 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 2558 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2559 | else
|
---|
| 2560 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2561 | /* confdefs.h. */
|
---|
| 2562 | _ACEOF
|
---|
| 2563 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2564 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2565 | /* end confdefs.h. */
|
---|
[3631] | 2566 |
|
---|
[8756] | 2567 | int
|
---|
| 2568 | main ()
|
---|
| 2569 | {
|
---|
[8200] | 2570 |
|
---|
[8756] | 2571 | ;
|
---|
| 2572 | return 0;
|
---|
| 2573 | }
|
---|
| 2574 | _ACEOF
|
---|
| 2575 | rm -f conftest.$ac_objext
|
---|
| 2576 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2577 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2578 | ac_status=$?
|
---|
| 2579 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2580 | rm -f conftest.er1
|
---|
| 2581 | cat conftest.err >&5
|
---|
| 2582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2583 | (exit $ac_status); } &&
|
---|
| 2584 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2585 | || test ! -s conftest.err'
|
---|
| 2586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2587 | (eval $ac_try) 2>&5
|
---|
| 2588 | ac_status=$?
|
---|
| 2589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2590 | (exit $ac_status); }; } &&
|
---|
| 2591 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2593 | (eval $ac_try) 2>&5
|
---|
| 2594 | ac_status=$?
|
---|
| 2595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2596 | (exit $ac_status); }; }; then
|
---|
[562] | 2597 | ac_cv_prog_cxx_g=yes
|
---|
| 2598 | else
|
---|
[8756] | 2599 | echo "$as_me: failed program was:" >&5
|
---|
| 2600 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2601 |
|
---|
[8756] | 2602 | ac_cv_prog_cxx_g=no
|
---|
[562] | 2603 | fi
|
---|
[8756] | 2604 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2605 | fi
|
---|
| 2606 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
| 2607 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
[562] | 2608 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
[8756] | 2609 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
[562] | 2610 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 2611 | if test "$GXX" = yes; then
|
---|
| 2612 | CXXFLAGS="-g -O2"
|
---|
| 2613 | else
|
---|
| 2614 | CXXFLAGS="-g"
|
---|
| 2615 | fi
|
---|
| 2616 | else
|
---|
| 2617 | if test "$GXX" = yes; then
|
---|
| 2618 | CXXFLAGS="-O2"
|
---|
| 2619 | else
|
---|
| 2620 | CXXFLAGS=
|
---|
| 2621 | fi
|
---|
| 2622 | fi
|
---|
[8756] | 2623 | for ac_declaration in \
|
---|
| 2624 | '' \
|
---|
| 2625 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2626 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2627 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2628 | 'extern "C" void exit (int);' \
|
---|
| 2629 | 'void exit (int);'
|
---|
| 2630 | do
|
---|
| 2631 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2632 | /* confdefs.h. */
|
---|
| 2633 | _ACEOF
|
---|
| 2634 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2635 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2636 | /* end confdefs.h. */
|
---|
| 2637 | $ac_declaration
|
---|
| 2638 | #include <stdlib.h>
|
---|
| 2639 | int
|
---|
| 2640 | main ()
|
---|
| 2641 | {
|
---|
| 2642 | exit (42);
|
---|
| 2643 | ;
|
---|
| 2644 | return 0;
|
---|
| 2645 | }
|
---|
| 2646 | _ACEOF
|
---|
| 2647 | rm -f conftest.$ac_objext
|
---|
| 2648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2649 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2650 | ac_status=$?
|
---|
| 2651 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2652 | rm -f conftest.er1
|
---|
| 2653 | cat conftest.err >&5
|
---|
| 2654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2655 | (exit $ac_status); } &&
|
---|
| 2656 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2657 | || test ! -s conftest.err'
|
---|
| 2658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2659 | (eval $ac_try) 2>&5
|
---|
| 2660 | ac_status=$?
|
---|
| 2661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2662 | (exit $ac_status); }; } &&
|
---|
| 2663 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2665 | (eval $ac_try) 2>&5
|
---|
| 2666 | ac_status=$?
|
---|
| 2667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2668 | (exit $ac_status); }; }; then
|
---|
| 2669 | :
|
---|
| 2670 | else
|
---|
| 2671 | echo "$as_me: failed program was:" >&5
|
---|
| 2672 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[3063] | 2673 |
|
---|
[8756] | 2674 | continue
|
---|
| 2675 | fi
|
---|
| 2676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2677 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2678 | /* confdefs.h. */
|
---|
| 2679 | _ACEOF
|
---|
| 2680 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2681 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2682 | /* end confdefs.h. */
|
---|
| 2683 | $ac_declaration
|
---|
| 2684 | int
|
---|
| 2685 | main ()
|
---|
| 2686 | {
|
---|
| 2687 | exit (42);
|
---|
| 2688 | ;
|
---|
| 2689 | return 0;
|
---|
| 2690 | }
|
---|
| 2691 | _ACEOF
|
---|
| 2692 | rm -f conftest.$ac_objext
|
---|
| 2693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2694 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2695 | ac_status=$?
|
---|
| 2696 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2697 | rm -f conftest.er1
|
---|
| 2698 | cat conftest.err >&5
|
---|
| 2699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2700 | (exit $ac_status); } &&
|
---|
| 2701 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2702 | || test ! -s conftest.err'
|
---|
| 2703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2704 | (eval $ac_try) 2>&5
|
---|
| 2705 | ac_status=$?
|
---|
| 2706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2707 | (exit $ac_status); }; } &&
|
---|
| 2708 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2710 | (eval $ac_try) 2>&5
|
---|
| 2711 | ac_status=$?
|
---|
| 2712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2713 | (exit $ac_status); }; }; then
|
---|
| 2714 | break
|
---|
| 2715 | else
|
---|
| 2716 | echo "$as_me: failed program was:" >&5
|
---|
| 2717 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2718 |
|
---|
| 2719 | fi
|
---|
| 2720 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2721 | done
|
---|
| 2722 | rm -f conftest*
|
---|
| 2723 | if test -n "$ac_declaration"; then
|
---|
| 2724 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2725 | echo $ac_declaration >>confdefs.h
|
---|
| 2726 | echo '#endif' >>confdefs.h
|
---|
| 2727 | fi
|
---|
| 2728 |
|
---|
| 2729 | ac_ext=c
|
---|
| 2730 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2731 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2732 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2733 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2734 |
|
---|
| 2735 | for ac_prog in gawk mawk nawk awk
|
---|
[3063] | 2736 | do
|
---|
[8756] | 2737 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 2738 | set dummy $ac_prog; ac_word=$2
|
---|
[8756] | 2739 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2740 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2741 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 2742 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 2743 | else
|
---|
| 2744 | if test -n "$AWK"; then
|
---|
| 2745 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 2746 | else
|
---|
[8756] | 2747 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2748 | for as_dir in $PATH
|
---|
| 2749 | do
|
---|
| 2750 | IFS=$as_save_IFS
|
---|
| 2751 | test -z "$as_dir" && as_dir=.
|
---|
| 2752 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2753 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2754 | ac_cv_prog_AWK="$ac_prog"
|
---|
| 2755 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2756 | break 2
|
---|
| 2757 | fi
|
---|
| 2758 | done
|
---|
| 2759 | done
|
---|
| 2760 |
|
---|
[687] | 2761 | fi
|
---|
| 2762 | fi
|
---|
[8756] | 2763 | AWK=$ac_cv_prog_AWK
|
---|
[687] | 2764 | if test -n "$AWK"; then
|
---|
[8756] | 2765 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
| 2766 | echo "${ECHO_T}$AWK" >&6
|
---|
[687] | 2767 | else
|
---|
[8756] | 2768 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2769 | echo "${ECHO_T}no" >&6
|
---|
[687] | 2770 | fi
|
---|
| 2771 |
|
---|
[8756] | 2772 | test -n "$AWK" && break
|
---|
[687] | 2773 | done
|
---|
| 2774 |
|
---|
| 2775 | for ac_prog in 'bison -y' byacc
|
---|
| 2776 | do
|
---|
[8756] | 2777 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 2778 | set dummy $ac_prog; ac_word=$2
|
---|
[8756] | 2779 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2781 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 2782 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 2783 | else
|
---|
| 2784 | if test -n "$YACC"; then
|
---|
| 2785 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 2786 | else
|
---|
[8756] | 2787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2788 | for as_dir in $PATH
|
---|
| 2789 | do
|
---|
| 2790 | IFS=$as_save_IFS
|
---|
| 2791 | test -z "$as_dir" && as_dir=.
|
---|
| 2792 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2793 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2794 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 2795 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2796 | break 2
|
---|
| 2797 | fi
|
---|
| 2798 | done
|
---|
| 2799 | done
|
---|
| 2800 |
|
---|
[687] | 2801 | fi
|
---|
| 2802 | fi
|
---|
[8756] | 2803 | YACC=$ac_cv_prog_YACC
|
---|
[687] | 2804 | if test -n "$YACC"; then
|
---|
[8756] | 2805 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
| 2806 | echo "${ECHO_T}$YACC" >&6
|
---|
[687] | 2807 | else
|
---|
[8756] | 2808 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2809 | echo "${ECHO_T}no" >&6
|
---|
[687] | 2810 | fi
|
---|
| 2811 |
|
---|
[8756] | 2812 | test -n "$YACC" && break
|
---|
[687] | 2813 | done
|
---|
| 2814 | test -n "$YACC" || YACC="yacc"
|
---|
| 2815 |
|
---|
[703] | 2816 | ac_aux_dir=
|
---|
| 2817 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 2818 | if test -f $ac_dir/install-sh; then
|
---|
| 2819 | ac_aux_dir=$ac_dir
|
---|
| 2820 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 2821 | break
|
---|
| 2822 | elif test -f $ac_dir/install.sh; then
|
---|
| 2823 | ac_aux_dir=$ac_dir
|
---|
| 2824 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 2825 | break
|
---|
[8756] | 2826 | elif test -f $ac_dir/shtool; then
|
---|
| 2827 | ac_aux_dir=$ac_dir
|
---|
| 2828 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 2829 | break
|
---|
[703] | 2830 | fi
|
---|
| 2831 | done
|
---|
| 2832 | if test -z "$ac_aux_dir"; then
|
---|
[8756] | 2833 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
| 2834 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
| 2835 | { (exit 1); exit 1; }; }
|
---|
[703] | 2836 | fi
|
---|
[8756] | 2837 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
| 2838 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
| 2839 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
[703] | 2840 |
|
---|
[8756] | 2841 | # Make sure we can run config.sub.
|
---|
| 2842 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
| 2843 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
| 2844 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
| 2845 | { (exit 1); exit 1; }; }
|
---|
[2279] | 2846 |
|
---|
[8756] | 2847 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
| 2848 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
| 2849 | if test "${ac_cv_build+set}" = set; then
|
---|
| 2850 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2851 | else
|
---|
| 2852 | ac_cv_build_alias=$build_alias
|
---|
| 2853 | test -z "$ac_cv_build_alias" &&
|
---|
| 2854 | ac_cv_build_alias=`$ac_config_guess`
|
---|
| 2855 | test -z "$ac_cv_build_alias" &&
|
---|
| 2856 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
| 2857 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
| 2858 | { (exit 1); exit 1; }; }
|
---|
| 2859 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
| 2860 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
| 2861 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
| 2862 | { (exit 1); exit 1; }; }
|
---|
[2279] | 2863 |
|
---|
| 2864 | fi
|
---|
[8756] | 2865 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
| 2866 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
| 2867 | build=$ac_cv_build
|
---|
| 2868 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2869 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2870 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[2279] | 2871 |
|
---|
| 2872 |
|
---|
[8756] | 2873 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
| 2874 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
| 2875 | if test "${ac_cv_host+set}" = set; then
|
---|
| 2876 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2877 | else
|
---|
| 2878 | ac_cv_host_alias=$host_alias
|
---|
| 2879 | test -z "$ac_cv_host_alias" &&
|
---|
| 2880 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
| 2881 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
| 2882 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
| 2883 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
| 2884 | { (exit 1); exit 1; }; }
|
---|
[2279] | 2885 |
|
---|
[8756] | 2886 | fi
|
---|
| 2887 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
| 2888 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
| 2889 | host=$ac_cv_host
|
---|
| 2890 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2891 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2892 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[8200] | 2893 |
|
---|
| 2894 |
|
---|
[8756] | 2895 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
| 2896 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
| 2897 | if test "${ac_cv_target+set}" = set; then
|
---|
| 2898 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2899 | else
|
---|
| 2900 | ac_cv_target_alias=$target_alias
|
---|
| 2901 | test "x$ac_cv_target_alias" = "x" &&
|
---|
| 2902 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
| 2903 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
| 2904 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
| 2905 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
| 2906 | { (exit 1); exit 1; }; }
|
---|
[8200] | 2907 |
|
---|
[8756] | 2908 | fi
|
---|
| 2909 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
| 2910 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
| 2911 | target=$ac_cv_target
|
---|
| 2912 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2913 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2914 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[8200] | 2915 |
|
---|
| 2916 |
|
---|
[8756] | 2917 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 2918 | # will get canonicalized.
|
---|
| 2919 | test -n "$target_alias" &&
|
---|
[2279] | 2920 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 2921 | NONENONEs,x,x, &&
|
---|
| 2922 | program_prefix=${target_alias}-
|
---|
[703] | 2923 | # Find a good install program. We prefer a C program (faster),
|
---|
| 2924 | # so one script is as good as another. But avoid the broken or
|
---|
| 2925 | # incompatible versions:
|
---|
| 2926 | # SysV /etc/install, /usr/sbin/install
|
---|
| 2927 | # SunOS /usr/etc/install
|
---|
| 2928 | # IRIX /sbin/install
|
---|
| 2929 | # AIX /bin/install
|
---|
[8756] | 2930 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
[703] | 2931 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 2932 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 2933 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[8756] | 2934 | # OS/2's system install, which has a completely different semantic
|
---|
[703] | 2935 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[8756] | 2936 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 2937 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
[703] | 2938 | if test -z "$INSTALL"; then
|
---|
[8756] | 2939 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 2940 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[703] | 2941 | else
|
---|
[8756] | 2942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2943 | for as_dir in $PATH
|
---|
| 2944 | do
|
---|
| 2945 | IFS=$as_save_IFS
|
---|
| 2946 | test -z "$as_dir" && as_dir=.
|
---|
| 2947 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 2948 | case $as_dir/ in
|
---|
| 2949 | ./ | .// | /cC/* | \
|
---|
| 2950 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
| 2951 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
| 2952 | /usr/ucb/* ) ;;
|
---|
| 2953 | *)
|
---|
| 2954 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 2955 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 2956 | # by default.
|
---|
| 2957 | for ac_prog in ginstall scoinst install; do
|
---|
| 2958 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2959 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[703] | 2960 | if test $ac_prog = install &&
|
---|
[8756] | 2961 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[703] | 2962 | # AIX install. It has an incompatible calling convention.
|
---|
| 2963 | :
|
---|
[8756] | 2964 | elif test $ac_prog = install &&
|
---|
| 2965 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 2966 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 2967 | :
|
---|
[703] | 2968 | else
|
---|
[8756] | 2969 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 2970 | break 3
|
---|
[703] | 2971 | fi
|
---|
| 2972 | fi
|
---|
| 2973 | done
|
---|
[8756] | 2974 | done
|
---|
| 2975 | ;;
|
---|
| 2976 | esac
|
---|
| 2977 | done
|
---|
[703] | 2978 |
|
---|
[8756] | 2979 |
|
---|
[703] | 2980 | fi
|
---|
| 2981 | if test "${ac_cv_path_install+set}" = set; then
|
---|
[8756] | 2982 | INSTALL=$ac_cv_path_install
|
---|
[703] | 2983 | else
|
---|
| 2984 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 2985 | # path for INSTALL within a source directory, because that will
|
---|
| 2986 | # break other packages using the cache if that directory is
|
---|
| 2987 | # removed, or if the path is relative.
|
---|
[8756] | 2988 | INSTALL=$ac_install_sh
|
---|
[703] | 2989 | fi
|
---|
| 2990 | fi
|
---|
[8756] | 2991 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
| 2992 | echo "${ECHO_T}$INSTALL" >&6
|
---|
[703] | 2993 |
|
---|
| 2994 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 2995 | # It thinks the first close brace ends the variable substitution.
|
---|
| 2996 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 2997 |
|
---|
[8756] | 2998 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
[703] | 2999 |
|
---|
| 3000 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 3001 |
|
---|
[8756] | 3002 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
| 3003 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
| 3004 | LN_S=$as_ln_s
|
---|
| 3005 | if test "$LN_S" = "ln -s"; then
|
---|
| 3006 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3007 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 3008 | else
|
---|
[8756] | 3009 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
| 3010 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
[562] | 3011 | fi
|
---|
| 3012 |
|
---|
[8756] | 3013 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 3014 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
| 3015 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
| 3016 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
| 3017 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 3018 | else
|
---|
[8756] | 3019 | cat >conftest.make <<\_ACEOF
|
---|
[562] | 3020 | all:
|
---|
[8756] | 3021 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
| 3022 | _ACEOF
|
---|
[562] | 3023 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
[8756] | 3024 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
[562] | 3025 | if test -n "$ac_maketemp"; then
|
---|
| 3026 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 3027 | else
|
---|
| 3028 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 3029 | fi
|
---|
[8756] | 3030 | rm -f conftest.make
|
---|
[562] | 3031 | fi
|
---|
| 3032 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
[8756] | 3033 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3034 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 3035 | SET_MAKE=
|
---|
| 3036 | else
|
---|
[8756] | 3037 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3038 | echo "${ECHO_T}no" >&6
|
---|
[562] | 3039 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3040 | fi
|
---|
| 3041 |
|
---|
[8756] | 3042 | if test -n "$ac_tool_prefix"; then
|
---|
| 3043 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3044 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
| 3045 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3047 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
| 3048 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 3049 | else
|
---|
| 3050 | if test -n "$RANLIB"; then
|
---|
| 3051 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3052 | else
|
---|
[8756] | 3053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3054 | for as_dir in $PATH
|
---|
| 3055 | do
|
---|
| 3056 | IFS=$as_save_IFS
|
---|
| 3057 | test -z "$as_dir" && as_dir=.
|
---|
| 3058 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3059 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 3060 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
| 3061 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3062 | break 2
|
---|
| 3063 | fi
|
---|
| 3064 | done
|
---|
| 3065 | done
|
---|
| 3066 |
|
---|
[562] | 3067 | fi
|
---|
| 3068 | fi
|
---|
[8756] | 3069 | RANLIB=$ac_cv_prog_RANLIB
|
---|
[562] | 3070 | if test -n "$RANLIB"; then
|
---|
[8756] | 3071 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
| 3072 | echo "${ECHO_T}$RANLIB" >&6
|
---|
[562] | 3073 | else
|
---|
[8756] | 3074 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3075 | echo "${ECHO_T}no" >&6
|
---|
[562] | 3076 | fi
|
---|
| 3077 |
|
---|
[8756] | 3078 | fi
|
---|
| 3079 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3080 | ac_ct_RANLIB=$RANLIB
|
---|
| 3081 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3082 | set dummy ranlib; ac_word=$2
|
---|
| 3083 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3084 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3085 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 3086 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3087 | else
|
---|
| 3088 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3089 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3090 | else
|
---|
| 3091 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3092 | for as_dir in $PATH
|
---|
| 3093 | do
|
---|
| 3094 | IFS=$as_save_IFS
|
---|
| 3095 | test -z "$as_dir" && as_dir=.
|
---|
| 3096 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3097 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 3098 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
| 3099 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3100 | break 2
|
---|
| 3101 | fi
|
---|
| 3102 | done
|
---|
| 3103 | done
|
---|
[562] | 3104 |
|
---|
[8756] | 3105 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
| 3106 | fi
|
---|
| 3107 | fi
|
---|
| 3108 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 3109 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3110 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
| 3111 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
| 3112 | else
|
---|
| 3113 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3114 | echo "${ECHO_T}no" >&6
|
---|
| 3115 | fi
|
---|
| 3116 |
|
---|
| 3117 | RANLIB=$ac_ct_RANLIB
|
---|
| 3118 | else
|
---|
| 3119 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3120 | fi
|
---|
| 3121 |
|
---|
| 3122 |
|
---|
[15551] | 3123 | echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
|
---|
| 3124 | echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
|
---|
| 3125 | arch_64bit=no
|
---|
| 3126 | case "$host_cpu" in
|
---|
| 3127 | x86_64) arch_64bit=yes ;;
|
---|
| 3128 | esac
|
---|
| 3129 |
|
---|
| 3130 | if test "$arch_64bit" = yes; then
|
---|
| 3131 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3132 | echo "${ECHO_T}yes" >&6
|
---|
| 3133 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3134 | COMPAT32BITFLAGS="-m32"
|
---|
| 3135 | fi
|
---|
| 3136 | else
|
---|
| 3137 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3138 | echo "${ECHO_T}no" >&6
|
---|
| 3139 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3140 | COMPAT32BITFLAGS=
|
---|
| 3141 | fi
|
---|
| 3142 | fi
|
---|
| 3143 | export COMPAT32BITFLAGS
|
---|
| 3144 |
|
---|
| 3145 |
|
---|
| 3146 |
|
---|
[2173] | 3147 | #moved CORBA MICO directory test to get version of MICO
|
---|
| 3148 | if test $USE_CORBA = 1; then
|
---|
| 3149 |
|
---|
[2213] | 3150 | if test $MICO_DIR = "default"; then
|
---|
[2173] | 3151 | #do something
|
---|
| 3152 | MICO_INC="-I packages/mico/mico/include"
|
---|
| 3153 | else
|
---|
| 3154 | #build the micotest program
|
---|
| 3155 | MICO_INC= ""
|
---|
| 3156 | if test $MICO_DIR != yes; then
|
---|
| 3157 | MICO_INC="-I $MICO_DIR"
|
---|
| 3158 | fi
|
---|
| 3159 | fi
|
---|
| 3160 |
|
---|
| 3161 | #get MICO_VER value
|
---|
| 3162 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
| 3163 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
[2214] | 3164 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
[2173] | 3165 | sh -c "rm micotest"
|
---|
| 3166 | sh -c "rm micotest.o"
|
---|
| 3167 |
|
---|
| 3168 | #do test of MICO_VER
|
---|
| 3169 | if test MICO_VER != 0; then
|
---|
[8756] | 3170 | cat >>confdefs.h <<\_ACEOF
|
---|
[2173] | 3171 | #define MICO_VER 1
|
---|
[8756] | 3172 | _ACEOF
|
---|
[2173] | 3173 |
|
---|
[8200] | 3174 |
|
---|
[2173] | 3175 | fi
|
---|
| 3176 | #end USE_CORBA test
|
---|
| 3177 | fi
|
---|
| 3178 |
|
---|
[8756] | 3179 |
|
---|
| 3180 | ac_ext=c
|
---|
| 3181 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3182 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3183 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3184 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3185 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
| 3186 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
[687] | 3187 | # On Suns, sometimes $CPP names a directory.
|
---|
| 3188 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 3189 | CPP=
|
---|
| 3190 | fi
|
---|
| 3191 | if test -z "$CPP"; then
|
---|
[8756] | 3192 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 3193 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3194 | else
|
---|
[8756] | 3195 | # Double quotes because CPP needs to be expanded
|
---|
| 3196 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 3197 | do
|
---|
| 3198 | ac_preproc_ok=false
|
---|
| 3199 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3200 | do
|
---|
| 3201 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3202 | # with a fresh cross-compiler works.
|
---|
| 3203 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3204 | # <limits.h> exists even on freestanding compilers.
|
---|
[687] | 3205 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
[8756] | 3206 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3207 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3208 | /* confdefs.h. */
|
---|
| 3209 | _ACEOF
|
---|
| 3210 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3211 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3212 | /* end confdefs.h. */
|
---|
| 3213 | #ifdef __STDC__
|
---|
| 3214 | # include <limits.h>
|
---|
| 3215 | #else
|
---|
| 3216 | # include <assert.h>
|
---|
| 3217 | #endif
|
---|
| 3218 | Syntax error
|
---|
| 3219 | _ACEOF
|
---|
| 3220 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3221 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3222 | ac_status=$?
|
---|
| 3223 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3224 | rm -f conftest.er1
|
---|
| 3225 | cat conftest.err >&5
|
---|
| 3226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3227 | (exit $ac_status); } >/dev/null; then
|
---|
| 3228 | if test -s conftest.err; then
|
---|
| 3229 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3230 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3231 | else
|
---|
| 3232 | ac_cpp_err=
|
---|
| 3233 | fi
|
---|
[687] | 3234 | else
|
---|
[8756] | 3235 | ac_cpp_err=yes
|
---|
| 3236 | fi
|
---|
| 3237 | if test -z "$ac_cpp_err"; then
|
---|
[8200] | 3238 | :
|
---|
[687] | 3239 | else
|
---|
[8756] | 3240 | echo "$as_me: failed program was:" >&5
|
---|
| 3241 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3242 |
|
---|
| 3243 | # Broken: fails on valid input.
|
---|
| 3244 | continue
|
---|
| 3245 | fi
|
---|
| 3246 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3247 |
|
---|
| 3248 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3249 | # can be detected and how.
|
---|
| 3250 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3251 | /* confdefs.h. */
|
---|
| 3252 | _ACEOF
|
---|
| 3253 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3254 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3255 | /* end confdefs.h. */
|
---|
| 3256 | #include <ac_nonexistent.h>
|
---|
| 3257 | _ACEOF
|
---|
| 3258 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3259 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3260 | ac_status=$?
|
---|
| 3261 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3262 | rm -f conftest.er1
|
---|
| 3263 | cat conftest.err >&5
|
---|
| 3264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3265 | (exit $ac_status); } >/dev/null; then
|
---|
| 3266 | if test -s conftest.err; then
|
---|
| 3267 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3268 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3269 | else
|
---|
| 3270 | ac_cpp_err=
|
---|
| 3271 | fi
|
---|
| 3272 | else
|
---|
| 3273 | ac_cpp_err=yes
|
---|
| 3274 | fi
|
---|
| 3275 | if test -z "$ac_cpp_err"; then
|
---|
| 3276 | # Broken: success on invalid input.
|
---|
| 3277 | continue
|
---|
| 3278 | else
|
---|
| 3279 | echo "$as_me: failed program was:" >&5
|
---|
| 3280 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3281 |
|
---|
| 3282 | # Passes both tests.
|
---|
| 3283 | ac_preproc_ok=:
|
---|
| 3284 | break
|
---|
| 3285 | fi
|
---|
| 3286 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3287 |
|
---|
| 3288 | done
|
---|
| 3289 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3290 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3291 | if $ac_preproc_ok; then
|
---|
| 3292 | break
|
---|
| 3293 | fi
|
---|
| 3294 |
|
---|
| 3295 | done
|
---|
| 3296 | ac_cv_prog_CPP=$CPP
|
---|
| 3297 |
|
---|
| 3298 | fi
|
---|
| 3299 | CPP=$ac_cv_prog_CPP
|
---|
| 3300 | else
|
---|
| 3301 | ac_cv_prog_CPP=$CPP
|
---|
| 3302 | fi
|
---|
| 3303 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
| 3304 | echo "${ECHO_T}$CPP" >&6
|
---|
| 3305 | ac_preproc_ok=false
|
---|
| 3306 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3307 | do
|
---|
| 3308 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3309 | # with a fresh cross-compiler works.
|
---|
| 3310 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3311 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3312 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3313 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3314 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3315 | /* confdefs.h. */
|
---|
| 3316 | _ACEOF
|
---|
| 3317 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3318 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3319 | /* end confdefs.h. */
|
---|
| 3320 | #ifdef __STDC__
|
---|
| 3321 | # include <limits.h>
|
---|
| 3322 | #else
|
---|
| 3323 | # include <assert.h>
|
---|
| 3324 | #endif
|
---|
| 3325 | Syntax error
|
---|
| 3326 | _ACEOF
|
---|
| 3327 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3328 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3329 | ac_status=$?
|
---|
| 3330 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3331 | rm -f conftest.er1
|
---|
| 3332 | cat conftest.err >&5
|
---|
| 3333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3334 | (exit $ac_status); } >/dev/null; then
|
---|
| 3335 | if test -s conftest.err; then
|
---|
| 3336 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3337 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3338 | else
|
---|
| 3339 | ac_cpp_err=
|
---|
| 3340 | fi
|
---|
| 3341 | else
|
---|
| 3342 | ac_cpp_err=yes
|
---|
| 3343 | fi
|
---|
| 3344 | if test -z "$ac_cpp_err"; then
|
---|
[687] | 3345 | :
|
---|
| 3346 | else
|
---|
[8756] | 3347 | echo "$as_me: failed program was:" >&5
|
---|
| 3348 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3349 |
|
---|
| 3350 | # Broken: fails on valid input.
|
---|
| 3351 | continue
|
---|
[687] | 3352 | fi
|
---|
[8756] | 3353 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3354 |
|
---|
| 3355 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3356 | # can be detected and how.
|
---|
| 3357 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3358 | /* confdefs.h. */
|
---|
| 3359 | _ACEOF
|
---|
| 3360 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3361 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3362 | /* end confdefs.h. */
|
---|
| 3363 | #include <ac_nonexistent.h>
|
---|
| 3364 | _ACEOF
|
---|
| 3365 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3366 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3367 | ac_status=$?
|
---|
| 3368 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3369 | rm -f conftest.er1
|
---|
| 3370 | cat conftest.err >&5
|
---|
| 3371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3372 | (exit $ac_status); } >/dev/null; then
|
---|
| 3373 | if test -s conftest.err; then
|
---|
| 3374 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3375 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3376 | else
|
---|
| 3377 | ac_cpp_err=
|
---|
| 3378 | fi
|
---|
| 3379 | else
|
---|
| 3380 | ac_cpp_err=yes
|
---|
[687] | 3381 | fi
|
---|
[8756] | 3382 | if test -z "$ac_cpp_err"; then
|
---|
| 3383 | # Broken: success on invalid input.
|
---|
| 3384 | continue
|
---|
| 3385 | else
|
---|
| 3386 | echo "$as_me: failed program was:" >&5
|
---|
| 3387 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3388 |
|
---|
| 3389 | # Passes both tests.
|
---|
| 3390 | ac_preproc_ok=:
|
---|
| 3391 | break
|
---|
[687] | 3392 | fi
|
---|
[8756] | 3393 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3394 |
|
---|
| 3395 | done
|
---|
| 3396 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3397 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3398 | if $ac_preproc_ok; then
|
---|
| 3399 | :
|
---|
| 3400 | else
|
---|
| 3401 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3402 | See \`config.log' for more details." >&5
|
---|
| 3403 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3404 | See \`config.log' for more details." >&2;}
|
---|
| 3405 | { (exit 1); exit 1; }; }
|
---|
[8200] | 3406 | fi
|
---|
[8756] | 3407 |
|
---|
| 3408 | ac_ext=c
|
---|
| 3409 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3410 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3411 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3412 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3413 |
|
---|
| 3414 |
|
---|
| 3415 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 3416 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
| 3417 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
| 3418 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3419 | else
|
---|
[8756] | 3420 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
| 3421 | then ac_cv_prog_egrep='grep -E'
|
---|
| 3422 | else ac_cv_prog_egrep='egrep'
|
---|
| 3423 | fi
|
---|
[687] | 3424 | fi
|
---|
[8756] | 3425 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
| 3426 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
| 3427 | EGREP=$ac_cv_prog_egrep
|
---|
[687] | 3428 |
|
---|
[8756] | 3429 |
|
---|
| 3430 |
|
---|
| 3431 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
| 3432 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
| 3433 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3434 | /* confdefs.h. */
|
---|
| 3435 | _ACEOF
|
---|
| 3436 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3437 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3438 | /* end confdefs.h. */
|
---|
[687] | 3439 | #ifdef _AIX
|
---|
| 3440 | yes
|
---|
| 3441 | #endif
|
---|
| 3442 |
|
---|
[8756] | 3443 | _ACEOF
|
---|
[687] | 3444 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 3445 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
| 3446 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3447 | echo "${ECHO_T}yes" >&6
|
---|
| 3448 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3449 | #define _ALL_SOURCE 1
|
---|
[8756] | 3450 | _ACEOF
|
---|
[687] | 3451 |
|
---|
| 3452 | else
|
---|
[8756] | 3453 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3454 | echo "${ECHO_T}no" >&6
|
---|
[687] | 3455 | fi
|
---|
| 3456 | rm -f conftest*
|
---|
| 3457 |
|
---|
[8200] | 3458 |
|
---|
[8756] | 3459 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 3460 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
| 3461 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 3462 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3463 | else
|
---|
| 3464 | ac_func_search_save_LIBS=$LIBS
|
---|
| 3465 | ac_cv_search_strerror=no
|
---|
| 3466 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3467 | /* confdefs.h. */
|
---|
| 3468 | _ACEOF
|
---|
| 3469 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3470 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3471 | /* end confdefs.h. */
|
---|
[687] | 3472 |
|
---|
[8756] | 3473 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3474 | #ifdef __cplusplus
|
---|
| 3475 | extern "C"
|
---|
| 3476 | #endif
|
---|
| 3477 | /* We use char because int might match the return type of a gcc2
|
---|
| 3478 | builtin and then its argument prototype would still apply. */
|
---|
| 3479 | char strerror ();
|
---|
| 3480 | int
|
---|
| 3481 | main ()
|
---|
| 3482 | {
|
---|
| 3483 | strerror ();
|
---|
| 3484 | ;
|
---|
| 3485 | return 0;
|
---|
| 3486 | }
|
---|
| 3487 | _ACEOF
|
---|
| 3488 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3489 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3490 | (eval $ac_link) 2>conftest.er1
|
---|
| 3491 | ac_status=$?
|
---|
| 3492 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3493 | rm -f conftest.er1
|
---|
| 3494 | cat conftest.err >&5
|
---|
| 3495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3496 | (exit $ac_status); } &&
|
---|
| 3497 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3498 | || test ! -s conftest.err'
|
---|
| 3499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3500 | (eval $ac_try) 2>&5
|
---|
| 3501 | ac_status=$?
|
---|
| 3502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3503 | (exit $ac_status); }; } &&
|
---|
| 3504 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3506 | (eval $ac_try) 2>&5
|
---|
| 3507 | ac_status=$?
|
---|
| 3508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3509 | (exit $ac_status); }; }; then
|
---|
| 3510 | ac_cv_search_strerror="none required"
|
---|
[687] | 3511 | else
|
---|
[8756] | 3512 | echo "$as_me: failed program was:" >&5
|
---|
| 3513 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3514 |
|
---|
[687] | 3515 | fi
|
---|
[8756] | 3516 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3517 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3518 | if test "$ac_cv_search_strerror" = no; then
|
---|
| 3519 | for ac_lib in cposix; do
|
---|
| 3520 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 3521 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3522 | /* confdefs.h. */
|
---|
| 3523 | _ACEOF
|
---|
| 3524 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3525 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3526 | /* end confdefs.h. */
|
---|
[687] | 3527 |
|
---|
[8756] | 3528 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3529 | #ifdef __cplusplus
|
---|
| 3530 | extern "C"
|
---|
| 3531 | #endif
|
---|
| 3532 | /* We use char because int might match the return type of a gcc2
|
---|
| 3533 | builtin and then its argument prototype would still apply. */
|
---|
| 3534 | char strerror ();
|
---|
| 3535 | int
|
---|
| 3536 | main ()
|
---|
| 3537 | {
|
---|
| 3538 | strerror ();
|
---|
| 3539 | ;
|
---|
| 3540 | return 0;
|
---|
| 3541 | }
|
---|
| 3542 | _ACEOF
|
---|
| 3543 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3544 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3545 | (eval $ac_link) 2>conftest.er1
|
---|
| 3546 | ac_status=$?
|
---|
| 3547 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3548 | rm -f conftest.er1
|
---|
| 3549 | cat conftest.err >&5
|
---|
| 3550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3551 | (exit $ac_status); } &&
|
---|
| 3552 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3553 | || test ! -s conftest.err'
|
---|
| 3554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3555 | (eval $ac_try) 2>&5
|
---|
| 3556 | ac_status=$?
|
---|
| 3557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3558 | (exit $ac_status); }; } &&
|
---|
| 3559 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3561 | (eval $ac_try) 2>&5
|
---|
| 3562 | ac_status=$?
|
---|
| 3563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3564 | (exit $ac_status); }; }; then
|
---|
| 3565 | ac_cv_search_strerror="-l$ac_lib"
|
---|
| 3566 | break
|
---|
[687] | 3567 | else
|
---|
[8756] | 3568 | echo "$as_me: failed program was:" >&5
|
---|
| 3569 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3570 |
|
---|
| 3571 | fi
|
---|
| 3572 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3573 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3574 | done
|
---|
| 3575 | fi
|
---|
| 3576 | LIBS=$ac_func_search_save_LIBS
|
---|
| 3577 | fi
|
---|
| 3578 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 3579 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
| 3580 | if test "$ac_cv_search_strerror" != no; then
|
---|
| 3581 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
| 3582 |
|
---|
| 3583 | fi
|
---|
| 3584 |
|
---|
| 3585 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 3586 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 3587 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 3588 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3589 | else
|
---|
[8756] | 3590 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3591 | /* confdefs.h. */
|
---|
| 3592 | _ACEOF
|
---|
| 3593 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3594 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3595 | /* end confdefs.h. */
|
---|
| 3596 | #include <stdlib.h>
|
---|
| 3597 | #include <stdarg.h>
|
---|
| 3598 | #include <string.h>
|
---|
| 3599 | #include <float.h>
|
---|
| 3600 |
|
---|
| 3601 | int
|
---|
| 3602 | main ()
|
---|
| 3603 | {
|
---|
| 3604 |
|
---|
| 3605 | ;
|
---|
| 3606 | return 0;
|
---|
| 3607 | }
|
---|
| 3608 | _ACEOF
|
---|
| 3609 | rm -f conftest.$ac_objext
|
---|
| 3610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3611 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3612 | ac_status=$?
|
---|
| 3613 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3614 | rm -f conftest.er1
|
---|
| 3615 | cat conftest.err >&5
|
---|
| 3616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3617 | (exit $ac_status); } &&
|
---|
| 3618 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3619 | || test ! -s conftest.err'
|
---|
| 3620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3621 | (eval $ac_try) 2>&5
|
---|
| 3622 | ac_status=$?
|
---|
| 3623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3624 | (exit $ac_status); }; } &&
|
---|
| 3625 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3627 | (eval $ac_try) 2>&5
|
---|
| 3628 | ac_status=$?
|
---|
| 3629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3630 | (exit $ac_status); }; }; then
|
---|
| 3631 | ac_cv_header_stdc=yes
|
---|
| 3632 | else
|
---|
| 3633 | echo "$as_me: failed program was:" >&5
|
---|
| 3634 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3635 |
|
---|
| 3636 | ac_cv_header_stdc=no
|
---|
[687] | 3637 | fi
|
---|
[8756] | 3638 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3639 |
|
---|
| 3640 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3641 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 3642 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3643 | /* confdefs.h. */
|
---|
| 3644 | _ACEOF
|
---|
| 3645 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3646 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3647 | /* end confdefs.h. */
|
---|
| 3648 | #include <string.h>
|
---|
| 3649 |
|
---|
| 3650 | _ACEOF
|
---|
| 3651 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3652 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 3653 | :
|
---|
| 3654 | else
|
---|
| 3655 | ac_cv_header_stdc=no
|
---|
| 3656 | fi
|
---|
[8200] | 3657 | rm -f conftest*
|
---|
[8756] | 3658 |
|
---|
[687] | 3659 | fi
|
---|
[8756] | 3660 |
|
---|
| 3661 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3662 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 3663 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3664 | /* confdefs.h. */
|
---|
| 3665 | _ACEOF
|
---|
| 3666 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3667 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3668 | /* end confdefs.h. */
|
---|
| 3669 | #include <stdlib.h>
|
---|
| 3670 |
|
---|
| 3671 | _ACEOF
|
---|
| 3672 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3673 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 3674 | :
|
---|
| 3675 | else
|
---|
| 3676 | ac_cv_header_stdc=no
|
---|
| 3677 | fi
|
---|
| 3678 | rm -f conftest*
|
---|
| 3679 |
|
---|
| 3680 | fi
|
---|
| 3681 |
|
---|
| 3682 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3683 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 3684 | if test "$cross_compiling" = yes; then
|
---|
| 3685 | :
|
---|
| 3686 | else
|
---|
| 3687 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3688 | /* confdefs.h. */
|
---|
| 3689 | _ACEOF
|
---|
| 3690 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3691 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3692 | /* end confdefs.h. */
|
---|
| 3693 | #include <ctype.h>
|
---|
| 3694 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 3695 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 3696 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 3697 | #else
|
---|
| 3698 | # define ISLOWER(c) \
|
---|
| 3699 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 3700 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 3701 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 3702 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 3703 | #endif
|
---|
| 3704 |
|
---|
| 3705 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 3706 | int
|
---|
| 3707 | main ()
|
---|
| 3708 | {
|
---|
| 3709 | int i;
|
---|
| 3710 | for (i = 0; i < 256; i++)
|
---|
| 3711 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 3712 | || toupper (i) != TOUPPER (i))
|
---|
| 3713 | exit(2);
|
---|
| 3714 | exit (0);
|
---|
| 3715 | }
|
---|
| 3716 | _ACEOF
|
---|
| 3717 | rm -f conftest$ac_exeext
|
---|
| 3718 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3719 | (eval $ac_link) 2>&5
|
---|
| 3720 | ac_status=$?
|
---|
| 3721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3722 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 3723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3724 | (eval $ac_try) 2>&5
|
---|
| 3725 | ac_status=$?
|
---|
| 3726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3727 | (exit $ac_status); }; }; then
|
---|
| 3728 | :
|
---|
| 3729 | else
|
---|
| 3730 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 3731 | echo "$as_me: failed program was:" >&5
|
---|
| 3732 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3733 |
|
---|
| 3734 | ( exit $ac_status )
|
---|
| 3735 | ac_cv_header_stdc=no
|
---|
| 3736 | fi
|
---|
| 3737 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 3738 | fi
|
---|
| 3739 | fi
|
---|
| 3740 | fi
|
---|
| 3741 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 3742 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 3743 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3744 |
|
---|
| 3745 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3746 | #define STDC_HEADERS 1
|
---|
| 3747 | _ACEOF
|
---|
| 3748 |
|
---|
| 3749 | fi
|
---|
| 3750 |
|
---|
| 3751 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 3752 |
|
---|
| 3753 |
|
---|
| 3754 |
|
---|
| 3755 |
|
---|
| 3756 |
|
---|
| 3757 |
|
---|
| 3758 |
|
---|
| 3759 |
|
---|
| 3760 |
|
---|
| 3761 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 3762 | inttypes.h stdint.h unistd.h
|
---|
| 3763 | do
|
---|
| 3764 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 3765 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 3766 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 3767 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 3768 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3769 | else
|
---|
| 3770 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3771 | /* confdefs.h. */
|
---|
| 3772 | _ACEOF
|
---|
| 3773 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3774 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3775 | /* end confdefs.h. */
|
---|
| 3776 | $ac_includes_default
|
---|
| 3777 |
|
---|
| 3778 | #include <$ac_header>
|
---|
| 3779 | _ACEOF
|
---|
| 3780 | rm -f conftest.$ac_objext
|
---|
| 3781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3782 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3783 | ac_status=$?
|
---|
| 3784 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3785 | rm -f conftest.er1
|
---|
| 3786 | cat conftest.err >&5
|
---|
| 3787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3788 | (exit $ac_status); } &&
|
---|
| 3789 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3790 | || test ! -s conftest.err'
|
---|
| 3791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3792 | (eval $ac_try) 2>&5
|
---|
| 3793 | ac_status=$?
|
---|
| 3794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3795 | (exit $ac_status); }; } &&
|
---|
| 3796 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3798 | (eval $ac_try) 2>&5
|
---|
| 3799 | ac_status=$?
|
---|
| 3800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3801 | (exit $ac_status); }; }; then
|
---|
| 3802 | eval "$as_ac_Header=yes"
|
---|
| 3803 | else
|
---|
| 3804 | echo "$as_me: failed program was:" >&5
|
---|
| 3805 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3806 |
|
---|
| 3807 | eval "$as_ac_Header=no"
|
---|
| 3808 | fi
|
---|
| 3809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3810 | fi
|
---|
| 3811 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 3812 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 3813 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 3814 | cat >>confdefs.h <<_ACEOF
|
---|
| 3815 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 3816 | _ACEOF
|
---|
| 3817 |
|
---|
| 3818 | fi
|
---|
| 3819 |
|
---|
| 3820 | done
|
---|
| 3821 |
|
---|
| 3822 |
|
---|
| 3823 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3824 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3825 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3826 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3827 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3828 | fi
|
---|
| 3829 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3830 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
| 3831 | else
|
---|
| 3832 | # Is the header compilable?
|
---|
| 3833 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 3834 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
| 3835 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3836 | /* confdefs.h. */
|
---|
| 3837 | _ACEOF
|
---|
| 3838 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3839 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3840 | /* end confdefs.h. */
|
---|
| 3841 | $ac_includes_default
|
---|
| 3842 | #include <minix/config.h>
|
---|
| 3843 | _ACEOF
|
---|
| 3844 | rm -f conftest.$ac_objext
|
---|
| 3845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3846 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3847 | ac_status=$?
|
---|
| 3848 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3849 | rm -f conftest.er1
|
---|
| 3850 | cat conftest.err >&5
|
---|
| 3851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3852 | (exit $ac_status); } &&
|
---|
| 3853 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3854 | || test ! -s conftest.err'
|
---|
| 3855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3856 | (eval $ac_try) 2>&5
|
---|
| 3857 | ac_status=$?
|
---|
| 3858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3859 | (exit $ac_status); }; } &&
|
---|
| 3860 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3862 | (eval $ac_try) 2>&5
|
---|
| 3863 | ac_status=$?
|
---|
| 3864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3865 | (exit $ac_status); }; }; then
|
---|
| 3866 | ac_header_compiler=yes
|
---|
| 3867 | else
|
---|
| 3868 | echo "$as_me: failed program was:" >&5
|
---|
| 3869 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3870 |
|
---|
| 3871 | ac_header_compiler=no
|
---|
| 3872 | fi
|
---|
| 3873 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3874 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 3875 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 3876 |
|
---|
| 3877 | # Is the header present?
|
---|
| 3878 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 3879 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
| 3880 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3881 | /* confdefs.h. */
|
---|
| 3882 | _ACEOF
|
---|
| 3883 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3884 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3885 | /* end confdefs.h. */
|
---|
| 3886 | #include <minix/config.h>
|
---|
| 3887 | _ACEOF
|
---|
| 3888 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3889 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3890 | ac_status=$?
|
---|
| 3891 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3892 | rm -f conftest.er1
|
---|
| 3893 | cat conftest.err >&5
|
---|
| 3894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3895 | (exit $ac_status); } >/dev/null; then
|
---|
| 3896 | if test -s conftest.err; then
|
---|
| 3897 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3898 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3899 | else
|
---|
| 3900 | ac_cpp_err=
|
---|
| 3901 | fi
|
---|
| 3902 | else
|
---|
| 3903 | ac_cpp_err=yes
|
---|
| 3904 | fi
|
---|
| 3905 | if test -z "$ac_cpp_err"; then
|
---|
| 3906 | ac_header_preproc=yes
|
---|
| 3907 | else
|
---|
| 3908 | echo "$as_me: failed program was:" >&5
|
---|
| 3909 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3910 |
|
---|
| 3911 | ac_header_preproc=no
|
---|
| 3912 | fi
|
---|
| 3913 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3914 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 3915 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 3916 |
|
---|
| 3917 | # So? What about this header?
|
---|
| 3918 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 3919 | yes:no: )
|
---|
| 3920 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 3921 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 3922 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 3923 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 3924 | ac_header_preproc=yes
|
---|
| 3925 | ;;
|
---|
| 3926 | no:yes:* )
|
---|
| 3927 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 3928 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 3929 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 3930 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 3931 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 3932 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 3933 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 3934 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 3935 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 3936 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 3937 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 3938 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 3939 | (
|
---|
| 3940 | cat <<\_ASBOX
|
---|
| 3941 | ## ------------------------------------------ ##
|
---|
| 3942 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 3943 | ## ------------------------------------------ ##
|
---|
| 3944 | _ASBOX
|
---|
| 3945 | ) |
|
---|
| 3946 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 3947 | ;;
|
---|
| 3948 | esac
|
---|
| 3949 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3950 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3951 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3952 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3953 | else
|
---|
| 3954 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
| 3955 | fi
|
---|
| 3956 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3957 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
| 3958 |
|
---|
| 3959 | fi
|
---|
| 3960 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
[687] | 3961 | MINIX=yes
|
---|
| 3962 | else
|
---|
[8756] | 3963 | MINIX=
|
---|
[687] | 3964 | fi
|
---|
| 3965 |
|
---|
[8756] | 3966 |
|
---|
[687] | 3967 | if test "$MINIX" = yes; then
|
---|
[8756] | 3968 |
|
---|
| 3969 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3970 | #define _POSIX_SOURCE 1
|
---|
[8756] | 3971 | _ACEOF
|
---|
[687] | 3972 |
|
---|
[8756] | 3973 |
|
---|
| 3974 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3975 | #define _POSIX_1_SOURCE 2
|
---|
[8756] | 3976 | _ACEOF
|
---|
[687] | 3977 |
|
---|
[8756] | 3978 |
|
---|
| 3979 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3980 | #define _MINIX 1
|
---|
[8756] | 3981 | _ACEOF
|
---|
[687] | 3982 |
|
---|
| 3983 | fi
|
---|
| 3984 |
|
---|
[8756] | 3985 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
| 3986 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
| 3987 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 3988 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[700] | 3989 | else
|
---|
| 3990 | ac_cv_prog_cc_stdc=no
|
---|
| 3991 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 3992 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 3993 | # breaks some systems' header files.
|
---|
| 3994 | # AIX -qlanglvl=ansi
|
---|
| 3995 | # Ultrix and OSF/1 -std1
|
---|
| 3996 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 3997 | # SVR4 -Xc
|
---|
| 3998 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 3999 | do
|
---|
| 4000 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[8756] | 4001 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4002 | /* confdefs.h. */
|
---|
| 4003 | _ACEOF
|
---|
| 4004 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4005 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4006 | /* end confdefs.h. */
|
---|
[700] | 4007 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 4008 | choke me
|
---|
[8756] | 4009 | #endif
|
---|
[700] | 4010 |
|
---|
[8756] | 4011 | int
|
---|
| 4012 | main ()
|
---|
| 4013 | {
|
---|
[700] | 4014 | int test (int i, double x);
|
---|
| 4015 | struct s1 {int (*f) (int a);};
|
---|
| 4016 | struct s2 {int (*f) (double a);};
|
---|
[8756] | 4017 | ;
|
---|
| 4018 | return 0;
|
---|
| 4019 | }
|
---|
| 4020 | _ACEOF
|
---|
| 4021 | rm -f conftest.$ac_objext
|
---|
| 4022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4023 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4024 | ac_status=$?
|
---|
| 4025 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4026 | rm -f conftest.er1
|
---|
| 4027 | cat conftest.err >&5
|
---|
| 4028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4029 | (exit $ac_status); } &&
|
---|
| 4030 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4031 | || test ! -s conftest.err'
|
---|
| 4032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4033 | (eval $ac_try) 2>&5
|
---|
| 4034 | ac_status=$?
|
---|
| 4035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4036 | (exit $ac_status); }; } &&
|
---|
| 4037 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4039 | (eval $ac_try) 2>&5
|
---|
| 4040 | ac_status=$?
|
---|
| 4041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4042 | (exit $ac_status); }; }; then
|
---|
[700] | 4043 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 4044 | else
|
---|
[8756] | 4045 | echo "$as_me: failed program was:" >&5
|
---|
| 4046 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4047 |
|
---|
[700] | 4048 | fi
|
---|
[8756] | 4049 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[700] | 4050 | done
|
---|
| 4051 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 4052 |
|
---|
| 4053 | fi
|
---|
| 4054 |
|
---|
[8756] | 4055 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 4056 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
[700] | 4057 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 4058 | x|xno) ;;
|
---|
| 4059 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 4060 | esac
|
---|
| 4061 |
|
---|
[8200] | 4062 |
|
---|
[8756] | 4063 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
| 4064 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
[700] | 4065 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[8756] | 4066 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 4067 | echo "${ECHO_T}yes" >&6
|
---|
| 4068 | cat >>confdefs.h <<\_ACEOF
|
---|
[700] | 4069 | #define PROTOTYPES 1
|
---|
[8756] | 4070 | _ACEOF
|
---|
[700] | 4071 |
|
---|
| 4072 | U= ANSI2KNR=
|
---|
| 4073 | else
|
---|
[8756] | 4074 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4075 | echo "${ECHO_T}no" >&6
|
---|
[700] | 4076 | U=_ ANSI2KNR=ansi2knr
|
---|
| 4077 | fi
|
---|
| 4078 |
|
---|
[8756] | 4079 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
| 4080 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
| 4081 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 4082 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4083 | else
|
---|
[8756] | 4084 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4085 | /* confdefs.h. */
|
---|
| 4086 | _ACEOF
|
---|
| 4087 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4088 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4089 | /* end confdefs.h. */
|
---|
[8200] | 4090 |
|
---|
[8756] | 4091 | int
|
---|
| 4092 | main ()
|
---|
| 4093 | {
|
---|
| 4094 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 4095 | #ifndef __cplusplus
|
---|
| 4096 | /* Ultrix mips cc rejects this. */
|
---|
| 4097 | typedef int charset[2];
|
---|
| 4098 | const charset x;
|
---|
| 4099 | /* SunOS 4.1.1 cc rejects this. */
|
---|
| 4100 | char const *const *ccp;
|
---|
| 4101 | char **p;
|
---|
| 4102 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 4103 | struct point {int x, y;};
|
---|
| 4104 | static struct point const zero = {0,0};
|
---|
| 4105 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 4106 | It does not let you subtract one const X* pointer from another in
|
---|
| 4107 | an arm of an if-expression whose if-part is not a constant
|
---|
| 4108 | expression */
|
---|
| 4109 | const char *g = "string";
|
---|
| 4110 | ccp = &g + (g ? g-g : 0);
|
---|
| 4111 | /* HPUX 7.0 cc rejects these. */
|
---|
| 4112 | ++ccp;
|
---|
| 4113 | p = (char**) ccp;
|
---|
| 4114 | ccp = (char const *const *) p;
|
---|
| 4115 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4116 | char *t;
|
---|
| 4117 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
[8200] | 4118 |
|
---|
[8756] | 4119 | *t++ = 0;
|
---|
| 4120 | }
|
---|
| 4121 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4122 | int x[] = {25, 17};
|
---|
| 4123 | const int *foo = &x[0];
|
---|
| 4124 | ++foo;
|
---|
| 4125 | }
|
---|
| 4126 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4127 | typedef const int *iptr;
|
---|
| 4128 | iptr p = 0;
|
---|
| 4129 | ++p;
|
---|
| 4130 | }
|
---|
| 4131 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4132 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4133 | struct s { int j; const int *ap[3]; };
|
---|
| 4134 | struct s *b; b->j = 5;
|
---|
| 4135 | }
|
---|
| 4136 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4137 | const int foo = 10;
|
---|
| 4138 | }
|
---|
| 4139 | #endif
|
---|
[8200] | 4140 |
|
---|
[8756] | 4141 | ;
|
---|
| 4142 | return 0;
|
---|
[3631] | 4143 | }
|
---|
[8756] | 4144 | _ACEOF
|
---|
| 4145 | rm -f conftest.$ac_objext
|
---|
| 4146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4147 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4148 | ac_status=$?
|
---|
| 4149 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4150 | rm -f conftest.er1
|
---|
| 4151 | cat conftest.err >&5
|
---|
| 4152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4153 | (exit $ac_status); } &&
|
---|
| 4154 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4155 | || test ! -s conftest.err'
|
---|
| 4156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4157 | (eval $ac_try) 2>&5
|
---|
| 4158 | ac_status=$?
|
---|
| 4159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4160 | (exit $ac_status); }; } &&
|
---|
| 4161 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4163 | (eval $ac_try) 2>&5
|
---|
| 4164 | ac_status=$?
|
---|
| 4165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4166 | (exit $ac_status); }; }; then
|
---|
[687] | 4167 | ac_cv_c_const=yes
|
---|
| 4168 | else
|
---|
[8756] | 4169 | echo "$as_me: failed program was:" >&5
|
---|
| 4170 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4171 |
|
---|
| 4172 | ac_cv_c_const=no
|
---|
[687] | 4173 | fi
|
---|
[8756] | 4174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4175 | fi
|
---|
[8756] | 4176 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
| 4177 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
[3631] | 4178 | if test $ac_cv_c_const = no; then
|
---|
[687] | 4179 |
|
---|
[8756] | 4180 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4181 | #define const
|
---|
| 4182 | _ACEOF
|
---|
| 4183 |
|
---|
[687] | 4184 | fi
|
---|
| 4185 |
|
---|
[8756] | 4186 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
| 4187 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
| 4188 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 4189 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4190 | else
|
---|
[8756] | 4191 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4192 | /* confdefs.h. */
|
---|
| 4193 | _ACEOF
|
---|
| 4194 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4195 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4196 | /* end confdefs.h. */
|
---|
| 4197 | $ac_includes_default
|
---|
| 4198 | int
|
---|
| 4199 | main ()
|
---|
| 4200 | {
|
---|
| 4201 | if ((off_t *) 0)
|
---|
| 4202 | return 0;
|
---|
| 4203 | if (sizeof (off_t))
|
---|
| 4204 | return 0;
|
---|
| 4205 | ;
|
---|
| 4206 | return 0;
|
---|
| 4207 | }
|
---|
| 4208 | _ACEOF
|
---|
| 4209 | rm -f conftest.$ac_objext
|
---|
| 4210 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4211 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4212 | ac_status=$?
|
---|
| 4213 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4214 | rm -f conftest.er1
|
---|
| 4215 | cat conftest.err >&5
|
---|
| 4216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4217 | (exit $ac_status); } &&
|
---|
| 4218 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4219 | || test ! -s conftest.err'
|
---|
| 4220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4221 | (eval $ac_try) 2>&5
|
---|
| 4222 | ac_status=$?
|
---|
| 4223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4224 | (exit $ac_status); }; } &&
|
---|
| 4225 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4227 | (eval $ac_try) 2>&5
|
---|
| 4228 | ac_status=$?
|
---|
| 4229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4230 | (exit $ac_status); }; }; then
|
---|
| 4231 | ac_cv_type_off_t=yes
|
---|
[687] | 4232 | else
|
---|
[8756] | 4233 | echo "$as_me: failed program was:" >&5
|
---|
| 4234 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[687] | 4235 |
|
---|
[8756] | 4236 | ac_cv_type_off_t=no
|
---|
[687] | 4237 | fi
|
---|
[8756] | 4238 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4239 | fi
|
---|
[8756] | 4240 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
| 4241 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
| 4242 | if test $ac_cv_type_off_t = yes; then
|
---|
[687] | 4243 | :
|
---|
| 4244 | else
|
---|
| 4245 |
|
---|
[8756] | 4246 | cat >>confdefs.h <<_ACEOF
|
---|
| 4247 | #define off_t long
|
---|
| 4248 | _ACEOF
|
---|
[687] | 4249 |
|
---|
| 4250 | fi
|
---|
[8200] | 4251 |
|
---|
[8756] | 4252 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
| 4253 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
| 4254 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4255 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4256 | else
|
---|
[8756] | 4257 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4258 | /* confdefs.h. */
|
---|
| 4259 | _ACEOF
|
---|
| 4260 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4261 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4262 | /* end confdefs.h. */
|
---|
| 4263 | $ac_includes_default
|
---|
| 4264 | int
|
---|
| 4265 | main ()
|
---|
| 4266 | {
|
---|
| 4267 | if ((size_t *) 0)
|
---|
| 4268 | return 0;
|
---|
| 4269 | if (sizeof (size_t))
|
---|
| 4270 | return 0;
|
---|
| 4271 | ;
|
---|
| 4272 | return 0;
|
---|
| 4273 | }
|
---|
| 4274 | _ACEOF
|
---|
| 4275 | rm -f conftest.$ac_objext
|
---|
| 4276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4277 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4278 | ac_status=$?
|
---|
| 4279 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4280 | rm -f conftest.er1
|
---|
| 4281 | cat conftest.err >&5
|
---|
| 4282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4283 | (exit $ac_status); } &&
|
---|
| 4284 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4285 | || test ! -s conftest.err'
|
---|
| 4286 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4287 | (eval $ac_try) 2>&5
|
---|
| 4288 | ac_status=$?
|
---|
| 4289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4290 | (exit $ac_status); }; } &&
|
---|
| 4291 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4293 | (eval $ac_try) 2>&5
|
---|
| 4294 | ac_status=$?
|
---|
| 4295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4296 | (exit $ac_status); }; }; then
|
---|
| 4297 | ac_cv_type_size_t=yes
|
---|
[687] | 4298 | else
|
---|
[8756] | 4299 | echo "$as_me: failed program was:" >&5
|
---|
| 4300 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4301 |
|
---|
[8756] | 4302 | ac_cv_type_size_t=no
|
---|
[3631] | 4303 | fi
|
---|
[8756] | 4304 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4305 | fi
|
---|
[8756] | 4306 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
| 4307 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
| 4308 | if test $ac_cv_type_size_t = yes; then
|
---|
| 4309 | :
|
---|
[687] | 4310 | else
|
---|
[8200] | 4311 |
|
---|
[8756] | 4312 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 4313 | #define size_t unsigned
|
---|
[8756] | 4314 | _ACEOF
|
---|
[687] | 4315 |
|
---|
| 4316 | fi
|
---|
| 4317 |
|
---|
[8756] | 4318 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
| 4319 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
| 4320 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 4321 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4322 | else
|
---|
[8756] | 4323 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4324 | /* confdefs.h. */
|
---|
| 4325 | _ACEOF
|
---|
| 4326 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4327 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4328 | /* end confdefs.h. */
|
---|
[687] | 4329 | #include <sys/types.h>
|
---|
| 4330 | #include <sys/time.h>
|
---|
| 4331 | #include <time.h>
|
---|
[8756] | 4332 |
|
---|
| 4333 | int
|
---|
| 4334 | main ()
|
---|
| 4335 | {
|
---|
| 4336 | if ((struct tm *) 0)
|
---|
| 4337 | return 0;
|
---|
| 4338 | ;
|
---|
| 4339 | return 0;
|
---|
| 4340 | }
|
---|
| 4341 | _ACEOF
|
---|
| 4342 | rm -f conftest.$ac_objext
|
---|
| 4343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4344 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4345 | ac_status=$?
|
---|
| 4346 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4347 | rm -f conftest.er1
|
---|
| 4348 | cat conftest.err >&5
|
---|
| 4349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4350 | (exit $ac_status); } &&
|
---|
| 4351 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4352 | || test ! -s conftest.err'
|
---|
| 4353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4354 | (eval $ac_try) 2>&5
|
---|
| 4355 | ac_status=$?
|
---|
| 4356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4357 | (exit $ac_status); }; } &&
|
---|
| 4358 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4360 | (eval $ac_try) 2>&5
|
---|
| 4361 | ac_status=$?
|
---|
| 4362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4363 | (exit $ac_status); }; }; then
|
---|
[687] | 4364 | ac_cv_header_time=yes
|
---|
| 4365 | else
|
---|
[8756] | 4366 | echo "$as_me: failed program was:" >&5
|
---|
| 4367 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4368 |
|
---|
| 4369 | ac_cv_header_time=no
|
---|
[687] | 4370 | fi
|
---|
[8756] | 4371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4372 | fi
|
---|
[8756] | 4373 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
| 4374 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
| 4375 | if test $ac_cv_header_time = yes; then
|
---|
[8200] | 4376 |
|
---|
[8756] | 4377 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 4378 | #define TIME_WITH_SYS_TIME 1
|
---|
[8756] | 4379 | _ACEOF
|
---|
[687] | 4380 |
|
---|
| 4381 | fi
|
---|
| 4382 |
|
---|
[8756] | 4383 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
| 4384 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
| 4385 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 4386 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4387 | else
|
---|
[8756] | 4388 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4389 | /* confdefs.h. */
|
---|
| 4390 | _ACEOF
|
---|
| 4391 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4392 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4393 | /* end confdefs.h. */
|
---|
[687] | 4394 | #include <sys/types.h>
|
---|
| 4395 | #include <time.h>
|
---|
[8756] | 4396 |
|
---|
| 4397 | int
|
---|
| 4398 | main ()
|
---|
| 4399 | {
|
---|
[687] | 4400 | struct tm *tp; tp->tm_sec;
|
---|
[8756] | 4401 | ;
|
---|
| 4402 | return 0;
|
---|
| 4403 | }
|
---|
| 4404 | _ACEOF
|
---|
| 4405 | rm -f conftest.$ac_objext
|
---|
| 4406 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4407 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4408 | ac_status=$?
|
---|
| 4409 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4410 | rm -f conftest.er1
|
---|
| 4411 | cat conftest.err >&5
|
---|
| 4412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4413 | (exit $ac_status); } &&
|
---|
| 4414 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4415 | || test ! -s conftest.err'
|
---|
| 4416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4417 | (eval $ac_try) 2>&5
|
---|
| 4418 | ac_status=$?
|
---|
| 4419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4420 | (exit $ac_status); }; } &&
|
---|
| 4421 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4423 | (eval $ac_try) 2>&5
|
---|
| 4424 | ac_status=$?
|
---|
| 4425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4426 | (exit $ac_status); }; }; then
|
---|
[687] | 4427 | ac_cv_struct_tm=time.h
|
---|
| 4428 | else
|
---|
[8756] | 4429 | echo "$as_me: failed program was:" >&5
|
---|
| 4430 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4431 |
|
---|
| 4432 | ac_cv_struct_tm=sys/time.h
|
---|
[687] | 4433 | fi
|
---|
[8756] | 4434 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4435 | fi
|
---|
[8756] | 4436 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
| 4437 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
| 4438 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
[8200] | 4439 |
|
---|
[8756] | 4440 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 4441 | #define TM_IN_SYS_TIME 1
|
---|
[8756] | 4442 | _ACEOF
|
---|
[687] | 4443 |
|
---|
| 4444 | fi
|
---|
| 4445 |
|
---|
[8200] | 4446 |
|
---|
[687] | 4447 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[8756] | 4448 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4449 | /* confdefs.h. */
|
---|
| 4450 | _ACEOF
|
---|
| 4451 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4452 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4453 | /* end confdefs.h. */
|
---|
[687] | 4454 | #include <stdio.h>
|
---|
| 4455 |
|
---|
[8756] | 4456 | int
|
---|
| 4457 | main ()
|
---|
| 4458 | {
|
---|
| 4459 | FILE *rubbish = popen("yes", "r");
|
---|
| 4460 | ;
|
---|
| 4461 | return 0;
|
---|
| 4462 | }
|
---|
| 4463 | _ACEOF
|
---|
| 4464 | rm -f conftest.$ac_objext
|
---|
| 4465 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4466 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4467 | ac_status=$?
|
---|
| 4468 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4469 | rm -f conftest.er1
|
---|
| 4470 | cat conftest.err >&5
|
---|
| 4471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4472 | (exit $ac_status); } &&
|
---|
| 4473 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4474 | || test ! -s conftest.err'
|
---|
| 4475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4476 | (eval $ac_try) 2>&5
|
---|
| 4477 | ac_status=$?
|
---|
| 4478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4479 | (exit $ac_status); }; } &&
|
---|
| 4480 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4482 | (eval $ac_try) 2>&5
|
---|
| 4483 | ac_status=$?
|
---|
| 4484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4485 | (exit $ac_status); }; }; then
|
---|
[687] | 4486 | :
|
---|
| 4487 | else
|
---|
[8756] | 4488 | echo "$as_me: failed program was:" >&5
|
---|
| 4489 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4490 |
|
---|
| 4491 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[687] | 4492 | fi
|
---|
[8756] | 4493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4494 | fi
|
---|
| 4495 |
|
---|
[8200] | 4496 |
|
---|
[8756] | 4497 |
|
---|
| 4498 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
| 4499 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
| 4500 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
| 4501 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4502 | else
|
---|
[8756] | 4503 | ac_check_lib_save_LIBS=$LIBS
|
---|
[562] | 4504 | LIBS="-lg $LIBS"
|
---|
[8756] | 4505 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4506 | /* confdefs.h. */
|
---|
| 4507 | _ACEOF
|
---|
| 4508 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4509 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4510 | /* end confdefs.h. */
|
---|
[562] | 4511 |
|
---|
[8756] | 4512 |
|
---|
| 4513 | int
|
---|
| 4514 | main ()
|
---|
| 4515 | {
|
---|
| 4516 | main ();
|
---|
| 4517 | ;
|
---|
| 4518 | return 0;
|
---|
| 4519 | }
|
---|
| 4520 | _ACEOF
|
---|
| 4521 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4523 | (eval $ac_link) 2>conftest.er1
|
---|
| 4524 | ac_status=$?
|
---|
| 4525 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4526 | rm -f conftest.er1
|
---|
| 4527 | cat conftest.err >&5
|
---|
| 4528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4529 | (exit $ac_status); } &&
|
---|
| 4530 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4531 | || test ! -s conftest.err'
|
---|
| 4532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4533 | (eval $ac_try) 2>&5
|
---|
| 4534 | ac_status=$?
|
---|
| 4535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4536 | (exit $ac_status); }; } &&
|
---|
| 4537 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4539 | (eval $ac_try) 2>&5
|
---|
| 4540 | ac_status=$?
|
---|
| 4541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4542 | (exit $ac_status); }; }; then
|
---|
| 4543 | ac_cv_lib_g_main=yes
|
---|
[562] | 4544 | else
|
---|
[8756] | 4545 | echo "$as_me: failed program was:" >&5
|
---|
| 4546 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4547 |
|
---|
[8756] | 4548 | ac_cv_lib_g_main=no
|
---|
[562] | 4549 | fi
|
---|
[8756] | 4550 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4551 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4552 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4553 | fi
|
---|
| 4554 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
| 4555 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
| 4556 | if test $ac_cv_lib_g_main = yes; then
|
---|
| 4557 | cat >>confdefs.h <<_ACEOF
|
---|
| 4558 | #define HAVE_LIBG 1
|
---|
| 4559 | _ACEOF
|
---|
[562] | 4560 |
|
---|
| 4561 | LIBS="-lg $LIBS"
|
---|
| 4562 |
|
---|
| 4563 | fi
|
---|
[8756] | 4564 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
[562] | 4565 |
|
---|
| 4566 |
|
---|
[8756] | 4567 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
| 4568 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
| 4569 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 4570 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4571 | else
|
---|
[8756] | 4572 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4573 | LIBS="-lm $LIBS"
|
---|
| 4574 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4575 | /* confdefs.h. */
|
---|
| 4576 | _ACEOF
|
---|
| 4577 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4578 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4579 | /* end confdefs.h. */
|
---|
[8200] | 4580 |
|
---|
[562] | 4581 |
|
---|
[8756] | 4582 | int
|
---|
| 4583 | main ()
|
---|
| 4584 | {
|
---|
| 4585 | main ();
|
---|
| 4586 | ;
|
---|
| 4587 | return 0;
|
---|
| 4588 | }
|
---|
| 4589 | _ACEOF
|
---|
| 4590 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4592 | (eval $ac_link) 2>conftest.er1
|
---|
| 4593 | ac_status=$?
|
---|
| 4594 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4595 | rm -f conftest.er1
|
---|
| 4596 | cat conftest.err >&5
|
---|
| 4597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4598 | (exit $ac_status); } &&
|
---|
| 4599 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4600 | || test ! -s conftest.err'
|
---|
| 4601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4602 | (eval $ac_try) 2>&5
|
---|
| 4603 | ac_status=$?
|
---|
| 4604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4605 | (exit $ac_status); }; } &&
|
---|
| 4606 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4608 | (eval $ac_try) 2>&5
|
---|
| 4609 | ac_status=$?
|
---|
| 4610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4611 | (exit $ac_status); }; }; then
|
---|
| 4612 | ac_cv_lib_m_main=yes
|
---|
[8200] | 4613 | else
|
---|
[8756] | 4614 | echo "$as_me: failed program was:" >&5
|
---|
| 4615 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[562] | 4616 |
|
---|
[8756] | 4617 | ac_cv_lib_m_main=no
|
---|
[562] | 4618 | fi
|
---|
[8756] | 4619 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4620 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4621 | LIBS=$ac_check_lib_save_LIBS
|
---|
[562] | 4622 | fi
|
---|
[8756] | 4623 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
| 4624 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
| 4625 | if test $ac_cv_lib_m_main = yes; then
|
---|
| 4626 | cat >>confdefs.h <<_ACEOF
|
---|
| 4627 | #define HAVE_LIBM 1
|
---|
| 4628 | _ACEOF
|
---|
[562] | 4629 |
|
---|
| 4630 | LIBS="-lm $LIBS"
|
---|
| 4631 |
|
---|
| 4632 | fi
|
---|
[8756] | 4633 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
[562] | 4634 |
|
---|
[8756] | 4635 |
|
---|
| 4636 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
| 4637 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
| 4638 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
| 4639 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4640 | else
|
---|
[8756] | 4641 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4642 | LIBS="-lcrypt $LIBS"
|
---|
| 4643 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4644 | /* confdefs.h. */
|
---|
| 4645 | _ACEOF
|
---|
| 4646 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4647 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4648 | /* end confdefs.h. */
|
---|
[562] | 4649 |
|
---|
[8756] | 4650 |
|
---|
| 4651 | int
|
---|
| 4652 | main ()
|
---|
| 4653 | {
|
---|
| 4654 | main ();
|
---|
| 4655 | ;
|
---|
| 4656 | return 0;
|
---|
| 4657 | }
|
---|
| 4658 | _ACEOF
|
---|
| 4659 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4661 | (eval $ac_link) 2>conftest.er1
|
---|
| 4662 | ac_status=$?
|
---|
| 4663 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4664 | rm -f conftest.er1
|
---|
| 4665 | cat conftest.err >&5
|
---|
| 4666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4667 | (exit $ac_status); } &&
|
---|
| 4668 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4669 | || test ! -s conftest.err'
|
---|
| 4670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4671 | (eval $ac_try) 2>&5
|
---|
| 4672 | ac_status=$?
|
---|
| 4673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4674 | (exit $ac_status); }; } &&
|
---|
| 4675 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4677 | (eval $ac_try) 2>&5
|
---|
| 4678 | ac_status=$?
|
---|
| 4679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4680 | (exit $ac_status); }; }; then
|
---|
| 4681 | ac_cv_lib_crypt_main=yes
|
---|
[562] | 4682 | else
|
---|
[8756] | 4683 | echo "$as_me: failed program was:" >&5
|
---|
| 4684 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4685 |
|
---|
[8756] | 4686 | ac_cv_lib_crypt_main=no
|
---|
[562] | 4687 | fi
|
---|
[8756] | 4688 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4689 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4690 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4691 | fi
|
---|
| 4692 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
| 4693 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
| 4694 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
| 4695 | cat >>confdefs.h <<_ACEOF
|
---|
| 4696 | #define HAVE_LIBCRYPT 1
|
---|
| 4697 | _ACEOF
|
---|
[562] | 4698 |
|
---|
[8756] | 4699 | LIBS="-lcrypt $LIBS"
|
---|
[562] | 4700 |
|
---|
| 4701 | fi
|
---|
[8756] | 4702 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
[562] | 4703 |
|
---|
[12922] | 4704 | if test $ENABLE_ACCENTFOLD = 1; then
|
---|
[562] | 4705 |
|
---|
[14169] | 4706 | echo "$as_me:$LINENO: checking for main in -liconv" >&5
|
---|
| 4707 | echo $ECHO_N "checking for main in -liconv... $ECHO_C" >&6
|
---|
| 4708 | if test "${ac_cv_lib_iconv_main+set}" = set; then
|
---|
[12922] | 4709 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4710 | else
|
---|
| 4711 | ac_check_lib_save_LIBS=$LIBS
|
---|
[14169] | 4712 | LIBS="-liconv $LIBS"
|
---|
[12922] | 4713 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4714 | /* confdefs.h. */
|
---|
| 4715 | _ACEOF
|
---|
| 4716 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4717 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4718 | /* end confdefs.h. */
|
---|
[8200] | 4719 |
|
---|
[986] | 4720 |
|
---|
[12922] | 4721 | int
|
---|
| 4722 | main ()
|
---|
| 4723 | {
|
---|
| 4724 | main ();
|
---|
| 4725 | ;
|
---|
| 4726 | return 0;
|
---|
| 4727 | }
|
---|
| 4728 | _ACEOF
|
---|
| 4729 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4730 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4731 | (eval $ac_link) 2>conftest.er1
|
---|
| 4732 | ac_status=$?
|
---|
| 4733 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4734 | rm -f conftest.er1
|
---|
| 4735 | cat conftest.err >&5
|
---|
| 4736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4737 | (exit $ac_status); } &&
|
---|
| 4738 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4739 | || test ! -s conftest.err'
|
---|
| 4740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4741 | (eval $ac_try) 2>&5
|
---|
| 4742 | ac_status=$?
|
---|
| 4743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4744 | (exit $ac_status); }; } &&
|
---|
| 4745 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4747 | (eval $ac_try) 2>&5
|
---|
| 4748 | ac_status=$?
|
---|
| 4749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4750 | (exit $ac_status); }; }; then
|
---|
[14169] | 4751 | ac_cv_lib_iconv_main=yes
|
---|
[12922] | 4752 | else
|
---|
| 4753 | echo "$as_me: failed program was:" >&5
|
---|
| 4754 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[986] | 4755 |
|
---|
[14169] | 4756 | ac_cv_lib_iconv_main=no
|
---|
[12922] | 4757 | fi
|
---|
| 4758 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4759 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4760 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4761 | fi
|
---|
[14169] | 4762 | echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_main" >&5
|
---|
| 4763 | echo "${ECHO_T}$ac_cv_lib_iconv_main" >&6
|
---|
| 4764 | if test $ac_cv_lib_iconv_main = yes; then
|
---|
[12922] | 4765 | cat >>confdefs.h <<_ACEOF
|
---|
| 4766 | #define HAVE_LIBICONV 1
|
---|
| 4767 | _ACEOF
|
---|
[986] | 4768 |
|
---|
[14169] | 4769 | LIBS="-liconv $LIBS"
|
---|
[8200] | 4770 |
|
---|
[12922] | 4771 | fi
|
---|
[14169] | 4772 | ac_cv_lib_iconv=ac_cv_lib_iconv_main
|
---|
[8200] | 4773 |
|
---|
[12922] | 4774 | fi
|
---|
| 4775 |
|
---|
| 4776 |
|
---|
| 4777 |
|
---|
| 4778 |
|
---|
| 4779 |
|
---|
| 4780 |
|
---|
[687] | 4781 | ac_header_dirent=no
|
---|
[8756] | 4782 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
| 4783 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 4784 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
| 4785 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
| 4786 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 4787 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4788 | else
|
---|
[8756] | 4789 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4790 | /* confdefs.h. */
|
---|
| 4791 | _ACEOF
|
---|
| 4792 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4793 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4794 | /* end confdefs.h. */
|
---|
[687] | 4795 | #include <sys/types.h>
|
---|
| 4796 | #include <$ac_hdr>
|
---|
[8756] | 4797 |
|
---|
| 4798 | int
|
---|
| 4799 | main ()
|
---|
| 4800 | {
|
---|
| 4801 | if ((DIR *) 0)
|
---|
| 4802 | return 0;
|
---|
| 4803 | ;
|
---|
| 4804 | return 0;
|
---|
| 4805 | }
|
---|
| 4806 | _ACEOF
|
---|
| 4807 | rm -f conftest.$ac_objext
|
---|
| 4808 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4809 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4810 | ac_status=$?
|
---|
| 4811 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4812 | rm -f conftest.er1
|
---|
| 4813 | cat conftest.err >&5
|
---|
| 4814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4815 | (exit $ac_status); } &&
|
---|
| 4816 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4817 | || test ! -s conftest.err'
|
---|
| 4818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4819 | (eval $ac_try) 2>&5
|
---|
| 4820 | ac_status=$?
|
---|
| 4821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4822 | (exit $ac_status); }; } &&
|
---|
| 4823 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4825 | (eval $ac_try) 2>&5
|
---|
| 4826 | ac_status=$?
|
---|
| 4827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4828 | (exit $ac_status); }; }; then
|
---|
| 4829 | eval "$as_ac_Header=yes"
|
---|
[562] | 4830 | else
|
---|
[8756] | 4831 | echo "$as_me: failed program was:" >&5
|
---|
| 4832 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4833 |
|
---|
| 4834 | eval "$as_ac_Header=no"
|
---|
[687] | 4835 | fi
|
---|
[8756] | 4836 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4837 | fi
|
---|
[8756] | 4838 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4839 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 4840 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4841 | cat >>confdefs.h <<_ACEOF
|
---|
| 4842 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
| 4843 | _ACEOF
|
---|
| 4844 |
|
---|
| 4845 | ac_header_dirent=$ac_hdr; break
|
---|
[687] | 4846 | fi
|
---|
[8756] | 4847 |
|
---|
[687] | 4848 | done
|
---|
| 4849 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 4850 | if test $ac_header_dirent = dirent.h; then
|
---|
[8756] | 4851 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4852 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4853 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 4854 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4855 | else
|
---|
[8756] | 4856 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4857 | ac_cv_search_opendir=no
|
---|
| 4858 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4859 | /* confdefs.h. */
|
---|
| 4860 | _ACEOF
|
---|
| 4861 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4862 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4863 | /* end confdefs.h. */
|
---|
| 4864 |
|
---|
[687] | 4865 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 4866 | #ifdef __cplusplus
|
---|
| 4867 | extern "C"
|
---|
| 4868 | #endif
|
---|
[687] | 4869 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 4870 | builtin and then its argument prototype would still apply. */
|
---|
| 4871 | char opendir ();
|
---|
| 4872 | int
|
---|
| 4873 | main ()
|
---|
| 4874 | {
|
---|
| 4875 | opendir ();
|
---|
| 4876 | ;
|
---|
| 4877 | return 0;
|
---|
| 4878 | }
|
---|
| 4879 | _ACEOF
|
---|
| 4880 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4882 | (eval $ac_link) 2>conftest.er1
|
---|
| 4883 | ac_status=$?
|
---|
| 4884 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4885 | rm -f conftest.er1
|
---|
| 4886 | cat conftest.err >&5
|
---|
| 4887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4888 | (exit $ac_status); } &&
|
---|
| 4889 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4890 | || test ! -s conftest.err'
|
---|
| 4891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4892 | (eval $ac_try) 2>&5
|
---|
| 4893 | ac_status=$?
|
---|
| 4894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4895 | (exit $ac_status); }; } &&
|
---|
| 4896 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4898 | (eval $ac_try) 2>&5
|
---|
| 4899 | ac_status=$?
|
---|
| 4900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4901 | (exit $ac_status); }; }; then
|
---|
| 4902 | ac_cv_search_opendir="none required"
|
---|
| 4903 | else
|
---|
| 4904 | echo "$as_me: failed program was:" >&5
|
---|
| 4905 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4906 |
|
---|
[687] | 4907 | fi
|
---|
[8756] | 4908 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4909 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4910 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4911 | for ac_lib in dir; do
|
---|
| 4912 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4913 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4914 | /* confdefs.h. */
|
---|
| 4915 | _ACEOF
|
---|
| 4916 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4917 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4918 | /* end confdefs.h. */
|
---|
[8200] | 4919 |
|
---|
[8756] | 4920 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4921 | #ifdef __cplusplus
|
---|
| 4922 | extern "C"
|
---|
| 4923 | #endif
|
---|
| 4924 | /* We use char because int might match the return type of a gcc2
|
---|
| 4925 | builtin and then its argument prototype would still apply. */
|
---|
| 4926 | char opendir ();
|
---|
| 4927 | int
|
---|
| 4928 | main ()
|
---|
| 4929 | {
|
---|
| 4930 | opendir ();
|
---|
| 4931 | ;
|
---|
| 4932 | return 0;
|
---|
| 4933 | }
|
---|
| 4934 | _ACEOF
|
---|
| 4935 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4937 | (eval $ac_link) 2>conftest.er1
|
---|
| 4938 | ac_status=$?
|
---|
| 4939 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4940 | rm -f conftest.er1
|
---|
| 4941 | cat conftest.err >&5
|
---|
| 4942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4943 | (exit $ac_status); } &&
|
---|
| 4944 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4945 | || test ! -s conftest.err'
|
---|
| 4946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4947 | (eval $ac_try) 2>&5
|
---|
| 4948 | ac_status=$?
|
---|
| 4949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4950 | (exit $ac_status); }; } &&
|
---|
| 4951 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4953 | (eval $ac_try) 2>&5
|
---|
| 4954 | ac_status=$?
|
---|
| 4955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4956 | (exit $ac_status); }; }; then
|
---|
| 4957 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4958 | break
|
---|
[8200] | 4959 | else
|
---|
[8756] | 4960 | echo "$as_me: failed program was:" >&5
|
---|
| 4961 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4962 |
|
---|
[687] | 4963 | fi
|
---|
[8756] | 4964 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4965 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4966 | done
|
---|
| 4967 | fi
|
---|
| 4968 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4969 | fi
|
---|
| 4970 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4971 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4972 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4973 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[687] | 4974 |
|
---|
[8756] | 4975 | fi
|
---|
| 4976 |
|
---|
[687] | 4977 | else
|
---|
[8756] | 4978 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4979 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4980 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 4981 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4982 | else
|
---|
[8756] | 4983 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4984 | ac_cv_search_opendir=no
|
---|
| 4985 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4986 | /* confdefs.h. */
|
---|
| 4987 | _ACEOF
|
---|
| 4988 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4989 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4990 | /* end confdefs.h. */
|
---|
| 4991 |
|
---|
[687] | 4992 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 4993 | #ifdef __cplusplus
|
---|
| 4994 | extern "C"
|
---|
| 4995 | #endif
|
---|
[687] | 4996 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 4997 | builtin and then its argument prototype would still apply. */
|
---|
| 4998 | char opendir ();
|
---|
| 4999 | int
|
---|
| 5000 | main ()
|
---|
| 5001 | {
|
---|
| 5002 | opendir ();
|
---|
| 5003 | ;
|
---|
| 5004 | return 0;
|
---|
| 5005 | }
|
---|
| 5006 | _ACEOF
|
---|
| 5007 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5009 | (eval $ac_link) 2>conftest.er1
|
---|
| 5010 | ac_status=$?
|
---|
| 5011 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5012 | rm -f conftest.er1
|
---|
| 5013 | cat conftest.err >&5
|
---|
| 5014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5015 | (exit $ac_status); } &&
|
---|
| 5016 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5017 | || test ! -s conftest.err'
|
---|
| 5018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5019 | (eval $ac_try) 2>&5
|
---|
| 5020 | ac_status=$?
|
---|
| 5021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5022 | (exit $ac_status); }; } &&
|
---|
| 5023 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5025 | (eval $ac_try) 2>&5
|
---|
| 5026 | ac_status=$?
|
---|
| 5027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5028 | (exit $ac_status); }; }; then
|
---|
| 5029 | ac_cv_search_opendir="none required"
|
---|
| 5030 | else
|
---|
| 5031 | echo "$as_me: failed program was:" >&5
|
---|
| 5032 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 5033 |
|
---|
[562] | 5034 | fi
|
---|
[8756] | 5035 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5036 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5037 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 5038 | for ac_lib in x; do
|
---|
| 5039 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 5040 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5041 | /* confdefs.h. */
|
---|
| 5042 | _ACEOF
|
---|
| 5043 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5044 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5045 | /* end confdefs.h. */
|
---|
[8200] | 5046 |
|
---|
[8756] | 5047 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5048 | #ifdef __cplusplus
|
---|
| 5049 | extern "C"
|
---|
| 5050 | #endif
|
---|
| 5051 | /* We use char because int might match the return type of a gcc2
|
---|
| 5052 | builtin and then its argument prototype would still apply. */
|
---|
| 5053 | char opendir ();
|
---|
| 5054 | int
|
---|
| 5055 | main ()
|
---|
| 5056 | {
|
---|
| 5057 | opendir ();
|
---|
| 5058 | ;
|
---|
| 5059 | return 0;
|
---|
| 5060 | }
|
---|
| 5061 | _ACEOF
|
---|
| 5062 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5064 | (eval $ac_link) 2>conftest.er1
|
---|
| 5065 | ac_status=$?
|
---|
| 5066 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5067 | rm -f conftest.er1
|
---|
| 5068 | cat conftest.err >&5
|
---|
| 5069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5070 | (exit $ac_status); } &&
|
---|
| 5071 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5072 | || test ! -s conftest.err'
|
---|
| 5073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5074 | (eval $ac_try) 2>&5
|
---|
| 5075 | ac_status=$?
|
---|
| 5076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5077 | (exit $ac_status); }; } &&
|
---|
| 5078 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5080 | (eval $ac_try) 2>&5
|
---|
| 5081 | ac_status=$?
|
---|
| 5082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5083 | (exit $ac_status); }; }; then
|
---|
| 5084 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 5085 | break
|
---|
[8200] | 5086 | else
|
---|
[8756] | 5087 | echo "$as_me: failed program was:" >&5
|
---|
| 5088 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5089 |
|
---|
[562] | 5090 | fi
|
---|
[8756] | 5091 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5092 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5093 | done
|
---|
| 5094 | fi
|
---|
| 5095 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5096 | fi
|
---|
| 5097 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 5098 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 5099 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 5100 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[562] | 5101 |
|
---|
[687] | 5102 | fi
|
---|
| 5103 |
|
---|
[8756] | 5104 | fi
|
---|
| 5105 |
|
---|
| 5106 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 5107 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 5108 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 5109 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5110 | else
|
---|
[8756] | 5111 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5112 | /* confdefs.h. */
|
---|
| 5113 | _ACEOF
|
---|
| 5114 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5115 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5116 | /* end confdefs.h. */
|
---|
[562] | 5117 | #include <stdlib.h>
|
---|
| 5118 | #include <stdarg.h>
|
---|
| 5119 | #include <string.h>
|
---|
| 5120 | #include <float.h>
|
---|
[8756] | 5121 |
|
---|
| 5122 | int
|
---|
| 5123 | main ()
|
---|
| 5124 | {
|
---|
| 5125 |
|
---|
| 5126 | ;
|
---|
| 5127 | return 0;
|
---|
| 5128 | }
|
---|
| 5129 | _ACEOF
|
---|
| 5130 | rm -f conftest.$ac_objext
|
---|
| 5131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5132 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5133 | ac_status=$?
|
---|
| 5134 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5135 | rm -f conftest.er1
|
---|
| 5136 | cat conftest.err >&5
|
---|
| 5137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5138 | (exit $ac_status); } &&
|
---|
| 5139 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5140 | || test ! -s conftest.err'
|
---|
| 5141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5142 | (eval $ac_try) 2>&5
|
---|
| 5143 | ac_status=$?
|
---|
| 5144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5145 | (exit $ac_status); }; } &&
|
---|
| 5146 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5148 | (eval $ac_try) 2>&5
|
---|
| 5149 | ac_status=$?
|
---|
| 5150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5151 | (exit $ac_status); }; }; then
|
---|
[562] | 5152 | ac_cv_header_stdc=yes
|
---|
| 5153 | else
|
---|
[8756] | 5154 | echo "$as_me: failed program was:" >&5
|
---|
| 5155 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5156 |
|
---|
| 5157 | ac_cv_header_stdc=no
|
---|
[562] | 5158 | fi
|
---|
[8756] | 5159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5160 |
|
---|
| 5161 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5162 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[8756] | 5163 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5164 | /* confdefs.h. */
|
---|
| 5165 | _ACEOF
|
---|
| 5166 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5167 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5168 | /* end confdefs.h. */
|
---|
[562] | 5169 | #include <string.h>
|
---|
[8756] | 5170 |
|
---|
| 5171 | _ACEOF
|
---|
[562] | 5172 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5173 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
[562] | 5174 | :
|
---|
| 5175 | else
|
---|
| 5176 | ac_cv_header_stdc=no
|
---|
| 5177 | fi
|
---|
| 5178 | rm -f conftest*
|
---|
| 5179 |
|
---|
| 5180 | fi
|
---|
| 5181 |
|
---|
| 5182 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5183 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[8756] | 5184 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5185 | /* confdefs.h. */
|
---|
| 5186 | _ACEOF
|
---|
| 5187 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5188 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5189 | /* end confdefs.h. */
|
---|
[562] | 5190 | #include <stdlib.h>
|
---|
[8756] | 5191 |
|
---|
| 5192 | _ACEOF
|
---|
[562] | 5193 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5194 | $EGREP "free" >/dev/null 2>&1; then
|
---|
[562] | 5195 | :
|
---|
| 5196 | else
|
---|
| 5197 | ac_cv_header_stdc=no
|
---|
| 5198 | fi
|
---|
| 5199 | rm -f conftest*
|
---|
| 5200 |
|
---|
| 5201 | fi
|
---|
| 5202 |
|
---|
| 5203 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5204 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[8756] | 5205 | if test "$cross_compiling" = yes; then
|
---|
[562] | 5206 | :
|
---|
| 5207 | else
|
---|
[8756] | 5208 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5209 | /* confdefs.h. */
|
---|
| 5210 | _ACEOF
|
---|
| 5211 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5212 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5213 | /* end confdefs.h. */
|
---|
[562] | 5214 | #include <ctype.h>
|
---|
[8756] | 5215 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5216 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5217 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5218 | #else
|
---|
| 5219 | # define ISLOWER(c) \
|
---|
| 5220 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5221 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5222 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 5223 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5224 | #endif
|
---|
| 5225 |
|
---|
[8200] | 5226 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
[8756] | 5227 | int
|
---|
| 5228 | main ()
|
---|
| 5229 | {
|
---|
| 5230 | int i;
|
---|
| 5231 | for (i = 0; i < 256; i++)
|
---|
| 5232 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 5233 | || toupper (i) != TOUPPER (i))
|
---|
| 5234 | exit(2);
|
---|
| 5235 | exit (0);
|
---|
| 5236 | }
|
---|
| 5237 | _ACEOF
|
---|
| 5238 | rm -f conftest$ac_exeext
|
---|
| 5239 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5240 | (eval $ac_link) 2>&5
|
---|
| 5241 | ac_status=$?
|
---|
| 5242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5243 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 5244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5245 | (eval $ac_try) 2>&5
|
---|
| 5246 | ac_status=$?
|
---|
| 5247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5248 | (exit $ac_status); }; }; then
|
---|
[562] | 5249 | :
|
---|
| 5250 | else
|
---|
[8756] | 5251 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5252 | echo "$as_me: failed program was:" >&5
|
---|
| 5253 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5254 |
|
---|
| 5255 | ( exit $ac_status )
|
---|
| 5256 | ac_cv_header_stdc=no
|
---|
[562] | 5257 | fi
|
---|
[8756] | 5258 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5259 | fi
|
---|
| 5260 | fi
|
---|
| 5261 | fi
|
---|
[8756] | 5262 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 5263 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 5264 | if test $ac_cv_header_stdc = yes; then
|
---|
[8200] | 5265 |
|
---|
[8756] | 5266 | cat >>confdefs.h <<\_ACEOF
|
---|
[562] | 5267 | #define STDC_HEADERS 1
|
---|
[8756] | 5268 | _ACEOF
|
---|
[562] | 5269 |
|
---|
| 5270 | fi
|
---|
| 5271 |
|
---|
[8756] | 5272 |
|
---|
| 5273 |
|
---|
| 5274 |
|
---|
| 5275 |
|
---|
| 5276 |
|
---|
| 5277 |
|
---|
| 5278 |
|
---|
| 5279 |
|
---|
[10181] | 5280 |
|
---|
| 5281 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
|
---|
[562] | 5282 | do
|
---|
[8756] | 5283 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5284 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5285 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5286 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5287 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5288 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5289 | fi
|
---|
| 5290 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5291 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[562] | 5292 | else
|
---|
[8756] | 5293 | # Is the header compilable?
|
---|
| 5294 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5295 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
| 5296 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5297 | /* confdefs.h. */
|
---|
| 5298 | _ACEOF
|
---|
| 5299 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5300 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5301 | /* end confdefs.h. */
|
---|
| 5302 | $ac_includes_default
|
---|
| 5303 | #include <$ac_header>
|
---|
| 5304 | _ACEOF
|
---|
| 5305 | rm -f conftest.$ac_objext
|
---|
| 5306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5307 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5308 | ac_status=$?
|
---|
| 5309 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5310 | rm -f conftest.er1
|
---|
| 5311 | cat conftest.err >&5
|
---|
| 5312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5313 | (exit $ac_status); } &&
|
---|
| 5314 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5315 | || test ! -s conftest.err'
|
---|
| 5316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5317 | (eval $ac_try) 2>&5
|
---|
| 5318 | ac_status=$?
|
---|
| 5319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5320 | (exit $ac_status); }; } &&
|
---|
| 5321 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5323 | (eval $ac_try) 2>&5
|
---|
| 5324 | ac_status=$?
|
---|
| 5325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5326 | (exit $ac_status); }; }; then
|
---|
| 5327 | ac_header_compiler=yes
|
---|
[562] | 5328 | else
|
---|
[8756] | 5329 | echo "$as_me: failed program was:" >&5
|
---|
| 5330 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5331 |
|
---|
| 5332 | ac_header_compiler=no
|
---|
[562] | 5333 | fi
|
---|
[8756] | 5334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5335 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 5336 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 5337 |
|
---|
| 5338 | # Is the header present?
|
---|
| 5339 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 5340 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
| 5341 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5342 | /* confdefs.h. */
|
---|
| 5343 | _ACEOF
|
---|
| 5344 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5345 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5346 | /* end confdefs.h. */
|
---|
| 5347 | #include <$ac_header>
|
---|
| 5348 | _ACEOF
|
---|
| 5349 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 5350 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 5351 | ac_status=$?
|
---|
| 5352 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5353 | rm -f conftest.er1
|
---|
| 5354 | cat conftest.err >&5
|
---|
| 5355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5356 | (exit $ac_status); } >/dev/null; then
|
---|
| 5357 | if test -s conftest.err; then
|
---|
| 5358 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 5359 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 5360 | else
|
---|
| 5361 | ac_cpp_err=
|
---|
| 5362 | fi
|
---|
| 5363 | else
|
---|
| 5364 | ac_cpp_err=yes
|
---|
[562] | 5365 | fi
|
---|
[8756] | 5366 | if test -z "$ac_cpp_err"; then
|
---|
| 5367 | ac_header_preproc=yes
|
---|
[8200] | 5368 | else
|
---|
[8756] | 5369 | echo "$as_me: failed program was:" >&5
|
---|
| 5370 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5371 |
|
---|
| 5372 | ac_header_preproc=no
|
---|
[562] | 5373 | fi
|
---|
[8756] | 5374 | rm -f conftest.err conftest.$ac_ext
|
---|
| 5375 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 5376 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 5377 |
|
---|
| 5378 | # So? What about this header?
|
---|
| 5379 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 5380 | yes:no: )
|
---|
| 5381 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 5382 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 5383 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 5384 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 5385 | ac_header_preproc=yes
|
---|
| 5386 | ;;
|
---|
| 5387 | no:yes:* )
|
---|
| 5388 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 5389 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 5390 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 5391 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 5392 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 5393 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 5394 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 5395 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 5396 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 5397 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 5398 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 5399 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
| 5400 | (
|
---|
| 5401 | cat <<\_ASBOX
|
---|
| 5402 | ## ------------------------------------------ ##
|
---|
| 5403 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 5404 | ## ------------------------------------------ ##
|
---|
| 5405 | _ASBOX
|
---|
| 5406 | ) |
|
---|
| 5407 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 5408 | ;;
|
---|
| 5409 | esac
|
---|
| 5410 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5411 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5412 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5413 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5414 | else
|
---|
| 5415 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
| 5416 | fi
|
---|
| 5417 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5418 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 5419 |
|
---|
| 5420 | fi
|
---|
| 5421 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 5422 | cat >>confdefs.h <<_ACEOF
|
---|
| 5423 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 5424 | _ACEOF
|
---|
| 5425 |
|
---|
| 5426 | fi
|
---|
| 5427 |
|
---|
[562] | 5428 | done
|
---|
| 5429 |
|
---|
[8756] | 5430 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5431 | /* confdefs.h. */
|
---|
| 5432 | _ACEOF
|
---|
| 5433 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5434 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5435 | /* end confdefs.h. */
|
---|
[687] | 5436 | #include <stdio.h>
|
---|
[8756] | 5437 |
|
---|
| 5438 | _ACEOF
|
---|
[687] | 5439 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5440 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 5441 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5442 | #define HAVE_FREAD_DECL 1
|
---|
[8756] | 5443 | _ACEOF
|
---|
[562] | 5444 |
|
---|
[687] | 5445 | fi
|
---|
| 5446 | rm -f conftest*
|
---|
| 5447 |
|
---|
[8756] | 5448 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5449 | /* confdefs.h. */
|
---|
| 5450 | _ACEOF
|
---|
| 5451 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5452 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5453 | /* end confdefs.h. */
|
---|
[687] | 5454 | #include <stdio.h>
|
---|
[8756] | 5455 |
|
---|
| 5456 | _ACEOF
|
---|
[687] | 5457 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5458 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 5459 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5460 | #define HAVE_FGETC_DECL 1
|
---|
[8756] | 5461 | _ACEOF
|
---|
[687] | 5462 |
|
---|
| 5463 | fi
|
---|
| 5464 | rm -f conftest*
|
---|
| 5465 |
|
---|
[8756] | 5466 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5467 | /* confdefs.h. */
|
---|
| 5468 | _ACEOF
|
---|
| 5469 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5470 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5471 | /* end confdefs.h. */
|
---|
[687] | 5472 | #include <sys/procfs.h>
|
---|
[8756] | 5473 |
|
---|
| 5474 | _ACEOF
|
---|
[687] | 5475 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5476 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 5477 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5478 | #define HAVE_PR_BRKSIZE 1
|
---|
[8756] | 5479 | _ACEOF
|
---|
[687] | 5480 |
|
---|
| 5481 | fi
|
---|
| 5482 | rm -f conftest*
|
---|
| 5483 |
|
---|
[8200] | 5484 |
|
---|
[687] | 5485 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5486 | # for constant arguments. Useless!
|
---|
[8756] | 5487 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
| 5488 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
| 5489 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 5490 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5491 | else
|
---|
[8756] | 5492 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5493 | /* confdefs.h. */
|
---|
| 5494 | _ACEOF
|
---|
| 5495 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5496 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5497 | /* end confdefs.h. */
|
---|
[687] | 5498 | #include <alloca.h>
|
---|
[8756] | 5499 | int
|
---|
| 5500 | main ()
|
---|
| 5501 | {
|
---|
| 5502 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 5503 | ;
|
---|
| 5504 | return 0;
|
---|
| 5505 | }
|
---|
| 5506 | _ACEOF
|
---|
| 5507 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5509 | (eval $ac_link) 2>conftest.er1
|
---|
| 5510 | ac_status=$?
|
---|
| 5511 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5512 | rm -f conftest.er1
|
---|
| 5513 | cat conftest.err >&5
|
---|
| 5514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5515 | (exit $ac_status); } &&
|
---|
| 5516 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5517 | || test ! -s conftest.err'
|
---|
| 5518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5519 | (eval $ac_try) 2>&5
|
---|
| 5520 | ac_status=$?
|
---|
| 5521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5522 | (exit $ac_status); }; } &&
|
---|
| 5523 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5524 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5525 | (eval $ac_try) 2>&5
|
---|
| 5526 | ac_status=$?
|
---|
| 5527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5528 | (exit $ac_status); }; }; then
|
---|
| 5529 | ac_cv_working_alloca_h=yes
|
---|
[562] | 5530 | else
|
---|
[8756] | 5531 | echo "$as_me: failed program was:" >&5
|
---|
| 5532 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5533 |
|
---|
| 5534 | ac_cv_working_alloca_h=no
|
---|
[562] | 5535 | fi
|
---|
[8756] | 5536 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5537 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5538 | fi
|
---|
[8756] | 5539 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
| 5540 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
| 5541 | if test $ac_cv_working_alloca_h = yes; then
|
---|
[562] | 5542 |
|
---|
[8756] | 5543 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5544 | #define HAVE_ALLOCA_H 1
|
---|
[8756] | 5545 | _ACEOF
|
---|
[562] | 5546 |
|
---|
| 5547 | fi
|
---|
| 5548 |
|
---|
[8756] | 5549 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
| 5550 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
| 5551 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 5552 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5553 | else
|
---|
[8756] | 5554 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5555 | /* confdefs.h. */
|
---|
| 5556 | _ACEOF
|
---|
| 5557 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5558 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5559 | /* end confdefs.h. */
|
---|
[687] | 5560 | #ifdef __GNUC__
|
---|
| 5561 | # define alloca __builtin_alloca
|
---|
| 5562 | #else
|
---|
| 5563 | # ifdef _MSC_VER
|
---|
| 5564 | # include <malloc.h>
|
---|
| 5565 | # define alloca _alloca
|
---|
| 5566 | # else
|
---|
| 5567 | # if HAVE_ALLOCA_H
|
---|
| 5568 | # include <alloca.h>
|
---|
| 5569 | # else
|
---|
| 5570 | # ifdef _AIX
|
---|
| 5571 | #pragma alloca
|
---|
| 5572 | # else
|
---|
| 5573 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5574 | char *alloca ();
|
---|
| 5575 | # endif
|
---|
| 5576 | # endif
|
---|
| 5577 | # endif
|
---|
| 5578 | # endif
|
---|
| 5579 | #endif
|
---|
| 5580 |
|
---|
[8756] | 5581 | int
|
---|
| 5582 | main ()
|
---|
| 5583 | {
|
---|
| 5584 | char *p = (char *) alloca (1);
|
---|
| 5585 | ;
|
---|
| 5586 | return 0;
|
---|
| 5587 | }
|
---|
| 5588 | _ACEOF
|
---|
| 5589 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5590 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5591 | (eval $ac_link) 2>conftest.er1
|
---|
| 5592 | ac_status=$?
|
---|
| 5593 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5594 | rm -f conftest.er1
|
---|
| 5595 | cat conftest.err >&5
|
---|
| 5596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5597 | (exit $ac_status); } &&
|
---|
| 5598 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5599 | || test ! -s conftest.err'
|
---|
| 5600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5601 | (eval $ac_try) 2>&5
|
---|
| 5602 | ac_status=$?
|
---|
| 5603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5604 | (exit $ac_status); }; } &&
|
---|
| 5605 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5607 | (eval $ac_try) 2>&5
|
---|
| 5608 | ac_status=$?
|
---|
| 5609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5610 | (exit $ac_status); }; }; then
|
---|
[687] | 5611 | ac_cv_func_alloca_works=yes
|
---|
[562] | 5612 | else
|
---|
[8756] | 5613 | echo "$as_me: failed program was:" >&5
|
---|
| 5614 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5615 |
|
---|
| 5616 | ac_cv_func_alloca_works=no
|
---|
[562] | 5617 | fi
|
---|
[8756] | 5618 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5619 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5620 | fi
|
---|
[8756] | 5621 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
| 5622 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
[562] | 5623 |
|
---|
[687] | 5624 | if test $ac_cv_func_alloca_works = yes; then
|
---|
[8756] | 5625 |
|
---|
| 5626 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5627 | #define HAVE_ALLOCA 1
|
---|
[8756] | 5628 | _ACEOF
|
---|
[562] | 5629 |
|
---|
[8756] | 5630 | else
|
---|
| 5631 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5632 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5633 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5634 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
[8200] | 5635 |
|
---|
[8756] | 5636 | ALLOCA=alloca.$ac_objext
|
---|
| 5637 |
|
---|
| 5638 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5639 | #define C_ALLOCA 1
|
---|
[8756] | 5640 | _ACEOF
|
---|
[562] | 5641 |
|
---|
[8200] | 5642 |
|
---|
[8756] | 5643 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
| 5644 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
| 5645 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 5646 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5647 | else
|
---|
[8756] | 5648 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5649 | /* confdefs.h. */
|
---|
| 5650 | _ACEOF
|
---|
| 5651 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5652 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5653 | /* end confdefs.h. */
|
---|
[687] | 5654 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
| 5655 | webecray
|
---|
| 5656 | #else
|
---|
| 5657 | wenotbecray
|
---|
| 5658 | #endif
|
---|
[562] | 5659 |
|
---|
[8756] | 5660 | _ACEOF
|
---|
[687] | 5661 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5662 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
[687] | 5663 | ac_cv_os_cray=yes
|
---|
| 5664 | else
|
---|
| 5665 | ac_cv_os_cray=no
|
---|
| 5666 | fi
|
---|
| 5667 | rm -f conftest*
|
---|
[562] | 5668 |
|
---|
[687] | 5669 | fi
|
---|
[8756] | 5670 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
| 5671 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
[687] | 5672 | if test $ac_cv_os_cray = yes; then
|
---|
[8756] | 5673 | for ac_func in _getb67 GETB67 getb67; do
|
---|
| 5674 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5675 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5676 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5677 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 5678 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5679 | else
|
---|
[8756] | 5680 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5681 | /* confdefs.h. */
|
---|
| 5682 | _ACEOF
|
---|
| 5683 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5684 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5685 | /* end confdefs.h. */
|
---|
| 5686 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5687 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5688 | #define $ac_func innocuous_$ac_func
|
---|
| 5689 |
|
---|
[687] | 5690 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 5691 | which can conflict with char $ac_func (); below.
|
---|
| 5692 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5693 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5694 |
|
---|
| 5695 | #ifdef __STDC__
|
---|
| 5696 | # include <limits.h>
|
---|
| 5697 | #else
|
---|
| 5698 | # include <assert.h>
|
---|
| 5699 | #endif
|
---|
| 5700 |
|
---|
| 5701 | #undef $ac_func
|
---|
| 5702 |
|
---|
[687] | 5703 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 5704 | #ifdef __cplusplus
|
---|
| 5705 | extern "C"
|
---|
| 5706 | {
|
---|
| 5707 | #endif
|
---|
[687] | 5708 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 5709 | builtin and then its argument prototype would still apply. */
|
---|
| 5710 | char $ac_func ();
|
---|
[687] | 5711 | /* The GNU C library defines this for functions which it implements
|
---|
| 5712 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5713 | something starting with __ and the normal name is an alias. */
|
---|
| 5714 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5715 | choke me
|
---|
| 5716 | #else
|
---|
[8756] | 5717 | char (*f) () = $ac_func;
|
---|
[687] | 5718 | #endif
|
---|
[8756] | 5719 | #ifdef __cplusplus
|
---|
| 5720 | }
|
---|
| 5721 | #endif
|
---|
[687] | 5722 |
|
---|
[8756] | 5723 | int
|
---|
| 5724 | main ()
|
---|
| 5725 | {
|
---|
| 5726 | return f != $ac_func;
|
---|
| 5727 | ;
|
---|
| 5728 | return 0;
|
---|
| 5729 | }
|
---|
| 5730 | _ACEOF
|
---|
| 5731 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5732 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5733 | (eval $ac_link) 2>conftest.er1
|
---|
| 5734 | ac_status=$?
|
---|
| 5735 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5736 | rm -f conftest.er1
|
---|
| 5737 | cat conftest.err >&5
|
---|
| 5738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5739 | (exit $ac_status); } &&
|
---|
| 5740 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5741 | || test ! -s conftest.err'
|
---|
| 5742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5743 | (eval $ac_try) 2>&5
|
---|
| 5744 | ac_status=$?
|
---|
| 5745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5746 | (exit $ac_status); }; } &&
|
---|
| 5747 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5749 | (eval $ac_try) 2>&5
|
---|
| 5750 | ac_status=$?
|
---|
| 5751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5752 | (exit $ac_status); }; }; then
|
---|
| 5753 | eval "$as_ac_var=yes"
|
---|
[562] | 5754 | else
|
---|
[8756] | 5755 | echo "$as_me: failed program was:" >&5
|
---|
| 5756 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5757 |
|
---|
| 5758 | eval "$as_ac_var=no"
|
---|
[562] | 5759 | fi
|
---|
[8756] | 5760 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5761 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 5762 | fi
|
---|
[8756] | 5763 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5764 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5765 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[562] | 5766 |
|
---|
[8756] | 5767 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5768 | #define CRAY_STACKSEG_END $ac_func
|
---|
[8756] | 5769 | _ACEOF
|
---|
[562] | 5770 |
|
---|
[8756] | 5771 | break
|
---|
[687] | 5772 | fi
|
---|
[562] | 5773 |
|
---|
[8756] | 5774 | done
|
---|
[687] | 5775 | fi
|
---|
| 5776 |
|
---|
[8756] | 5777 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
| 5778 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
| 5779 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 5780 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5781 | else
|
---|
| 5782 | if test "$cross_compiling" = yes; then
|
---|
| 5783 | ac_cv_c_stack_direction=0
|
---|
| 5784 | else
|
---|
[8756] | 5785 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5786 | /* confdefs.h. */
|
---|
| 5787 | _ACEOF
|
---|
| 5788 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5789 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5790 | /* end confdefs.h. */
|
---|
| 5791 | int
|
---|
[687] | 5792 | find_stack_direction ()
|
---|
| 5793 | {
|
---|
| 5794 | static char *addr = 0;
|
---|
| 5795 | auto char dummy;
|
---|
| 5796 | if (addr == 0)
|
---|
| 5797 | {
|
---|
| 5798 | addr = &dummy;
|
---|
| 5799 | return find_stack_direction ();
|
---|
| 5800 | }
|
---|
| 5801 | else
|
---|
| 5802 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5803 | }
|
---|
[8756] | 5804 |
|
---|
| 5805 | int
|
---|
[687] | 5806 | main ()
|
---|
| 5807 | {
|
---|
[8756] | 5808 | exit (find_stack_direction () < 0);
|
---|
[687] | 5809 | }
|
---|
[8756] | 5810 | _ACEOF
|
---|
| 5811 | rm -f conftest$ac_exeext
|
---|
| 5812 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5813 | (eval $ac_link) 2>&5
|
---|
| 5814 | ac_status=$?
|
---|
| 5815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5816 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 5817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5818 | (eval $ac_try) 2>&5
|
---|
| 5819 | ac_status=$?
|
---|
| 5820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5821 | (exit $ac_status); }; }; then
|
---|
[687] | 5822 | ac_cv_c_stack_direction=1
|
---|
[562] | 5823 | else
|
---|
[8756] | 5824 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5825 | echo "$as_me: failed program was:" >&5
|
---|
| 5826 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5827 |
|
---|
| 5828 | ( exit $ac_status )
|
---|
| 5829 | ac_cv_c_stack_direction=-1
|
---|
[562] | 5830 | fi
|
---|
[8756] | 5831 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5832 | fi
|
---|
| 5833 | fi
|
---|
[8756] | 5834 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
| 5835 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
[687] | 5836 |
|
---|
[8756] | 5837 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5838 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[8756] | 5839 | _ACEOF
|
---|
[687] | 5840 |
|
---|
[8756] | 5841 |
|
---|
[687] | 5842 | fi
|
---|
| 5843 |
|
---|
[8756] | 5844 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
| 5845 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
| 5846 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
| 5847 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 5848 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5849 | else
|
---|
| 5850 | ac_pattern="Autoconf.*'x'"
|
---|
[8756] | 5851 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5852 | /* confdefs.h. */
|
---|
| 5853 | _ACEOF
|
---|
| 5854 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5855 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5856 | /* end confdefs.h. */
|
---|
[687] | 5857 | #include <sgtty.h>
|
---|
| 5858 | Autoconf TIOCGETP
|
---|
[8756] | 5859 | _ACEOF
|
---|
[687] | 5860 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5861 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[687] | 5862 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5863 | else
|
---|
| 5864 | ac_cv_prog_gcc_traditional=no
|
---|
| 5865 | fi
|
---|
[562] | 5866 | rm -f conftest*
|
---|
[687] | 5867 |
|
---|
[8200] | 5868 |
|
---|
[687] | 5869 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[8756] | 5870 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5871 | /* confdefs.h. */
|
---|
| 5872 | _ACEOF
|
---|
| 5873 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5874 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5875 | /* end confdefs.h. */
|
---|
[687] | 5876 | #include <termio.h>
|
---|
| 5877 | Autoconf TCGETA
|
---|
[8756] | 5878 | _ACEOF
|
---|
[687] | 5879 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5880 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[687] | 5881 | ac_cv_prog_gcc_traditional=yes
|
---|
[562] | 5882 | fi
|
---|
[687] | 5883 | rm -f conftest*
|
---|
[562] | 5884 |
|
---|
[687] | 5885 | fi
|
---|
| 5886 | fi
|
---|
[8756] | 5887 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
| 5888 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
[687] | 5889 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5890 | CC="$CC -traditional"
|
---|
| 5891 | fi
|
---|
| 5892 | fi
|
---|
| 5893 |
|
---|
[8756] | 5894 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
| 5895 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
| 5896 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 5897 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5898 | else
|
---|
[8756] | 5899 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5900 | /* confdefs.h. */
|
---|
| 5901 | _ACEOF
|
---|
| 5902 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5903 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5904 | /* end confdefs.h. */
|
---|
[687] | 5905 | #include <sys/types.h>
|
---|
| 5906 | #include <signal.h>
|
---|
| 5907 | #ifdef signal
|
---|
[8756] | 5908 | # undef signal
|
---|
[687] | 5909 | #endif
|
---|
| 5910 | #ifdef __cplusplus
|
---|
| 5911 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 5912 | #else
|
---|
| 5913 | void (*signal ()) ();
|
---|
| 5914 | #endif
|
---|
[562] | 5915 |
|
---|
[8756] | 5916 | int
|
---|
| 5917 | main ()
|
---|
| 5918 | {
|
---|
[687] | 5919 | int i;
|
---|
[8756] | 5920 | ;
|
---|
| 5921 | return 0;
|
---|
| 5922 | }
|
---|
| 5923 | _ACEOF
|
---|
| 5924 | rm -f conftest.$ac_objext
|
---|
| 5925 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5926 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5927 | ac_status=$?
|
---|
| 5928 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5929 | rm -f conftest.er1
|
---|
| 5930 | cat conftest.err >&5
|
---|
| 5931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5932 | (exit $ac_status); } &&
|
---|
| 5933 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5934 | || test ! -s conftest.err'
|
---|
| 5935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5936 | (eval $ac_try) 2>&5
|
---|
| 5937 | ac_status=$?
|
---|
| 5938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5939 | (exit $ac_status); }; } &&
|
---|
| 5940 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5942 | (eval $ac_try) 2>&5
|
---|
| 5943 | ac_status=$?
|
---|
| 5944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5945 | (exit $ac_status); }; }; then
|
---|
[687] | 5946 | ac_cv_type_signal=void
|
---|
[562] | 5947 | else
|
---|
[8756] | 5948 | echo "$as_me: failed program was:" >&5
|
---|
| 5949 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5950 |
|
---|
| 5951 | ac_cv_type_signal=int
|
---|
[562] | 5952 | fi
|
---|
[8756] | 5953 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5954 | fi
|
---|
[8756] | 5955 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
| 5956 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
[562] | 5957 |
|
---|
[8756] | 5958 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5959 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[8756] | 5960 | _ACEOF
|
---|
[562] | 5961 |
|
---|
[8200] | 5962 |
|
---|
[8756] | 5963 |
|
---|
| 5964 | for ac_func in vprintf
|
---|
| 5965 | do
|
---|
| 5966 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5967 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5968 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5969 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 5970 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5971 | else
|
---|
[8756] | 5972 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5973 | /* confdefs.h. */
|
---|
| 5974 | _ACEOF
|
---|
| 5975 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5976 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5977 | /* end confdefs.h. */
|
---|
| 5978 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5979 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5980 | #define $ac_func innocuous_$ac_func
|
---|
| 5981 |
|
---|
[562] | 5982 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 5983 | which can conflict with char $ac_func (); below.
|
---|
| 5984 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5985 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5986 |
|
---|
| 5987 | #ifdef __STDC__
|
---|
| 5988 | # include <limits.h>
|
---|
| 5989 | #else
|
---|
| 5990 | # include <assert.h>
|
---|
| 5991 | #endif
|
---|
| 5992 |
|
---|
| 5993 | #undef $ac_func
|
---|
| 5994 |
|
---|
[562] | 5995 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 5996 | #ifdef __cplusplus
|
---|
| 5997 | extern "C"
|
---|
| 5998 | {
|
---|
| 5999 | #endif
|
---|
[562] | 6000 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6001 | builtin and then its argument prototype would still apply. */
|
---|
| 6002 | char $ac_func ();
|
---|
[562] | 6003 | /* The GNU C library defines this for functions which it implements
|
---|
| 6004 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6005 | something starting with __ and the normal name is an alias. */
|
---|
[8756] | 6006 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[562] | 6007 | choke me
|
---|
| 6008 | #else
|
---|
[8756] | 6009 | char (*f) () = $ac_func;
|
---|
[562] | 6010 | #endif
|
---|
[8756] | 6011 | #ifdef __cplusplus
|
---|
| 6012 | }
|
---|
| 6013 | #endif
|
---|
[562] | 6014 |
|
---|
[8756] | 6015 | int
|
---|
| 6016 | main ()
|
---|
| 6017 | {
|
---|
| 6018 | return f != $ac_func;
|
---|
| 6019 | ;
|
---|
| 6020 | return 0;
|
---|
| 6021 | }
|
---|
| 6022 | _ACEOF
|
---|
| 6023 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6024 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6025 | (eval $ac_link) 2>conftest.er1
|
---|
| 6026 | ac_status=$?
|
---|
| 6027 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6028 | rm -f conftest.er1
|
---|
| 6029 | cat conftest.err >&5
|
---|
| 6030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6031 | (exit $ac_status); } &&
|
---|
| 6032 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6033 | || test ! -s conftest.err'
|
---|
| 6034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6035 | (eval $ac_try) 2>&5
|
---|
| 6036 | ac_status=$?
|
---|
| 6037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6038 | (exit $ac_status); }; } &&
|
---|
| 6039 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6041 | (eval $ac_try) 2>&5
|
---|
| 6042 | ac_status=$?
|
---|
| 6043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6044 | (exit $ac_status); }; }; then
|
---|
| 6045 | eval "$as_ac_var=yes"
|
---|
[562] | 6046 | else
|
---|
[8756] | 6047 | echo "$as_me: failed program was:" >&5
|
---|
| 6048 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6049 |
|
---|
| 6050 | eval "$as_ac_var=no"
|
---|
[562] | 6051 | fi
|
---|
[8756] | 6052 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6053 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 6054 | fi
|
---|
[8756] | 6055 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6056 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6057 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6058 | cat >>confdefs.h <<_ACEOF
|
---|
| 6059 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6060 | _ACEOF
|
---|
[8200] | 6061 |
|
---|
[8756] | 6062 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
| 6063 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
| 6064 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 6065 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 6066 | else
|
---|
[8756] | 6067 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6068 | /* confdefs.h. */
|
---|
| 6069 | _ACEOF
|
---|
| 6070 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6071 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6072 | /* end confdefs.h. */
|
---|
| 6073 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 6074 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6075 | #define _doprnt innocuous__doprnt
|
---|
[8200] | 6076 |
|
---|
[562] | 6077 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6078 | which can conflict with char _doprnt (); below.
|
---|
| 6079 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6080 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6081 |
|
---|
| 6082 | #ifdef __STDC__
|
---|
| 6083 | # include <limits.h>
|
---|
| 6084 | #else
|
---|
| 6085 | # include <assert.h>
|
---|
| 6086 | #endif
|
---|
| 6087 |
|
---|
| 6088 | #undef _doprnt
|
---|
| 6089 |
|
---|
[562] | 6090 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6091 | #ifdef __cplusplus
|
---|
| 6092 | extern "C"
|
---|
| 6093 | {
|
---|
| 6094 | #endif
|
---|
[562] | 6095 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6096 | builtin and then its argument prototype would still apply. */
|
---|
| 6097 | char _doprnt ();
|
---|
[562] | 6098 | /* The GNU C library defines this for functions which it implements
|
---|
| 6099 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6100 | something starting with __ and the normal name is an alias. */
|
---|
| 6101 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
| 6102 | choke me
|
---|
| 6103 | #else
|
---|
[8756] | 6104 | char (*f) () = _doprnt;
|
---|
[562] | 6105 | #endif
|
---|
[8756] | 6106 | #ifdef __cplusplus
|
---|
| 6107 | }
|
---|
| 6108 | #endif
|
---|
[562] | 6109 |
|
---|
[8756] | 6110 | int
|
---|
| 6111 | main ()
|
---|
| 6112 | {
|
---|
| 6113 | return f != _doprnt;
|
---|
| 6114 | ;
|
---|
| 6115 | return 0;
|
---|
| 6116 | }
|
---|
| 6117 | _ACEOF
|
---|
| 6118 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6119 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6120 | (eval $ac_link) 2>conftest.er1
|
---|
| 6121 | ac_status=$?
|
---|
| 6122 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6123 | rm -f conftest.er1
|
---|
| 6124 | cat conftest.err >&5
|
---|
| 6125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6126 | (exit $ac_status); } &&
|
---|
| 6127 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6128 | || test ! -s conftest.err'
|
---|
| 6129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6130 | (eval $ac_try) 2>&5
|
---|
| 6131 | ac_status=$?
|
---|
| 6132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6133 | (exit $ac_status); }; } &&
|
---|
| 6134 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6136 | (eval $ac_try) 2>&5
|
---|
| 6137 | ac_status=$?
|
---|
| 6138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6139 | (exit $ac_status); }; }; then
|
---|
| 6140 | ac_cv_func__doprnt=yes
|
---|
[562] | 6141 | else
|
---|
[8756] | 6142 | echo "$as_me: failed program was:" >&5
|
---|
| 6143 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6144 |
|
---|
| 6145 | ac_cv_func__doprnt=no
|
---|
[562] | 6146 | fi
|
---|
[8756] | 6147 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6148 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 6149 | fi
|
---|
[8756] | 6150 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
| 6151 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
| 6152 | if test $ac_cv_func__doprnt = yes; then
|
---|
[562] | 6153 |
|
---|
[8756] | 6154 | cat >>confdefs.h <<\_ACEOF
|
---|
[562] | 6155 | #define HAVE_DOPRNT 1
|
---|
[8756] | 6156 | _ACEOF
|
---|
[562] | 6157 |
|
---|
| 6158 | fi
|
---|
| 6159 |
|
---|
| 6160 | fi
|
---|
[8756] | 6161 | done
|
---|
[562] | 6162 |
|
---|
[8756] | 6163 |
|
---|
| 6164 |
|
---|
| 6165 |
|
---|
| 6166 |
|
---|
| 6167 |
|
---|
| 6168 |
|
---|
| 6169 |
|
---|
| 6170 |
|
---|
| 6171 |
|
---|
| 6172 |
|
---|
| 6173 |
|
---|
[788] | 6174 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
[687] | 6175 | do
|
---|
[8756] | 6176 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6177 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6178 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6179 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6180 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6181 | else
|
---|
[8756] | 6182 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6183 | /* confdefs.h. */
|
---|
| 6184 | _ACEOF
|
---|
| 6185 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6186 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6187 | /* end confdefs.h. */
|
---|
| 6188 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6189 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6190 | #define $ac_func innocuous_$ac_func
|
---|
| 6191 |
|
---|
[687] | 6192 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6193 | which can conflict with char $ac_func (); below.
|
---|
| 6194 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6195 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6196 |
|
---|
| 6197 | #ifdef __STDC__
|
---|
| 6198 | # include <limits.h>
|
---|
| 6199 | #else
|
---|
| 6200 | # include <assert.h>
|
---|
| 6201 | #endif
|
---|
| 6202 |
|
---|
| 6203 | #undef $ac_func
|
---|
| 6204 |
|
---|
[687] | 6205 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6206 | #ifdef __cplusplus
|
---|
| 6207 | extern "C"
|
---|
| 6208 | {
|
---|
| 6209 | #endif
|
---|
[687] | 6210 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6211 | builtin and then its argument prototype would still apply. */
|
---|
| 6212 | char $ac_func ();
|
---|
[687] | 6213 | /* The GNU C library defines this for functions which it implements
|
---|
| 6214 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6215 | something starting with __ and the normal name is an alias. */
|
---|
| 6216 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6217 | choke me
|
---|
| 6218 | #else
|
---|
[8756] | 6219 | char (*f) () = $ac_func;
|
---|
[687] | 6220 | #endif
|
---|
[8756] | 6221 | #ifdef __cplusplus
|
---|
| 6222 | }
|
---|
| 6223 | #endif
|
---|
[687] | 6224 |
|
---|
[8756] | 6225 | int
|
---|
| 6226 | main ()
|
---|
| 6227 | {
|
---|
| 6228 | return f != $ac_func;
|
---|
| 6229 | ;
|
---|
| 6230 | return 0;
|
---|
| 6231 | }
|
---|
| 6232 | _ACEOF
|
---|
| 6233 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6234 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6235 | (eval $ac_link) 2>conftest.er1
|
---|
| 6236 | ac_status=$?
|
---|
| 6237 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6238 | rm -f conftest.er1
|
---|
| 6239 | cat conftest.err >&5
|
---|
| 6240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6241 | (exit $ac_status); } &&
|
---|
| 6242 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6243 | || test ! -s conftest.err'
|
---|
| 6244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6245 | (eval $ac_try) 2>&5
|
---|
| 6246 | ac_status=$?
|
---|
| 6247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6248 | (exit $ac_status); }; } &&
|
---|
| 6249 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6251 | (eval $ac_try) 2>&5
|
---|
| 6252 | ac_status=$?
|
---|
| 6253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6254 | (exit $ac_status); }; }; then
|
---|
| 6255 | eval "$as_ac_var=yes"
|
---|
[687] | 6256 | else
|
---|
[8756] | 6257 | echo "$as_me: failed program was:" >&5
|
---|
| 6258 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6259 |
|
---|
| 6260 | eval "$as_ac_var=no"
|
---|
[687] | 6261 | fi
|
---|
[8756] | 6262 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6263 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 6264 | fi
|
---|
[8756] | 6265 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6266 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6267 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6268 | cat >>confdefs.h <<_ACEOF
|
---|
| 6269 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6270 | _ACEOF
|
---|
[8200] | 6271 |
|
---|
[687] | 6272 | fi
|
---|
| 6273 | done
|
---|
| 6274 |
|
---|
[8756] | 6275 |
|
---|
| 6276 |
|
---|
| 6277 |
|
---|
[687] | 6278 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6279 | do
|
---|
[8756] | 6280 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6281 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6282 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6283 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6284 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6285 | else
|
---|
[8756] | 6286 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6287 | /* confdefs.h. */
|
---|
| 6288 | _ACEOF
|
---|
| 6289 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6290 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6291 | /* end confdefs.h. */
|
---|
| 6292 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6293 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6294 | #define $ac_func innocuous_$ac_func
|
---|
| 6295 |
|
---|
[687] | 6296 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6297 | which can conflict with char $ac_func (); below.
|
---|
| 6298 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6299 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6300 |
|
---|
| 6301 | #ifdef __STDC__
|
---|
| 6302 | # include <limits.h>
|
---|
| 6303 | #else
|
---|
| 6304 | # include <assert.h>
|
---|
| 6305 | #endif
|
---|
| 6306 |
|
---|
| 6307 | #undef $ac_func
|
---|
| 6308 |
|
---|
[687] | 6309 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6310 | #ifdef __cplusplus
|
---|
| 6311 | extern "C"
|
---|
| 6312 | {
|
---|
| 6313 | #endif
|
---|
[687] | 6314 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6315 | builtin and then its argument prototype would still apply. */
|
---|
| 6316 | char $ac_func ();
|
---|
[687] | 6317 | /* The GNU C library defines this for functions which it implements
|
---|
| 6318 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6319 | something starting with __ and the normal name is an alias. */
|
---|
| 6320 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6321 | choke me
|
---|
| 6322 | #else
|
---|
[8756] | 6323 | char (*f) () = $ac_func;
|
---|
[687] | 6324 | #endif
|
---|
[8756] | 6325 | #ifdef __cplusplus
|
---|
| 6326 | }
|
---|
| 6327 | #endif
|
---|
[687] | 6328 |
|
---|
[8756] | 6329 | int
|
---|
| 6330 | main ()
|
---|
| 6331 | {
|
---|
| 6332 | return f != $ac_func;
|
---|
| 6333 | ;
|
---|
| 6334 | return 0;
|
---|
| 6335 | }
|
---|
| 6336 | _ACEOF
|
---|
| 6337 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6339 | (eval $ac_link) 2>conftest.er1
|
---|
| 6340 | ac_status=$?
|
---|
| 6341 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6342 | rm -f conftest.er1
|
---|
| 6343 | cat conftest.err >&5
|
---|
| 6344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6345 | (exit $ac_status); } &&
|
---|
| 6346 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6347 | || test ! -s conftest.err'
|
---|
| 6348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6349 | (eval $ac_try) 2>&5
|
---|
| 6350 | ac_status=$?
|
---|
| 6351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6352 | (exit $ac_status); }; } &&
|
---|
| 6353 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6355 | (eval $ac_try) 2>&5
|
---|
| 6356 | ac_status=$?
|
---|
| 6357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6358 | (exit $ac_status); }; }; then
|
---|
| 6359 | eval "$as_ac_var=yes"
|
---|
[687] | 6360 | else
|
---|
[8756] | 6361 | echo "$as_me: failed program was:" >&5
|
---|
| 6362 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6363 |
|
---|
| 6364 | eval "$as_ac_var=no"
|
---|
[687] | 6365 | fi
|
---|
[8756] | 6366 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6367 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 6368 | fi
|
---|
[8756] | 6369 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6370 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6371 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6372 | cat >>confdefs.h <<_ACEOF
|
---|
| 6373 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6374 | _ACEOF
|
---|
[8200] | 6375 |
|
---|
[687] | 6376 | else
|
---|
[8756] | 6377 | case $LIBOBJS in
|
---|
| 6378 | "$ac_func.$ac_objext" | \
|
---|
| 6379 | *" $ac_func.$ac_objext" | \
|
---|
| 6380 | "$ac_func.$ac_objext "* | \
|
---|
| 6381 | *" $ac_func.$ac_objext "* ) ;;
|
---|
| 6382 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
| 6383 | esac
|
---|
| 6384 |
|
---|
[687] | 6385 | fi
|
---|
| 6386 | done
|
---|
| 6387 |
|
---|
[8200] | 6388 |
|
---|
| 6389 |
|
---|
[8756] | 6390 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
| 6391 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
| 6392 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
| 6393 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3705] | 6394 | else
|
---|
[8756] | 6395 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6396 | /* confdefs.h. */
|
---|
| 6397 | _ACEOF
|
---|
| 6398 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6399 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6400 | /* end confdefs.h. */
|
---|
| 6401 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 6402 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6403 | #define textdomain innocuous_textdomain
|
---|
| 6404 |
|
---|
[3705] | 6405 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6406 | which can conflict with char textdomain (); below.
|
---|
| 6407 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6408 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6409 |
|
---|
| 6410 | #ifdef __STDC__
|
---|
| 6411 | # include <limits.h>
|
---|
| 6412 | #else
|
---|
| 6413 | # include <assert.h>
|
---|
| 6414 | #endif
|
---|
| 6415 |
|
---|
| 6416 | #undef textdomain
|
---|
| 6417 |
|
---|
[3705] | 6418 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6419 | #ifdef __cplusplus
|
---|
| 6420 | extern "C"
|
---|
| 6421 | {
|
---|
| 6422 | #endif
|
---|
[3705] | 6423 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6424 | builtin and then its argument prototype would still apply. */
|
---|
| 6425 | char textdomain ();
|
---|
[3705] | 6426 | /* The GNU C library defines this for functions which it implements
|
---|
| 6427 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6428 | something starting with __ and the normal name is an alias. */
|
---|
[8202] | 6429 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
[3705] | 6430 | choke me
|
---|
| 6431 | #else
|
---|
[8756] | 6432 | char (*f) () = textdomain;
|
---|
[3705] | 6433 | #endif
|
---|
[8756] | 6434 | #ifdef __cplusplus
|
---|
| 6435 | }
|
---|
| 6436 | #endif
|
---|
[3705] | 6437 |
|
---|
[8756] | 6438 | int
|
---|
| 6439 | main ()
|
---|
| 6440 | {
|
---|
| 6441 | return f != textdomain;
|
---|
| 6442 | ;
|
---|
| 6443 | return 0;
|
---|
| 6444 | }
|
---|
| 6445 | _ACEOF
|
---|
| 6446 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6447 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6448 | (eval $ac_link) 2>conftest.er1
|
---|
| 6449 | ac_status=$?
|
---|
| 6450 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6451 | rm -f conftest.er1
|
---|
| 6452 | cat conftest.err >&5
|
---|
| 6453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6454 | (exit $ac_status); } &&
|
---|
| 6455 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6456 | || test ! -s conftest.err'
|
---|
| 6457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6458 | (eval $ac_try) 2>&5
|
---|
| 6459 | ac_status=$?
|
---|
| 6460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6461 | (exit $ac_status); }; } &&
|
---|
| 6462 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6464 | (eval $ac_try) 2>&5
|
---|
| 6465 | ac_status=$?
|
---|
| 6466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6467 | (exit $ac_status); }; }; then
|
---|
| 6468 | ac_cv_func_textdomain=yes
|
---|
[3705] | 6469 | else
|
---|
[8756] | 6470 | echo "$as_me: failed program was:" >&5
|
---|
| 6471 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6472 |
|
---|
| 6473 | ac_cv_func_textdomain=no
|
---|
[3705] | 6474 | fi
|
---|
[8756] | 6475 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6476 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3705] | 6477 | fi
|
---|
[8756] | 6478 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
| 6479 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
| 6480 | if test $ac_cv_func_textdomain = yes; then
|
---|
| 6481 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6482 | #define ENABLE_NLS 1
|
---|
| 6483 | _ACEOF
|
---|
[8200] | 6484 |
|
---|
[3705] | 6485 | fi
|
---|
| 6486 |
|
---|
[8200] | 6487 |
|
---|
[687] | 6488 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 6489 | # ---------------------------------------------------------------------------
|
---|
[8756] | 6490 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
| 6491 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
[687] | 6492 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[8756] | 6493 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6494 | echo "${ECHO_T}yes" >&6
|
---|
| 6495 | case $LIBOBJS in
|
---|
| 6496 | "gmalloc.$ac_objext" | \
|
---|
| 6497 | *" gmalloc.$ac_objext" | \
|
---|
| 6498 | "gmalloc.$ac_objext "* | \
|
---|
| 6499 | *" gmalloc.$ac_objext "* ) ;;
|
---|
| 6500 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
| 6501 | esac
|
---|
| 6502 |
|
---|
| 6503 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 6504 | #define HAVE_VALLOC 1
|
---|
[8756] | 6505 | _ACEOF
|
---|
[687] | 6506 |
|
---|
| 6507 | else
|
---|
[8756] | 6508 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6509 | echo "${ECHO_T}no" >&6
|
---|
| 6510 |
|
---|
| 6511 | for ac_func in valloc
|
---|
[687] | 6512 | do
|
---|
[8756] | 6513 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6514 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6515 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6516 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6517 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6518 | else
|
---|
[8756] | 6519 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6520 | /* confdefs.h. */
|
---|
| 6521 | _ACEOF
|
---|
| 6522 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6523 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6524 | /* end confdefs.h. */
|
---|
| 6525 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6526 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6527 | #define $ac_func innocuous_$ac_func
|
---|
| 6528 |
|
---|
[687] | 6529 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6530 | which can conflict with char $ac_func (); below.
|
---|
| 6531 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6532 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6533 |
|
---|
| 6534 | #ifdef __STDC__
|
---|
| 6535 | # include <limits.h>
|
---|
| 6536 | #else
|
---|
| 6537 | # include <assert.h>
|
---|
| 6538 | #endif
|
---|
| 6539 |
|
---|
| 6540 | #undef $ac_func
|
---|
| 6541 |
|
---|
[687] | 6542 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6543 | #ifdef __cplusplus
|
---|
| 6544 | extern "C"
|
---|
| 6545 | {
|
---|
| 6546 | #endif
|
---|
[687] | 6547 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6548 | builtin and then its argument prototype would still apply. */
|
---|
| 6549 | char $ac_func ();
|
---|
[687] | 6550 | /* The GNU C library defines this for functions which it implements
|
---|
| 6551 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6552 | something starting with __ and the normal name is an alias. */
|
---|
| 6553 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6554 | choke me
|
---|
| 6555 | #else
|
---|
[8756] | 6556 | char (*f) () = $ac_func;
|
---|
[687] | 6557 | #endif
|
---|
[8756] | 6558 | #ifdef __cplusplus
|
---|
| 6559 | }
|
---|
| 6560 | #endif
|
---|
[687] | 6561 |
|
---|
[8756] | 6562 | int
|
---|
| 6563 | main ()
|
---|
| 6564 | {
|
---|
| 6565 | return f != $ac_func;
|
---|
| 6566 | ;
|
---|
| 6567 | return 0;
|
---|
| 6568 | }
|
---|
| 6569 | _ACEOF
|
---|
| 6570 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6571 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6572 | (eval $ac_link) 2>conftest.er1
|
---|
| 6573 | ac_status=$?
|
---|
| 6574 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6575 | rm -f conftest.er1
|
---|
| 6576 | cat conftest.err >&5
|
---|
| 6577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6578 | (exit $ac_status); } &&
|
---|
| 6579 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6580 | || test ! -s conftest.err'
|
---|
| 6581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6582 | (eval $ac_try) 2>&5
|
---|
| 6583 | ac_status=$?
|
---|
| 6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6585 | (exit $ac_status); }; } &&
|
---|
| 6586 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6588 | (eval $ac_try) 2>&5
|
---|
| 6589 | ac_status=$?
|
---|
| 6590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6591 | (exit $ac_status); }; }; then
|
---|
| 6592 | eval "$as_ac_var=yes"
|
---|
[687] | 6593 | else
|
---|
[8756] | 6594 | echo "$as_me: failed program was:" >&5
|
---|
| 6595 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6596 |
|
---|
| 6597 | eval "$as_ac_var=no"
|
---|
[687] | 6598 | fi
|
---|
[8756] | 6599 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6600 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 6601 | fi
|
---|
[8756] | 6602 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6603 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6604 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6605 | cat >>confdefs.h <<_ACEOF
|
---|
| 6606 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6607 | _ACEOF
|
---|
[8200] | 6608 |
|
---|
[687] | 6609 | fi
|
---|
| 6610 | done
|
---|
| 6611 |
|
---|
| 6612 | fi
|
---|
| 6613 |
|
---|
[8200] | 6614 | # we cannot generate static libraries under Darwin
|
---|
[8756] | 6615 | echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
| 6616 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
|
---|
[8200] | 6617 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[8756] | 6618 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6619 | echo "${ECHO_T}yes" >&6
|
---|
[8200] | 6620 | STATIC=""
|
---|
| 6621 | else
|
---|
[8756] | 6622 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6623 | echo "${ECHO_T}no" >&6
|
---|
[8200] | 6624 | STATIC="-static "
|
---|
| 6625 | fi
|
---|
[3631] | 6626 |
|
---|
[8200] | 6627 |
|
---|
[8756] | 6628 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
| 6629 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
| 6630 |
|
---|
[700] | 6631 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
| 6632 | if test "${with_dmalloc+set}" = set; then
|
---|
| 6633 | withval="$with_dmalloc"
|
---|
| 6634 | if test "$withval" = yes; then
|
---|
[8756] | 6635 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6636 | echo "${ECHO_T}yes" >&6
|
---|
| 6637 | cat >>confdefs.h <<\_ACEOF
|
---|
[700] | 6638 | #define WITH_DMALLOC 1
|
---|
[8756] | 6639 | _ACEOF
|
---|
[687] | 6640 |
|
---|
[700] | 6641 | LIBS="$LIBS -ldmalloc"
|
---|
| 6642 | LDFLAGS="$LDFLAGS -g"
|
---|
| 6643 | else
|
---|
[8756] | 6644 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6645 | echo "${ECHO_T}no" >&6
|
---|
[700] | 6646 | fi
|
---|
| 6647 | else
|
---|
[8756] | 6648 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6649 | echo "${ECHO_T}no" >&6
|
---|
| 6650 | fi;
|
---|
[700] | 6651 |
|
---|
[8756] | 6652 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
| 6653 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
[700] | 6654 |
|
---|
| 6655 | # Check whether --with-regex or --without-regex was given.
|
---|
| 6656 | if test "${with_regex+set}" = set; then
|
---|
| 6657 | withval="$with_regex"
|
---|
| 6658 | if test "$withval" = yes; then
|
---|
| 6659 | ac_with_regex=1
|
---|
[8756] | 6660 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
| 6661 | echo "${ECHO_T}regex" >&6
|
---|
| 6662 | cat >>confdefs.h <<\_ACEOF
|
---|
[700] | 6663 | #define WITH_REGEX 1
|
---|
[8756] | 6664 | _ACEOF
|
---|
[700] | 6665 |
|
---|
[8756] | 6666 | case $LIBOBJS in
|
---|
| 6667 | "regex.$ac_objext" | \
|
---|
| 6668 | *" regex.$ac_objext" | \
|
---|
| 6669 | "regex.$ac_objext "* | \
|
---|
| 6670 | *" regex.$ac_objext "* ) ;;
|
---|
| 6671 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
| 6672 | esac
|
---|
| 6673 |
|
---|
[700] | 6674 | fi
|
---|
[8756] | 6675 | fi;
|
---|
[700] | 6676 | if test -z "$ac_with_regex"; then
|
---|
[8756] | 6677 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
| 6678 | echo "${ECHO_T}rx" >&6
|
---|
| 6679 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
| 6680 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
| 6681 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
| 6682 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[700] | 6683 | else
|
---|
[8756] | 6684 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6685 | /* confdefs.h. */
|
---|
| 6686 | _ACEOF
|
---|
| 6687 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6688 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6689 | /* end confdefs.h. */
|
---|
| 6690 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 6691 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6692 | #define re_rx_search innocuous_re_rx_search
|
---|
| 6693 |
|
---|
[700] | 6694 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6695 | which can conflict with char re_rx_search (); below.
|
---|
| 6696 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6697 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6698 |
|
---|
| 6699 | #ifdef __STDC__
|
---|
| 6700 | # include <limits.h>
|
---|
| 6701 | #else
|
---|
| 6702 | # include <assert.h>
|
---|
| 6703 | #endif
|
---|
| 6704 |
|
---|
| 6705 | #undef re_rx_search
|
---|
| 6706 |
|
---|
[700] | 6707 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6708 | #ifdef __cplusplus
|
---|
| 6709 | extern "C"
|
---|
| 6710 | {
|
---|
| 6711 | #endif
|
---|
[700] | 6712 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6713 | builtin and then its argument prototype would still apply. */
|
---|
| 6714 | char re_rx_search ();
|
---|
[700] | 6715 | /* The GNU C library defines this for functions which it implements
|
---|
| 6716 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6717 | something starting with __ and the normal name is an alias. */
|
---|
| 6718 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
| 6719 | choke me
|
---|
| 6720 | #else
|
---|
[8756] | 6721 | char (*f) () = re_rx_search;
|
---|
[700] | 6722 | #endif
|
---|
[8756] | 6723 | #ifdef __cplusplus
|
---|
| 6724 | }
|
---|
| 6725 | #endif
|
---|
[700] | 6726 |
|
---|
[8756] | 6727 | int
|
---|
| 6728 | main ()
|
---|
| 6729 | {
|
---|
| 6730 | return f != re_rx_search;
|
---|
| 6731 | ;
|
---|
| 6732 | return 0;
|
---|
| 6733 | }
|
---|
| 6734 | _ACEOF
|
---|
| 6735 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6736 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6737 | (eval $ac_link) 2>conftest.er1
|
---|
| 6738 | ac_status=$?
|
---|
| 6739 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6740 | rm -f conftest.er1
|
---|
| 6741 | cat conftest.err >&5
|
---|
| 6742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6743 | (exit $ac_status); } &&
|
---|
| 6744 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6745 | || test ! -s conftest.err'
|
---|
| 6746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6747 | (eval $ac_try) 2>&5
|
---|
| 6748 | ac_status=$?
|
---|
| 6749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6750 | (exit $ac_status); }; } &&
|
---|
| 6751 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6753 | (eval $ac_try) 2>&5
|
---|
| 6754 | ac_status=$?
|
---|
| 6755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6756 | (exit $ac_status); }; }; then
|
---|
| 6757 | ac_cv_func_re_rx_search=yes
|
---|
[700] | 6758 | else
|
---|
[8756] | 6759 | echo "$as_me: failed program was:" >&5
|
---|
| 6760 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6761 |
|
---|
| 6762 | ac_cv_func_re_rx_search=no
|
---|
[700] | 6763 | fi
|
---|
[8756] | 6764 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6765 | conftest$ac_exeext conftest.$ac_ext
|
---|
[700] | 6766 | fi
|
---|
[8756] | 6767 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
| 6768 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
| 6769 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
[700] | 6770 | :
|
---|
| 6771 | else
|
---|
[8756] | 6772 | case $LIBOBJS in
|
---|
| 6773 | "rx.$ac_objext" | \
|
---|
| 6774 | *" rx.$ac_objext" | \
|
---|
| 6775 | "rx.$ac_objext "* | \
|
---|
| 6776 | *" rx.$ac_objext "* ) ;;
|
---|
| 6777 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
| 6778 | esac
|
---|
| 6779 |
|
---|
[700] | 6780 | fi
|
---|
| 6781 |
|
---|
| 6782 | fi
|
---|
| 6783 |
|
---|
[8200] | 6784 |
|
---|
[687] | 6785 | # ---------------------------------------------------------------------------
|
---|
| 6786 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[8756] | 6787 | case $LIBOBJS in
|
---|
| 6788 | "xmalloc.$ac_objext" | \
|
---|
| 6789 | *" xmalloc.$ac_objext" | \
|
---|
| 6790 | "xmalloc.$ac_objext "* | \
|
---|
| 6791 | *" xmalloc.$ac_objext "* ) ;;
|
---|
| 6792 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
| 6793 | esac
|
---|
| 6794 |
|
---|
| 6795 | case $LIBOBJS in
|
---|
| 6796 | "error.$ac_objext" | \
|
---|
| 6797 | *" error.$ac_objext" | \
|
---|
| 6798 | "error.$ac_objext "* | \
|
---|
| 6799 | *" error.$ac_objext "* ) ;;
|
---|
| 6800 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
| 6801 | esac
|
---|
| 6802 |
|
---|
[687] | 6803 | fi
|
---|
| 6804 |
|
---|
[8200] | 6805 |
|
---|
[687] | 6806 | # ---------------------------------------------------------------------------
|
---|
| 6807 |
|
---|
[8756] | 6808 | ac_ext=cc
|
---|
[687] | 6809 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 6810 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 6811 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 6812 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[687] | 6813 |
|
---|
[8200] | 6814 |
|
---|
| 6815 |
|
---|
[8756] | 6816 | echo "$as_me:$LINENO: checking that the GDBM library is available" >&5
|
---|
| 6817 | echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&6
|
---|
[2471] | 6818 | if test ! -z "$gdbmdir" ; then
|
---|
[2279] | 6819 | # look in given directory for header file
|
---|
[2884] | 6820 | if test -r $gdbmdir/include/gdbm.h ; then
|
---|
[2279] | 6821 | GDBM_INCLUDE="-I$gdbmdir/include" ;
|
---|
[2884] | 6822 | elif test -r $gdbmdir/gdbm.h ; then
|
---|
[2279] | 6823 | GDBM_INCLUDE="-I$gdbmdir" ;
|
---|
| 6824 | fi
|
---|
| 6825 |
|
---|
| 6826 | # look in given directory for library
|
---|
[2884] | 6827 | if test -r $gdbmdir/libgdbm.a ; then
|
---|
[2279] | 6828 | GDBM_LIBPATH="-L$gdbmdir" ;
|
---|
[2884] | 6829 | elif test -r $gdbmdir/lib/libgdbm.a ; then
|
---|
[2279] | 6830 | GDBM_LIBPATH="-L$gdbmdir/lib" ;
|
---|
[2884] | 6831 | elif test -r $gdbmdir/.libs/libgdbm.a ; then
|
---|
[2279] | 6832 | GDBM_LIBPATH="-L$gdbmdir/.libs" ;
|
---|
| 6833 | fi
|
---|
| 6834 |
|
---|
[2471] | 6835 | if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then
|
---|
[8756] | 6836 | echo "$as_me:$LINENO: result: $gdbmdir" >&5
|
---|
| 6837 | echo "${ECHO_T}$gdbmdir" >&6 ;
|
---|
[2279] | 6838 | else
|
---|
[8756] | 6839 | echo "$as_me:$LINENO: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&5
|
---|
| 6840 | echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;
|
---|
| 6841 | echo "$as_me:$LINENO: checking looking for GDBM library in default locations" >&5
|
---|
| 6842 | echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&6
|
---|
[2279] | 6843 | fi
|
---|
| 6844 | fi
|
---|
| 6845 |
|
---|
[2603] | 6846 | # look in default path and in /usr/local
|
---|
[2471] | 6847 | if test -z "$GDBM_INCLUDE" ; then
|
---|
[8756] | 6848 | # try in system directory
|
---|
| 6849 |
|
---|
| 6850 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6851 | /* confdefs.h. */
|
---|
| 6852 | _ACEOF
|
---|
| 6853 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6854 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6855 | /* end confdefs.h. */
|
---|
[687] | 6856 | #include <gdbm.h>
|
---|
| 6857 |
|
---|
[8756] | 6858 | int
|
---|
| 6859 | main ()
|
---|
| 6860 | {
|
---|
[687] | 6861 |
|
---|
[8756] | 6862 | ;
|
---|
| 6863 | return 0;
|
---|
| 6864 | }
|
---|
| 6865 | _ACEOF
|
---|
| 6866 | rm -f conftest.$ac_objext
|
---|
| 6867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6868 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6869 | ac_status=$?
|
---|
| 6870 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6871 | rm -f conftest.er1
|
---|
| 6872 | cat conftest.err >&5
|
---|
| 6873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6874 | (exit $ac_status); } &&
|
---|
| 6875 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6876 | || test ! -s conftest.err'
|
---|
| 6877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6878 | (eval $ac_try) 2>&5
|
---|
| 6879 | ac_status=$?
|
---|
| 6880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6881 | (exit $ac_status); }; } &&
|
---|
| 6882 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6884 | (eval $ac_try) 2>&5
|
---|
| 6885 | ac_status=$?
|
---|
| 6886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6887 | (exit $ac_status); }; }; then
|
---|
[687] | 6888 | success=yes
|
---|
| 6889 | else
|
---|
[8756] | 6890 | echo "$as_me: failed program was:" >&5
|
---|
| 6891 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6892 |
|
---|
| 6893 | success=no
|
---|
| 6894 |
|
---|
[687] | 6895 | fi
|
---|
[8756] | 6896 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[2603] | 6897 |
|
---|
| 6898 | if test $success = "no"; then
|
---|
| 6899 | # last chance - look in /usr/local (eg FreeBSD)
|
---|
| 6900 | GDBM_LIBPATH=-L/usr/local/lib
|
---|
| 6901 | GDBM_INCLUDE=-I/usr/local/include
|
---|
| 6902 | ac_save_CXXFLAGS="$CXXFLAGS"
|
---|
| 6903 | ac_save_LIBS="$LIBS"
|
---|
| 6904 | CXXFLAGS="$CXXFLAGS -I/usr/local/include"
|
---|
| 6905 | LIBS="$LIBS -L/usr/local/lib -lgdbm"
|
---|
[8756] | 6906 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6907 | /* confdefs.h. */
|
---|
| 6908 | _ACEOF
|
---|
| 6909 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6910 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6911 | /* end confdefs.h. */
|
---|
[2603] | 6912 | #include <gdbm.h>
|
---|
| 6913 | #include <stdio.h>
|
---|
[8756] | 6914 |
|
---|
| 6915 | int
|
---|
| 6916 | main ()
|
---|
| 6917 | {
|
---|
[2603] | 6918 | printf("%s",gdbm_version);
|
---|
[8756] | 6919 | ;
|
---|
| 6920 | return 0;
|
---|
| 6921 | }
|
---|
| 6922 | _ACEOF
|
---|
| 6923 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6925 | (eval $ac_link) 2>conftest.er1
|
---|
| 6926 | ac_status=$?
|
---|
| 6927 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6928 | rm -f conftest.er1
|
---|
| 6929 | cat conftest.err >&5
|
---|
| 6930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6931 | (exit $ac_status); } &&
|
---|
| 6932 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6933 | || test ! -s conftest.err'
|
---|
| 6934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6935 | (eval $ac_try) 2>&5
|
---|
| 6936 | ac_status=$?
|
---|
| 6937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6938 | (exit $ac_status); }; } &&
|
---|
| 6939 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6941 | (eval $ac_try) 2>&5
|
---|
| 6942 | ac_status=$?
|
---|
| 6943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6944 | (exit $ac_status); }; }; then
|
---|
[2603] | 6945 | success=/usr/local
|
---|
| 6946 | else
|
---|
[8756] | 6947 | echo "$as_me: failed program was:" >&5
|
---|
| 6948 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6949 |
|
---|
| 6950 | success=no
|
---|
| 6951 |
|
---|
[2603] | 6952 | fi
|
---|
[8756] | 6953 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6954 | conftest$ac_exeext conftest.$ac_ext
|
---|
[2603] | 6955 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 6956 | LIBS=$ac_save_LIBS
|
---|
| 6957 | fi
|
---|
| 6958 |
|
---|
[8756] | 6959 | echo "$as_me:$LINENO: result: $success" >&5
|
---|
| 6960 | echo "${ECHO_T}$success" >&6
|
---|
[2279] | 6961 | if test $success = "no"; then
|
---|
[8756] | 6962 | { { echo "$as_me:$LINENO: error: GDBM Library not available - cannot install" >&5
|
---|
| 6963 | echo "$as_me: error: GDBM Library not available - cannot install" >&2;}
|
---|
| 6964 | { (exit 1); exit 1; }; }
|
---|
[2279] | 6965 | fi
|
---|
[687] | 6966 | fi
|
---|
[8756] | 6967 | cat >>confdefs.h <<\_ACEOF
|
---|
[2603] | 6968 | #define HAVE_LIBGDBM 1
|
---|
[8756] | 6969 | _ACEOF
|
---|
[687] | 6970 |
|
---|
[8200] | 6971 |
|
---|
| 6972 |
|
---|
| 6973 |
|
---|
| 6974 |
|
---|
[8756] | 6975 | echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
|
---|
| 6976 | echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
|
---|
[687] | 6977 | success="no"
|
---|
| 6978 | pl_path="$PATH"
|
---|
| 6979 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
| 6980 | for pl_dir in $pl_path; do
|
---|
| 6981 | test -z "$pl_dir" && pl_dir=.
|
---|
| 6982 | if test -x $pl_dir/perl; then
|
---|
| 6983 | success="yes"
|
---|
| 6984 | break
|
---|
| 6985 | fi
|
---|
| 6986 | done
|
---|
| 6987 | IFS="$pl_save_ifs"
|
---|
| 6988 |
|
---|
| 6989 | if test $success = "yes"; then
|
---|
| 6990 | try=`perl configtest.pl` || try="0"
|
---|
| 6991 | try=`expr $try \> 5.000`
|
---|
| 6992 | if test $try = "1"; then
|
---|
[8756] | 6993 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 6994 | echo "${ECHO_T}\"yes\"" >&6
|
---|
[687] | 6995 | else
|
---|
| 6996 | success="no"
|
---|
| 6997 | fi
|
---|
| 6998 | fi
|
---|
| 6999 |
|
---|
| 7000 | if test $success = "no"; then
|
---|
[8756] | 7001 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 7002 | echo "${ECHO_T}\"no\"" >&6
|
---|
| 7003 | { { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5
|
---|
| 7004 | echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
|
---|
| 7005 | { (exit 1); exit 1; }; }
|
---|
[687] | 7006 | fi
|
---|
| 7007 |
|
---|
| 7008 | success=no
|
---|
[8756] | 7009 | echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
| 7010 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
[687] | 7011 |
|
---|
[8756] | 7012 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7013 | /* confdefs.h. */
|
---|
| 7014 | _ACEOF
|
---|
| 7015 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7016 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7017 | /* end confdefs.h. */
|
---|
[687] | 7018 | #include <vector>
|
---|
| 7019 |
|
---|
[8756] | 7020 | int
|
---|
| 7021 | main ()
|
---|
| 7022 | {
|
---|
[687] | 7023 |
|
---|
[8756] | 7024 | ;
|
---|
| 7025 | return 0;
|
---|
| 7026 | }
|
---|
| 7027 | _ACEOF
|
---|
| 7028 | rm -f conftest.$ac_objext
|
---|
| 7029 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7030 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7031 | ac_status=$?
|
---|
| 7032 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7033 | rm -f conftest.er1
|
---|
| 7034 | cat conftest.err >&5
|
---|
| 7035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7036 | (exit $ac_status); } &&
|
---|
| 7037 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7038 | || test ! -s conftest.err'
|
---|
| 7039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7040 | (eval $ac_try) 2>&5
|
---|
| 7041 | ac_status=$?
|
---|
| 7042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7043 | (exit $ac_status); }; } &&
|
---|
| 7044 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7046 | (eval $ac_try) 2>&5
|
---|
| 7047 | ac_status=$?
|
---|
| 7048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7049 | (exit $ac_status); }; }; then
|
---|
[687] | 7050 | success=yes
|
---|
| 7051 | else
|
---|
[8756] | 7052 | echo "$as_me: failed program was:" >&5
|
---|
| 7053 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7054 |
|
---|
[687] | 7055 | fi
|
---|
[8756] | 7056 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 7057 |
|
---|
| 7058 | if test $success = "no"; then
|
---|
[8756] | 7059 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7060 | /* confdefs.h. */
|
---|
| 7061 | _ACEOF
|
---|
| 7062 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7063 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7064 | /* end confdefs.h. */
|
---|
[687] | 7065 | #include <vector.h>
|
---|
| 7066 |
|
---|
[8756] | 7067 | int
|
---|
| 7068 | main ()
|
---|
| 7069 | {
|
---|
[687] | 7070 |
|
---|
[8756] | 7071 | ;
|
---|
| 7072 | return 0;
|
---|
| 7073 | }
|
---|
| 7074 | _ACEOF
|
---|
| 7075 | rm -f conftest.$ac_objext
|
---|
| 7076 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7077 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7078 | ac_status=$?
|
---|
| 7079 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7080 | rm -f conftest.er1
|
---|
| 7081 | cat conftest.err >&5
|
---|
| 7082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7083 | (exit $ac_status); } &&
|
---|
| 7084 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7085 | || test ! -s conftest.err'
|
---|
| 7086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7087 | (eval $ac_try) 2>&5
|
---|
| 7088 | ac_status=$?
|
---|
| 7089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7090 | (exit $ac_status); }; } &&
|
---|
| 7091 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7092 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7093 | (eval $ac_try) 2>&5
|
---|
| 7094 | ac_status=$?
|
---|
| 7095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7096 | (exit $ac_status); }; }; then
|
---|
[687] | 7097 | success="yes"
|
---|
| 7098 | else
|
---|
[8756] | 7099 | echo "$as_me: failed program was:" >&5
|
---|
| 7100 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7101 |
|
---|
[687] | 7102 | fi
|
---|
[8756] | 7103 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 7104 | fi
|
---|
| 7105 |
|
---|
| 7106 | if test $success = "no"; then
|
---|
[8756] | 7107 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7108 | /* confdefs.h. */
|
---|
| 7109 | _ACEOF
|
---|
| 7110 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7111 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7112 | /* end confdefs.h. */
|
---|
[687] | 7113 | #include <ospace\\std\\vector>
|
---|
| 7114 |
|
---|
[8756] | 7115 | int
|
---|
| 7116 | main ()
|
---|
| 7117 | {
|
---|
[687] | 7118 |
|
---|
[8756] | 7119 | ;
|
---|
| 7120 | return 0;
|
---|
| 7121 | }
|
---|
| 7122 | _ACEOF
|
---|
| 7123 | rm -f conftest.$ac_objext
|
---|
| 7124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7125 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7126 | ac_status=$?
|
---|
| 7127 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7128 | rm -f conftest.er1
|
---|
| 7129 | cat conftest.err >&5
|
---|
| 7130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7131 | (exit $ac_status); } &&
|
---|
| 7132 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7133 | || test ! -s conftest.err'
|
---|
| 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); }; } &&
|
---|
| 7139 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7141 | (eval $ac_try) 2>&5
|
---|
| 7142 | ac_status=$?
|
---|
| 7143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7144 | (exit $ac_status); }; }; then
|
---|
[687] | 7145 | success="yes"
|
---|
| 7146 | else
|
---|
[8756] | 7147 | echo "$as_me: failed program was:" >&5
|
---|
| 7148 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7149 |
|
---|
[687] | 7150 | fi
|
---|
[8756] | 7151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 7152 | fi
|
---|
| 7153 |
|
---|
| 7154 | if test $success = yes; then
|
---|
[8756] | 7155 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 7156 | echo "${ECHO_T}\"no\"" >&6
|
---|
[687] | 7157 | else
|
---|
[8756] | 7158 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 7159 | echo "${ECHO_T}\"yes\"" >&6
|
---|
| 7160 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
| 7161 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
| 7162 | { (exit 1); exit 1; }; }
|
---|
[687] | 7163 | fi
|
---|
| 7164 |
|
---|
[2950] | 7165 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
[2951] | 7166 | # check for running bash under cygwin
|
---|
| 7167 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 7168 | then
|
---|
| 7169 | gsdlos=windows
|
---|
| 7170 | fi
|
---|
[687] | 7171 |
|
---|
[8200] | 7172 |
|
---|
[10856] | 7173 | # check for endianness
|
---|
| 7174 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 7175 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
| 7176 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
| 7177 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7178 | else
|
---|
| 7179 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 7180 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7181 | /* confdefs.h. */
|
---|
| 7182 | _ACEOF
|
---|
| 7183 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7184 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7185 | /* end confdefs.h. */
|
---|
| 7186 | #include <sys/types.h>
|
---|
| 7187 | #include <sys/param.h>
|
---|
| 7188 |
|
---|
| 7189 | int
|
---|
| 7190 | main ()
|
---|
| 7191 | {
|
---|
| 7192 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
| 7193 | bogus endian macros
|
---|
| 7194 | #endif
|
---|
| 7195 |
|
---|
| 7196 | ;
|
---|
| 7197 | return 0;
|
---|
| 7198 | }
|
---|
| 7199 | _ACEOF
|
---|
| 7200 | rm -f conftest.$ac_objext
|
---|
| 7201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7202 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7203 | ac_status=$?
|
---|
| 7204 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7205 | rm -f conftest.er1
|
---|
| 7206 | cat conftest.err >&5
|
---|
| 7207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7208 | (exit $ac_status); } &&
|
---|
| 7209 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7210 | || test ! -s conftest.err'
|
---|
| 7211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7212 | (eval $ac_try) 2>&5
|
---|
| 7213 | ac_status=$?
|
---|
| 7214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7215 | (exit $ac_status); }; } &&
|
---|
| 7216 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7218 | (eval $ac_try) 2>&5
|
---|
| 7219 | ac_status=$?
|
---|
| 7220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7221 | (exit $ac_status); }; }; then
|
---|
| 7222 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
| 7223 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7224 | /* confdefs.h. */
|
---|
| 7225 | _ACEOF
|
---|
| 7226 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7227 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7228 | /* end confdefs.h. */
|
---|
| 7229 | #include <sys/types.h>
|
---|
| 7230 | #include <sys/param.h>
|
---|
| 7231 |
|
---|
| 7232 | int
|
---|
| 7233 | main ()
|
---|
| 7234 | {
|
---|
| 7235 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
| 7236 | not big endian
|
---|
| 7237 | #endif
|
---|
| 7238 |
|
---|
| 7239 | ;
|
---|
| 7240 | return 0;
|
---|
| 7241 | }
|
---|
| 7242 | _ACEOF
|
---|
| 7243 | rm -f conftest.$ac_objext
|
---|
| 7244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7245 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7246 | ac_status=$?
|
---|
| 7247 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7248 | rm -f conftest.er1
|
---|
| 7249 | cat conftest.err >&5
|
---|
| 7250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7251 | (exit $ac_status); } &&
|
---|
| 7252 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7253 | || test ! -s conftest.err'
|
---|
| 7254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7255 | (eval $ac_try) 2>&5
|
---|
| 7256 | ac_status=$?
|
---|
| 7257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7258 | (exit $ac_status); }; } &&
|
---|
| 7259 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7261 | (eval $ac_try) 2>&5
|
---|
| 7262 | ac_status=$?
|
---|
| 7263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7264 | (exit $ac_status); }; }; then
|
---|
| 7265 | ac_cv_c_bigendian=yes
|
---|
| 7266 | else
|
---|
| 7267 | echo "$as_me: failed program was:" >&5
|
---|
| 7268 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7269 |
|
---|
| 7270 | ac_cv_c_bigendian=no
|
---|
| 7271 | fi
|
---|
| 7272 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7273 | else
|
---|
| 7274 | echo "$as_me: failed program was:" >&5
|
---|
| 7275 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7276 |
|
---|
| 7277 | # It does not; compile a test program.
|
---|
| 7278 | if test "$cross_compiling" = yes; then
|
---|
| 7279 | # try to guess the endianness by grepping values into an object file
|
---|
| 7280 | ac_cv_c_bigendian=unknown
|
---|
| 7281 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7282 | /* confdefs.h. */
|
---|
| 7283 | _ACEOF
|
---|
| 7284 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7285 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7286 | /* end confdefs.h. */
|
---|
| 7287 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 7288 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 7289 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
| 7290 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 7291 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 7292 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
| 7293 | int
|
---|
| 7294 | main ()
|
---|
| 7295 | {
|
---|
| 7296 | _ascii (); _ebcdic ();
|
---|
| 7297 | ;
|
---|
| 7298 | return 0;
|
---|
| 7299 | }
|
---|
| 7300 | _ACEOF
|
---|
| 7301 | rm -f conftest.$ac_objext
|
---|
| 7302 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7303 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7304 | ac_status=$?
|
---|
| 7305 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7306 | rm -f conftest.er1
|
---|
| 7307 | cat conftest.err >&5
|
---|
| 7308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7309 | (exit $ac_status); } &&
|
---|
| 7310 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7311 | || test ! -s conftest.err'
|
---|
| 7312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7313 | (eval $ac_try) 2>&5
|
---|
| 7314 | ac_status=$?
|
---|
| 7315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7316 | (exit $ac_status); }; } &&
|
---|
| 7317 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7319 | (eval $ac_try) 2>&5
|
---|
| 7320 | ac_status=$?
|
---|
| 7321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7322 | (exit $ac_status); }; }; then
|
---|
| 7323 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
| 7324 | ac_cv_c_bigendian=yes
|
---|
| 7325 | fi
|
---|
| 7326 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 7327 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 7328 | ac_cv_c_bigendian=no
|
---|
| 7329 | else
|
---|
| 7330 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 7331 | ac_cv_c_bigendian=unknown
|
---|
| 7332 | fi
|
---|
| 7333 | fi
|
---|
| 7334 | else
|
---|
| 7335 | echo "$as_me: failed program was:" >&5
|
---|
| 7336 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7337 |
|
---|
| 7338 | fi
|
---|
| 7339 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7340 | else
|
---|
| 7341 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7342 | /* confdefs.h. */
|
---|
| 7343 | _ACEOF
|
---|
| 7344 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7345 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7346 | /* end confdefs.h. */
|
---|
| 7347 | int
|
---|
| 7348 | main ()
|
---|
| 7349 | {
|
---|
| 7350 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 7351 | union
|
---|
| 7352 | {
|
---|
| 7353 | long l;
|
---|
| 7354 | char c[sizeof (long)];
|
---|
| 7355 | } u;
|
---|
| 7356 | u.l = 1;
|
---|
| 7357 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
| 7358 | }
|
---|
| 7359 | _ACEOF
|
---|
| 7360 | rm -f conftest$ac_exeext
|
---|
| 7361 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7362 | (eval $ac_link) 2>&5
|
---|
| 7363 | ac_status=$?
|
---|
| 7364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7365 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 7366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7367 | (eval $ac_try) 2>&5
|
---|
| 7368 | ac_status=$?
|
---|
| 7369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7370 | (exit $ac_status); }; }; then
|
---|
| 7371 | ac_cv_c_bigendian=no
|
---|
| 7372 | else
|
---|
| 7373 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7374 | echo "$as_me: failed program was:" >&5
|
---|
| 7375 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7376 |
|
---|
| 7377 | ( exit $ac_status )
|
---|
| 7378 | ac_cv_c_bigendian=yes
|
---|
| 7379 | fi
|
---|
| 7380 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 7381 | fi
|
---|
| 7382 | fi
|
---|
| 7383 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7384 | fi
|
---|
| 7385 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 7386 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
| 7387 | case $ac_cv_c_bigendian in
|
---|
| 7388 | yes)
|
---|
| 7389 |
|
---|
| 7390 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7391 | #define WORDS_BIGENDIAN 1
|
---|
| 7392 | _ACEOF
|
---|
| 7393 | ;;
|
---|
| 7394 | no)
|
---|
| 7395 | ;;
|
---|
| 7396 | *)
|
---|
| 7397 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 7398 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 7399 | echo "$as_me: error: unknown endianness
|
---|
| 7400 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
| 7401 | { (exit 1); exit 1; }; } ;;
|
---|
| 7402 | esac
|
---|
| 7403 |
|
---|
[687] | 7404 | # ---------------------------------------------------------------------------
|
---|
| 7405 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[8756] | 7406 | case $LIBOBJS in
|
---|
| 7407 | "xmalloc.o.$ac_objext" | \
|
---|
| 7408 | *" xmalloc.o.$ac_objext" | \
|
---|
| 7409 | "xmalloc.o.$ac_objext "* | \
|
---|
| 7410 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
| 7411 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
|
---|
| 7412 | esac
|
---|
| 7413 |
|
---|
| 7414 | case $LIBOBJS in
|
---|
| 7415 | "error.$ac_objext" | \
|
---|
| 7416 | *" error.$ac_objext" | \
|
---|
| 7417 | "error.$ac_objext "* | \
|
---|
| 7418 | *" error.$ac_objext "* ) ;;
|
---|
| 7419 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
| 7420 | esac
|
---|
| 7421 |
|
---|
[687] | 7422 | fi
|
---|
| 7423 |
|
---|
[3063] | 7424 | # ---------------------------------------------------------------------------
|
---|
[687] | 7425 |
|
---|
[3063] | 7426 | moduleDirs=""
|
---|
| 7427 | MODULEDIRS=""
|
---|
[15300] | 7428 | if -d modules ; then
|
---|
| 7429 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
| 7430 | if test -d "$x"; then
|
---|
| 7431 | d="$x/Makefile.in"
|
---|
| 7432 | if test -e "$d"; then
|
---|
| 7433 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
| 7434 | MODULEDIRS="$MODULEDIRS $x"
|
---|
| 7435 | fi
|
---|
[3063] | 7436 | fi
|
---|
[15300] | 7437 | done
|
---|
| 7438 | echo "Making $moduleDirs in modules directory"
|
---|
[3063] | 7439 |
|
---|
[15300] | 7440 | fi
|
---|
[8200] | 7441 |
|
---|
[15300] | 7442 |
|
---|
[687] | 7443 | # ---------------------------------------------------------------------------
|
---|
[1675] | 7444 |
|
---|
[13777] | 7445 | # indexers needs a bindir option to get the binaries into the right place
|
---|
| 7446 | gsdlprefix=`pwd`
|
---|
| 7447 | ac_configure_args="$ac_configure_args --bindir=$gsdlprefix/bin/$gsdlos "
|
---|
[1675] | 7448 |
|
---|
[8756] | 7449 |
|
---|
[13777] | 7450 | subdirs="$subdirs packages indexers"
|
---|
[8756] | 7451 |
|
---|
[13777] | 7452 |
|
---|
[3063] | 7453 | # the list of folders in the src folder
|
---|
[15907] | 7454 | srclist="src/lib/Makefile \
|
---|
| 7455 | src/hashfile/Makefile \
|
---|
| 7456 | src/colservr/Makefile \
|
---|
| 7457 | src/corba/Makefile \
|
---|
| 7458 | src/protocol/Makefile \
|
---|
| 7459 | src/recpt/Makefile \
|
---|
| 7460 | src/gdbmedit/db2txt/Makefile \
|
---|
| 7461 | src/gdbmedit/txt2db/Makefile \
|
---|
[15932] | 7462 | src/gdbmedit/gdbmget/Makefile \
|
---|
| 7463 | src/gdbmedit/gdbmset/Makefile \
|
---|
[15907] | 7464 | src/oaiservr/Makefile \
|
---|
| 7465 | src/z3950/Makefile \
|
---|
| 7466 | src/getpw/Makefile \
|
---|
| 7467 | src/phind/generate/Makefile"
|
---|
[3063] | 7468 |
|
---|
[15907] | 7469 | ac_config_files="$ac_config_files packages/Makefile Makefile $srclist $moduleDirs"
|
---|
[8756] | 7470 | cat >confcache <<\_ACEOF
|
---|
[562] | 7471 | # This file is a shell script that caches the results of configure
|
---|
| 7472 | # tests run on this system so they can be shared between configure
|
---|
[8756] | 7473 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 7474 | # It is not useful on other systems. If it contains results you don't
|
---|
| 7475 | # want to keep, you may remove or edit it.
|
---|
[562] | 7476 | #
|
---|
[8756] | 7477 | # config.status only pays attention to the cache file if you give it
|
---|
| 7478 | # the --recheck option to rerun configure.
|
---|
[562] | 7479 | #
|
---|
[8756] | 7480 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
| 7481 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 7482 | # following values.
|
---|
| 7483 |
|
---|
| 7484 | _ACEOF
|
---|
| 7485 |
|
---|
[562] | 7486 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 7487 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
| 7488 | # So, don't put newlines in cache variables' values.
|
---|
| 7489 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 7490 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[8756] | 7491 | {
|
---|
| 7492 | (set) 2>&1 |
|
---|
| 7493 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 7494 | *ac_space=\ *)
|
---|
| 7495 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 7496 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 7497 | sed -n \
|
---|
| 7498 | "s/'/'\\\\''/g;
|
---|
| 7499 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
| 7500 | ;;
|
---|
| 7501 | *)
|
---|
| 7502 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
| 7503 | sed -n \
|
---|
| 7504 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
| 7505 | ;;
|
---|
| 7506 | esac;
|
---|
| 7507 | } |
|
---|
| 7508 | sed '
|
---|
| 7509 | t clear
|
---|
| 7510 | : clear
|
---|
| 7511 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 7512 | t end
|
---|
| 7513 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 7514 | : end' >>confcache
|
---|
| 7515 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
[562] | 7516 | if test -w $cache_file; then
|
---|
[8756] | 7517 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
| 7518 | cat confcache >$cache_file
|
---|
[562] | 7519 | else
|
---|
| 7520 | echo "not updating unwritable cache $cache_file"
|
---|
| 7521 | fi
|
---|
| 7522 | fi
|
---|
| 7523 | rm -f confcache
|
---|
| 7524 |
|
---|
| 7525 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 7526 | # Let make expand exec_prefix.
|
---|
| 7527 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 7528 |
|
---|
[8756] | 7529 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 7530 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 7531 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7532 | # (actually we leave an empty line to preserve line numbers).
|
---|
[562] | 7533 | if test "x$srcdir" = x.; then
|
---|
[8756] | 7534 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
| 7535 | s/:*\$(srcdir):*/:/;
|
---|
| 7536 | s/:*\${srcdir}:*/:/;
|
---|
| 7537 | s/:*@srcdir@:*/:/;
|
---|
| 7538 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
| 7539 | s/:*$//;
|
---|
| 7540 | s/^[^=]*=[ ]*$//;
|
---|
| 7541 | }'
|
---|
[562] | 7542 | fi
|
---|
| 7543 |
|
---|
[687] | 7544 | DEFS=-DHAVE_CONFIG_H
|
---|
[562] | 7545 |
|
---|
[8756] | 7546 | ac_libobjs=
|
---|
| 7547 | ac_ltlibobjs=
|
---|
| 7548 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 7549 | # 1. Remove the extension, and $U if already installed.
|
---|
| 7550 | ac_i=`echo "$ac_i" |
|
---|
| 7551 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
| 7552 | # 2. Add them.
|
---|
| 7553 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
| 7554 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
| 7555 | done
|
---|
| 7556 | LIBOBJS=$ac_libobjs
|
---|
| 7557 |
|
---|
| 7558 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 7559 |
|
---|
| 7560 |
|
---|
| 7561 |
|
---|
[562] | 7562 | : ${CONFIG_STATUS=./config.status}
|
---|
[8756] | 7563 | ac_clean_files_save=$ac_clean_files
|
---|
| 7564 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
| 7565 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
| 7566 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 7567 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
| 7568 | #! $SHELL
|
---|
| 7569 | # Generated by $as_me.
|
---|
[562] | 7570 | # Run this file to recreate the current configuration.
|
---|
| 7571 | # Compiler output produced by configure, useful for debugging
|
---|
[8756] | 7572 | # configure, is in config.log if it exists.
|
---|
[562] | 7573 |
|
---|
[8756] | 7574 | debug=false
|
---|
| 7575 | ac_cs_recheck=false
|
---|
| 7576 | ac_cs_silent=false
|
---|
| 7577 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
| 7578 | _ACEOF
|
---|
| 7579 |
|
---|
| 7580 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7581 | ## --------------------- ##
|
---|
| 7582 | ## M4sh Initialization. ##
|
---|
| 7583 | ## --------------------- ##
|
---|
| 7584 |
|
---|
| 7585 | # Be Bourne compatible
|
---|
| 7586 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 7587 | emulate sh
|
---|
| 7588 | NULLCMD=:
|
---|
| 7589 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 7590 | # is contrary to our usage. Disable this feature.
|
---|
| 7591 | alias -g '${1+"$@"}'='"$@"'
|
---|
| 7592 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 7593 | set -o posix
|
---|
| 7594 | fi
|
---|
| 7595 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 7596 |
|
---|
| 7597 | # Support unset when possible.
|
---|
| 7598 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 7599 | as_unset=unset
|
---|
| 7600 | else
|
---|
| 7601 | as_unset=false
|
---|
| 7602 | fi
|
---|
| 7603 |
|
---|
| 7604 |
|
---|
| 7605 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 7606 | $as_unset ENV MAIL MAILPATH
|
---|
| 7607 | PS1='$ '
|
---|
| 7608 | PS2='> '
|
---|
| 7609 | PS4='+ '
|
---|
| 7610 |
|
---|
| 7611 | # NLS nuisances.
|
---|
| 7612 | for as_var in \
|
---|
| 7613 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 7614 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 7615 | LC_TELEPHONE LC_TIME
|
---|
[562] | 7616 | do
|
---|
[8756] | 7617 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 7618 | eval $as_var=C; export $as_var
|
---|
| 7619 | else
|
---|
| 7620 | $as_unset $as_var
|
---|
| 7621 | fi
|
---|
[562] | 7622 | done
|
---|
| 7623 |
|
---|
[8756] | 7624 | # Required to use basename.
|
---|
| 7625 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7626 | as_expr=expr
|
---|
| 7627 | else
|
---|
| 7628 | as_expr=false
|
---|
| 7629 | fi
|
---|
[562] | 7630 |
|
---|
[8756] | 7631 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
| 7632 | as_basename=basename
|
---|
| 7633 | else
|
---|
| 7634 | as_basename=false
|
---|
| 7635 | fi
|
---|
[562] | 7636 |
|
---|
| 7637 |
|
---|
[8756] | 7638 | # Name of the executable.
|
---|
| 7639 | as_me=`$as_basename "$0" ||
|
---|
| 7640 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 7641 | X"$0" : 'X\(//\)$' \| \
|
---|
| 7642 | X"$0" : 'X\(/\)$' \| \
|
---|
| 7643 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7644 | echo X/"$0" |
|
---|
| 7645 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 7646 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7647 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 7648 | s/.*/./; q'`
|
---|
[3631] | 7649 |
|
---|
| 7650 |
|
---|
[8756] | 7651 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 7652 | # Avoid depending upon Character Ranges.
|
---|
| 7653 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 7654 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 7655 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 7656 | as_cr_digits='0123456789'
|
---|
| 7657 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 7658 |
|
---|
| 7659 | # The user is always right.
|
---|
| 7660 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 7661 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 7662 | echo "exit 0" >>conf$$.sh
|
---|
| 7663 | chmod +x conf$$.sh
|
---|
| 7664 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 7665 | PATH_SEPARATOR=';'
|
---|
[8200] | 7666 | else
|
---|
[8756] | 7667 | PATH_SEPARATOR=:
|
---|
[8200] | 7668 | fi
|
---|
[8756] | 7669 | rm -f conf$$.sh
|
---|
| 7670 | fi
|
---|
| 7671 |
|
---|
| 7672 |
|
---|
| 7673 | as_lineno_1=$LINENO
|
---|
| 7674 | as_lineno_2=$LINENO
|
---|
| 7675 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7676 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7677 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 7678 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 7679 | # relative or not.
|
---|
| 7680 | case $0 in
|
---|
| 7681 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 7682 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7683 | for as_dir in $PATH
|
---|
| 7684 | do
|
---|
| 7685 | IFS=$as_save_IFS
|
---|
| 7686 | test -z "$as_dir" && as_dir=.
|
---|
| 7687 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 7688 | done
|
---|
| 7689 |
|
---|
| 7690 | ;;
|
---|
| 7691 | esac
|
---|
| 7692 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 7693 | # in which case we are not to be found in the path.
|
---|
| 7694 | if test "x$as_myself" = x; then
|
---|
| 7695 | as_myself=$0
|
---|
| 7696 | fi
|
---|
| 7697 | if test ! -f "$as_myself"; then
|
---|
| 7698 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
| 7699 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
| 7700 | { (exit 1); exit 1; }; }
|
---|
| 7701 | fi
|
---|
| 7702 | case $CONFIG_SHELL in
|
---|
| 7703 | '')
|
---|
| 7704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7705 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 7706 | do
|
---|
| 7707 | IFS=$as_save_IFS
|
---|
| 7708 | test -z "$as_dir" && as_dir=.
|
---|
| 7709 | for as_base in sh bash ksh sh5; do
|
---|
| 7710 | case $as_dir in
|
---|
| 7711 | /*)
|
---|
| 7712 | if ("$as_dir/$as_base" -c '
|
---|
| 7713 | as_lineno_1=$LINENO
|
---|
| 7714 | as_lineno_2=$LINENO
|
---|
| 7715 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7716 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7717 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 7718 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 7719 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 7720 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 7721 | export CONFIG_SHELL
|
---|
| 7722 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 7723 | fi;;
|
---|
| 7724 | esac
|
---|
| 7725 | done
|
---|
| 7726 | done
|
---|
| 7727 | ;;
|
---|
| 7728 | esac
|
---|
| 7729 |
|
---|
| 7730 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 7731 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 7732 | # line-number line before each line; the second 'sed' does the real
|
---|
| 7733 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 7734 | # with the numbered line, and appends trailing '-' during
|
---|
| 7735 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 7736 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 7737 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 7738 | sed '=' <$as_myself |
|
---|
| 7739 | sed '
|
---|
| 7740 | N
|
---|
| 7741 | s,$,-,
|
---|
| 7742 | : loop
|
---|
| 7743 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 7744 | t loop
|
---|
| 7745 | s,-$,,
|
---|
| 7746 | s,^['$as_cr_digits']*\n,,
|
---|
| 7747 | ' >$as_me.lineno &&
|
---|
| 7748 | chmod +x $as_me.lineno ||
|
---|
| 7749 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
| 7750 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
| 7751 | { (exit 1); exit 1; }; }
|
---|
| 7752 |
|
---|
| 7753 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 7754 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 7755 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 7756 | . ./$as_me.lineno
|
---|
| 7757 | # Exit status is that of the last command.
|
---|
| 7758 | exit
|
---|
| 7759 | }
|
---|
| 7760 |
|
---|
| 7761 |
|
---|
| 7762 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 7763 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 7764 | ' ECHO_T=' ' ;;
|
---|
| 7765 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 7766 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
| 7767 | esac
|
---|
| 7768 |
|
---|
| 7769 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7770 | as_expr=expr
|
---|
| 7771 | else
|
---|
| 7772 | as_expr=false
|
---|
| 7773 | fi
|
---|
| 7774 |
|
---|
| 7775 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7776 | echo >conf$$.file
|
---|
| 7777 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7778 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 7779 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 7780 | if test -f conf$$.exe; then
|
---|
| 7781 | # Don't use ln at all; we don't have any links
|
---|
| 7782 | as_ln_s='cp -p'
|
---|
[8200] | 7783 | else
|
---|
[8756] | 7784 | as_ln_s='ln -s'
|
---|
[562] | 7785 | fi
|
---|
[8756] | 7786 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7787 | as_ln_s=ln
|
---|
| 7788 | else
|
---|
| 7789 | as_ln_s='cp -p'
|
---|
| 7790 | fi
|
---|
| 7791 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7792 |
|
---|
| 7793 | if mkdir -p . 2>/dev/null; then
|
---|
| 7794 | as_mkdir_p=:
|
---|
| 7795 | else
|
---|
| 7796 | test -d ./-p && rmdir ./-p
|
---|
| 7797 | as_mkdir_p=false
|
---|
| 7798 | fi
|
---|
| 7799 |
|
---|
| 7800 | as_executable_p="test -f"
|
---|
| 7801 |
|
---|
| 7802 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 7803 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7804 |
|
---|
| 7805 | # Sed expression to map a string onto a valid variable name.
|
---|
| 7806 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7807 |
|
---|
| 7808 |
|
---|
| 7809 | # IFS
|
---|
| 7810 | # We need space, tab and new line, in precisely that order.
|
---|
| 7811 | as_nl='
|
---|
| 7812 | '
|
---|
| 7813 | IFS=" $as_nl"
|
---|
| 7814 |
|
---|
| 7815 | # CDPATH.
|
---|
| 7816 | $as_unset CDPATH
|
---|
| 7817 |
|
---|
| 7818 | exec 6>&1
|
---|
| 7819 |
|
---|
| 7820 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
| 7821 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
| 7822 | # values after options handling. Logging --version etc. is OK.
|
---|
| 7823 | exec 5>>config.log
|
---|
| 7824 | {
|
---|
| 7825 | echo
|
---|
| 7826 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 7827 | ## Running $as_me. ##
|
---|
| 7828 | _ASBOX
|
---|
| 7829 | } >&5
|
---|
| 7830 | cat >&5 <<_CSEOF
|
---|
| 7831 |
|
---|
| 7832 | This file was extended by $as_me, which was
|
---|
| 7833 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
| 7834 |
|
---|
| 7835 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 7836 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 7837 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 7838 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 7839 | $ $0 $@
|
---|
| 7840 |
|
---|
| 7841 | _CSEOF
|
---|
| 7842 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
| 7843 | echo >&5
|
---|
| 7844 | _ACEOF
|
---|
| 7845 |
|
---|
| 7846 | # Files that config.status was made for.
|
---|
| 7847 | if test -n "$ac_config_files"; then
|
---|
| 7848 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
| 7849 | fi
|
---|
| 7850 |
|
---|
| 7851 | if test -n "$ac_config_headers"; then
|
---|
| 7852 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
| 7853 | fi
|
---|
| 7854 |
|
---|
| 7855 | if test -n "$ac_config_links"; then
|
---|
| 7856 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
| 7857 | fi
|
---|
| 7858 |
|
---|
| 7859 | if test -n "$ac_config_commands"; then
|
---|
| 7860 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
| 7861 | fi
|
---|
| 7862 |
|
---|
| 7863 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7864 |
|
---|
| 7865 | ac_cs_usage="\
|
---|
| 7866 | \`$as_me' instantiates files from templates according to the
|
---|
| 7867 | current configuration.
|
---|
| 7868 |
|
---|
| 7869 | Usage: $0 [OPTIONS] [FILE]...
|
---|
| 7870 |
|
---|
| 7871 | -h, --help print this help, then exit
|
---|
| 7872 | -V, --version print version number, then exit
|
---|
| 7873 | -q, --quiet do not print progress messages
|
---|
| 7874 | -d, --debug don't remove temporary files
|
---|
| 7875 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
| 7876 | --file=FILE[:TEMPLATE]
|
---|
| 7877 | instantiate the configuration file FILE
|
---|
| 7878 | --header=FILE[:TEMPLATE]
|
---|
| 7879 | instantiate the configuration header FILE
|
---|
| 7880 |
|
---|
| 7881 | Configuration files:
|
---|
| 7882 | $config_files
|
---|
| 7883 |
|
---|
| 7884 | Configuration headers:
|
---|
| 7885 | $config_headers
|
---|
| 7886 |
|
---|
| 7887 | Report bugs to <[email protected]>."
|
---|
| 7888 | _ACEOF
|
---|
| 7889 |
|
---|
| 7890 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7891 | ac_cs_version="\\
|
---|
| 7892 | config.status
|
---|
| 7893 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
| 7894 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
| 7895 |
|
---|
| 7896 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
| 7897 | This config.status script is free software; the Free Software Foundation
|
---|
| 7898 | gives unlimited permission to copy, distribute and modify it."
|
---|
| 7899 | srcdir=$srcdir
|
---|
| 7900 | INSTALL="$INSTALL"
|
---|
| 7901 | _ACEOF
|
---|
| 7902 |
|
---|
| 7903 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7904 | # If no file are specified by the user, then we need to provide default
|
---|
| 7905 | # value. By we need to know if files were specified by the user.
|
---|
| 7906 | ac_need_defaults=:
|
---|
| 7907 | while test $# != 0
|
---|
| 7908 | do
|
---|
| 7909 | case $1 in
|
---|
| 7910 | --*=*)
|
---|
| 7911 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
| 7912 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
| 7913 | ac_shift=:
|
---|
| 7914 | ;;
|
---|
| 7915 | -*)
|
---|
| 7916 | ac_option=$1
|
---|
| 7917 | ac_optarg=$2
|
---|
| 7918 | ac_shift=shift
|
---|
| 7919 | ;;
|
---|
| 7920 | *) # This is not an option, so the user has probably given explicit
|
---|
| 7921 | # arguments.
|
---|
| 7922 | ac_option=$1
|
---|
| 7923 | ac_need_defaults=false;;
|
---|
| 7924 | esac
|
---|
| 7925 |
|
---|
| 7926 | case $ac_option in
|
---|
| 7927 | # Handling of the options.
|
---|
| 7928 | _ACEOF
|
---|
| 7929 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7930 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 7931 | ac_cs_recheck=: ;;
|
---|
| 7932 | --version | --vers* | -V )
|
---|
| 7933 | echo "$ac_cs_version"; exit 0 ;;
|
---|
| 7934 | --he | --h)
|
---|
| 7935 | # Conflict between --help and --header
|
---|
| 7936 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
| 7937 | Try \`$0 --help' for more information." >&5
|
---|
| 7938 | echo "$as_me: error: ambiguous option: $1
|
---|
| 7939 | Try \`$0 --help' for more information." >&2;}
|
---|
| 7940 | { (exit 1); exit 1; }; };;
|
---|
| 7941 | --help | --hel | -h )
|
---|
| 7942 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
| 7943 | --debug | --d* | -d )
|
---|
| 7944 | debug=: ;;
|
---|
| 7945 | --file | --fil | --fi | --f )
|
---|
| 7946 | $ac_shift
|
---|
| 7947 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
| 7948 | ac_need_defaults=false;;
|
---|
| 7949 | --header | --heade | --head | --hea )
|
---|
| 7950 | $ac_shift
|
---|
| 7951 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
| 7952 | ac_need_defaults=false;;
|
---|
| 7953 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 7954 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 7955 | ac_cs_silent=: ;;
|
---|
| 7956 |
|
---|
| 7957 | # This is an error.
|
---|
| 7958 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
| 7959 | Try \`$0 --help' for more information." >&5
|
---|
| 7960 | echo "$as_me: error: unrecognized option: $1
|
---|
| 7961 | Try \`$0 --help' for more information." >&2;}
|
---|
| 7962 | { (exit 1); exit 1; }; } ;;
|
---|
| 7963 |
|
---|
| 7964 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
| 7965 |
|
---|
| 7966 | esac
|
---|
| 7967 | shift
|
---|
[8200] | 7968 | done
|
---|
[8756] | 7969 |
|
---|
| 7970 | ac_configure_extra_args=
|
---|
| 7971 |
|
---|
| 7972 | if $ac_cs_silent; then
|
---|
| 7973 | exec 6>/dev/null
|
---|
| 7974 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
[8200] | 7975 | fi
|
---|
[562] | 7976 |
|
---|
[8756] | 7977 | _ACEOF
|
---|
| 7978 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7979 | if \$ac_cs_recheck; then
|
---|
| 7980 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 7981 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
| 7982 | fi
|
---|
[8200] | 7983 |
|
---|
[8756] | 7984 | _ACEOF
|
---|
| 7985 |
|
---|
| 7986 |
|
---|
| 7987 |
|
---|
| 7988 |
|
---|
| 7989 |
|
---|
| 7990 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7991 | for ac_config_target in $ac_config_targets
|
---|
| 7992 | do
|
---|
| 7993 | case "$ac_config_target" in
|
---|
| 7994 | # Handling of arguments.
|
---|
| 7995 | "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
|
---|
| 7996 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 7997 | "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
| 7998 | "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
| 7999 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 8000 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 8001 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 8002 | { (exit 1); exit 1; }; };;
|
---|
[562] | 8003 | esac
|
---|
[8756] | 8004 | done
|
---|
[562] | 8005 |
|
---|
[8756] | 8006 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 8007 | # then the envvar interface is used. Set only those that are not.
|
---|
| 8008 | # We use the long form for the default assignment because of an extremely
|
---|
| 8009 | # bizarre bug on SunOS 4.1.3.
|
---|
| 8010 | if $ac_need_defaults; then
|
---|
| 8011 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 8012 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 8013 | fi
|
---|
[8200] | 8014 |
|
---|
[8756] | 8015 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
| 8016 | # simply because there is no reason to put it here, and in addition,
|
---|
| 8017 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
| 8018 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
| 8019 | $debug ||
|
---|
| 8020 | {
|
---|
| 8021 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
| 8022 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
| 8023 | }
|
---|
| 8024 |
|
---|
| 8025 | # Create a (secure) tmp directory for tmp files.
|
---|
| 8026 |
|
---|
| 8027 | {
|
---|
| 8028 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
| 8029 | test -n "$tmp" && test -d "$tmp"
|
---|
| 8030 | } ||
|
---|
| 8031 | {
|
---|
| 8032 | tmp=./confstat$$-$RANDOM
|
---|
| 8033 | (umask 077 && mkdir $tmp)
|
---|
| 8034 | } ||
|
---|
| 8035 | {
|
---|
| 8036 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
| 8037 | { (exit 1); exit 1; }
|
---|
| 8038 | }
|
---|
| 8039 |
|
---|
| 8040 | _ACEOF
|
---|
| 8041 |
|
---|
| 8042 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8043 |
|
---|
| 8044 | #
|
---|
| 8045 | # CONFIG_FILES section.
|
---|
| 8046 | #
|
---|
| 8047 |
|
---|
| 8048 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 8049 | # This happens for instance when ./config.status config.h
|
---|
| 8050 | if test -n "\$CONFIG_FILES"; then
|
---|
| 8051 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 8052 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
| 8053 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
| 8054 | s,@SHELL@,$SHELL,;t t
|
---|
| 8055 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
| 8056 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
| 8057 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
| 8058 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
| 8059 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
| 8060 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
| 8061 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
| 8062 | s,@prefix@,$prefix,;t t
|
---|
| 8063 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
| 8064 | s,@bindir@,$bindir,;t t
|
---|
| 8065 | s,@sbindir@,$sbindir,;t t
|
---|
| 8066 | s,@libexecdir@,$libexecdir,;t t
|
---|
| 8067 | s,@datadir@,$datadir,;t t
|
---|
| 8068 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
| 8069 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
| 8070 | s,@localstatedir@,$localstatedir,;t t
|
---|
| 8071 | s,@libdir@,$libdir,;t t
|
---|
| 8072 | s,@includedir@,$includedir,;t t
|
---|
| 8073 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
| 8074 | s,@infodir@,$infodir,;t t
|
---|
| 8075 | s,@mandir@,$mandir,;t t
|
---|
| 8076 | s,@build_alias@,$build_alias,;t t
|
---|
| 8077 | s,@host_alias@,$host_alias,;t t
|
---|
| 8078 | s,@target_alias@,$target_alias,;t t
|
---|
| 8079 | s,@DEFS@,$DEFS,;t t
|
---|
| 8080 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
| 8081 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
| 8082 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
| 8083 | s,@LIBS@,$LIBS,;t t
|
---|
| 8084 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
| 8085 | s,@VERSION@,$VERSION,;t t
|
---|
| 8086 | s,@USE_FASTCGI@,$USE_FASTCGI,;t t
|
---|
| 8087 | s,@USE_LANGACTION@,$USE_LANGACTION,;t t
|
---|
| 8088 | s,@USE_CORBA@,$USE_CORBA,;t t
|
---|
| 8089 | s,@MICO_DIR@,$MICO_DIR,;t t
|
---|
| 8090 | s,@USE_Z3950@,$USE_Z3950,;t t
|
---|
[12492] | 8091 | s,@USE_YAZ@,$USE_YAZ,;t t
|
---|
[12922] | 8092 | s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
|
---|
[15794] | 8093 | s,@USE_SQLITE@,$USE_SQLITE,;t t
|
---|
[15551] | 8094 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
[8756] | 8095 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
| 8096 | s,@CC@,$CC,;t t
|
---|
| 8097 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
| 8098 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
| 8099 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
| 8100 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
| 8101 | s,@CXX@,$CXX,;t t
|
---|
| 8102 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
| 8103 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
| 8104 | s,@AWK@,$AWK,;t t
|
---|
| 8105 | s,@YACC@,$YACC,;t t
|
---|
| 8106 | s,@build@,$build,;t t
|
---|
| 8107 | s,@build_cpu@,$build_cpu,;t t
|
---|
| 8108 | s,@build_vendor@,$build_vendor,;t t
|
---|
| 8109 | s,@build_os@,$build_os,;t t
|
---|
| 8110 | s,@host@,$host,;t t
|
---|
| 8111 | s,@host_cpu@,$host_cpu,;t t
|
---|
| 8112 | s,@host_vendor@,$host_vendor,;t t
|
---|
| 8113 | s,@host_os@,$host_os,;t t
|
---|
| 8114 | s,@target@,$target,;t t
|
---|
| 8115 | s,@target_cpu@,$target_cpu,;t t
|
---|
| 8116 | s,@target_vendor@,$target_vendor,;t t
|
---|
| 8117 | s,@target_os@,$target_os,;t t
|
---|
| 8118 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
| 8119 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
| 8120 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
| 8121 | s,@LN_S@,$LN_S,;t t
|
---|
| 8122 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
| 8123 | s,@RANLIB@,$RANLIB,;t t
|
---|
| 8124 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
[15551] | 8125 | s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
|
---|
[8756] | 8126 | s,@MICO_VER@,$MICO_VER,;t t
|
---|
| 8127 | s,@CPP@,$CPP,;t t
|
---|
| 8128 | s,@EGREP@,$EGREP,;t t
|
---|
| 8129 | s,@U@,$U,;t t
|
---|
| 8130 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
| 8131 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
| 8132 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
| 8133 | s,@STATIC@,$STATIC,;t t
|
---|
| 8134 | s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t
|
---|
| 8135 | s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t
|
---|
| 8136 | s,@gsdlos@,$gsdlos,;t t
|
---|
| 8137 | s,@MODULEDIRS@,$MODULEDIRS,;t t
|
---|
| 8138 | s,@subdirs@,$subdirs,;t t
|
---|
| 8139 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
| 8140 | CEOF
|
---|
| 8141 |
|
---|
| 8142 | _ACEOF
|
---|
| 8143 |
|
---|
| 8144 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8145 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 8146 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 8147 | ac_max_sed_lines=48
|
---|
| 8148 | ac_sed_frag=1 # Number of current file.
|
---|
| 8149 | ac_beg=1 # First line for current file.
|
---|
| 8150 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
| 8151 | ac_more_lines=:
|
---|
| 8152 | ac_sed_cmds=
|
---|
| 8153 | while $ac_more_lines; do
|
---|
| 8154 | if test $ac_beg -gt 1; then
|
---|
| 8155 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 8156 | else
|
---|
| 8157 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 8158 | fi
|
---|
| 8159 | if test ! -s $tmp/subs.frag; then
|
---|
| 8160 | ac_more_lines=false
|
---|
| 8161 | else
|
---|
| 8162 | # The purpose of the label and of the branching condition is to
|
---|
| 8163 | # speed up the sed processing (if there are no `@' at all, there
|
---|
| 8164 | # is no need to browse any of the substitutions).
|
---|
| 8165 | # These are the two extra sed commands mentioned above.
|
---|
| 8166 | (echo ':t
|
---|
| 8167 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
| 8168 | if test -z "$ac_sed_cmds"; then
|
---|
| 8169 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 8170 | else
|
---|
| 8171 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 8172 | fi
|
---|
| 8173 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
| 8174 | ac_beg=$ac_end
|
---|
| 8175 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
| 8176 | fi
|
---|
| 8177 | done
|
---|
| 8178 | if test -z "$ac_sed_cmds"; then
|
---|
| 8179 | ac_sed_cmds=cat
|
---|
[562] | 8180 | fi
|
---|
[8756] | 8181 | fi # test -n "$CONFIG_FILES"
|
---|
[562] | 8182 |
|
---|
[8756] | 8183 | _ACEOF
|
---|
| 8184 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8185 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
| 8186 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 8187 | case $ac_file in
|
---|
| 8188 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8189 | cat >$tmp/stdin
|
---|
| 8190 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8191 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8192 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8193 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8194 | * ) ac_file_in=$ac_file.in ;;
|
---|
[562] | 8195 | esac
|
---|
| 8196 |
|
---|
[8756] | 8197 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
| 8198 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8199 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8200 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8201 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8202 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8203 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8204 | echo X"$ac_file" |
|
---|
| 8205 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8206 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8207 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8208 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8209 | s/.*/./; q'`
|
---|
| 8210 | { if $as_mkdir_p; then
|
---|
| 8211 | mkdir -p "$ac_dir"
|
---|
| 8212 | else
|
---|
| 8213 | as_dir="$ac_dir"
|
---|
| 8214 | as_dirs=
|
---|
| 8215 | while test ! -d "$as_dir"; do
|
---|
| 8216 | as_dirs="$as_dir $as_dirs"
|
---|
| 8217 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8218 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8219 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8220 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8221 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8222 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8223 | echo X"$as_dir" |
|
---|
| 8224 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8225 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8226 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8227 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8228 | s/.*/./; q'`
|
---|
| 8229 | done
|
---|
| 8230 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8231 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8232 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8233 | { (exit 1); exit 1; }; }; }
|
---|
[562] | 8234 |
|
---|
[8756] | 8235 | ac_builddir=.
|
---|
| 8236 |
|
---|
| 8237 | if test "$ac_dir" != .; then
|
---|
| 8238 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8239 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8240 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8241 | else
|
---|
| 8242 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8243 | fi
|
---|
| 8244 |
|
---|
| 8245 | case $srcdir in
|
---|
| 8246 | .) # No --srcdir option. We are building in place.
|
---|
| 8247 | ac_srcdir=.
|
---|
| 8248 | if test -z "$ac_top_builddir"; then
|
---|
| 8249 | ac_top_srcdir=.
|
---|
| 8250 | else
|
---|
| 8251 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8252 | fi ;;
|
---|
| 8253 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8254 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8255 | ac_top_srcdir=$srcdir ;;
|
---|
| 8256 | *) # Relative path.
|
---|
| 8257 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8258 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8259 | esac
|
---|
| 8260 |
|
---|
| 8261 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8262 | # the directories may not exist.
|
---|
| 8263 | case `pwd` in
|
---|
| 8264 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8265 | *)
|
---|
| 8266 | case "$ac_dir" in
|
---|
| 8267 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8268 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8269 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8270 | esac;;
|
---|
| 8271 | esac
|
---|
| 8272 | case $ac_abs_builddir in
|
---|
| 8273 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8274 | *)
|
---|
| 8275 | case ${ac_top_builddir}. in
|
---|
| 8276 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8277 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8278 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8279 | esac;;
|
---|
| 8280 | esac
|
---|
| 8281 | case $ac_abs_builddir in
|
---|
| 8282 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8283 | *)
|
---|
| 8284 | case $ac_srcdir in
|
---|
| 8285 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8286 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8287 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8288 | esac;;
|
---|
| 8289 | esac
|
---|
| 8290 | case $ac_abs_builddir in
|
---|
| 8291 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8292 | *)
|
---|
| 8293 | case $ac_top_srcdir in
|
---|
| 8294 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8295 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8296 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8297 | esac;;
|
---|
| 8298 | esac
|
---|
| 8299 |
|
---|
| 8300 |
|
---|
| 8301 | case $INSTALL in
|
---|
| 8302 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
| 8303 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
[8200] | 8304 | esac
|
---|
[562] | 8305 |
|
---|
[8756] | 8306 | if test x"$ac_file" != x-; then
|
---|
| 8307 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8308 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8309 | rm -f "$ac_file"
|
---|
| 8310 | fi
|
---|
| 8311 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8312 | # use $as_me), people would be surprised to read:
|
---|
| 8313 | # /* config.h. Generated by config.status. */
|
---|
| 8314 | if test x"$ac_file" = x-; then
|
---|
| 8315 | configure_input=
|
---|
| 8316 | else
|
---|
| 8317 | configure_input="$ac_file. "
|
---|
| 8318 | fi
|
---|
| 8319 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
| 8320 | sed 's,.*/,,'` by configure."
|
---|
[562] | 8321 |
|
---|
[8756] | 8322 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8323 | # src tree.
|
---|
| 8324 | ac_file_inputs=`IFS=:
|
---|
| 8325 | for f in $ac_file_in; do
|
---|
| 8326 | case $f in
|
---|
| 8327 | -) echo $tmp/stdin ;;
|
---|
| 8328 | [\\/$]*)
|
---|
| 8329 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8330 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8331 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8332 | { (exit 1); exit 1; }; }
|
---|
| 8333 | echo "$f";;
|
---|
| 8334 | *) # Relative
|
---|
| 8335 | if test -f "$f"; then
|
---|
| 8336 | # Build tree
|
---|
| 8337 | echo "$f"
|
---|
| 8338 | elif test -f "$srcdir/$f"; then
|
---|
| 8339 | # Source tree
|
---|
| 8340 | echo "$srcdir/$f"
|
---|
| 8341 | else
|
---|
| 8342 | # /dev/null tree
|
---|
| 8343 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8344 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8345 | { (exit 1); exit 1; }; }
|
---|
| 8346 | fi;;
|
---|
| 8347 | esac
|
---|
| 8348 | done` || { (exit 1); exit 1; }
|
---|
| 8349 | _ACEOF
|
---|
| 8350 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8351 | sed "$ac_vpsub
|
---|
| 8352 | $extrasub
|
---|
| 8353 | _ACEOF
|
---|
| 8354 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8355 | :t
|
---|
| 8356 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
| 8357 | s,@configure_input@,$configure_input,;t t
|
---|
| 8358 | s,@srcdir@,$ac_srcdir,;t t
|
---|
| 8359 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
| 8360 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
| 8361 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
| 8362 | s,@builddir@,$ac_builddir,;t t
|
---|
| 8363 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
| 8364 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
| 8365 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
| 8366 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
| 8367 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
| 8368 | rm -f $tmp/stdin
|
---|
| 8369 | if test x"$ac_file" != x-; then
|
---|
| 8370 | mv $tmp/out $ac_file
|
---|
| 8371 | else
|
---|
| 8372 | cat $tmp/out
|
---|
| 8373 | rm -f $tmp/out
|
---|
| 8374 | fi
|
---|
| 8375 |
|
---|
| 8376 | done
|
---|
| 8377 | _ACEOF
|
---|
| 8378 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8379 |
|
---|
| 8380 | #
|
---|
| 8381 | # CONFIG_HEADER section.
|
---|
| 8382 | #
|
---|
| 8383 |
|
---|
[687] | 8384 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 8385 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 8386 | #
|
---|
| 8387 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
[8756] | 8388 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 8389 | ac_dB='[ ].*$,\1#\2'
|
---|
| 8390 | ac_dC=' '
|
---|
| 8391 | ac_dD=',;t'
|
---|
| 8392 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
| 8393 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 8394 | ac_uB='$,\1#\2define\3'
|
---|
[687] | 8395 | ac_uC=' '
|
---|
[8756] | 8396 | ac_uD=',;t'
|
---|
[687] | 8397 |
|
---|
[8756] | 8398 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
[687] | 8399 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[8756] | 8400 | case $ac_file in
|
---|
| 8401 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8402 | cat >$tmp/stdin
|
---|
| 8403 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8404 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8405 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8406 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8407 | * ) ac_file_in=$ac_file.in ;;
|
---|
[687] | 8408 | esac
|
---|
[562] | 8409 |
|
---|
[8756] | 8410 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8411 | echo "$as_me: creating $ac_file" >&6;}
|
---|
[687] | 8412 |
|
---|
[8756] | 8413 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8414 | # src tree.
|
---|
| 8415 | ac_file_inputs=`IFS=:
|
---|
| 8416 | for f in $ac_file_in; do
|
---|
| 8417 | case $f in
|
---|
| 8418 | -) echo $tmp/stdin ;;
|
---|
| 8419 | [\\/$]*)
|
---|
| 8420 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8421 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8422 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8423 | { (exit 1); exit 1; }; }
|
---|
| 8424 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
| 8425 | echo "$f";;
|
---|
| 8426 | *) # Relative
|
---|
| 8427 | if test -f "$f"; then
|
---|
| 8428 | # Build tree
|
---|
| 8429 | echo "$f"
|
---|
| 8430 | elif test -f "$srcdir/$f"; then
|
---|
| 8431 | # Source tree
|
---|
| 8432 | echo "$srcdir/$f"
|
---|
| 8433 | else
|
---|
| 8434 | # /dev/null tree
|
---|
| 8435 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8436 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8437 | { (exit 1); exit 1; }; }
|
---|
| 8438 | fi;;
|
---|
| 8439 | esac
|
---|
| 8440 | done` || { (exit 1); exit 1; }
|
---|
| 8441 | # Remove the trailing spaces.
|
---|
| 8442 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
[687] | 8443 |
|
---|
[8756] | 8444 | _ACEOF
|
---|
[687] | 8445 |
|
---|
[8756] | 8446 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
| 8447 | # `conftest.undefs', that substitutes the proper values into
|
---|
| 8448 | # config.h.in to produce config.h. The first handles `#define'
|
---|
| 8449 | # templates, and the second `#undef' templates.
|
---|
| 8450 | # And first: Protect against being on the right side of a sed subst in
|
---|
| 8451 | # config.status. Protect against being in an unquoted here document
|
---|
| 8452 | # in config.status.
|
---|
| 8453 | rm -f conftest.defines conftest.undefs
|
---|
| 8454 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
| 8455 | # Putting comments in sed scripts is not portable.
|
---|
| 8456 | #
|
---|
| 8457 | # `end' is used to avoid that the second main sed command (meant for
|
---|
| 8458 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
| 8459 | # See the Autoconf documentation for `clear'.
|
---|
| 8460 | cat >confdef2sed.sed <<\_ACEOF
|
---|
| 8461 | s/[\\&,]/\\&/g
|
---|
| 8462 | s,[\\$`],\\&,g
|
---|
| 8463 | t clear
|
---|
| 8464 | : clear
|
---|
| 8465 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
| 8466 | t end
|
---|
| 8467 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
| 8468 | : end
|
---|
| 8469 | _ACEOF
|
---|
| 8470 | # If some macros were called several times there might be several times
|
---|
| 8471 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
| 8472 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
| 8473 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
| 8474 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
| 8475 | rm -f confdef2sed.sed
|
---|
[687] | 8476 |
|
---|
| 8477 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 8478 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 8479 | # on some systems where configure will not decide to define it.
|
---|
[8756] | 8480 | cat >>conftest.undefs <<\_ACEOF
|
---|
| 8481 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
| 8482 | _ACEOF
|
---|
[687] | 8483 |
|
---|
[8756] | 8484 | # Break up conftest.defines because some shells have a limit on the size
|
---|
| 8485 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8486 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
| 8487 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
| 8488 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
| 8489 | echo ' :' >>$CONFIG_STATUS
|
---|
| 8490 | rm -f conftest.tail
|
---|
| 8491 | while grep . conftest.defines >/dev/null
|
---|
| 8492 | do
|
---|
| 8493 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
| 8494 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8495 | # Speed up: don't consider the non `#define' lines.
|
---|
| 8496 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
| 8497 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8498 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8499 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8500 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
| 8501 | echo 'CEOF
|
---|
| 8502 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
| 8503 | rm -f $tmp/in
|
---|
| 8504 | mv $tmp/out $tmp/in
|
---|
| 8505 | ' >>$CONFIG_STATUS
|
---|
| 8506 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
| 8507 | rm -f conftest.defines
|
---|
| 8508 | mv conftest.tail conftest.defines
|
---|
| 8509 | done
|
---|
| 8510 | rm -f conftest.defines
|
---|
| 8511 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
| 8512 | echo >>$CONFIG_STATUS
|
---|
[687] | 8513 |
|
---|
[8756] | 8514 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
| 8515 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8516 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
[687] | 8517 | rm -f conftest.tail
|
---|
[8756] | 8518 | while grep . conftest.undefs >/dev/null
|
---|
[687] | 8519 | do
|
---|
[8756] | 8520 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
| 8521 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8522 | # Speed up: don't consider the non `#undef'
|
---|
| 8523 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
| 8524 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8525 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8526 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8527 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
[687] | 8528 | echo 'CEOF
|
---|
[8756] | 8529 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
| 8530 | rm -f $tmp/in
|
---|
| 8531 | mv $tmp/out $tmp/in
|
---|
| 8532 | ' >>$CONFIG_STATUS
|
---|
| 8533 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
| 8534 | rm -f conftest.undefs
|
---|
| 8535 | mv conftest.tail conftest.undefs
|
---|
[687] | 8536 | done
|
---|
[8756] | 8537 | rm -f conftest.undefs
|
---|
[687] | 8538 |
|
---|
[8756] | 8539 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8540 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8541 | # use $as_me), people would be surprised to read:
|
---|
| 8542 | # /* config.h. Generated by config.status. */
|
---|
| 8543 | if test x"$ac_file" = x-; then
|
---|
| 8544 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
[687] | 8545 | else
|
---|
[8756] | 8546 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
| 8547 | fi
|
---|
| 8548 | cat $tmp/in >>$tmp/config.h
|
---|
| 8549 | rm -f $tmp/in
|
---|
| 8550 | if test x"$ac_file" != x-; then
|
---|
| 8551 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
| 8552 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
| 8553 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
| 8554 | else
|
---|
| 8555 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8556 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8557 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8558 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8559 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8560 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8561 | echo X"$ac_file" |
|
---|
| 8562 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8563 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8564 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8565 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8566 | s/.*/./; q'`
|
---|
| 8567 | { if $as_mkdir_p; then
|
---|
| 8568 | mkdir -p "$ac_dir"
|
---|
| 8569 | else
|
---|
| 8570 | as_dir="$ac_dir"
|
---|
| 8571 | as_dirs=
|
---|
| 8572 | while test ! -d "$as_dir"; do
|
---|
| 8573 | as_dirs="$as_dir $as_dirs"
|
---|
| 8574 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8575 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8576 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8577 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8578 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8579 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8580 | echo X"$as_dir" |
|
---|
| 8581 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8582 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8583 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8584 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8585 | s/.*/./; q'`
|
---|
| 8586 | done
|
---|
| 8587 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8588 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8589 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8590 | { (exit 1); exit 1; }; }; }
|
---|
| 8591 |
|
---|
| 8592 | rm -f $ac_file
|
---|
| 8593 | mv $tmp/config.h $ac_file
|
---|
[687] | 8594 | fi
|
---|
[8756] | 8595 | else
|
---|
| 8596 | cat $tmp/config.h
|
---|
| 8597 | rm -f $tmp/config.h
|
---|
[687] | 8598 | fi
|
---|
[8756] | 8599 | done
|
---|
| 8600 | _ACEOF
|
---|
[8200] | 8601 |
|
---|
[8756] | 8602 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[687] | 8603 |
|
---|
[8756] | 8604 | { (exit 0); exit 0; }
|
---|
| 8605 | _ACEOF
|
---|
[562] | 8606 | chmod +x $CONFIG_STATUS
|
---|
[8756] | 8607 | ac_clean_files=$ac_clean_files_save
|
---|
[562] | 8608 |
|
---|
[8756] | 8609 |
|
---|
| 8610 | # configure is writing to config.log, and then calls config.status.
|
---|
| 8611 | # config.status does its own redirection, appending to config.log.
|
---|
| 8612 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 8613 | # by configure, so config.status won't be able to write to it; its
|
---|
| 8614 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 8615 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 8616 | # appended to by config.status. When coming back to configure, we
|
---|
| 8617 | # need to make the FD available again.
|
---|
| 8618 | if test "$no_create" != yes; then
|
---|
| 8619 | ac_cs_success=:
|
---|
| 8620 | ac_config_status_args=
|
---|
| 8621 | test "$silent" = yes &&
|
---|
| 8622 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
| 8623 | exec 5>/dev/null
|
---|
| 8624 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
| 8625 | exec 5>>config.log
|
---|
| 8626 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 8627 | # would make configure fail if this is the last instruction.
|
---|
| 8628 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
| 8629 | fi
|
---|
| 8630 |
|
---|
| 8631 | #
|
---|
| 8632 | # CONFIG_SUBDIRS section.
|
---|
| 8633 | #
|
---|
[1675] | 8634 | if test "$no_recursion" != yes; then
|
---|
[562] | 8635 |
|
---|
[1675] | 8636 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
| 8637 | ac_sub_configure_args=
|
---|
| 8638 | ac_prev=
|
---|
| 8639 | for ac_arg in $ac_configure_args; do
|
---|
| 8640 | if test -n "$ac_prev"; then
|
---|
| 8641 | ac_prev=
|
---|
| 8642 | continue
|
---|
| 8643 | fi
|
---|
[8756] | 8644 | case $ac_arg in
|
---|
[1675] | 8645 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 8646 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 8647 | ac_prev=cache_file ;;
|
---|
| 8648 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
[8756] | 8649 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
| 8650 | | --c=*)
|
---|
[1675] | 8651 | ;;
|
---|
[8756] | 8652 | --config-cache | -C)
|
---|
| 8653 | ;;
|
---|
[1675] | 8654 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 8655 | ac_prev=srcdir ;;
|
---|
| 8656 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 8657 | ;;
|
---|
[8756] | 8658 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 8659 | ac_prev=prefix ;;
|
---|
| 8660 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 8661 | ;;
|
---|
[1675] | 8662 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
| 8663 | esac
|
---|
| 8664 | done
|
---|
[562] | 8665 |
|
---|
[8756] | 8666 | # Always prepend --prefix to ensure using the same prefix
|
---|
| 8667 | # in subdir configurations.
|
---|
| 8668 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
[1570] | 8669 |
|
---|
[8756] | 8670 | ac_popdir=`pwd`
|
---|
| 8671 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
| 8672 |
|
---|
[1675] | 8673 | # Do not complain, so a configure script can configure whichever
|
---|
| 8674 | # parts of a large source tree are present.
|
---|
[8756] | 8675 | test -d $srcdir/$ac_dir || continue
|
---|
[1675] | 8676 |
|
---|
[8756] | 8677 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
| 8678 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
| 8679 | { if $as_mkdir_p; then
|
---|
| 8680 | mkdir -p "$ac_dir"
|
---|
| 8681 | else
|
---|
| 8682 | as_dir="$ac_dir"
|
---|
| 8683 | as_dirs=
|
---|
| 8684 | while test ! -d "$as_dir"; do
|
---|
| 8685 | as_dirs="$as_dir $as_dirs"
|
---|
| 8686 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8687 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8688 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8689 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8690 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8691 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8692 | echo X"$as_dir" |
|
---|
| 8693 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8694 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8695 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8696 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8697 | s/.*/./; q'`
|
---|
| 8698 | done
|
---|
| 8699 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8700 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8701 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8702 | { (exit 1); exit 1; }; }; }
|
---|
[8200] | 8703 |
|
---|
[8756] | 8704 | ac_builddir=.
|
---|
[1675] | 8705 |
|
---|
[8756] | 8706 | if test "$ac_dir" != .; then
|
---|
| 8707 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8708 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8709 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8710 | else
|
---|
| 8711 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8712 | fi
|
---|
[1675] | 8713 |
|
---|
[8756] | 8714 | case $srcdir in
|
---|
| 8715 | .) # No --srcdir option. We are building in place.
|
---|
| 8716 | ac_srcdir=.
|
---|
| 8717 | if test -z "$ac_top_builddir"; then
|
---|
| 8718 | ac_top_srcdir=.
|
---|
| 8719 | else
|
---|
| 8720 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8721 | fi ;;
|
---|
| 8722 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8723 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8724 | ac_top_srcdir=$srcdir ;;
|
---|
| 8725 | *) # Relative path.
|
---|
| 8726 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8727 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8728 | esac
|
---|
[1675] | 8729 |
|
---|
[8756] | 8730 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8731 | # the directories may not exist.
|
---|
| 8732 | case `pwd` in
|
---|
| 8733 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8734 | *)
|
---|
| 8735 | case "$ac_dir" in
|
---|
| 8736 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8737 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8738 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8739 | esac;;
|
---|
| 8740 | esac
|
---|
| 8741 | case $ac_abs_builddir in
|
---|
| 8742 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8743 | *)
|
---|
| 8744 | case ${ac_top_builddir}. in
|
---|
| 8745 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8746 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8747 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8748 | esac;;
|
---|
| 8749 | esac
|
---|
| 8750 | case $ac_abs_builddir in
|
---|
| 8751 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8752 | *)
|
---|
| 8753 | case $ac_srcdir in
|
---|
| 8754 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8755 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8756 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8757 | esac;;
|
---|
| 8758 | esac
|
---|
| 8759 | case $ac_abs_builddir in
|
---|
| 8760 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8761 | *)
|
---|
| 8762 | case $ac_top_srcdir in
|
---|
| 8763 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8764 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8765 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8766 | esac;;
|
---|
| 8767 | esac
|
---|
[1675] | 8768 |
|
---|
[8756] | 8769 |
|
---|
| 8770 | cd $ac_dir
|
---|
| 8771 |
|
---|
[1675] | 8772 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[8756] | 8773 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 8774 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
| 8775 | elif test -f $ac_srcdir/configure; then
|
---|
| 8776 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
| 8777 | elif test -f $ac_srcdir/configure.in; then
|
---|
[1675] | 8778 | ac_sub_configure=$ac_configure
|
---|
| 8779 | else
|
---|
[8756] | 8780 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
| 8781 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
[1675] | 8782 | ac_sub_configure=
|
---|
| 8783 | fi
|
---|
| 8784 |
|
---|
| 8785 | # The recursion is here.
|
---|
| 8786 | if test -n "$ac_sub_configure"; then
|
---|
| 8787 | # Make the cache file name correct relative to the subdirectory.
|
---|
[8756] | 8788 | case $cache_file in
|
---|
| 8789 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
[1675] | 8790 | *) # Relative path.
|
---|
[8756] | 8791 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
[1675] | 8792 | esac
|
---|
| 8793 |
|
---|
[8756] | 8794 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
| 8795 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
[1675] | 8796 | # The eval makes quoting arguments work.
|
---|
[8756] | 8797 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
| 8798 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
| 8799 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
| 8800 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
| 8801 | { (exit 1); exit 1; }; }
|
---|
[1675] | 8802 | fi
|
---|
| 8803 |
|
---|
| 8804 | cd $ac_popdir
|
---|
| 8805 | done
|
---|
| 8806 | fi
|
---|
| 8807 |
|
---|
[8200] | 8808 |
|
---|
| 8809 |
|
---|