[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 |
|
---|
| 274 | ac_unique_file="lib/text_t.h"
|
---|
| 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 |
|
---|
| 312 | ac_subdirs_all="$ac_subdirs_all packages"
|
---|
| 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 CFLAGS CC LDFLAGS 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 MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC GDBM_LIBPATH GDBM_INCLUDE gsdlos MODULEDIRS subdirs LTLIBOBJS'
|
---|
| 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
|
---|
| 859 |
|
---|
| 860 | Optional Packages:
|
---|
| 861 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 862 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 863 | --with-micodir Use installed MICO directory
|
---|
| 864 | --with-gdbm=dir Use local gdbm library and headers
|
---|
| 865 | --with-dmalloc use dmalloc, as in
|
---|
| 866 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 867 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 868 |
|
---|
| 869 | Some influential environment variables:
|
---|
| 870 | CC C compiler command
|
---|
| 871 | CFLAGS C compiler flags
|
---|
| 872 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 873 | nonstandard directory <lib dir>
|
---|
| 874 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
| 875 | headers in a nonstandard directory <include dir>
|
---|
| 876 | CXX C++ compiler command
|
---|
| 877 | CXXFLAGS C++ compiler flags
|
---|
| 878 | CPP C preprocessor
|
---|
| 879 |
|
---|
| 880 | Use these variables to override the choices made by `configure' or to help
|
---|
| 881 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 882 |
|
---|
| 883 | _ACEOF
|
---|
| 884 | fi
|
---|
| 885 |
|
---|
| 886 | if test "$ac_init_help" = "recursive"; then
|
---|
| 887 | # If there are subdirs, report their specific --help.
|
---|
| 888 | ac_popdir=`pwd`
|
---|
| 889 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
| 890 | test -d $ac_dir || continue
|
---|
| 891 | ac_builddir=.
|
---|
| 892 |
|
---|
| 893 | if test "$ac_dir" != .; then
|
---|
| 894 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 895 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 896 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 897 | else
|
---|
| 898 | ac_dir_suffix= ac_top_builddir=
|
---|
| 899 | fi
|
---|
| 900 |
|
---|
| 901 | case $srcdir in
|
---|
| 902 | .) # No --srcdir option. We are building in place.
|
---|
| 903 | ac_srcdir=.
|
---|
| 904 | if test -z "$ac_top_builddir"; then
|
---|
| 905 | ac_top_srcdir=.
|
---|
| 906 | else
|
---|
| 907 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 908 | fi ;;
|
---|
| 909 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 910 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 911 | ac_top_srcdir=$srcdir ;;
|
---|
| 912 | *) # Relative path.
|
---|
| 913 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 914 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 915 | esac
|
---|
| 916 |
|
---|
| 917 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 918 | # the directories may not exist.
|
---|
| 919 | case `pwd` in
|
---|
| 920 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 921 | *)
|
---|
| 922 | case "$ac_dir" in
|
---|
| 923 | .) ac_abs_builddir=`pwd`;;
|
---|
| 924 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 925 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 926 | esac;;
|
---|
| 927 | esac
|
---|
| 928 | case $ac_abs_builddir in
|
---|
| 929 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 930 | *)
|
---|
| 931 | case ${ac_top_builddir}. in
|
---|
| 932 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 933 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 934 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 935 | esac;;
|
---|
| 936 | esac
|
---|
| 937 | case $ac_abs_builddir in
|
---|
| 938 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 939 | *)
|
---|
| 940 | case $ac_srcdir in
|
---|
| 941 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 942 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 943 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 944 | esac;;
|
---|
| 945 | esac
|
---|
| 946 | case $ac_abs_builddir in
|
---|
| 947 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 948 | *)
|
---|
| 949 | case $ac_top_srcdir in
|
---|
| 950 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 951 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 952 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 953 | esac;;
|
---|
| 954 | esac
|
---|
| 955 |
|
---|
| 956 | cd $ac_dir
|
---|
| 957 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
| 958 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 959 | echo
|
---|
| 960 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
| 961 | elif test -f $ac_srcdir/configure; then
|
---|
| 962 | echo
|
---|
| 963 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
| 964 | elif test -f $ac_srcdir/configure.ac ||
|
---|
| 965 | test -f $ac_srcdir/configure.in; then
|
---|
| 966 | echo
|
---|
| 967 | $ac_configure --help
|
---|
| 968 | else
|
---|
| 969 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
| 970 | fi
|
---|
| 971 | cd $ac_popdir
|
---|
| 972 | done
|
---|
| 973 | fi
|
---|
| 974 |
|
---|
| 975 | test -n "$ac_init_help" && exit 0
|
---|
| 976 | if $ac_init_version; then
|
---|
| 977 | cat <<\_ACEOF
|
---|
| 978 |
|
---|
| 979 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
| 980 | This configure script is free software; the Free Software Foundation
|
---|
| 981 | gives unlimited permission to copy, distribute and modify it.
|
---|
| 982 | _ACEOF
|
---|
| 983 | exit 0
|
---|
| 984 | fi
|
---|
| 985 | exec 5>config.log
|
---|
| 986 | cat >&5 <<_ACEOF
|
---|
| 987 | This file contains any messages produced by compilers while
|
---|
| 988 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 989 |
|
---|
| 990 | It was created by $as_me, which was
|
---|
| 991 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
| 992 |
|
---|
| 993 | $ $0 $@
|
---|
| 994 |
|
---|
| 995 | _ACEOF
|
---|
| 996 | {
|
---|
| 997 | cat <<_ASUNAME
|
---|
| 998 | ## --------- ##
|
---|
| 999 | ## Platform. ##
|
---|
| 1000 | ## --------- ##
|
---|
| 1001 |
|
---|
| 1002 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1003 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1004 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1005 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1006 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1007 |
|
---|
| 1008 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1009 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1010 |
|
---|
| 1011 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1012 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1013 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
| 1014 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
| 1015 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1016 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1017 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1018 |
|
---|
| 1019 | _ASUNAME
|
---|
| 1020 |
|
---|
| 1021 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1022 | for as_dir in $PATH
|
---|
| 1023 | do
|
---|
| 1024 | IFS=$as_save_IFS
|
---|
| 1025 | test -z "$as_dir" && as_dir=.
|
---|
| 1026 | echo "PATH: $as_dir"
|
---|
| 1027 | done
|
---|
| 1028 |
|
---|
| 1029 | } >&5
|
---|
| 1030 |
|
---|
| 1031 | cat >&5 <<_ACEOF
|
---|
| 1032 |
|
---|
| 1033 |
|
---|
| 1034 | ## ----------- ##
|
---|
| 1035 | ## Core tests. ##
|
---|
| 1036 | ## ----------- ##
|
---|
| 1037 |
|
---|
| 1038 | _ACEOF
|
---|
| 1039 |
|
---|
| 1040 |
|
---|
| 1041 | # Keep a trace of the command line.
|
---|
| 1042 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 1043 | # Strip out --silent because we don't want to record it for future runs.
|
---|
| 1044 | # Also quote any args containing shell meta-characters.
|
---|
| 1045 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
| 1046 | ac_configure_args=
|
---|
| 1047 | ac_configure_args0=
|
---|
| 1048 | ac_configure_args1=
|
---|
| 1049 | ac_sep=
|
---|
| 1050 | ac_must_keep_next=false
|
---|
| 1051 | for ac_pass in 1 2
|
---|
| 1052 | do
|
---|
| 1053 | for ac_arg
|
---|
| 1054 | do
|
---|
| 1055 | case $ac_arg in
|
---|
| 1056 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1057 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1058 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1059 | continue ;;
|
---|
| 1060 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1061 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1062 | esac
|
---|
| 1063 | case $ac_pass in
|
---|
| 1064 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
| 1065 | 2)
|
---|
| 1066 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
| 1067 | if test $ac_must_keep_next = true; then
|
---|
| 1068 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1069 | else
|
---|
| 1070 | case $ac_arg in
|
---|
| 1071 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1072 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1073 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1074 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1075 | case "$ac_configure_args0 " in
|
---|
| 1076 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1077 | esac
|
---|
| 1078 | ;;
|
---|
| 1079 | -* ) ac_must_keep_next=true ;;
|
---|
| 1080 | esac
|
---|
| 1081 | fi
|
---|
| 1082 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
| 1083 | # Get rid of the leading space.
|
---|
| 1084 | ac_sep=" "
|
---|
| 1085 | ;;
|
---|
| 1086 | esac
|
---|
| 1087 | done
|
---|
| 1088 | done
|
---|
| 1089 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1090 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
| 1091 |
|
---|
| 1092 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1093 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1094 | # would cause problems or look ugly.
|
---|
| 1095 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
| 1096 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
| 1097 | trap 'exit_status=$?
|
---|
| 1098 | # Save into config.log some information that might help in debugging.
|
---|
| 1099 | {
|
---|
| 1100 | echo
|
---|
| 1101 |
|
---|
| 1102 | cat <<\_ASBOX
|
---|
| 1103 | ## ---------------- ##
|
---|
| 1104 | ## Cache variables. ##
|
---|
| 1105 | ## ---------------- ##
|
---|
| 1106 | _ASBOX
|
---|
| 1107 | echo
|
---|
| 1108 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 1109 | {
|
---|
| 1110 | (set) 2>&1 |
|
---|
| 1111 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
| 1112 | *ac_space=\ *)
|
---|
| 1113 | sed -n \
|
---|
| 1114 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
| 1115 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
| 1116 | ;;
|
---|
| 1117 | *)
|
---|
| 1118 | sed -n \
|
---|
| 1119 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
| 1120 | ;;
|
---|
| 1121 | esac;
|
---|
| 1122 | }
|
---|
| 1123 | echo
|
---|
| 1124 |
|
---|
| 1125 | cat <<\_ASBOX
|
---|
| 1126 | ## ----------------- ##
|
---|
| 1127 | ## Output variables. ##
|
---|
| 1128 | ## ----------------- ##
|
---|
| 1129 | _ASBOX
|
---|
| 1130 | echo
|
---|
| 1131 | for ac_var in $ac_subst_vars
|
---|
| 1132 | do
|
---|
| 1133 | eval ac_val=$`echo $ac_var`
|
---|
| 1134 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1135 | done | sort
|
---|
| 1136 | echo
|
---|
| 1137 |
|
---|
| 1138 | if test -n "$ac_subst_files"; then
|
---|
| 1139 | cat <<\_ASBOX
|
---|
| 1140 | ## ------------- ##
|
---|
| 1141 | ## Output files. ##
|
---|
| 1142 | ## ------------- ##
|
---|
| 1143 | _ASBOX
|
---|
| 1144 | echo
|
---|
| 1145 | for ac_var in $ac_subst_files
|
---|
| 1146 | do
|
---|
| 1147 | eval ac_val=$`echo $ac_var`
|
---|
| 1148 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
| 1149 | done | sort
|
---|
| 1150 | echo
|
---|
| 1151 | fi
|
---|
| 1152 |
|
---|
| 1153 | if test -s confdefs.h; then
|
---|
| 1154 | cat <<\_ASBOX
|
---|
| 1155 | ## ----------- ##
|
---|
| 1156 | ## confdefs.h. ##
|
---|
| 1157 | ## ----------- ##
|
---|
| 1158 | _ASBOX
|
---|
| 1159 | echo
|
---|
| 1160 | sed "/^$/d" confdefs.h | sort
|
---|
| 1161 | echo
|
---|
| 1162 | fi
|
---|
| 1163 | test "$ac_signal" != 0 &&
|
---|
| 1164 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1165 | echo "$as_me: exit $exit_status"
|
---|
| 1166 | } >&5
|
---|
| 1167 | rm -f core *.core &&
|
---|
| 1168 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
| 1169 | exit $exit_status
|
---|
| 1170 | ' 0
|
---|
| 1171 | for ac_signal in 1 2 13 15; do
|
---|
| 1172 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
| 1173 | done
|
---|
| 1174 | ac_signal=0
|
---|
| 1175 |
|
---|
| 1176 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
| 1177 | rm -rf conftest* confdefs.h
|
---|
| 1178 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 1179 | echo >confdefs.h
|
---|
| 1180 |
|
---|
| 1181 | # Predefined preprocessor variables.
|
---|
| 1182 |
|
---|
| 1183 | cat >>confdefs.h <<_ACEOF
|
---|
| 1184 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1185 | _ACEOF
|
---|
| 1186 |
|
---|
| 1187 |
|
---|
| 1188 | cat >>confdefs.h <<_ACEOF
|
---|
| 1189 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1190 | _ACEOF
|
---|
| 1191 |
|
---|
| 1192 |
|
---|
| 1193 | cat >>confdefs.h <<_ACEOF
|
---|
| 1194 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1195 | _ACEOF
|
---|
| 1196 |
|
---|
| 1197 |
|
---|
| 1198 | cat >>confdefs.h <<_ACEOF
|
---|
| 1199 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1200 | _ACEOF
|
---|
| 1201 |
|
---|
| 1202 |
|
---|
| 1203 | cat >>confdefs.h <<_ACEOF
|
---|
| 1204 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1205 | _ACEOF
|
---|
| 1206 |
|
---|
| 1207 |
|
---|
| 1208 | # Let the site file select an alternate cache file if it wants to.
|
---|
[562] | 1209 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 1210 | if test -z "$CONFIG_SITE"; then
|
---|
| 1211 | if test "x$prefix" != xNONE; then
|
---|
| 1212 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 1213 | else
|
---|
| 1214 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 1215 | fi
|
---|
| 1216 | fi
|
---|
| 1217 | for ac_site_file in $CONFIG_SITE; do
|
---|
| 1218 | if test -r "$ac_site_file"; then
|
---|
[8756] | 1219 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
| 1220 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
| 1221 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[562] | 1222 | . "$ac_site_file"
|
---|
| 1223 | fi
|
---|
| 1224 | done
|
---|
| 1225 |
|
---|
| 1226 | if test -r "$cache_file"; then
|
---|
[8756] | 1227 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1228 | # files actually), so we avoid doing that.
|
---|
| 1229 | if test -f "$cache_file"; then
|
---|
| 1230 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
| 1231 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
| 1232 | case $cache_file in
|
---|
| 1233 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
| 1234 | *) . ./$cache_file;;
|
---|
| 1235 | esac
|
---|
| 1236 | fi
|
---|
[562] | 1237 | else
|
---|
[8756] | 1238 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
| 1239 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
| 1240 | >$cache_file
|
---|
[562] | 1241 | fi
|
---|
| 1242 |
|
---|
[8756] | 1243 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1244 | # value.
|
---|
| 1245 | ac_cache_corrupted=false
|
---|
| 1246 | for ac_var in `(set) 2>&1 |
|
---|
| 1247 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
| 1248 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1249 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
| 1250 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
| 1251 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
| 1252 | case $ac_old_set,$ac_new_set in
|
---|
| 1253 | set,)
|
---|
| 1254 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1255 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
| 1256 | ac_cache_corrupted=: ;;
|
---|
| 1257 | ,set)
|
---|
| 1258 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1259 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
| 1260 | ac_cache_corrupted=: ;;
|
---|
| 1261 | ,);;
|
---|
| 1262 | *)
|
---|
| 1263 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
| 1264 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1265 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1266 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1267 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1268 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1269 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1270 | ac_cache_corrupted=:
|
---|
| 1271 | fi;;
|
---|
| 1272 | esac
|
---|
| 1273 | # Pass precious variables to config.status.
|
---|
| 1274 | if test "$ac_new_set" = set; then
|
---|
| 1275 | case $ac_new_val in
|
---|
| 1276 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1277 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
| 1278 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1279 | esac
|
---|
| 1280 | case " $ac_configure_args " in
|
---|
| 1281 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
| 1282 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
| 1283 | esac
|
---|
| 1284 | fi
|
---|
| 1285 | done
|
---|
| 1286 | if $ac_cache_corrupted; then
|
---|
| 1287 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1288 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1289 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1290 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1291 | { (exit 1); exit 1; }; }
|
---|
| 1292 | fi
|
---|
| 1293 |
|
---|
[562] | 1294 | ac_ext=c
|
---|
| 1295 | ac_cpp='$CPP $CPPFLAGS'
|
---|
[8756] | 1296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[562] | 1299 |
|
---|
| 1300 |
|
---|
| 1301 |
|
---|
[8200] | 1302 |
|
---|
| 1303 |
|
---|
[8756] | 1304 |
|
---|
| 1305 |
|
---|
| 1306 |
|
---|
| 1307 |
|
---|
| 1308 |
|
---|
| 1309 |
|
---|
| 1310 |
|
---|
| 1311 |
|
---|
| 1312 |
|
---|
| 1313 |
|
---|
| 1314 |
|
---|
| 1315 |
|
---|
| 1316 |
|
---|
| 1317 |
|
---|
| 1318 | ac_config_headers="$ac_config_headers config.h"
|
---|
| 1319 |
|
---|
| 1320 |
|
---|
[562] | 1321 | PACKAGE=gsdl
|
---|
[681] | 1322 | VERSION=2.1
|
---|
[8756] | 1323 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 1324 | #define PACKAGE "$PACKAGE"
|
---|
[8756] | 1325 | _ACEOF
|
---|
[562] | 1326 |
|
---|
[8756] | 1327 | cat >>confdefs.h <<_ACEOF
|
---|
[562] | 1328 | #define VERSION "$VERSION"
|
---|
[8756] | 1329 | _ACEOF
|
---|
[562] | 1330 |
|
---|
[8200] | 1331 |
|
---|
| 1332 |
|
---|
| 1333 |
|
---|
[567] | 1334 | USE_FASTCGI=0
|
---|
| 1335 | if test USE_FASTCGI = 1; then
|
---|
[8756] | 1336 | cat >>confdefs.h <<\_ACEOF
|
---|
[567] | 1337 | #define USE_FASTCGI 1
|
---|
[8756] | 1338 | _ACEOF
|
---|
[567] | 1339 |
|
---|
[8200] | 1340 |
|
---|
[3631] | 1341 | fi
|
---|
[567] | 1342 |
|
---|
[3631] | 1343 | if test USE_LANGACTION = 1; then
|
---|
[8756] | 1344 | cat >>confdefs.h <<\_ACEOF
|
---|
[3631] | 1345 | #define USE_LANGACTION 1
|
---|
[8756] | 1346 | _ACEOF
|
---|
[3631] | 1347 |
|
---|
[8200] | 1348 |
|
---|
[567] | 1349 | fi
|
---|
| 1350 |
|
---|
[1860] | 1351 | # Check whether --enable-corba or --disable-corba was given.
|
---|
| 1352 | if test "${enable_corba+set}" = set; then
|
---|
| 1353 | enableval="$enable_corba"
|
---|
[2471] | 1354 | USE_CORBA=1
|
---|
[1860] | 1355 | else
|
---|
[2471] | 1356 | USE_CORBA=0
|
---|
[8756] | 1357 | fi;
|
---|
| 1358 | cat >>confdefs.h <<_ACEOF
|
---|
[2297] | 1359 | #define USE_CORBA $USE_CORBA
|
---|
[8756] | 1360 | _ACEOF
|
---|
[1860] | 1361 |
|
---|
[8200] | 1362 |
|
---|
| 1363 |
|
---|
[8756] | 1364 |
|
---|
[1860] | 1365 | # Check whether --with-micodir or --without-micodir was given.
|
---|
| 1366 | if test "${with_micodir+set}" = set; then
|
---|
| 1367 | withval="$with_micodir"
|
---|
[2471] | 1368 | MICO_DIR=$enableval
|
---|
[1860] | 1369 | else
|
---|
[2471] | 1370 | MICO_DIR="default"
|
---|
[8756] | 1371 | fi;
|
---|
| 1372 | cat >>confdefs.h <<_ACEOF
|
---|
[2297] | 1373 | #define MICO_DIR "$MICO_DIR"
|
---|
[8756] | 1374 | _ACEOF
|
---|
[1860] | 1375 |
|
---|
[8200] | 1376 |
|
---|
| 1377 |
|
---|
[1938] | 1378 | # Check whether --enable-z3950 or --disable-z3950 was given.
|
---|
| 1379 | if test "${enable_z3950+set}" = set; then
|
---|
| 1380 | enableval="$enable_z3950"
|
---|
| 1381 | USE_Z3950=1
|
---|
| 1382 | else
|
---|
| 1383 | USE_Z3950=0
|
---|
[8756] | 1384 | fi;
|
---|
[2297] | 1385 | if test USE_Z3950 = 1; then
|
---|
[8756] | 1386 | cat >>confdefs.h <<\_ACEOF
|
---|
[2297] | 1387 | #define USE_Z3950 $USE_Z3950
|
---|
[8756] | 1388 | _ACEOF
|
---|
[1938] | 1389 |
|
---|
[8200] | 1390 |
|
---|
[2297] | 1391 | fi
|
---|
[1938] | 1392 |
|
---|
[8756] | 1393 |
|
---|
[2279] | 1394 | # Check whether --with-gdbm or --without-gdbm was given.
|
---|
| 1395 | if test "${with_gdbm+set}" = set; then
|
---|
| 1396 | withval="$with_gdbm"
|
---|
| 1397 | gdbmdir=$withval
|
---|
[8756] | 1398 | fi;
|
---|
[2279] | 1399 |
|
---|
[794] | 1400 | LDFLAGS=
|
---|
[1722] | 1401 | if test -z "$CFLAGS"; then
|
---|
[794] | 1402 | CFLAGS=-O2
|
---|
[1722] | 1403 | fi
|
---|
[576] | 1404 |
|
---|
| 1405 |
|
---|
[8756] | 1406 | ac_ext=c
|
---|
| 1407 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1408 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1409 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1410 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1411 | if test -n "$ac_tool_prefix"; then
|
---|
| 1412 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 1413 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
| 1414 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1415 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1416 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1417 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1418 | else
|
---|
| 1419 | if test -n "$CC"; then
|
---|
| 1420 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1421 | else
|
---|
| 1422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1423 | for as_dir in $PATH
|
---|
| 1424 | do
|
---|
| 1425 | IFS=$as_save_IFS
|
---|
| 1426 | test -z "$as_dir" && as_dir=.
|
---|
| 1427 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1428 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1429 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
| 1430 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1431 | break 2
|
---|
| 1432 | fi
|
---|
| 1433 | done
|
---|
| 1434 | done
|
---|
| 1435 |
|
---|
| 1436 | fi
|
---|
| 1437 | fi
|
---|
| 1438 | CC=$ac_cv_prog_CC
|
---|
| 1439 | if test -n "$CC"; then
|
---|
| 1440 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1441 | echo "${ECHO_T}$CC" >&6
|
---|
| 1442 | else
|
---|
| 1443 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1444 | echo "${ECHO_T}no" >&6
|
---|
| 1445 | fi
|
---|
| 1446 |
|
---|
| 1447 | fi
|
---|
| 1448 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1449 | ac_ct_CC=$CC
|
---|
| 1450 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
[562] | 1451 | set dummy gcc; ac_word=$2
|
---|
[8756] | 1452 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1453 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1454 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1455 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1456 | else
|
---|
[8756] | 1457 | if test -n "$ac_ct_CC"; then
|
---|
| 1458 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1459 | else
|
---|
| 1460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1461 | for as_dir in $PATH
|
---|
| 1462 | do
|
---|
| 1463 | IFS=$as_save_IFS
|
---|
| 1464 | test -z "$as_dir" && as_dir=.
|
---|
| 1465 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1466 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1467 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
| 1468 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1469 | break 2
|
---|
| 1470 | fi
|
---|
| 1471 | done
|
---|
| 1472 | done
|
---|
| 1473 |
|
---|
| 1474 | fi
|
---|
| 1475 | fi
|
---|
| 1476 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1477 | if test -n "$ac_ct_CC"; then
|
---|
| 1478 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1479 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1480 | else
|
---|
| 1481 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1482 | echo "${ECHO_T}no" >&6
|
---|
| 1483 | fi
|
---|
| 1484 |
|
---|
| 1485 | CC=$ac_ct_CC
|
---|
| 1486 | else
|
---|
| 1487 | CC="$ac_cv_prog_CC"
|
---|
| 1488 | fi
|
---|
| 1489 |
|
---|
| 1490 | if test -z "$CC"; then
|
---|
| 1491 | if test -n "$ac_tool_prefix"; then
|
---|
| 1492 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
| 1493 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
| 1494 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1496 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1497 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1498 | else
|
---|
[562] | 1499 | if test -n "$CC"; then
|
---|
| 1500 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1501 | else
|
---|
[8756] | 1502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1503 | for as_dir in $PATH
|
---|
| 1504 | do
|
---|
| 1505 | IFS=$as_save_IFS
|
---|
| 1506 | test -z "$as_dir" && as_dir=.
|
---|
| 1507 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1508 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1509 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
| 1510 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1511 | break 2
|
---|
| 1512 | fi
|
---|
| 1513 | done
|
---|
| 1514 | done
|
---|
| 1515 |
|
---|
[562] | 1516 | fi
|
---|
| 1517 | fi
|
---|
[8756] | 1518 | CC=$ac_cv_prog_CC
|
---|
[562] | 1519 | if test -n "$CC"; then
|
---|
[8756] | 1520 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1521 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1522 | else
|
---|
[8756] | 1523 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1524 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1525 | fi
|
---|
| 1526 |
|
---|
[8756] | 1527 | fi
|
---|
| 1528 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1529 | ac_ct_CC=$CC
|
---|
| 1530 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1531 | set dummy cc; ac_word=$2
|
---|
| 1532 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1533 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1534 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1535 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1536 | else
|
---|
| 1537 | if test -n "$ac_ct_CC"; then
|
---|
| 1538 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1539 | else
|
---|
| 1540 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1541 | for as_dir in $PATH
|
---|
| 1542 | do
|
---|
| 1543 | IFS=$as_save_IFS
|
---|
| 1544 | test -z "$as_dir" && as_dir=.
|
---|
| 1545 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1546 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1547 | ac_cv_prog_ac_ct_CC="cc"
|
---|
| 1548 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1549 | break 2
|
---|
| 1550 | fi
|
---|
| 1551 | done
|
---|
| 1552 | done
|
---|
| 1553 |
|
---|
| 1554 | fi
|
---|
| 1555 | fi
|
---|
| 1556 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1557 | if test -n "$ac_ct_CC"; then
|
---|
| 1558 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1559 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1560 | else
|
---|
| 1561 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1562 | echo "${ECHO_T}no" >&6
|
---|
| 1563 | fi
|
---|
| 1564 |
|
---|
| 1565 | CC=$ac_ct_CC
|
---|
| 1566 | else
|
---|
| 1567 | CC="$ac_cv_prog_CC"
|
---|
| 1568 | fi
|
---|
| 1569 |
|
---|
| 1570 | fi
|
---|
[562] | 1571 | if test -z "$CC"; then
|
---|
| 1572 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1573 | set dummy cc; ac_word=$2
|
---|
[8756] | 1574 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1575 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1576 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1577 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1578 | else
|
---|
| 1579 | if test -n "$CC"; then
|
---|
| 1580 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1581 | else
|
---|
| 1582 | ac_prog_rejected=no
|
---|
[8756] | 1583 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1584 | for as_dir in $PATH
|
---|
| 1585 | do
|
---|
| 1586 | IFS=$as_save_IFS
|
---|
| 1587 | test -z "$as_dir" && as_dir=.
|
---|
| 1588 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1589 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1590 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 1591 | ac_prog_rejected=yes
|
---|
| 1592 | continue
|
---|
| 1593 | fi
|
---|
| 1594 | ac_cv_prog_CC="cc"
|
---|
| 1595 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1596 | break 2
|
---|
| 1597 | fi
|
---|
| 1598 | done
|
---|
| 1599 | done
|
---|
| 1600 |
|
---|
[562] | 1601 | if test $ac_prog_rejected = yes; then
|
---|
| 1602 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 1603 | set dummy $ac_cv_prog_CC
|
---|
| 1604 | shift
|
---|
[8756] | 1605 | if test $# != 0; then
|
---|
[562] | 1606 | # We chose a different compiler from the bogus one.
|
---|
| 1607 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 1608 | # first if we set CC to just the basename; use the full file name.
|
---|
| 1609 | shift
|
---|
[8756] | 1610 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
[562] | 1611 | fi
|
---|
| 1612 | fi
|
---|
| 1613 | fi
|
---|
| 1614 | fi
|
---|
[8756] | 1615 | CC=$ac_cv_prog_CC
|
---|
[562] | 1616 | if test -n "$CC"; then
|
---|
[8756] | 1617 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1618 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1619 | else
|
---|
[8756] | 1620 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1621 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1622 | fi
|
---|
| 1623 |
|
---|
[8756] | 1624 | fi
|
---|
| 1625 | if test -z "$CC"; then
|
---|
| 1626 | if test -n "$ac_tool_prefix"; then
|
---|
| 1627 | for ac_prog in cl
|
---|
| 1628 | do
|
---|
| 1629 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 1630 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
| 1631 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1632 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1633 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1634 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1635 | else
|
---|
| 1636 | if test -n "$CC"; then
|
---|
| 1637 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1638 | else
|
---|
[8756] | 1639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1640 | for as_dir in $PATH
|
---|
| 1641 | do
|
---|
| 1642 | IFS=$as_save_IFS
|
---|
| 1643 | test -z "$as_dir" && as_dir=.
|
---|
| 1644 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1645 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1646 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
| 1647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1648 | break 2
|
---|
| 1649 | fi
|
---|
| 1650 | done
|
---|
| 1651 | done
|
---|
| 1652 |
|
---|
[562] | 1653 | fi
|
---|
| 1654 | fi
|
---|
[8756] | 1655 | CC=$ac_cv_prog_CC
|
---|
[562] | 1656 | if test -n "$CC"; then
|
---|
[8756] | 1657 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1658 | echo "${ECHO_T}$CC" >&6
|
---|
[562] | 1659 | else
|
---|
[8756] | 1660 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1661 | echo "${ECHO_T}no" >&6
|
---|
[562] | 1662 | fi
|
---|
[8756] | 1663 |
|
---|
| 1664 | test -n "$CC" && break
|
---|
| 1665 | done
|
---|
| 1666 | fi
|
---|
| 1667 | if test -z "$CC"; then
|
---|
| 1668 | ac_ct_CC=$CC
|
---|
| 1669 | for ac_prog in cl
|
---|
| 1670 | do
|
---|
| 1671 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 1672 | set dummy $ac_prog; ac_word=$2
|
---|
| 1673 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1674 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1675 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1676 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1677 | else
|
---|
| 1678 | if test -n "$ac_ct_CC"; then
|
---|
| 1679 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1680 | else
|
---|
| 1681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1682 | for as_dir in $PATH
|
---|
| 1683 | do
|
---|
| 1684 | IFS=$as_save_IFS
|
---|
| 1685 | test -z "$as_dir" && as_dir=.
|
---|
| 1686 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1687 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1688 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
| 1689 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1690 | break 2
|
---|
[8200] | 1691 | fi
|
---|
[8756] | 1692 | done
|
---|
| 1693 | done
|
---|
| 1694 |
|
---|
[562] | 1695 | fi
|
---|
[8756] | 1696 | fi
|
---|
| 1697 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1698 | if test -n "$ac_ct_CC"; then
|
---|
| 1699 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1700 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1701 | else
|
---|
| 1702 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1703 | echo "${ECHO_T}no" >&6
|
---|
| 1704 | fi
|
---|
[562] | 1705 |
|
---|
[8756] | 1706 | test -n "$ac_ct_CC" && break
|
---|
| 1707 | done
|
---|
[562] | 1708 |
|
---|
[8756] | 1709 | CC=$ac_ct_CC
|
---|
| 1710 | fi
|
---|
[562] | 1711 |
|
---|
[8756] | 1712 | fi
|
---|
[562] | 1713 |
|
---|
| 1714 |
|
---|
[8756] | 1715 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 1716 | See \`config.log' for more details." >&5
|
---|
| 1717 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 1718 | See \`config.log' for more details." >&2;}
|
---|
| 1719 | { (exit 1); exit 1; }; }
|
---|
| 1720 |
|
---|
| 1721 | # Provide some information about the compiler.
|
---|
| 1722 | echo "$as_me:$LINENO:" \
|
---|
| 1723 | "checking for C compiler version" >&5
|
---|
| 1724 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 1725 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 1726 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 1727 | ac_status=$?
|
---|
| 1728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1729 | (exit $ac_status); }
|
---|
| 1730 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 1731 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 1732 | ac_status=$?
|
---|
| 1733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1734 | (exit $ac_status); }
|
---|
| 1735 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 1736 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 1737 | ac_status=$?
|
---|
| 1738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1739 | (exit $ac_status); }
|
---|
| 1740 |
|
---|
| 1741 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1742 | /* confdefs.h. */
|
---|
| 1743 | _ACEOF
|
---|
| 1744 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1745 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1746 | /* end confdefs.h. */
|
---|
| 1747 |
|
---|
| 1748 | int
|
---|
| 1749 | main ()
|
---|
| 1750 | {
|
---|
| 1751 |
|
---|
| 1752 | ;
|
---|
| 1753 | return 0;
|
---|
| 1754 | }
|
---|
| 1755 | _ACEOF
|
---|
| 1756 | ac_clean_files_save=$ac_clean_files
|
---|
| 1757 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
| 1758 | # Try to create an executable without -o first, disregard a.out.
|
---|
| 1759 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
| 1760 | # of exeext.
|
---|
| 1761 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
| 1762 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
| 1763 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
| 1764 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
| 1765 | (eval $ac_link_default) 2>&5
|
---|
| 1766 | ac_status=$?
|
---|
| 1767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1768 | (exit $ac_status); }; then
|
---|
| 1769 | # Find the output, starting from the most likely. This scheme is
|
---|
| 1770 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
| 1771 | # resort.
|
---|
| 1772 |
|
---|
| 1773 | # Be careful to initialize this variable, since it used to be cached.
|
---|
| 1774 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
| 1775 | ac_cv_exeext=
|
---|
| 1776 | # b.out is created by i960 compilers.
|
---|
| 1777 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
| 1778 | do
|
---|
| 1779 | test -f "$ac_file" || continue
|
---|
| 1780 | case $ac_file in
|
---|
| 1781 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
| 1782 | ;;
|
---|
| 1783 | conftest.$ac_ext )
|
---|
| 1784 | # This is the source file.
|
---|
| 1785 | ;;
|
---|
| 1786 | [ab].out )
|
---|
| 1787 | # We found the default executable, but exeext='' is most
|
---|
| 1788 | # certainly right.
|
---|
| 1789 | break;;
|
---|
| 1790 | *.* )
|
---|
| 1791 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1792 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
| 1793 | # but it would be cool to find out if it's true. Does anybody
|
---|
| 1794 | # maintain Libtool? --akim.
|
---|
| 1795 | export ac_cv_exeext
|
---|
| 1796 | break;;
|
---|
| 1797 | * )
|
---|
| 1798 | break;;
|
---|
| 1799 | esac
|
---|
| 1800 | done
|
---|
| 1801 | else
|
---|
| 1802 | echo "$as_me: failed program was:" >&5
|
---|
| 1803 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1804 |
|
---|
| 1805 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
| 1806 | See \`config.log' for more details." >&5
|
---|
| 1807 | echo "$as_me: error: C compiler cannot create executables
|
---|
| 1808 | See \`config.log' for more details." >&2;}
|
---|
| 1809 | { (exit 77); exit 77; }; }
|
---|
| 1810 | fi
|
---|
| 1811 |
|
---|
| 1812 | ac_exeext=$ac_cv_exeext
|
---|
| 1813 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
| 1814 | echo "${ECHO_T}$ac_file" >&6
|
---|
| 1815 |
|
---|
| 1816 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1817 | # the compiler is broken, or we cross compile.
|
---|
| 1818 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
| 1819 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
| 1820 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 1821 | # If not cross compiling, check that we can run a simple program.
|
---|
| 1822 | if test "$cross_compiling" != yes; then
|
---|
| 1823 | if { ac_try='./$ac_file'
|
---|
| 1824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1825 | (eval $ac_try) 2>&5
|
---|
| 1826 | ac_status=$?
|
---|
| 1827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1828 | (exit $ac_status); }; }; then
|
---|
| 1829 | cross_compiling=no
|
---|
[562] | 1830 | else
|
---|
[8756] | 1831 | if test "$cross_compiling" = maybe; then
|
---|
| 1832 | cross_compiling=yes
|
---|
| 1833 | else
|
---|
| 1834 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
| 1835 | If you meant to cross compile, use \`--host'.
|
---|
| 1836 | See \`config.log' for more details." >&5
|
---|
| 1837 | echo "$as_me: error: cannot run C compiled programs.
|
---|
| 1838 | If you meant to cross compile, use \`--host'.
|
---|
| 1839 | See \`config.log' for more details." >&2;}
|
---|
| 1840 | { (exit 1); exit 1; }; }
|
---|
| 1841 | fi
|
---|
[562] | 1842 | fi
|
---|
| 1843 | fi
|
---|
[8756] | 1844 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 1845 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 1846 |
|
---|
[8756] | 1847 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
| 1848 | ac_clean_files=$ac_clean_files_save
|
---|
| 1849 | # Check the compiler produces executables we can run. If not, either
|
---|
| 1850 | # the compiler is broken, or we cross compile.
|
---|
| 1851 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
| 1852 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
| 1853 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
| 1854 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
| 1855 |
|
---|
| 1856 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 1857 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
| 1858 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 1859 | (eval $ac_link) 2>&5
|
---|
| 1860 | ac_status=$?
|
---|
| 1861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1862 | (exit $ac_status); }; then
|
---|
| 1863 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 1864 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 1865 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 1866 | # `rm'.
|
---|
| 1867 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 1868 | test -f "$ac_file" || continue
|
---|
| 1869 | case $ac_file in
|
---|
| 1870 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
| 1871 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 1872 | export ac_cv_exeext
|
---|
| 1873 | break;;
|
---|
| 1874 | * ) break;;
|
---|
| 1875 | esac
|
---|
| 1876 | done
|
---|
| 1877 | else
|
---|
| 1878 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1879 | See \`config.log' for more details." >&5
|
---|
| 1880 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 1881 | See \`config.log' for more details." >&2;}
|
---|
| 1882 | { (exit 1); exit 1; }; }
|
---|
[562] | 1883 | fi
|
---|
| 1884 |
|
---|
[8756] | 1885 | rm -f conftest$ac_cv_exeext
|
---|
| 1886 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
| 1887 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
| 1888 |
|
---|
| 1889 | rm -f conftest.$ac_ext
|
---|
| 1890 | EXEEXT=$ac_cv_exeext
|
---|
| 1891 | ac_exeext=$EXEEXT
|
---|
| 1892 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 1893 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
| 1894 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 1895 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 1896 | else
|
---|
[8756] | 1897 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1898 | /* confdefs.h. */
|
---|
| 1899 | _ACEOF
|
---|
| 1900 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1901 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1902 | /* end confdefs.h. */
|
---|
| 1903 |
|
---|
| 1904 | int
|
---|
| 1905 | main ()
|
---|
| 1906 | {
|
---|
| 1907 |
|
---|
| 1908 | ;
|
---|
| 1909 | return 0;
|
---|
| 1910 | }
|
---|
| 1911 | _ACEOF
|
---|
| 1912 | rm -f conftest.o conftest.obj
|
---|
| 1913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1914 | (eval $ac_compile) 2>&5
|
---|
| 1915 | ac_status=$?
|
---|
| 1916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1917 | (exit $ac_status); }; then
|
---|
| 1918 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
| 1919 | case $ac_file in
|
---|
| 1920 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
| 1921 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 1922 | break;;
|
---|
| 1923 | esac
|
---|
| 1924 | done
|
---|
[562] | 1925 | else
|
---|
[8756] | 1926 | echo "$as_me: failed program was:" >&5
|
---|
| 1927 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1928 |
|
---|
| 1929 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 1930 | See \`config.log' for more details." >&5
|
---|
| 1931 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 1932 | See \`config.log' for more details." >&2;}
|
---|
| 1933 | { (exit 1); exit 1; }; }
|
---|
[562] | 1934 | fi
|
---|
[8756] | 1935 |
|
---|
| 1936 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
[562] | 1937 | fi
|
---|
[8756] | 1938 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
| 1939 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
| 1940 | OBJEXT=$ac_cv_objext
|
---|
| 1941 | ac_objext=$OBJEXT
|
---|
| 1942 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
| 1943 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
| 1944 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 1945 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1946 | else
|
---|
| 1947 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1948 | /* confdefs.h. */
|
---|
| 1949 | _ACEOF
|
---|
| 1950 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1951 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 1952 | /* end confdefs.h. */
|
---|
[562] | 1953 |
|
---|
[8756] | 1954 | int
|
---|
| 1955 | main ()
|
---|
| 1956 | {
|
---|
| 1957 | #ifndef __GNUC__
|
---|
| 1958 | choke me
|
---|
| 1959 | #endif
|
---|
[562] | 1960 |
|
---|
[8756] | 1961 | ;
|
---|
| 1962 | return 0;
|
---|
| 1963 | }
|
---|
| 1964 | _ACEOF
|
---|
| 1965 | rm -f conftest.$ac_objext
|
---|
| 1966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 1967 | (eval $ac_compile) 2>conftest.er1
|
---|
| 1968 | ac_status=$?
|
---|
| 1969 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 1970 | rm -f conftest.er1
|
---|
| 1971 | cat conftest.err >&5
|
---|
| 1972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1973 | (exit $ac_status); } &&
|
---|
| 1974 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 1975 | || test ! -s conftest.err'
|
---|
| 1976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1977 | (eval $ac_try) 2>&5
|
---|
| 1978 | ac_status=$?
|
---|
| 1979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1980 | (exit $ac_status); }; } &&
|
---|
| 1981 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 1982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 1983 | (eval $ac_try) 2>&5
|
---|
| 1984 | ac_status=$?
|
---|
| 1985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1986 | (exit $ac_status); }; }; then
|
---|
| 1987 | ac_compiler_gnu=yes
|
---|
[562] | 1988 | else
|
---|
[8756] | 1989 | echo "$as_me: failed program was:" >&5
|
---|
| 1990 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 1991 |
|
---|
| 1992 | ac_compiler_gnu=no
|
---|
[562] | 1993 | fi
|
---|
[8756] | 1994 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 1995 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
[562] | 1996 |
|
---|
[8756] | 1997 | fi
|
---|
| 1998 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 1999 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
| 2000 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2001 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2002 | ac_save_CFLAGS=$CFLAGS
|
---|
| 2003 | CFLAGS="-g"
|
---|
| 2004 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
| 2005 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
| 2006 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2007 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 2008 | else
|
---|
[8756] | 2009 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2010 | /* confdefs.h. */
|
---|
| 2011 | _ACEOF
|
---|
| 2012 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2013 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2014 | /* end confdefs.h. */
|
---|
| 2015 |
|
---|
| 2016 | int
|
---|
| 2017 | main ()
|
---|
| 2018 | {
|
---|
| 2019 |
|
---|
| 2020 | ;
|
---|
| 2021 | return 0;
|
---|
| 2022 | }
|
---|
| 2023 | _ACEOF
|
---|
| 2024 | rm -f conftest.$ac_objext
|
---|
| 2025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2026 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2027 | ac_status=$?
|
---|
| 2028 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2029 | rm -f conftest.er1
|
---|
| 2030 | cat conftest.err >&5
|
---|
| 2031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2032 | (exit $ac_status); } &&
|
---|
| 2033 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2034 | || test ! -s conftest.err'
|
---|
| 2035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2036 | (eval $ac_try) 2>&5
|
---|
| 2037 | ac_status=$?
|
---|
| 2038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2039 | (exit $ac_status); }; } &&
|
---|
| 2040 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2042 | (eval $ac_try) 2>&5
|
---|
| 2043 | ac_status=$?
|
---|
| 2044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2045 | (exit $ac_status); }; }; then
|
---|
[562] | 2046 | ac_cv_prog_cc_g=yes
|
---|
| 2047 | else
|
---|
[8756] | 2048 | echo "$as_me: failed program was:" >&5
|
---|
| 2049 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2050 |
|
---|
[8756] | 2051 | ac_cv_prog_cc_g=no
|
---|
[562] | 2052 | fi
|
---|
[8756] | 2053 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2054 | fi
|
---|
| 2055 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
| 2056 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
[562] | 2057 | if test "$ac_test_CFLAGS" = set; then
|
---|
[8756] | 2058 | CFLAGS=$ac_save_CFLAGS
|
---|
[562] | 2059 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2060 | if test "$GCC" = yes; then
|
---|
| 2061 | CFLAGS="-g -O2"
|
---|
| 2062 | else
|
---|
| 2063 | CFLAGS="-g"
|
---|
| 2064 | fi
|
---|
| 2065 | else
|
---|
| 2066 | if test "$GCC" = yes; then
|
---|
| 2067 | CFLAGS="-O2"
|
---|
| 2068 | else
|
---|
| 2069 | CFLAGS=
|
---|
| 2070 | fi
|
---|
| 2071 | fi
|
---|
[8756] | 2072 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
| 2073 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
| 2074 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 2075 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2076 | else
|
---|
| 2077 | ac_cv_prog_cc_stdc=no
|
---|
| 2078 | ac_save_CC=$CC
|
---|
| 2079 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2080 | /* confdefs.h. */
|
---|
| 2081 | _ACEOF
|
---|
| 2082 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2083 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2084 | /* end confdefs.h. */
|
---|
| 2085 | #include <stdarg.h>
|
---|
| 2086 | #include <stdio.h>
|
---|
| 2087 | #include <sys/types.h>
|
---|
| 2088 | #include <sys/stat.h>
|
---|
| 2089 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2090 | struct buf { int x; };
|
---|
| 2091 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2092 | static char *e (p, i)
|
---|
| 2093 | char **p;
|
---|
| 2094 | int i;
|
---|
| 2095 | {
|
---|
| 2096 | return p[i];
|
---|
| 2097 | }
|
---|
| 2098 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2099 | {
|
---|
| 2100 | char *s;
|
---|
| 2101 | va_list v;
|
---|
| 2102 | va_start (v,p);
|
---|
| 2103 | s = g (p, va_arg (v,int));
|
---|
| 2104 | va_end (v);
|
---|
| 2105 | return s;
|
---|
| 2106 | }
|
---|
[8200] | 2107 |
|
---|
[8756] | 2108 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2109 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2110 | These don't provoke an error unfortunately, instead are silently treated
|
---|
| 2111 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
| 2112 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2113 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
| 2114 | that's true only with -std1. */
|
---|
| 2115 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2116 |
|
---|
| 2117 | int test (int i, double x);
|
---|
| 2118 | struct s1 {int (*f) (int a);};
|
---|
| 2119 | struct s2 {int (*f) (double a);};
|
---|
| 2120 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2121 | int argc;
|
---|
| 2122 | char **argv;
|
---|
| 2123 | int
|
---|
| 2124 | main ()
|
---|
| 2125 | {
|
---|
| 2126 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2127 | ;
|
---|
| 2128 | return 0;
|
---|
| 2129 | }
|
---|
| 2130 | _ACEOF
|
---|
| 2131 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 2132 | # breaks some systems' header files.
|
---|
| 2133 | # AIX -qlanglvl=ansi
|
---|
| 2134 | # Ultrix and OSF/1 -std1
|
---|
| 2135 | # HP-UX 10.20 and later -Ae
|
---|
| 2136 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
| 2137 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
| 2138 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[562] | 2139 | do
|
---|
[8756] | 2140 | CC="$ac_save_CC $ac_arg"
|
---|
| 2141 | rm -f conftest.$ac_objext
|
---|
| 2142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2143 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2144 | ac_status=$?
|
---|
| 2145 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2146 | rm -f conftest.er1
|
---|
| 2147 | cat conftest.err >&5
|
---|
| 2148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2149 | (exit $ac_status); } &&
|
---|
| 2150 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2151 | || test ! -s conftest.err'
|
---|
| 2152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2153 | (eval $ac_try) 2>&5
|
---|
| 2154 | ac_status=$?
|
---|
| 2155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2156 | (exit $ac_status); }; } &&
|
---|
| 2157 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2159 | (eval $ac_try) 2>&5
|
---|
| 2160 | ac_status=$?
|
---|
| 2161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2162 | (exit $ac_status); }; }; then
|
---|
| 2163 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
| 2164 | break
|
---|
[562] | 2165 | else
|
---|
[8756] | 2166 | echo "$as_me: failed program was:" >&5
|
---|
| 2167 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2168 |
|
---|
[562] | 2169 | fi
|
---|
[8756] | 2170 | rm -f conftest.err conftest.$ac_objext
|
---|
| 2171 | done
|
---|
| 2172 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
| 2173 | CC=$ac_save_CC
|
---|
| 2174 |
|
---|
[562] | 2175 | fi
|
---|
[8756] | 2176 |
|
---|
| 2177 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 2178 | x|xno)
|
---|
| 2179 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2180 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
| 2181 | *)
|
---|
| 2182 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 2183 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 2184 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 2185 | esac
|
---|
| 2186 |
|
---|
| 2187 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
| 2188 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
| 2189 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
| 2190 | # the declaration of exit, since it's the most demanding environment.
|
---|
| 2191 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2192 | #ifndef __cplusplus
|
---|
| 2193 | choke me
|
---|
| 2194 | #endif
|
---|
| 2195 | _ACEOF
|
---|
| 2196 | rm -f conftest.$ac_objext
|
---|
| 2197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2198 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2199 | ac_status=$?
|
---|
| 2200 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2201 | rm -f conftest.er1
|
---|
| 2202 | cat conftest.err >&5
|
---|
| 2203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2204 | (exit $ac_status); } &&
|
---|
| 2205 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2206 | || test ! -s conftest.err'
|
---|
| 2207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2208 | (eval $ac_try) 2>&5
|
---|
| 2209 | ac_status=$?
|
---|
| 2210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2211 | (exit $ac_status); }; } &&
|
---|
| 2212 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2214 | (eval $ac_try) 2>&5
|
---|
| 2215 | ac_status=$?
|
---|
| 2216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2217 | (exit $ac_status); }; }; then
|
---|
| 2218 | for ac_declaration in \
|
---|
| 2219 | '' \
|
---|
| 2220 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2221 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2222 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2223 | 'extern "C" void exit (int);' \
|
---|
| 2224 | 'void exit (int);'
|
---|
| 2225 | do
|
---|
| 2226 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2227 | /* confdefs.h. */
|
---|
| 2228 | _ACEOF
|
---|
| 2229 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2230 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2231 | /* end confdefs.h. */
|
---|
| 2232 | $ac_declaration
|
---|
| 2233 | #include <stdlib.h>
|
---|
| 2234 | int
|
---|
| 2235 | main ()
|
---|
| 2236 | {
|
---|
| 2237 | exit (42);
|
---|
| 2238 | ;
|
---|
| 2239 | return 0;
|
---|
| 2240 | }
|
---|
| 2241 | _ACEOF
|
---|
| 2242 | rm -f conftest.$ac_objext
|
---|
| 2243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2244 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2245 | ac_status=$?
|
---|
| 2246 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2247 | rm -f conftest.er1
|
---|
| 2248 | cat conftest.err >&5
|
---|
| 2249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2250 | (exit $ac_status); } &&
|
---|
| 2251 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2252 | || test ! -s conftest.err'
|
---|
| 2253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2254 | (eval $ac_try) 2>&5
|
---|
| 2255 | ac_status=$?
|
---|
| 2256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2257 | (exit $ac_status); }; } &&
|
---|
| 2258 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2260 | (eval $ac_try) 2>&5
|
---|
| 2261 | ac_status=$?
|
---|
| 2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2263 | (exit $ac_status); }; }; then
|
---|
| 2264 | :
|
---|
[562] | 2265 | else
|
---|
[8756] | 2266 | echo "$as_me: failed program was:" >&5
|
---|
| 2267 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2268 |
|
---|
| 2269 | continue
|
---|
[562] | 2270 | fi
|
---|
[8756] | 2271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2272 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2273 | /* confdefs.h. */
|
---|
| 2274 | _ACEOF
|
---|
| 2275 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2276 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2277 | /* end confdefs.h. */
|
---|
| 2278 | $ac_declaration
|
---|
| 2279 | int
|
---|
| 2280 | main ()
|
---|
| 2281 | {
|
---|
| 2282 | exit (42);
|
---|
| 2283 | ;
|
---|
| 2284 | return 0;
|
---|
| 2285 | }
|
---|
| 2286 | _ACEOF
|
---|
| 2287 | rm -f conftest.$ac_objext
|
---|
| 2288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2289 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2290 | ac_status=$?
|
---|
| 2291 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2292 | rm -f conftest.er1
|
---|
| 2293 | cat conftest.err >&5
|
---|
| 2294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2295 | (exit $ac_status); } &&
|
---|
| 2296 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2297 | || test ! -s conftest.err'
|
---|
| 2298 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2299 | (eval $ac_try) 2>&5
|
---|
| 2300 | ac_status=$?
|
---|
| 2301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2302 | (exit $ac_status); }; } &&
|
---|
| 2303 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2305 | (eval $ac_try) 2>&5
|
---|
| 2306 | ac_status=$?
|
---|
| 2307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2308 | (exit $ac_status); }; }; then
|
---|
| 2309 | break
|
---|
| 2310 | else
|
---|
| 2311 | echo "$as_me: failed program was:" >&5
|
---|
| 2312 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[562] | 2313 |
|
---|
[8756] | 2314 | fi
|
---|
| 2315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 2316 | done
|
---|
[8756] | 2317 | rm -f conftest*
|
---|
| 2318 | if test -n "$ac_declaration"; then
|
---|
| 2319 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2320 | echo $ac_declaration >>confdefs.h
|
---|
| 2321 | echo '#endif' >>confdefs.h
|
---|
| 2322 | fi
|
---|
[562] | 2323 |
|
---|
[8756] | 2324 | else
|
---|
| 2325 | echo "$as_me: failed program was:" >&5
|
---|
| 2326 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2327 |
|
---|
[8756] | 2328 | fi
|
---|
| 2329 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2330 | ac_ext=c
|
---|
| 2331 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2332 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2333 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2334 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[8200] | 2335 |
|
---|
[8756] | 2336 | ac_ext=cc
|
---|
[8200] | 2337 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 2338 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2339 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2340 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 2341 | if test -n "$ac_tool_prefix"; then
|
---|
| 2342 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
| 2343 | do
|
---|
| 2344 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2345 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
| 2346 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2347 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2348 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 2349 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2350 | else
|
---|
| 2351 | if test -n "$CXX"; then
|
---|
| 2352 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 2353 | else
|
---|
| 2354 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2355 | for as_dir in $PATH
|
---|
| 2356 | do
|
---|
| 2357 | IFS=$as_save_IFS
|
---|
| 2358 | test -z "$as_dir" && as_dir=.
|
---|
| 2359 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2360 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2361 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
| 2362 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2363 | break 2
|
---|
| 2364 | fi
|
---|
| 2365 | done
|
---|
| 2366 | done
|
---|
[8200] | 2367 |
|
---|
[8756] | 2368 | fi
|
---|
| 2369 | fi
|
---|
| 2370 | CXX=$ac_cv_prog_CXX
|
---|
| 2371 | if test -n "$CXX"; then
|
---|
| 2372 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
| 2373 | echo "${ECHO_T}$CXX" >&6
|
---|
| 2374 | else
|
---|
| 2375 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2376 | echo "${ECHO_T}no" >&6
|
---|
| 2377 | fi
|
---|
[8200] | 2378 |
|
---|
[8756] | 2379 | test -n "$CXX" && break
|
---|
| 2380 | done
|
---|
| 2381 | fi
|
---|
| 2382 | if test -z "$CXX"; then
|
---|
| 2383 | ac_ct_CXX=$CXX
|
---|
| 2384 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
| 2385 | do
|
---|
| 2386 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2387 | set dummy $ac_prog; ac_word=$2
|
---|
| 2388 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2389 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2390 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 2391 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2392 | else
|
---|
| 2393 | if test -n "$ac_ct_CXX"; then
|
---|
| 2394 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 2395 | else
|
---|
| 2396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2397 | for as_dir in $PATH
|
---|
| 2398 | do
|
---|
| 2399 | IFS=$as_save_IFS
|
---|
| 2400 | test -z "$as_dir" && as_dir=.
|
---|
| 2401 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2402 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2403 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
| 2404 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2405 | break 2
|
---|
| 2406 | fi
|
---|
| 2407 | done
|
---|
| 2408 | done
|
---|
[8200] | 2409 |
|
---|
[8756] | 2410 | fi
|
---|
| 2411 | fi
|
---|
| 2412 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 2413 | if test -n "$ac_ct_CXX"; then
|
---|
| 2414 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
| 2415 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
[3631] | 2416 | else
|
---|
[8756] | 2417 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2418 | echo "${ECHO_T}no" >&6
|
---|
[3631] | 2419 | fi
|
---|
[562] | 2420 |
|
---|
[8756] | 2421 | test -n "$ac_ct_CXX" && break
|
---|
| 2422 | done
|
---|
| 2423 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
| 2424 |
|
---|
| 2425 | CXX=$ac_ct_CXX
|
---|
[3631] | 2426 | fi
|
---|
[562] | 2427 |
|
---|
[8756] | 2428 |
|
---|
| 2429 | # Provide some information about the compiler.
|
---|
| 2430 | echo "$as_me:$LINENO:" \
|
---|
| 2431 | "checking for C++ compiler version" >&5
|
---|
| 2432 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 2433 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 2434 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
| 2435 | ac_status=$?
|
---|
| 2436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2437 | (exit $ac_status); }
|
---|
| 2438 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 2439 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 2440 | ac_status=$?
|
---|
| 2441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2442 | (exit $ac_status); }
|
---|
| 2443 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 2444 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 2445 | ac_status=$?
|
---|
| 2446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2447 | (exit $ac_status); }
|
---|
| 2448 |
|
---|
| 2449 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
| 2450 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
| 2451 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 2452 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3631] | 2453 | else
|
---|
[8756] | 2454 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2455 | /* confdefs.h. */
|
---|
| 2456 | _ACEOF
|
---|
| 2457 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2458 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2459 | /* end confdefs.h. */
|
---|
| 2460 |
|
---|
| 2461 | int
|
---|
| 2462 | main ()
|
---|
| 2463 | {
|
---|
| 2464 | #ifndef __GNUC__
|
---|
| 2465 | choke me
|
---|
[3631] | 2466 | #endif
|
---|
[8756] | 2467 |
|
---|
| 2468 | ;
|
---|
| 2469 | return 0;
|
---|
| 2470 | }
|
---|
| 2471 | _ACEOF
|
---|
| 2472 | rm -f conftest.$ac_objext
|
---|
| 2473 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2474 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2475 | ac_status=$?
|
---|
| 2476 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2477 | rm -f conftest.er1
|
---|
| 2478 | cat conftest.err >&5
|
---|
| 2479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2480 | (exit $ac_status); } &&
|
---|
| 2481 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2482 | || test ! -s conftest.err'
|
---|
| 2483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2484 | (eval $ac_try) 2>&5
|
---|
| 2485 | ac_status=$?
|
---|
| 2486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2487 | (exit $ac_status); }; } &&
|
---|
| 2488 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2489 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2490 | (eval $ac_try) 2>&5
|
---|
| 2491 | ac_status=$?
|
---|
| 2492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2493 | (exit $ac_status); }; }; then
|
---|
| 2494 | ac_compiler_gnu=yes
|
---|
[8200] | 2495 | else
|
---|
[8756] | 2496 | echo "$as_me: failed program was:" >&5
|
---|
| 2497 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2498 |
|
---|
| 2499 | ac_compiler_gnu=no
|
---|
[8200] | 2500 | fi
|
---|
[8756] | 2501 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2502 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 2503 |
|
---|
[8200] | 2504 | fi
|
---|
[8756] | 2505 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
| 2506 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
| 2507 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
| 2508 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 2509 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
| 2510 | CXXFLAGS="-g"
|
---|
| 2511 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
| 2512 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
| 2513 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 2514 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2515 | else
|
---|
| 2516 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2517 | /* confdefs.h. */
|
---|
| 2518 | _ACEOF
|
---|
| 2519 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2520 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2521 | /* end confdefs.h. */
|
---|
[3631] | 2522 |
|
---|
[8756] | 2523 | int
|
---|
| 2524 | main ()
|
---|
| 2525 | {
|
---|
[8200] | 2526 |
|
---|
[8756] | 2527 | ;
|
---|
| 2528 | return 0;
|
---|
| 2529 | }
|
---|
| 2530 | _ACEOF
|
---|
| 2531 | rm -f conftest.$ac_objext
|
---|
| 2532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2533 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2534 | ac_status=$?
|
---|
| 2535 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2536 | rm -f conftest.er1
|
---|
| 2537 | cat conftest.err >&5
|
---|
| 2538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2539 | (exit $ac_status); } &&
|
---|
| 2540 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2541 | || test ! -s conftest.err'
|
---|
| 2542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2543 | (eval $ac_try) 2>&5
|
---|
| 2544 | ac_status=$?
|
---|
| 2545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2546 | (exit $ac_status); }; } &&
|
---|
| 2547 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2549 | (eval $ac_try) 2>&5
|
---|
| 2550 | ac_status=$?
|
---|
| 2551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2552 | (exit $ac_status); }; }; then
|
---|
[562] | 2553 | ac_cv_prog_cxx_g=yes
|
---|
| 2554 | else
|
---|
[8756] | 2555 | echo "$as_me: failed program was:" >&5
|
---|
| 2556 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 2557 |
|
---|
[8756] | 2558 | ac_cv_prog_cxx_g=no
|
---|
[562] | 2559 | fi
|
---|
[8756] | 2560 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2561 | fi
|
---|
| 2562 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
| 2563 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
[562] | 2564 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
[8756] | 2565 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
[562] | 2566 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 2567 | if test "$GXX" = yes; then
|
---|
| 2568 | CXXFLAGS="-g -O2"
|
---|
| 2569 | else
|
---|
| 2570 | CXXFLAGS="-g"
|
---|
| 2571 | fi
|
---|
| 2572 | else
|
---|
| 2573 | if test "$GXX" = yes; then
|
---|
| 2574 | CXXFLAGS="-O2"
|
---|
| 2575 | else
|
---|
| 2576 | CXXFLAGS=
|
---|
| 2577 | fi
|
---|
| 2578 | fi
|
---|
[8756] | 2579 | for ac_declaration in \
|
---|
| 2580 | '' \
|
---|
| 2581 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2582 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2583 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2584 | 'extern "C" void exit (int);' \
|
---|
| 2585 | 'void exit (int);'
|
---|
| 2586 | do
|
---|
| 2587 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2588 | /* confdefs.h. */
|
---|
| 2589 | _ACEOF
|
---|
| 2590 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2591 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2592 | /* end confdefs.h. */
|
---|
| 2593 | $ac_declaration
|
---|
| 2594 | #include <stdlib.h>
|
---|
| 2595 | int
|
---|
| 2596 | main ()
|
---|
| 2597 | {
|
---|
| 2598 | exit (42);
|
---|
| 2599 | ;
|
---|
| 2600 | return 0;
|
---|
| 2601 | }
|
---|
| 2602 | _ACEOF
|
---|
| 2603 | rm -f conftest.$ac_objext
|
---|
| 2604 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2605 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2606 | ac_status=$?
|
---|
| 2607 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2608 | rm -f conftest.er1
|
---|
| 2609 | cat conftest.err >&5
|
---|
| 2610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2611 | (exit $ac_status); } &&
|
---|
| 2612 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2613 | || test ! -s conftest.err'
|
---|
| 2614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2615 | (eval $ac_try) 2>&5
|
---|
| 2616 | ac_status=$?
|
---|
| 2617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2618 | (exit $ac_status); }; } &&
|
---|
| 2619 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2621 | (eval $ac_try) 2>&5
|
---|
| 2622 | ac_status=$?
|
---|
| 2623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2624 | (exit $ac_status); }; }; then
|
---|
| 2625 | :
|
---|
| 2626 | else
|
---|
| 2627 | echo "$as_me: failed program was:" >&5
|
---|
| 2628 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[3063] | 2629 |
|
---|
[8756] | 2630 | continue
|
---|
| 2631 | fi
|
---|
| 2632 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2633 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2634 | /* confdefs.h. */
|
---|
| 2635 | _ACEOF
|
---|
| 2636 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2637 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2638 | /* end confdefs.h. */
|
---|
| 2639 | $ac_declaration
|
---|
| 2640 | int
|
---|
| 2641 | main ()
|
---|
| 2642 | {
|
---|
| 2643 | exit (42);
|
---|
| 2644 | ;
|
---|
| 2645 | return 0;
|
---|
| 2646 | }
|
---|
| 2647 | _ACEOF
|
---|
| 2648 | rm -f conftest.$ac_objext
|
---|
| 2649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2650 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2651 | ac_status=$?
|
---|
| 2652 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2653 | rm -f conftest.er1
|
---|
| 2654 | cat conftest.err >&5
|
---|
| 2655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2656 | (exit $ac_status); } &&
|
---|
| 2657 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2658 | || test ! -s conftest.err'
|
---|
| 2659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2660 | (eval $ac_try) 2>&5
|
---|
| 2661 | ac_status=$?
|
---|
| 2662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2663 | (exit $ac_status); }; } &&
|
---|
| 2664 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2666 | (eval $ac_try) 2>&5
|
---|
| 2667 | ac_status=$?
|
---|
| 2668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2669 | (exit $ac_status); }; }; then
|
---|
| 2670 | break
|
---|
| 2671 | else
|
---|
| 2672 | echo "$as_me: failed program was:" >&5
|
---|
| 2673 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2674 |
|
---|
| 2675 | fi
|
---|
| 2676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2677 | done
|
---|
| 2678 | rm -f conftest*
|
---|
| 2679 | if test -n "$ac_declaration"; then
|
---|
| 2680 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2681 | echo $ac_declaration >>confdefs.h
|
---|
| 2682 | echo '#endif' >>confdefs.h
|
---|
| 2683 | fi
|
---|
| 2684 |
|
---|
| 2685 | ac_ext=c
|
---|
| 2686 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2687 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2688 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2689 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2690 |
|
---|
| 2691 | for ac_prog in gawk mawk nawk awk
|
---|
[3063] | 2692 | do
|
---|
[8756] | 2693 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 2694 | set dummy $ac_prog; ac_word=$2
|
---|
[8756] | 2695 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2696 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2697 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 2698 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 2699 | else
|
---|
| 2700 | if test -n "$AWK"; then
|
---|
| 2701 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 2702 | else
|
---|
[8756] | 2703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2704 | for as_dir in $PATH
|
---|
| 2705 | do
|
---|
| 2706 | IFS=$as_save_IFS
|
---|
| 2707 | test -z "$as_dir" && as_dir=.
|
---|
| 2708 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2709 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2710 | ac_cv_prog_AWK="$ac_prog"
|
---|
| 2711 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2712 | break 2
|
---|
| 2713 | fi
|
---|
| 2714 | done
|
---|
| 2715 | done
|
---|
| 2716 |
|
---|
[687] | 2717 | fi
|
---|
| 2718 | fi
|
---|
[8756] | 2719 | AWK=$ac_cv_prog_AWK
|
---|
[687] | 2720 | if test -n "$AWK"; then
|
---|
[8756] | 2721 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
| 2722 | echo "${ECHO_T}$AWK" >&6
|
---|
[687] | 2723 | else
|
---|
[8756] | 2724 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2725 | echo "${ECHO_T}no" >&6
|
---|
[687] | 2726 | fi
|
---|
| 2727 |
|
---|
[8756] | 2728 | test -n "$AWK" && break
|
---|
[687] | 2729 | done
|
---|
| 2730 |
|
---|
| 2731 | for ac_prog in 'bison -y' byacc
|
---|
| 2732 | do
|
---|
[8756] | 2733 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
[687] | 2734 | set dummy $ac_prog; ac_word=$2
|
---|
[8756] | 2735 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2736 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2737 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 2738 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 2739 | else
|
---|
| 2740 | if test -n "$YACC"; then
|
---|
| 2741 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 2742 | else
|
---|
[8756] | 2743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2744 | for as_dir in $PATH
|
---|
| 2745 | do
|
---|
| 2746 | IFS=$as_save_IFS
|
---|
| 2747 | test -z "$as_dir" && as_dir=.
|
---|
| 2748 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2749 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 2750 | ac_cv_prog_YACC="$ac_prog"
|
---|
| 2751 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 2752 | break 2
|
---|
| 2753 | fi
|
---|
| 2754 | done
|
---|
| 2755 | done
|
---|
| 2756 |
|
---|
[687] | 2757 | fi
|
---|
| 2758 | fi
|
---|
[8756] | 2759 | YACC=$ac_cv_prog_YACC
|
---|
[687] | 2760 | if test -n "$YACC"; then
|
---|
[8756] | 2761 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
| 2762 | echo "${ECHO_T}$YACC" >&6
|
---|
[687] | 2763 | else
|
---|
[8756] | 2764 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2765 | echo "${ECHO_T}no" >&6
|
---|
[687] | 2766 | fi
|
---|
| 2767 |
|
---|
[8756] | 2768 | test -n "$YACC" && break
|
---|
[687] | 2769 | done
|
---|
| 2770 | test -n "$YACC" || YACC="yacc"
|
---|
| 2771 |
|
---|
[703] | 2772 | ac_aux_dir=
|
---|
| 2773 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 2774 | if test -f $ac_dir/install-sh; then
|
---|
| 2775 | ac_aux_dir=$ac_dir
|
---|
| 2776 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 2777 | break
|
---|
| 2778 | elif test -f $ac_dir/install.sh; then
|
---|
| 2779 | ac_aux_dir=$ac_dir
|
---|
| 2780 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 2781 | break
|
---|
[8756] | 2782 | elif test -f $ac_dir/shtool; then
|
---|
| 2783 | ac_aux_dir=$ac_dir
|
---|
| 2784 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 2785 | break
|
---|
[703] | 2786 | fi
|
---|
| 2787 | done
|
---|
| 2788 | if test -z "$ac_aux_dir"; then
|
---|
[8756] | 2789 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
| 2790 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
| 2791 | { (exit 1); exit 1; }; }
|
---|
[703] | 2792 | fi
|
---|
[8756] | 2793 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
| 2794 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
| 2795 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
[703] | 2796 |
|
---|
[8756] | 2797 | # Make sure we can run config.sub.
|
---|
| 2798 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
| 2799 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
| 2800 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
| 2801 | { (exit 1); exit 1; }; }
|
---|
[2279] | 2802 |
|
---|
[8756] | 2803 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
| 2804 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
| 2805 | if test "${ac_cv_build+set}" = set; then
|
---|
| 2806 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2807 | else
|
---|
| 2808 | ac_cv_build_alias=$build_alias
|
---|
| 2809 | test -z "$ac_cv_build_alias" &&
|
---|
| 2810 | ac_cv_build_alias=`$ac_config_guess`
|
---|
| 2811 | test -z "$ac_cv_build_alias" &&
|
---|
| 2812 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
| 2813 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
| 2814 | { (exit 1); exit 1; }; }
|
---|
| 2815 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
| 2816 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
| 2817 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
| 2818 | { (exit 1); exit 1; }; }
|
---|
[2279] | 2819 |
|
---|
| 2820 | fi
|
---|
[8756] | 2821 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
| 2822 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
| 2823 | build=$ac_cv_build
|
---|
| 2824 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2825 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2826 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[2279] | 2827 |
|
---|
| 2828 |
|
---|
[8756] | 2829 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
| 2830 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
| 2831 | if test "${ac_cv_host+set}" = set; then
|
---|
| 2832 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2833 | else
|
---|
| 2834 | ac_cv_host_alias=$host_alias
|
---|
| 2835 | test -z "$ac_cv_host_alias" &&
|
---|
| 2836 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
| 2837 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
| 2838 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
| 2839 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
| 2840 | { (exit 1); exit 1; }; }
|
---|
[2279] | 2841 |
|
---|
[8756] | 2842 | fi
|
---|
| 2843 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
| 2844 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
| 2845 | host=$ac_cv_host
|
---|
| 2846 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2847 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2848 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[8200] | 2849 |
|
---|
| 2850 |
|
---|
[8756] | 2851 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
| 2852 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
| 2853 | if test "${ac_cv_target+set}" = set; then
|
---|
| 2854 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2855 | else
|
---|
| 2856 | ac_cv_target_alias=$target_alias
|
---|
| 2857 | test "x$ac_cv_target_alias" = "x" &&
|
---|
| 2858 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
| 2859 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
| 2860 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
| 2861 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
| 2862 | { (exit 1); exit 1; }; }
|
---|
[8200] | 2863 |
|
---|
[8756] | 2864 | fi
|
---|
| 2865 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
| 2866 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
| 2867 | target=$ac_cv_target
|
---|
| 2868 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 2869 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 2870 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[8200] | 2871 |
|
---|
| 2872 |
|
---|
[8756] | 2873 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 2874 | # will get canonicalized.
|
---|
| 2875 | test -n "$target_alias" &&
|
---|
[2279] | 2876 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 2877 | NONENONEs,x,x, &&
|
---|
| 2878 | program_prefix=${target_alias}-
|
---|
[703] | 2879 | # Find a good install program. We prefer a C program (faster),
|
---|
| 2880 | # so one script is as good as another. But avoid the broken or
|
---|
| 2881 | # incompatible versions:
|
---|
| 2882 | # SysV /etc/install, /usr/sbin/install
|
---|
| 2883 | # SunOS /usr/etc/install
|
---|
| 2884 | # IRIX /sbin/install
|
---|
| 2885 | # AIX /bin/install
|
---|
[8756] | 2886 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
[703] | 2887 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 2888 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 2889 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
[8756] | 2890 | # OS/2's system install, which has a completely different semantic
|
---|
[703] | 2891 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[8756] | 2892 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 2893 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
[703] | 2894 | if test -z "$INSTALL"; then
|
---|
[8756] | 2895 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 2896 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[703] | 2897 | else
|
---|
[8756] | 2898 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2899 | for as_dir in $PATH
|
---|
| 2900 | do
|
---|
| 2901 | IFS=$as_save_IFS
|
---|
| 2902 | test -z "$as_dir" && as_dir=.
|
---|
| 2903 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 2904 | case $as_dir/ in
|
---|
| 2905 | ./ | .// | /cC/* | \
|
---|
| 2906 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
| 2907 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
| 2908 | /usr/ucb/* ) ;;
|
---|
| 2909 | *)
|
---|
| 2910 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 2911 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 2912 | # by default.
|
---|
| 2913 | for ac_prog in ginstall scoinst install; do
|
---|
| 2914 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2915 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[703] | 2916 | if test $ac_prog = install &&
|
---|
[8756] | 2917 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
[703] | 2918 | # AIX install. It has an incompatible calling convention.
|
---|
| 2919 | :
|
---|
[8756] | 2920 | elif test $ac_prog = install &&
|
---|
| 2921 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 2922 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 2923 | :
|
---|
[703] | 2924 | else
|
---|
[8756] | 2925 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 2926 | break 3
|
---|
[703] | 2927 | fi
|
---|
| 2928 | fi
|
---|
| 2929 | done
|
---|
[8756] | 2930 | done
|
---|
| 2931 | ;;
|
---|
| 2932 | esac
|
---|
| 2933 | done
|
---|
[703] | 2934 |
|
---|
[8756] | 2935 |
|
---|
[703] | 2936 | fi
|
---|
| 2937 | if test "${ac_cv_path_install+set}" = set; then
|
---|
[8756] | 2938 | INSTALL=$ac_cv_path_install
|
---|
[703] | 2939 | else
|
---|
| 2940 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 2941 | # path for INSTALL within a source directory, because that will
|
---|
| 2942 | # break other packages using the cache if that directory is
|
---|
| 2943 | # removed, or if the path is relative.
|
---|
[8756] | 2944 | INSTALL=$ac_install_sh
|
---|
[703] | 2945 | fi
|
---|
| 2946 | fi
|
---|
[8756] | 2947 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
| 2948 | echo "${ECHO_T}$INSTALL" >&6
|
---|
[703] | 2949 |
|
---|
| 2950 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 2951 | # It thinks the first close brace ends the variable substitution.
|
---|
| 2952 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 2953 |
|
---|
[8756] | 2954 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
[703] | 2955 |
|
---|
| 2956 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 2957 |
|
---|
[8756] | 2958 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
| 2959 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
| 2960 | LN_S=$as_ln_s
|
---|
| 2961 | if test "$LN_S" = "ln -s"; then
|
---|
| 2962 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 2963 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 2964 | else
|
---|
[8756] | 2965 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
| 2966 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
[562] | 2967 | fi
|
---|
| 2968 |
|
---|
[8756] | 2969 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 2970 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
| 2971 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
| 2972 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
| 2973 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 2974 | else
|
---|
[8756] | 2975 | cat >conftest.make <<\_ACEOF
|
---|
[562] | 2976 | all:
|
---|
[8756] | 2977 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
| 2978 | _ACEOF
|
---|
[562] | 2979 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
[8756] | 2980 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
[562] | 2981 | if test -n "$ac_maketemp"; then
|
---|
| 2982 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 2983 | else
|
---|
| 2984 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 2985 | fi
|
---|
[8756] | 2986 | rm -f conftest.make
|
---|
[562] | 2987 | fi
|
---|
| 2988 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
[8756] | 2989 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 2990 | echo "${ECHO_T}yes" >&6
|
---|
[562] | 2991 | SET_MAKE=
|
---|
| 2992 | else
|
---|
[8756] | 2993 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2994 | echo "${ECHO_T}no" >&6
|
---|
[562] | 2995 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 2996 | fi
|
---|
| 2997 |
|
---|
[8756] | 2998 | if test -n "$ac_tool_prefix"; then
|
---|
| 2999 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3000 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
| 3001 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3002 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3003 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
| 3004 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 3005 | else
|
---|
| 3006 | if test -n "$RANLIB"; then
|
---|
| 3007 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3008 | else
|
---|
[8756] | 3009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3010 | for as_dir in $PATH
|
---|
| 3011 | do
|
---|
| 3012 | IFS=$as_save_IFS
|
---|
| 3013 | test -z "$as_dir" && as_dir=.
|
---|
| 3014 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3015 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 3016 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
| 3017 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3018 | break 2
|
---|
| 3019 | fi
|
---|
| 3020 | done
|
---|
| 3021 | done
|
---|
| 3022 |
|
---|
[562] | 3023 | fi
|
---|
| 3024 | fi
|
---|
[8756] | 3025 | RANLIB=$ac_cv_prog_RANLIB
|
---|
[562] | 3026 | if test -n "$RANLIB"; then
|
---|
[8756] | 3027 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
| 3028 | echo "${ECHO_T}$RANLIB" >&6
|
---|
[562] | 3029 | else
|
---|
[8756] | 3030 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3031 | echo "${ECHO_T}no" >&6
|
---|
[562] | 3032 | fi
|
---|
| 3033 |
|
---|
[8756] | 3034 | fi
|
---|
| 3035 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3036 | ac_ct_RANLIB=$RANLIB
|
---|
| 3037 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3038 | set dummy ranlib; ac_word=$2
|
---|
| 3039 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3040 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3041 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 3042 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3043 | else
|
---|
| 3044 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3045 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3046 | else
|
---|
| 3047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3048 | for as_dir in $PATH
|
---|
| 3049 | do
|
---|
| 3050 | IFS=$as_save_IFS
|
---|
| 3051 | test -z "$as_dir" && as_dir=.
|
---|
| 3052 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3053 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 3054 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
| 3055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 3056 | break 2
|
---|
| 3057 | fi
|
---|
| 3058 | done
|
---|
| 3059 | done
|
---|
[562] | 3060 |
|
---|
[8756] | 3061 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
| 3062 | fi
|
---|
| 3063 | fi
|
---|
| 3064 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 3065 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3066 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
| 3067 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
| 3068 | else
|
---|
| 3069 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3070 | echo "${ECHO_T}no" >&6
|
---|
| 3071 | fi
|
---|
| 3072 |
|
---|
| 3073 | RANLIB=$ac_ct_RANLIB
|
---|
| 3074 | else
|
---|
| 3075 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3076 | fi
|
---|
| 3077 |
|
---|
| 3078 |
|
---|
[2173] | 3079 | #moved CORBA MICO directory test to get version of MICO
|
---|
| 3080 | if test $USE_CORBA = 1; then
|
---|
| 3081 |
|
---|
[2213] | 3082 | if test $MICO_DIR = "default"; then
|
---|
[2173] | 3083 | #do something
|
---|
| 3084 | MICO_INC="-I packages/mico/mico/include"
|
---|
| 3085 | else
|
---|
| 3086 | #build the micotest program
|
---|
| 3087 | MICO_INC= ""
|
---|
| 3088 | if test $MICO_DIR != yes; then
|
---|
| 3089 | MICO_INC="-I $MICO_DIR"
|
---|
| 3090 | fi
|
---|
| 3091 | fi
|
---|
| 3092 |
|
---|
| 3093 | #get MICO_VER value
|
---|
| 3094 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
| 3095 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
[2214] | 3096 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
[2173] | 3097 | sh -c "rm micotest"
|
---|
| 3098 | sh -c "rm micotest.o"
|
---|
| 3099 |
|
---|
| 3100 | #do test of MICO_VER
|
---|
| 3101 | if test MICO_VER != 0; then
|
---|
[8756] | 3102 | cat >>confdefs.h <<\_ACEOF
|
---|
[2173] | 3103 | #define MICO_VER 1
|
---|
[8756] | 3104 | _ACEOF
|
---|
[2173] | 3105 |
|
---|
[8200] | 3106 |
|
---|
[2173] | 3107 | fi
|
---|
| 3108 | #end USE_CORBA test
|
---|
| 3109 | fi
|
---|
| 3110 |
|
---|
[8756] | 3111 |
|
---|
| 3112 | ac_ext=c
|
---|
| 3113 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3114 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3115 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3116 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3117 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
| 3118 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
[687] | 3119 | # On Suns, sometimes $CPP names a directory.
|
---|
| 3120 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 3121 | CPP=
|
---|
| 3122 | fi
|
---|
| 3123 | if test -z "$CPP"; then
|
---|
[8756] | 3124 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 3125 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3126 | else
|
---|
[8756] | 3127 | # Double quotes because CPP needs to be expanded
|
---|
| 3128 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 3129 | do
|
---|
| 3130 | ac_preproc_ok=false
|
---|
| 3131 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3132 | do
|
---|
| 3133 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3134 | # with a fresh cross-compiler works.
|
---|
| 3135 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3136 | # <limits.h> exists even on freestanding compilers.
|
---|
[687] | 3137 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
[8756] | 3138 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3139 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3140 | /* confdefs.h. */
|
---|
| 3141 | _ACEOF
|
---|
| 3142 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3143 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3144 | /* end confdefs.h. */
|
---|
| 3145 | #ifdef __STDC__
|
---|
| 3146 | # include <limits.h>
|
---|
| 3147 | #else
|
---|
| 3148 | # include <assert.h>
|
---|
| 3149 | #endif
|
---|
| 3150 | Syntax error
|
---|
| 3151 | _ACEOF
|
---|
| 3152 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3153 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3154 | ac_status=$?
|
---|
| 3155 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3156 | rm -f conftest.er1
|
---|
| 3157 | cat conftest.err >&5
|
---|
| 3158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3159 | (exit $ac_status); } >/dev/null; then
|
---|
| 3160 | if test -s conftest.err; then
|
---|
| 3161 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3162 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3163 | else
|
---|
| 3164 | ac_cpp_err=
|
---|
| 3165 | fi
|
---|
[687] | 3166 | else
|
---|
[8756] | 3167 | ac_cpp_err=yes
|
---|
| 3168 | fi
|
---|
| 3169 | if test -z "$ac_cpp_err"; then
|
---|
[8200] | 3170 | :
|
---|
[687] | 3171 | else
|
---|
[8756] | 3172 | echo "$as_me: failed program was:" >&5
|
---|
| 3173 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3174 |
|
---|
| 3175 | # Broken: fails on valid input.
|
---|
| 3176 | continue
|
---|
| 3177 | fi
|
---|
| 3178 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3179 |
|
---|
| 3180 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3181 | # can be detected and how.
|
---|
| 3182 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3183 | /* confdefs.h. */
|
---|
| 3184 | _ACEOF
|
---|
| 3185 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3186 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3187 | /* end confdefs.h. */
|
---|
| 3188 | #include <ac_nonexistent.h>
|
---|
| 3189 | _ACEOF
|
---|
| 3190 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3191 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3192 | ac_status=$?
|
---|
| 3193 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3194 | rm -f conftest.er1
|
---|
| 3195 | cat conftest.err >&5
|
---|
| 3196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3197 | (exit $ac_status); } >/dev/null; then
|
---|
| 3198 | if test -s conftest.err; then
|
---|
| 3199 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3200 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3201 | else
|
---|
| 3202 | ac_cpp_err=
|
---|
| 3203 | fi
|
---|
| 3204 | else
|
---|
| 3205 | ac_cpp_err=yes
|
---|
| 3206 | fi
|
---|
| 3207 | if test -z "$ac_cpp_err"; then
|
---|
| 3208 | # Broken: success on invalid input.
|
---|
| 3209 | continue
|
---|
| 3210 | else
|
---|
| 3211 | echo "$as_me: failed program was:" >&5
|
---|
| 3212 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3213 |
|
---|
| 3214 | # Passes both tests.
|
---|
| 3215 | ac_preproc_ok=:
|
---|
| 3216 | break
|
---|
| 3217 | fi
|
---|
| 3218 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3219 |
|
---|
| 3220 | done
|
---|
| 3221 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3222 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3223 | if $ac_preproc_ok; then
|
---|
| 3224 | break
|
---|
| 3225 | fi
|
---|
| 3226 |
|
---|
| 3227 | done
|
---|
| 3228 | ac_cv_prog_CPP=$CPP
|
---|
| 3229 |
|
---|
| 3230 | fi
|
---|
| 3231 | CPP=$ac_cv_prog_CPP
|
---|
| 3232 | else
|
---|
| 3233 | ac_cv_prog_CPP=$CPP
|
---|
| 3234 | fi
|
---|
| 3235 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
| 3236 | echo "${ECHO_T}$CPP" >&6
|
---|
| 3237 | ac_preproc_ok=false
|
---|
| 3238 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3239 | do
|
---|
| 3240 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3241 | # with a fresh cross-compiler works.
|
---|
| 3242 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3243 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3244 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3245 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
| 3246 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3247 | /* confdefs.h. */
|
---|
| 3248 | _ACEOF
|
---|
| 3249 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3250 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3251 | /* end confdefs.h. */
|
---|
| 3252 | #ifdef __STDC__
|
---|
| 3253 | # include <limits.h>
|
---|
| 3254 | #else
|
---|
| 3255 | # include <assert.h>
|
---|
| 3256 | #endif
|
---|
| 3257 | Syntax error
|
---|
| 3258 | _ACEOF
|
---|
| 3259 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3260 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3261 | ac_status=$?
|
---|
| 3262 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3263 | rm -f conftest.er1
|
---|
| 3264 | cat conftest.err >&5
|
---|
| 3265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3266 | (exit $ac_status); } >/dev/null; then
|
---|
| 3267 | if test -s conftest.err; then
|
---|
| 3268 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3269 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3270 | else
|
---|
| 3271 | ac_cpp_err=
|
---|
| 3272 | fi
|
---|
| 3273 | else
|
---|
| 3274 | ac_cpp_err=yes
|
---|
| 3275 | fi
|
---|
| 3276 | if test -z "$ac_cpp_err"; then
|
---|
[687] | 3277 | :
|
---|
| 3278 | else
|
---|
[8756] | 3279 | echo "$as_me: failed program was:" >&5
|
---|
| 3280 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3281 |
|
---|
| 3282 | # Broken: fails on valid input.
|
---|
| 3283 | continue
|
---|
[687] | 3284 | fi
|
---|
[8756] | 3285 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3286 |
|
---|
| 3287 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
| 3288 | # can be detected and how.
|
---|
| 3289 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3290 | /* confdefs.h. */
|
---|
| 3291 | _ACEOF
|
---|
| 3292 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3293 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3294 | /* end confdefs.h. */
|
---|
| 3295 | #include <ac_nonexistent.h>
|
---|
| 3296 | _ACEOF
|
---|
| 3297 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3298 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3299 | ac_status=$?
|
---|
| 3300 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3301 | rm -f conftest.er1
|
---|
| 3302 | cat conftest.err >&5
|
---|
| 3303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3304 | (exit $ac_status); } >/dev/null; then
|
---|
| 3305 | if test -s conftest.err; then
|
---|
| 3306 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3307 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3308 | else
|
---|
| 3309 | ac_cpp_err=
|
---|
| 3310 | fi
|
---|
| 3311 | else
|
---|
| 3312 | ac_cpp_err=yes
|
---|
[687] | 3313 | fi
|
---|
[8756] | 3314 | if test -z "$ac_cpp_err"; then
|
---|
| 3315 | # Broken: success on invalid input.
|
---|
| 3316 | continue
|
---|
| 3317 | else
|
---|
| 3318 | echo "$as_me: failed program was:" >&5
|
---|
| 3319 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3320 |
|
---|
| 3321 | # Passes both tests.
|
---|
| 3322 | ac_preproc_ok=:
|
---|
| 3323 | break
|
---|
[687] | 3324 | fi
|
---|
[8756] | 3325 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3326 |
|
---|
| 3327 | done
|
---|
| 3328 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
| 3329 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3330 | if $ac_preproc_ok; then
|
---|
| 3331 | :
|
---|
| 3332 | else
|
---|
| 3333 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3334 | See \`config.log' for more details." >&5
|
---|
| 3335 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 3336 | See \`config.log' for more details." >&2;}
|
---|
| 3337 | { (exit 1); exit 1; }; }
|
---|
[8200] | 3338 | fi
|
---|
[8756] | 3339 |
|
---|
| 3340 | ac_ext=c
|
---|
| 3341 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3342 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3343 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3344 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 3345 |
|
---|
| 3346 |
|
---|
| 3347 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 3348 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
| 3349 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
| 3350 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3351 | else
|
---|
[8756] | 3352 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
| 3353 | then ac_cv_prog_egrep='grep -E'
|
---|
| 3354 | else ac_cv_prog_egrep='egrep'
|
---|
| 3355 | fi
|
---|
[687] | 3356 | fi
|
---|
[8756] | 3357 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
| 3358 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
| 3359 | EGREP=$ac_cv_prog_egrep
|
---|
[687] | 3360 |
|
---|
[8756] | 3361 |
|
---|
| 3362 |
|
---|
| 3363 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
| 3364 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
| 3365 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3366 | /* confdefs.h. */
|
---|
| 3367 | _ACEOF
|
---|
| 3368 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3369 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3370 | /* end confdefs.h. */
|
---|
[687] | 3371 | #ifdef _AIX
|
---|
| 3372 | yes
|
---|
| 3373 | #endif
|
---|
| 3374 |
|
---|
[8756] | 3375 | _ACEOF
|
---|
[687] | 3376 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 3377 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
| 3378 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3379 | echo "${ECHO_T}yes" >&6
|
---|
| 3380 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3381 | #define _ALL_SOURCE 1
|
---|
[8756] | 3382 | _ACEOF
|
---|
[687] | 3383 |
|
---|
| 3384 | else
|
---|
[8756] | 3385 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3386 | echo "${ECHO_T}no" >&6
|
---|
[687] | 3387 | fi
|
---|
| 3388 | rm -f conftest*
|
---|
| 3389 |
|
---|
[8200] | 3390 |
|
---|
[8756] | 3391 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 3392 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
| 3393 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 3394 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3395 | else
|
---|
| 3396 | ac_func_search_save_LIBS=$LIBS
|
---|
| 3397 | ac_cv_search_strerror=no
|
---|
| 3398 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3399 | /* confdefs.h. */
|
---|
| 3400 | _ACEOF
|
---|
| 3401 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3402 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3403 | /* end confdefs.h. */
|
---|
[687] | 3404 |
|
---|
[8756] | 3405 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3406 | #ifdef __cplusplus
|
---|
| 3407 | extern "C"
|
---|
| 3408 | #endif
|
---|
| 3409 | /* We use char because int might match the return type of a gcc2
|
---|
| 3410 | builtin and then its argument prototype would still apply. */
|
---|
| 3411 | char strerror ();
|
---|
| 3412 | int
|
---|
| 3413 | main ()
|
---|
| 3414 | {
|
---|
| 3415 | strerror ();
|
---|
| 3416 | ;
|
---|
| 3417 | return 0;
|
---|
| 3418 | }
|
---|
| 3419 | _ACEOF
|
---|
| 3420 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3422 | (eval $ac_link) 2>conftest.er1
|
---|
| 3423 | ac_status=$?
|
---|
| 3424 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3425 | rm -f conftest.er1
|
---|
| 3426 | cat conftest.err >&5
|
---|
| 3427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3428 | (exit $ac_status); } &&
|
---|
| 3429 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3430 | || test ! -s conftest.err'
|
---|
| 3431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3432 | (eval $ac_try) 2>&5
|
---|
| 3433 | ac_status=$?
|
---|
| 3434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3435 | (exit $ac_status); }; } &&
|
---|
| 3436 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3437 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3438 | (eval $ac_try) 2>&5
|
---|
| 3439 | ac_status=$?
|
---|
| 3440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3441 | (exit $ac_status); }; }; then
|
---|
| 3442 | ac_cv_search_strerror="none required"
|
---|
[687] | 3443 | else
|
---|
[8756] | 3444 | echo "$as_me: failed program was:" >&5
|
---|
| 3445 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3446 |
|
---|
[687] | 3447 | fi
|
---|
[8756] | 3448 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3449 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3450 | if test "$ac_cv_search_strerror" = no; then
|
---|
| 3451 | for ac_lib in cposix; do
|
---|
| 3452 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 3453 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3454 | /* confdefs.h. */
|
---|
| 3455 | _ACEOF
|
---|
| 3456 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3457 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3458 | /* end confdefs.h. */
|
---|
[687] | 3459 |
|
---|
[8756] | 3460 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 3461 | #ifdef __cplusplus
|
---|
| 3462 | extern "C"
|
---|
| 3463 | #endif
|
---|
| 3464 | /* We use char because int might match the return type of a gcc2
|
---|
| 3465 | builtin and then its argument prototype would still apply. */
|
---|
| 3466 | char strerror ();
|
---|
| 3467 | int
|
---|
| 3468 | main ()
|
---|
| 3469 | {
|
---|
| 3470 | strerror ();
|
---|
| 3471 | ;
|
---|
| 3472 | return 0;
|
---|
| 3473 | }
|
---|
| 3474 | _ACEOF
|
---|
| 3475 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 3476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3477 | (eval $ac_link) 2>conftest.er1
|
---|
| 3478 | ac_status=$?
|
---|
| 3479 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3480 | rm -f conftest.er1
|
---|
| 3481 | cat conftest.err >&5
|
---|
| 3482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3483 | (exit $ac_status); } &&
|
---|
| 3484 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3485 | || test ! -s conftest.err'
|
---|
| 3486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3487 | (eval $ac_try) 2>&5
|
---|
| 3488 | ac_status=$?
|
---|
| 3489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3490 | (exit $ac_status); }; } &&
|
---|
| 3491 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 3492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3493 | (eval $ac_try) 2>&5
|
---|
| 3494 | ac_status=$?
|
---|
| 3495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3496 | (exit $ac_status); }; }; then
|
---|
| 3497 | ac_cv_search_strerror="-l$ac_lib"
|
---|
| 3498 | break
|
---|
[687] | 3499 | else
|
---|
[8756] | 3500 | echo "$as_me: failed program was:" >&5
|
---|
| 3501 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3502 |
|
---|
| 3503 | fi
|
---|
| 3504 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 3505 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 3506 | done
|
---|
| 3507 | fi
|
---|
| 3508 | LIBS=$ac_func_search_save_LIBS
|
---|
| 3509 | fi
|
---|
| 3510 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 3511 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
| 3512 | if test "$ac_cv_search_strerror" != no; then
|
---|
| 3513 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
| 3514 |
|
---|
| 3515 | fi
|
---|
| 3516 |
|
---|
| 3517 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 3518 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 3519 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 3520 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 3521 | else
|
---|
[8756] | 3522 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3523 | /* confdefs.h. */
|
---|
| 3524 | _ACEOF
|
---|
| 3525 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3526 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3527 | /* end confdefs.h. */
|
---|
| 3528 | #include <stdlib.h>
|
---|
| 3529 | #include <stdarg.h>
|
---|
| 3530 | #include <string.h>
|
---|
| 3531 | #include <float.h>
|
---|
| 3532 |
|
---|
| 3533 | int
|
---|
| 3534 | main ()
|
---|
| 3535 | {
|
---|
| 3536 |
|
---|
| 3537 | ;
|
---|
| 3538 | return 0;
|
---|
| 3539 | }
|
---|
| 3540 | _ACEOF
|
---|
| 3541 | rm -f conftest.$ac_objext
|
---|
| 3542 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3543 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3544 | ac_status=$?
|
---|
| 3545 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3546 | rm -f conftest.er1
|
---|
| 3547 | cat conftest.err >&5
|
---|
| 3548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3549 | (exit $ac_status); } &&
|
---|
| 3550 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3551 | || test ! -s conftest.err'
|
---|
| 3552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3553 | (eval $ac_try) 2>&5
|
---|
| 3554 | ac_status=$?
|
---|
| 3555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3556 | (exit $ac_status); }; } &&
|
---|
| 3557 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3559 | (eval $ac_try) 2>&5
|
---|
| 3560 | ac_status=$?
|
---|
| 3561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3562 | (exit $ac_status); }; }; then
|
---|
| 3563 | ac_cv_header_stdc=yes
|
---|
| 3564 | else
|
---|
| 3565 | echo "$as_me: failed program was:" >&5
|
---|
| 3566 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3567 |
|
---|
| 3568 | ac_cv_header_stdc=no
|
---|
[687] | 3569 | fi
|
---|
[8756] | 3570 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3571 |
|
---|
| 3572 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3573 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
| 3574 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3575 | /* confdefs.h. */
|
---|
| 3576 | _ACEOF
|
---|
| 3577 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3578 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3579 | /* end confdefs.h. */
|
---|
| 3580 | #include <string.h>
|
---|
| 3581 |
|
---|
| 3582 | _ACEOF
|
---|
| 3583 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3584 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 3585 | :
|
---|
| 3586 | else
|
---|
| 3587 | ac_cv_header_stdc=no
|
---|
| 3588 | fi
|
---|
[8200] | 3589 | rm -f conftest*
|
---|
[8756] | 3590 |
|
---|
[687] | 3591 | fi
|
---|
[8756] | 3592 |
|
---|
| 3593 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3594 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
| 3595 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3596 | /* confdefs.h. */
|
---|
| 3597 | _ACEOF
|
---|
| 3598 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3599 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3600 | /* end confdefs.h. */
|
---|
| 3601 | #include <stdlib.h>
|
---|
| 3602 |
|
---|
| 3603 | _ACEOF
|
---|
| 3604 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 3605 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 3606 | :
|
---|
| 3607 | else
|
---|
| 3608 | ac_cv_header_stdc=no
|
---|
| 3609 | fi
|
---|
| 3610 | rm -f conftest*
|
---|
| 3611 |
|
---|
| 3612 | fi
|
---|
| 3613 |
|
---|
| 3614 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3615 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
| 3616 | if test "$cross_compiling" = yes; then
|
---|
| 3617 | :
|
---|
| 3618 | else
|
---|
| 3619 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3620 | /* confdefs.h. */
|
---|
| 3621 | _ACEOF
|
---|
| 3622 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3623 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3624 | /* end confdefs.h. */
|
---|
| 3625 | #include <ctype.h>
|
---|
| 3626 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 3627 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 3628 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 3629 | #else
|
---|
| 3630 | # define ISLOWER(c) \
|
---|
| 3631 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 3632 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 3633 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 3634 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 3635 | #endif
|
---|
| 3636 |
|
---|
| 3637 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 3638 | int
|
---|
| 3639 | main ()
|
---|
| 3640 | {
|
---|
| 3641 | int i;
|
---|
| 3642 | for (i = 0; i < 256; i++)
|
---|
| 3643 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 3644 | || toupper (i) != TOUPPER (i))
|
---|
| 3645 | exit(2);
|
---|
| 3646 | exit (0);
|
---|
| 3647 | }
|
---|
| 3648 | _ACEOF
|
---|
| 3649 | rm -f conftest$ac_exeext
|
---|
| 3650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 3651 | (eval $ac_link) 2>&5
|
---|
| 3652 | ac_status=$?
|
---|
| 3653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3654 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 3655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3656 | (eval $ac_try) 2>&5
|
---|
| 3657 | ac_status=$?
|
---|
| 3658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3659 | (exit $ac_status); }; }; then
|
---|
| 3660 | :
|
---|
| 3661 | else
|
---|
| 3662 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 3663 | echo "$as_me: failed program was:" >&5
|
---|
| 3664 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3665 |
|
---|
| 3666 | ( exit $ac_status )
|
---|
| 3667 | ac_cv_header_stdc=no
|
---|
| 3668 | fi
|
---|
| 3669 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
| 3670 | fi
|
---|
| 3671 | fi
|
---|
| 3672 | fi
|
---|
| 3673 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 3674 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 3675 | if test $ac_cv_header_stdc = yes; then
|
---|
| 3676 |
|
---|
| 3677 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3678 | #define STDC_HEADERS 1
|
---|
| 3679 | _ACEOF
|
---|
| 3680 |
|
---|
| 3681 | fi
|
---|
| 3682 |
|
---|
| 3683 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 3684 |
|
---|
| 3685 |
|
---|
| 3686 |
|
---|
| 3687 |
|
---|
| 3688 |
|
---|
| 3689 |
|
---|
| 3690 |
|
---|
| 3691 |
|
---|
| 3692 |
|
---|
| 3693 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 3694 | inttypes.h stdint.h unistd.h
|
---|
| 3695 | do
|
---|
| 3696 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 3697 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 3698 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 3699 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 3700 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3701 | else
|
---|
| 3702 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3703 | /* confdefs.h. */
|
---|
| 3704 | _ACEOF
|
---|
| 3705 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3706 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3707 | /* end confdefs.h. */
|
---|
| 3708 | $ac_includes_default
|
---|
| 3709 |
|
---|
| 3710 | #include <$ac_header>
|
---|
| 3711 | _ACEOF
|
---|
| 3712 | rm -f conftest.$ac_objext
|
---|
| 3713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3714 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3715 | ac_status=$?
|
---|
| 3716 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3717 | rm -f conftest.er1
|
---|
| 3718 | cat conftest.err >&5
|
---|
| 3719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3720 | (exit $ac_status); } &&
|
---|
| 3721 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3722 | || test ! -s conftest.err'
|
---|
| 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); }; } &&
|
---|
| 3728 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3730 | (eval $ac_try) 2>&5
|
---|
| 3731 | ac_status=$?
|
---|
| 3732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3733 | (exit $ac_status); }; }; then
|
---|
| 3734 | eval "$as_ac_Header=yes"
|
---|
| 3735 | else
|
---|
| 3736 | echo "$as_me: failed program was:" >&5
|
---|
| 3737 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3738 |
|
---|
| 3739 | eval "$as_ac_Header=no"
|
---|
| 3740 | fi
|
---|
| 3741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3742 | fi
|
---|
| 3743 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 3744 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 3745 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 3746 | cat >>confdefs.h <<_ACEOF
|
---|
| 3747 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 3748 | _ACEOF
|
---|
| 3749 |
|
---|
| 3750 | fi
|
---|
| 3751 |
|
---|
| 3752 | done
|
---|
| 3753 |
|
---|
| 3754 |
|
---|
| 3755 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3756 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3757 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3758 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3759 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3760 | fi
|
---|
| 3761 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3762 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
| 3763 | else
|
---|
| 3764 | # Is the header compilable?
|
---|
| 3765 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 3766 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
| 3767 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3768 | /* confdefs.h. */
|
---|
| 3769 | _ACEOF
|
---|
| 3770 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3771 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3772 | /* end confdefs.h. */
|
---|
| 3773 | $ac_includes_default
|
---|
| 3774 | #include <minix/config.h>
|
---|
| 3775 | _ACEOF
|
---|
| 3776 | rm -f conftest.$ac_objext
|
---|
| 3777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3778 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3779 | ac_status=$?
|
---|
| 3780 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3781 | rm -f conftest.er1
|
---|
| 3782 | cat conftest.err >&5
|
---|
| 3783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3784 | (exit $ac_status); } &&
|
---|
| 3785 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3786 | || test ! -s conftest.err'
|
---|
| 3787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3788 | (eval $ac_try) 2>&5
|
---|
| 3789 | ac_status=$?
|
---|
| 3790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3791 | (exit $ac_status); }; } &&
|
---|
| 3792 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3794 | (eval $ac_try) 2>&5
|
---|
| 3795 | ac_status=$?
|
---|
| 3796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3797 | (exit $ac_status); }; }; then
|
---|
| 3798 | ac_header_compiler=yes
|
---|
| 3799 | else
|
---|
| 3800 | echo "$as_me: failed program was:" >&5
|
---|
| 3801 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3802 |
|
---|
| 3803 | ac_header_compiler=no
|
---|
| 3804 | fi
|
---|
| 3805 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 3806 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 3807 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 3808 |
|
---|
| 3809 | # Is the header present?
|
---|
| 3810 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 3811 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
| 3812 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3813 | /* confdefs.h. */
|
---|
| 3814 | _ACEOF
|
---|
| 3815 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3816 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3817 | /* end confdefs.h. */
|
---|
| 3818 | #include <minix/config.h>
|
---|
| 3819 | _ACEOF
|
---|
| 3820 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3821 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3822 | ac_status=$?
|
---|
| 3823 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3824 | rm -f conftest.er1
|
---|
| 3825 | cat conftest.err >&5
|
---|
| 3826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3827 | (exit $ac_status); } >/dev/null; then
|
---|
| 3828 | if test -s conftest.err; then
|
---|
| 3829 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3830 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3831 | else
|
---|
| 3832 | ac_cpp_err=
|
---|
| 3833 | fi
|
---|
| 3834 | else
|
---|
| 3835 | ac_cpp_err=yes
|
---|
| 3836 | fi
|
---|
| 3837 | if test -z "$ac_cpp_err"; then
|
---|
| 3838 | ac_header_preproc=yes
|
---|
| 3839 | else
|
---|
| 3840 | echo "$as_me: failed program was:" >&5
|
---|
| 3841 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3842 |
|
---|
| 3843 | ac_header_preproc=no
|
---|
| 3844 | fi
|
---|
| 3845 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3846 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 3847 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 3848 |
|
---|
| 3849 | # So? What about this header?
|
---|
| 3850 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 3851 | yes:no: )
|
---|
| 3852 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 3853 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 3854 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 3855 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 3856 | ac_header_preproc=yes
|
---|
| 3857 | ;;
|
---|
| 3858 | no:yes:* )
|
---|
| 3859 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 3860 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 3861 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 3862 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 3863 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 3864 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 3865 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 3866 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 3867 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 3868 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 3869 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 3870 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 3871 | (
|
---|
| 3872 | cat <<\_ASBOX
|
---|
| 3873 | ## ------------------------------------------ ##
|
---|
| 3874 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 3875 | ## ------------------------------------------ ##
|
---|
| 3876 | _ASBOX
|
---|
| 3877 | ) |
|
---|
| 3878 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 3879 | ;;
|
---|
| 3880 | esac
|
---|
| 3881 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 3882 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 3883 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 3884 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 3885 | else
|
---|
| 3886 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
| 3887 | fi
|
---|
| 3888 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 3889 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
| 3890 |
|
---|
| 3891 | fi
|
---|
| 3892 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
[687] | 3893 | MINIX=yes
|
---|
| 3894 | else
|
---|
[8756] | 3895 | MINIX=
|
---|
[687] | 3896 | fi
|
---|
| 3897 |
|
---|
[8756] | 3898 |
|
---|
[687] | 3899 | if test "$MINIX" = yes; then
|
---|
[8756] | 3900 |
|
---|
| 3901 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3902 | #define _POSIX_SOURCE 1
|
---|
[8756] | 3903 | _ACEOF
|
---|
[687] | 3904 |
|
---|
[8756] | 3905 |
|
---|
| 3906 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3907 | #define _POSIX_1_SOURCE 2
|
---|
[8756] | 3908 | _ACEOF
|
---|
[687] | 3909 |
|
---|
[8756] | 3910 |
|
---|
| 3911 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 3912 | #define _MINIX 1
|
---|
[8756] | 3913 | _ACEOF
|
---|
[687] | 3914 |
|
---|
| 3915 | fi
|
---|
| 3916 |
|
---|
[8756] | 3917 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
| 3918 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
| 3919 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 3920 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[700] | 3921 | else
|
---|
| 3922 | ac_cv_prog_cc_stdc=no
|
---|
| 3923 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 3924 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 3925 | # breaks some systems' header files.
|
---|
| 3926 | # AIX -qlanglvl=ansi
|
---|
| 3927 | # Ultrix and OSF/1 -std1
|
---|
| 3928 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 3929 | # SVR4 -Xc
|
---|
| 3930 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 3931 | do
|
---|
| 3932 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[8756] | 3933 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3934 | /* confdefs.h. */
|
---|
| 3935 | _ACEOF
|
---|
| 3936 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3937 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 3938 | /* end confdefs.h. */
|
---|
[700] | 3939 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 3940 | choke me
|
---|
[8756] | 3941 | #endif
|
---|
[700] | 3942 |
|
---|
[8756] | 3943 | int
|
---|
| 3944 | main ()
|
---|
| 3945 | {
|
---|
[700] | 3946 | int test (int i, double x);
|
---|
| 3947 | struct s1 {int (*f) (int a);};
|
---|
| 3948 | struct s2 {int (*f) (double a);};
|
---|
[8756] | 3949 | ;
|
---|
| 3950 | return 0;
|
---|
| 3951 | }
|
---|
| 3952 | _ACEOF
|
---|
| 3953 | rm -f conftest.$ac_objext
|
---|
| 3954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 3955 | (eval $ac_compile) 2>conftest.er1
|
---|
| 3956 | ac_status=$?
|
---|
| 3957 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3958 | rm -f conftest.er1
|
---|
| 3959 | cat conftest.err >&5
|
---|
| 3960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3961 | (exit $ac_status); } &&
|
---|
| 3962 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 3963 | || test ! -s conftest.err'
|
---|
| 3964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3965 | (eval $ac_try) 2>&5
|
---|
| 3966 | ac_status=$?
|
---|
| 3967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3968 | (exit $ac_status); }; } &&
|
---|
| 3969 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 3970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 3971 | (eval $ac_try) 2>&5
|
---|
| 3972 | ac_status=$?
|
---|
| 3973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3974 | (exit $ac_status); }; }; then
|
---|
[700] | 3975 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
| 3976 | else
|
---|
[8756] | 3977 | echo "$as_me: failed program was:" >&5
|
---|
| 3978 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3979 |
|
---|
[700] | 3980 | fi
|
---|
[8756] | 3981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[700] | 3982 | done
|
---|
| 3983 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 3984 |
|
---|
| 3985 | fi
|
---|
| 3986 |
|
---|
[8756] | 3987 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 3988 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
[700] | 3989 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 3990 | x|xno) ;;
|
---|
| 3991 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 3992 | esac
|
---|
| 3993 |
|
---|
[8200] | 3994 |
|
---|
[8756] | 3995 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
| 3996 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
[700] | 3997 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[8756] | 3998 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3999 | echo "${ECHO_T}yes" >&6
|
---|
| 4000 | cat >>confdefs.h <<\_ACEOF
|
---|
[700] | 4001 | #define PROTOTYPES 1
|
---|
[8756] | 4002 | _ACEOF
|
---|
[700] | 4003 |
|
---|
| 4004 | U= ANSI2KNR=
|
---|
| 4005 | else
|
---|
[8756] | 4006 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4007 | echo "${ECHO_T}no" >&6
|
---|
[700] | 4008 | U=_ ANSI2KNR=ansi2knr
|
---|
| 4009 | fi
|
---|
| 4010 |
|
---|
[8756] | 4011 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
| 4012 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
| 4013 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 4014 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4015 | else
|
---|
[8756] | 4016 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4017 | /* confdefs.h. */
|
---|
| 4018 | _ACEOF
|
---|
| 4019 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4020 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4021 | /* end confdefs.h. */
|
---|
[8200] | 4022 |
|
---|
[8756] | 4023 | int
|
---|
| 4024 | main ()
|
---|
| 4025 | {
|
---|
| 4026 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 4027 | #ifndef __cplusplus
|
---|
| 4028 | /* Ultrix mips cc rejects this. */
|
---|
| 4029 | typedef int charset[2];
|
---|
| 4030 | const charset x;
|
---|
| 4031 | /* SunOS 4.1.1 cc rejects this. */
|
---|
| 4032 | char const *const *ccp;
|
---|
| 4033 | char **p;
|
---|
| 4034 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 4035 | struct point {int x, y;};
|
---|
| 4036 | static struct point const zero = {0,0};
|
---|
| 4037 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 4038 | It does not let you subtract one const X* pointer from another in
|
---|
| 4039 | an arm of an if-expression whose if-part is not a constant
|
---|
| 4040 | expression */
|
---|
| 4041 | const char *g = "string";
|
---|
| 4042 | ccp = &g + (g ? g-g : 0);
|
---|
| 4043 | /* HPUX 7.0 cc rejects these. */
|
---|
| 4044 | ++ccp;
|
---|
| 4045 | p = (char**) ccp;
|
---|
| 4046 | ccp = (char const *const *) p;
|
---|
| 4047 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4048 | char *t;
|
---|
| 4049 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
[8200] | 4050 |
|
---|
[8756] | 4051 | *t++ = 0;
|
---|
| 4052 | }
|
---|
| 4053 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4054 | int x[] = {25, 17};
|
---|
| 4055 | const int *foo = &x[0];
|
---|
| 4056 | ++foo;
|
---|
| 4057 | }
|
---|
| 4058 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4059 | typedef const int *iptr;
|
---|
| 4060 | iptr p = 0;
|
---|
| 4061 | ++p;
|
---|
| 4062 | }
|
---|
| 4063 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4064 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4065 | struct s { int j; const int *ap[3]; };
|
---|
| 4066 | struct s *b; b->j = 5;
|
---|
| 4067 | }
|
---|
| 4068 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4069 | const int foo = 10;
|
---|
| 4070 | }
|
---|
| 4071 | #endif
|
---|
[8200] | 4072 |
|
---|
[8756] | 4073 | ;
|
---|
| 4074 | return 0;
|
---|
[3631] | 4075 | }
|
---|
[8756] | 4076 | _ACEOF
|
---|
| 4077 | rm -f conftest.$ac_objext
|
---|
| 4078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4079 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4080 | ac_status=$?
|
---|
| 4081 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4082 | rm -f conftest.er1
|
---|
| 4083 | cat conftest.err >&5
|
---|
| 4084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4085 | (exit $ac_status); } &&
|
---|
| 4086 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4087 | || test ! -s conftest.err'
|
---|
| 4088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4089 | (eval $ac_try) 2>&5
|
---|
| 4090 | ac_status=$?
|
---|
| 4091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4092 | (exit $ac_status); }; } &&
|
---|
| 4093 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4095 | (eval $ac_try) 2>&5
|
---|
| 4096 | ac_status=$?
|
---|
| 4097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4098 | (exit $ac_status); }; }; then
|
---|
[687] | 4099 | ac_cv_c_const=yes
|
---|
| 4100 | else
|
---|
[8756] | 4101 | echo "$as_me: failed program was:" >&5
|
---|
| 4102 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4103 |
|
---|
| 4104 | ac_cv_c_const=no
|
---|
[687] | 4105 | fi
|
---|
[8756] | 4106 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4107 | fi
|
---|
[8756] | 4108 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
| 4109 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
[3631] | 4110 | if test $ac_cv_c_const = no; then
|
---|
[687] | 4111 |
|
---|
[8756] | 4112 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4113 | #define const
|
---|
| 4114 | _ACEOF
|
---|
| 4115 |
|
---|
[687] | 4116 | fi
|
---|
| 4117 |
|
---|
[8756] | 4118 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
| 4119 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
| 4120 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 4121 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4122 | else
|
---|
[8756] | 4123 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4124 | /* confdefs.h. */
|
---|
| 4125 | _ACEOF
|
---|
| 4126 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4127 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4128 | /* end confdefs.h. */
|
---|
| 4129 | $ac_includes_default
|
---|
| 4130 | int
|
---|
| 4131 | main ()
|
---|
| 4132 | {
|
---|
| 4133 | if ((off_t *) 0)
|
---|
| 4134 | return 0;
|
---|
| 4135 | if (sizeof (off_t))
|
---|
| 4136 | return 0;
|
---|
| 4137 | ;
|
---|
| 4138 | return 0;
|
---|
| 4139 | }
|
---|
| 4140 | _ACEOF
|
---|
| 4141 | rm -f conftest.$ac_objext
|
---|
| 4142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4143 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4144 | ac_status=$?
|
---|
| 4145 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4146 | rm -f conftest.er1
|
---|
| 4147 | cat conftest.err >&5
|
---|
| 4148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4149 | (exit $ac_status); } &&
|
---|
| 4150 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4151 | || test ! -s conftest.err'
|
---|
| 4152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4153 | (eval $ac_try) 2>&5
|
---|
| 4154 | ac_status=$?
|
---|
| 4155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4156 | (exit $ac_status); }; } &&
|
---|
| 4157 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4159 | (eval $ac_try) 2>&5
|
---|
| 4160 | ac_status=$?
|
---|
| 4161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4162 | (exit $ac_status); }; }; then
|
---|
| 4163 | ac_cv_type_off_t=yes
|
---|
[687] | 4164 | else
|
---|
[8756] | 4165 | echo "$as_me: failed program was:" >&5
|
---|
| 4166 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[687] | 4167 |
|
---|
[8756] | 4168 | ac_cv_type_off_t=no
|
---|
[687] | 4169 | fi
|
---|
[8756] | 4170 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4171 | fi
|
---|
[8756] | 4172 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
| 4173 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
| 4174 | if test $ac_cv_type_off_t = yes; then
|
---|
[687] | 4175 | :
|
---|
| 4176 | else
|
---|
| 4177 |
|
---|
[8756] | 4178 | cat >>confdefs.h <<_ACEOF
|
---|
| 4179 | #define off_t long
|
---|
| 4180 | _ACEOF
|
---|
[687] | 4181 |
|
---|
| 4182 | fi
|
---|
[8200] | 4183 |
|
---|
[8756] | 4184 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
| 4185 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
| 4186 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4187 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4188 | else
|
---|
[8756] | 4189 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4190 | /* confdefs.h. */
|
---|
| 4191 | _ACEOF
|
---|
| 4192 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4193 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4194 | /* end confdefs.h. */
|
---|
| 4195 | $ac_includes_default
|
---|
| 4196 | int
|
---|
| 4197 | main ()
|
---|
| 4198 | {
|
---|
| 4199 | if ((size_t *) 0)
|
---|
| 4200 | return 0;
|
---|
| 4201 | if (sizeof (size_t))
|
---|
| 4202 | return 0;
|
---|
| 4203 | ;
|
---|
| 4204 | return 0;
|
---|
| 4205 | }
|
---|
| 4206 | _ACEOF
|
---|
| 4207 | rm -f conftest.$ac_objext
|
---|
| 4208 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4209 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4210 | ac_status=$?
|
---|
| 4211 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4212 | rm -f conftest.er1
|
---|
| 4213 | cat conftest.err >&5
|
---|
| 4214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4215 | (exit $ac_status); } &&
|
---|
| 4216 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4217 | || test ! -s conftest.err'
|
---|
| 4218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4219 | (eval $ac_try) 2>&5
|
---|
| 4220 | ac_status=$?
|
---|
| 4221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4222 | (exit $ac_status); }; } &&
|
---|
| 4223 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4225 | (eval $ac_try) 2>&5
|
---|
| 4226 | ac_status=$?
|
---|
| 4227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4228 | (exit $ac_status); }; }; then
|
---|
| 4229 | ac_cv_type_size_t=yes
|
---|
[687] | 4230 | else
|
---|
[8756] | 4231 | echo "$as_me: failed program was:" >&5
|
---|
| 4232 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4233 |
|
---|
[8756] | 4234 | ac_cv_type_size_t=no
|
---|
[3631] | 4235 | fi
|
---|
[8756] | 4236 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4237 | fi
|
---|
[8756] | 4238 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
| 4239 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
| 4240 | if test $ac_cv_type_size_t = yes; then
|
---|
| 4241 | :
|
---|
[687] | 4242 | else
|
---|
[8200] | 4243 |
|
---|
[8756] | 4244 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 4245 | #define size_t unsigned
|
---|
[8756] | 4246 | _ACEOF
|
---|
[687] | 4247 |
|
---|
| 4248 | fi
|
---|
| 4249 |
|
---|
[8756] | 4250 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
| 4251 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
| 4252 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 4253 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4254 | else
|
---|
[8756] | 4255 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4256 | /* confdefs.h. */
|
---|
| 4257 | _ACEOF
|
---|
| 4258 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4259 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4260 | /* end confdefs.h. */
|
---|
[687] | 4261 | #include <sys/types.h>
|
---|
| 4262 | #include <sys/time.h>
|
---|
| 4263 | #include <time.h>
|
---|
[8756] | 4264 |
|
---|
| 4265 | int
|
---|
| 4266 | main ()
|
---|
| 4267 | {
|
---|
| 4268 | if ((struct tm *) 0)
|
---|
| 4269 | return 0;
|
---|
| 4270 | ;
|
---|
| 4271 | return 0;
|
---|
| 4272 | }
|
---|
| 4273 | _ACEOF
|
---|
| 4274 | rm -f conftest.$ac_objext
|
---|
| 4275 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4276 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4277 | ac_status=$?
|
---|
| 4278 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4279 | rm -f conftest.er1
|
---|
| 4280 | cat conftest.err >&5
|
---|
| 4281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4282 | (exit $ac_status); } &&
|
---|
| 4283 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4284 | || test ! -s conftest.err'
|
---|
| 4285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4286 | (eval $ac_try) 2>&5
|
---|
| 4287 | ac_status=$?
|
---|
| 4288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4289 | (exit $ac_status); }; } &&
|
---|
| 4290 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4292 | (eval $ac_try) 2>&5
|
---|
| 4293 | ac_status=$?
|
---|
| 4294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4295 | (exit $ac_status); }; }; then
|
---|
[687] | 4296 | ac_cv_header_time=yes
|
---|
| 4297 | else
|
---|
[8756] | 4298 | echo "$as_me: failed program was:" >&5
|
---|
| 4299 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4300 |
|
---|
| 4301 | ac_cv_header_time=no
|
---|
[687] | 4302 | fi
|
---|
[8756] | 4303 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4304 | fi
|
---|
[8756] | 4305 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
| 4306 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
| 4307 | if test $ac_cv_header_time = yes; then
|
---|
[8200] | 4308 |
|
---|
[8756] | 4309 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 4310 | #define TIME_WITH_SYS_TIME 1
|
---|
[8756] | 4311 | _ACEOF
|
---|
[687] | 4312 |
|
---|
| 4313 | fi
|
---|
| 4314 |
|
---|
[8756] | 4315 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
| 4316 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
| 4317 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 4318 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4319 | else
|
---|
[8756] | 4320 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4321 | /* confdefs.h. */
|
---|
| 4322 | _ACEOF
|
---|
| 4323 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4324 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4325 | /* end confdefs.h. */
|
---|
[687] | 4326 | #include <sys/types.h>
|
---|
| 4327 | #include <time.h>
|
---|
[8756] | 4328 |
|
---|
| 4329 | int
|
---|
| 4330 | main ()
|
---|
| 4331 | {
|
---|
[687] | 4332 | struct tm *tp; tp->tm_sec;
|
---|
[8756] | 4333 | ;
|
---|
| 4334 | return 0;
|
---|
| 4335 | }
|
---|
| 4336 | _ACEOF
|
---|
| 4337 | rm -f conftest.$ac_objext
|
---|
| 4338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4339 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4340 | ac_status=$?
|
---|
| 4341 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4342 | rm -f conftest.er1
|
---|
| 4343 | cat conftest.err >&5
|
---|
| 4344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4345 | (exit $ac_status); } &&
|
---|
| 4346 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4347 | || test ! -s conftest.err'
|
---|
| 4348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4349 | (eval $ac_try) 2>&5
|
---|
| 4350 | ac_status=$?
|
---|
| 4351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4352 | (exit $ac_status); }; } &&
|
---|
| 4353 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4355 | (eval $ac_try) 2>&5
|
---|
| 4356 | ac_status=$?
|
---|
| 4357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4358 | (exit $ac_status); }; }; then
|
---|
[687] | 4359 | ac_cv_struct_tm=time.h
|
---|
| 4360 | else
|
---|
[8756] | 4361 | echo "$as_me: failed program was:" >&5
|
---|
| 4362 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4363 |
|
---|
| 4364 | ac_cv_struct_tm=sys/time.h
|
---|
[687] | 4365 | fi
|
---|
[8756] | 4366 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4367 | fi
|
---|
[8756] | 4368 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
| 4369 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
| 4370 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
[8200] | 4371 |
|
---|
[8756] | 4372 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 4373 | #define TM_IN_SYS_TIME 1
|
---|
[8756] | 4374 | _ACEOF
|
---|
[687] | 4375 |
|
---|
| 4376 | fi
|
---|
| 4377 |
|
---|
[8200] | 4378 |
|
---|
[687] | 4379 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[8756] | 4380 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4381 | /* confdefs.h. */
|
---|
| 4382 | _ACEOF
|
---|
| 4383 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4384 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4385 | /* end confdefs.h. */
|
---|
[687] | 4386 | #include <stdio.h>
|
---|
| 4387 |
|
---|
[8756] | 4388 | int
|
---|
| 4389 | main ()
|
---|
| 4390 | {
|
---|
| 4391 | FILE *rubbish = popen("yes", "r");
|
---|
| 4392 | ;
|
---|
| 4393 | return 0;
|
---|
| 4394 | }
|
---|
| 4395 | _ACEOF
|
---|
| 4396 | rm -f conftest.$ac_objext
|
---|
| 4397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4398 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4399 | ac_status=$?
|
---|
| 4400 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4401 | rm -f conftest.er1
|
---|
| 4402 | cat conftest.err >&5
|
---|
| 4403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4404 | (exit $ac_status); } &&
|
---|
| 4405 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4406 | || test ! -s conftest.err'
|
---|
| 4407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4408 | (eval $ac_try) 2>&5
|
---|
| 4409 | ac_status=$?
|
---|
| 4410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4411 | (exit $ac_status); }; } &&
|
---|
| 4412 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4414 | (eval $ac_try) 2>&5
|
---|
| 4415 | ac_status=$?
|
---|
| 4416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4417 | (exit $ac_status); }; }; then
|
---|
[687] | 4418 | :
|
---|
| 4419 | else
|
---|
[8756] | 4420 | echo "$as_me: failed program was:" >&5
|
---|
| 4421 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4422 |
|
---|
| 4423 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[687] | 4424 | fi
|
---|
[8756] | 4425 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4426 | fi
|
---|
| 4427 |
|
---|
[8200] | 4428 |
|
---|
[8756] | 4429 |
|
---|
| 4430 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
| 4431 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
| 4432 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
| 4433 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4434 | else
|
---|
[8756] | 4435 | ac_check_lib_save_LIBS=$LIBS
|
---|
[562] | 4436 | LIBS="-lg $LIBS"
|
---|
[8756] | 4437 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4438 | /* confdefs.h. */
|
---|
| 4439 | _ACEOF
|
---|
| 4440 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4441 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4442 | /* end confdefs.h. */
|
---|
[562] | 4443 |
|
---|
[8756] | 4444 |
|
---|
| 4445 | int
|
---|
| 4446 | main ()
|
---|
| 4447 | {
|
---|
| 4448 | main ();
|
---|
| 4449 | ;
|
---|
| 4450 | return 0;
|
---|
| 4451 | }
|
---|
| 4452 | _ACEOF
|
---|
| 4453 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4455 | (eval $ac_link) 2>conftest.er1
|
---|
| 4456 | ac_status=$?
|
---|
| 4457 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4458 | rm -f conftest.er1
|
---|
| 4459 | cat conftest.err >&5
|
---|
| 4460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4461 | (exit $ac_status); } &&
|
---|
| 4462 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4463 | || test ! -s conftest.err'
|
---|
| 4464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4465 | (eval $ac_try) 2>&5
|
---|
| 4466 | ac_status=$?
|
---|
| 4467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4468 | (exit $ac_status); }; } &&
|
---|
| 4469 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4471 | (eval $ac_try) 2>&5
|
---|
| 4472 | ac_status=$?
|
---|
| 4473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4474 | (exit $ac_status); }; }; then
|
---|
| 4475 | ac_cv_lib_g_main=yes
|
---|
[562] | 4476 | else
|
---|
[8756] | 4477 | echo "$as_me: failed program was:" >&5
|
---|
| 4478 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4479 |
|
---|
[8756] | 4480 | ac_cv_lib_g_main=no
|
---|
[562] | 4481 | fi
|
---|
[8756] | 4482 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4483 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4484 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4485 | fi
|
---|
| 4486 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
| 4487 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
| 4488 | if test $ac_cv_lib_g_main = yes; then
|
---|
| 4489 | cat >>confdefs.h <<_ACEOF
|
---|
| 4490 | #define HAVE_LIBG 1
|
---|
| 4491 | _ACEOF
|
---|
[562] | 4492 |
|
---|
| 4493 | LIBS="-lg $LIBS"
|
---|
| 4494 |
|
---|
| 4495 | fi
|
---|
[8756] | 4496 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
[562] | 4497 |
|
---|
| 4498 |
|
---|
[8756] | 4499 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
| 4500 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
| 4501 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 4502 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4503 | else
|
---|
[8756] | 4504 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4505 | LIBS="-lm $LIBS"
|
---|
| 4506 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4507 | /* confdefs.h. */
|
---|
| 4508 | _ACEOF
|
---|
| 4509 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4510 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4511 | /* end confdefs.h. */
|
---|
[8200] | 4512 |
|
---|
[562] | 4513 |
|
---|
[8756] | 4514 | int
|
---|
| 4515 | main ()
|
---|
| 4516 | {
|
---|
| 4517 | main ();
|
---|
| 4518 | ;
|
---|
| 4519 | return 0;
|
---|
| 4520 | }
|
---|
| 4521 | _ACEOF
|
---|
| 4522 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4524 | (eval $ac_link) 2>conftest.er1
|
---|
| 4525 | ac_status=$?
|
---|
| 4526 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4527 | rm -f conftest.er1
|
---|
| 4528 | cat conftest.err >&5
|
---|
| 4529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4530 | (exit $ac_status); } &&
|
---|
| 4531 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4532 | || test ! -s conftest.err'
|
---|
| 4533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4534 | (eval $ac_try) 2>&5
|
---|
| 4535 | ac_status=$?
|
---|
| 4536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4537 | (exit $ac_status); }; } &&
|
---|
| 4538 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4540 | (eval $ac_try) 2>&5
|
---|
| 4541 | ac_status=$?
|
---|
| 4542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4543 | (exit $ac_status); }; }; then
|
---|
| 4544 | ac_cv_lib_m_main=yes
|
---|
[8200] | 4545 | else
|
---|
[8756] | 4546 | echo "$as_me: failed program was:" >&5
|
---|
| 4547 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[562] | 4548 |
|
---|
[8756] | 4549 | ac_cv_lib_m_main=no
|
---|
[562] | 4550 | fi
|
---|
[8756] | 4551 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4552 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4553 | LIBS=$ac_check_lib_save_LIBS
|
---|
[562] | 4554 | fi
|
---|
[8756] | 4555 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
| 4556 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
| 4557 | if test $ac_cv_lib_m_main = yes; then
|
---|
| 4558 | cat >>confdefs.h <<_ACEOF
|
---|
| 4559 | #define HAVE_LIBM 1
|
---|
| 4560 | _ACEOF
|
---|
[562] | 4561 |
|
---|
| 4562 | LIBS="-lm $LIBS"
|
---|
| 4563 |
|
---|
| 4564 | fi
|
---|
[8756] | 4565 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
[562] | 4566 |
|
---|
[8756] | 4567 |
|
---|
| 4568 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
| 4569 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
| 4570 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
| 4571 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4572 | else
|
---|
[8756] | 4573 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 4574 | LIBS="-lcrypt $LIBS"
|
---|
| 4575 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4576 | /* confdefs.h. */
|
---|
| 4577 | _ACEOF
|
---|
| 4578 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4579 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4580 | /* end confdefs.h. */
|
---|
[562] | 4581 |
|
---|
[8756] | 4582 |
|
---|
| 4583 | int
|
---|
| 4584 | main ()
|
---|
| 4585 | {
|
---|
| 4586 | main ();
|
---|
| 4587 | ;
|
---|
| 4588 | return 0;
|
---|
| 4589 | }
|
---|
| 4590 | _ACEOF
|
---|
| 4591 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4593 | (eval $ac_link) 2>conftest.er1
|
---|
| 4594 | ac_status=$?
|
---|
| 4595 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4596 | rm -f conftest.er1
|
---|
| 4597 | cat conftest.err >&5
|
---|
| 4598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4599 | (exit $ac_status); } &&
|
---|
| 4600 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4601 | || test ! -s conftest.err'
|
---|
| 4602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4603 | (eval $ac_try) 2>&5
|
---|
| 4604 | ac_status=$?
|
---|
| 4605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4606 | (exit $ac_status); }; } &&
|
---|
| 4607 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4609 | (eval $ac_try) 2>&5
|
---|
| 4610 | ac_status=$?
|
---|
| 4611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4612 | (exit $ac_status); }; }; then
|
---|
| 4613 | ac_cv_lib_crypt_main=yes
|
---|
[562] | 4614 | else
|
---|
[8756] | 4615 | echo "$as_me: failed program was:" >&5
|
---|
| 4616 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4617 |
|
---|
[8756] | 4618 | ac_cv_lib_crypt_main=no
|
---|
[562] | 4619 | fi
|
---|
[8756] | 4620 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4621 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4622 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 4623 | fi
|
---|
| 4624 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
| 4625 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
| 4626 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
| 4627 | cat >>confdefs.h <<_ACEOF
|
---|
| 4628 | #define HAVE_LIBCRYPT 1
|
---|
| 4629 | _ACEOF
|
---|
[562] | 4630 |
|
---|
[8756] | 4631 | LIBS="-lcrypt $LIBS"
|
---|
[562] | 4632 |
|
---|
| 4633 | fi
|
---|
[8756] | 4634 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
[562] | 4635 |
|
---|
| 4636 |
|
---|
[8200] | 4637 |
|
---|
[986] | 4638 |
|
---|
| 4639 |
|
---|
| 4640 |
|
---|
[8200] | 4641 |
|
---|
| 4642 |
|
---|
[687] | 4643 | ac_header_dirent=no
|
---|
[8756] | 4644 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
| 4645 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 4646 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
| 4647 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
| 4648 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 4649 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4650 | else
|
---|
[8756] | 4651 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4652 | /* confdefs.h. */
|
---|
| 4653 | _ACEOF
|
---|
| 4654 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4655 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4656 | /* end confdefs.h. */
|
---|
[687] | 4657 | #include <sys/types.h>
|
---|
| 4658 | #include <$ac_hdr>
|
---|
[8756] | 4659 |
|
---|
| 4660 | int
|
---|
| 4661 | main ()
|
---|
| 4662 | {
|
---|
| 4663 | if ((DIR *) 0)
|
---|
| 4664 | return 0;
|
---|
| 4665 | ;
|
---|
| 4666 | return 0;
|
---|
| 4667 | }
|
---|
| 4668 | _ACEOF
|
---|
| 4669 | rm -f conftest.$ac_objext
|
---|
| 4670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4671 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4672 | ac_status=$?
|
---|
| 4673 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4674 | rm -f conftest.er1
|
---|
| 4675 | cat conftest.err >&5
|
---|
| 4676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4677 | (exit $ac_status); } &&
|
---|
| 4678 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4679 | || test ! -s conftest.err'
|
---|
| 4680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4681 | (eval $ac_try) 2>&5
|
---|
| 4682 | ac_status=$?
|
---|
| 4683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4684 | (exit $ac_status); }; } &&
|
---|
| 4685 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4687 | (eval $ac_try) 2>&5
|
---|
| 4688 | ac_status=$?
|
---|
| 4689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4690 | (exit $ac_status); }; }; then
|
---|
| 4691 | eval "$as_ac_Header=yes"
|
---|
[562] | 4692 | else
|
---|
[8756] | 4693 | echo "$as_me: failed program was:" >&5
|
---|
| 4694 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4695 |
|
---|
| 4696 | eval "$as_ac_Header=no"
|
---|
[687] | 4697 | fi
|
---|
[8756] | 4698 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 4699 | fi
|
---|
[8756] | 4700 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4701 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 4702 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4703 | cat >>confdefs.h <<_ACEOF
|
---|
| 4704 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
| 4705 | _ACEOF
|
---|
| 4706 |
|
---|
| 4707 | ac_header_dirent=$ac_hdr; break
|
---|
[687] | 4708 | fi
|
---|
[8756] | 4709 |
|
---|
[687] | 4710 | done
|
---|
| 4711 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 4712 | if test $ac_header_dirent = dirent.h; then
|
---|
[8756] | 4713 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4714 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4715 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 4716 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4717 | else
|
---|
[8756] | 4718 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4719 | ac_cv_search_opendir=no
|
---|
| 4720 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4721 | /* confdefs.h. */
|
---|
| 4722 | _ACEOF
|
---|
| 4723 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4724 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4725 | /* end confdefs.h. */
|
---|
| 4726 |
|
---|
[687] | 4727 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 4728 | #ifdef __cplusplus
|
---|
| 4729 | extern "C"
|
---|
| 4730 | #endif
|
---|
[687] | 4731 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 4732 | builtin and then its argument prototype would still apply. */
|
---|
| 4733 | char opendir ();
|
---|
| 4734 | int
|
---|
| 4735 | main ()
|
---|
| 4736 | {
|
---|
| 4737 | opendir ();
|
---|
| 4738 | ;
|
---|
| 4739 | return 0;
|
---|
| 4740 | }
|
---|
| 4741 | _ACEOF
|
---|
| 4742 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4743 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4744 | (eval $ac_link) 2>conftest.er1
|
---|
| 4745 | ac_status=$?
|
---|
| 4746 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4747 | rm -f conftest.er1
|
---|
| 4748 | cat conftest.err >&5
|
---|
| 4749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4750 | (exit $ac_status); } &&
|
---|
| 4751 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4752 | || test ! -s conftest.err'
|
---|
| 4753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4754 | (eval $ac_try) 2>&5
|
---|
| 4755 | ac_status=$?
|
---|
| 4756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4757 | (exit $ac_status); }; } &&
|
---|
| 4758 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4760 | (eval $ac_try) 2>&5
|
---|
| 4761 | ac_status=$?
|
---|
| 4762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4763 | (exit $ac_status); }; }; then
|
---|
| 4764 | ac_cv_search_opendir="none required"
|
---|
| 4765 | else
|
---|
| 4766 | echo "$as_me: failed program was:" >&5
|
---|
| 4767 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4768 |
|
---|
[687] | 4769 | fi
|
---|
[8756] | 4770 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4771 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4772 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4773 | for ac_lib in dir; do
|
---|
| 4774 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4775 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4776 | /* confdefs.h. */
|
---|
| 4777 | _ACEOF
|
---|
| 4778 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4779 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4780 | /* end confdefs.h. */
|
---|
[8200] | 4781 |
|
---|
[8756] | 4782 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4783 | #ifdef __cplusplus
|
---|
| 4784 | extern "C"
|
---|
| 4785 | #endif
|
---|
| 4786 | /* We use char because int might match the return type of a gcc2
|
---|
| 4787 | builtin and then its argument prototype would still apply. */
|
---|
| 4788 | char opendir ();
|
---|
| 4789 | int
|
---|
| 4790 | main ()
|
---|
| 4791 | {
|
---|
| 4792 | opendir ();
|
---|
| 4793 | ;
|
---|
| 4794 | return 0;
|
---|
| 4795 | }
|
---|
| 4796 | _ACEOF
|
---|
| 4797 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4798 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4799 | (eval $ac_link) 2>conftest.er1
|
---|
| 4800 | ac_status=$?
|
---|
| 4801 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4802 | rm -f conftest.er1
|
---|
| 4803 | cat conftest.err >&5
|
---|
| 4804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4805 | (exit $ac_status); } &&
|
---|
| 4806 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4807 | || test ! -s conftest.err'
|
---|
| 4808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4809 | (eval $ac_try) 2>&5
|
---|
| 4810 | ac_status=$?
|
---|
| 4811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4812 | (exit $ac_status); }; } &&
|
---|
| 4813 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4815 | (eval $ac_try) 2>&5
|
---|
| 4816 | ac_status=$?
|
---|
| 4817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4818 | (exit $ac_status); }; }; then
|
---|
| 4819 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4820 | break
|
---|
[8200] | 4821 | else
|
---|
[8756] | 4822 | echo "$as_me: failed program was:" >&5
|
---|
| 4823 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4824 |
|
---|
[687] | 4825 | fi
|
---|
[8756] | 4826 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4827 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4828 | done
|
---|
| 4829 | fi
|
---|
| 4830 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4831 | fi
|
---|
| 4832 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4833 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4834 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4835 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[687] | 4836 |
|
---|
[8756] | 4837 | fi
|
---|
| 4838 |
|
---|
[687] | 4839 | else
|
---|
[8756] | 4840 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 4841 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 4842 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 4843 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 4844 | else
|
---|
[8756] | 4845 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4846 | ac_cv_search_opendir=no
|
---|
| 4847 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4848 | /* confdefs.h. */
|
---|
| 4849 | _ACEOF
|
---|
| 4850 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4851 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4852 | /* end confdefs.h. */
|
---|
| 4853 |
|
---|
[687] | 4854 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 4855 | #ifdef __cplusplus
|
---|
| 4856 | extern "C"
|
---|
| 4857 | #endif
|
---|
[687] | 4858 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 4859 | builtin and then its argument prototype would still apply. */
|
---|
| 4860 | char opendir ();
|
---|
| 4861 | int
|
---|
| 4862 | main ()
|
---|
| 4863 | {
|
---|
| 4864 | opendir ();
|
---|
| 4865 | ;
|
---|
| 4866 | return 0;
|
---|
| 4867 | }
|
---|
| 4868 | _ACEOF
|
---|
| 4869 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4871 | (eval $ac_link) 2>conftest.er1
|
---|
| 4872 | ac_status=$?
|
---|
| 4873 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4874 | rm -f conftest.er1
|
---|
| 4875 | cat conftest.err >&5
|
---|
| 4876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4877 | (exit $ac_status); } &&
|
---|
| 4878 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4879 | || test ! -s conftest.err'
|
---|
| 4880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4881 | (eval $ac_try) 2>&5
|
---|
| 4882 | ac_status=$?
|
---|
| 4883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4884 | (exit $ac_status); }; } &&
|
---|
| 4885 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4887 | (eval $ac_try) 2>&5
|
---|
| 4888 | ac_status=$?
|
---|
| 4889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4890 | (exit $ac_status); }; }; then
|
---|
| 4891 | ac_cv_search_opendir="none required"
|
---|
| 4892 | else
|
---|
| 4893 | echo "$as_me: failed program was:" >&5
|
---|
| 4894 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[8200] | 4895 |
|
---|
[562] | 4896 | fi
|
---|
[8756] | 4897 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4898 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4899 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 4900 | for ac_lib in x; do
|
---|
| 4901 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4902 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4903 | /* confdefs.h. */
|
---|
| 4904 | _ACEOF
|
---|
| 4905 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4906 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4907 | /* end confdefs.h. */
|
---|
[8200] | 4908 |
|
---|
[8756] | 4909 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4910 | #ifdef __cplusplus
|
---|
| 4911 | extern "C"
|
---|
| 4912 | #endif
|
---|
| 4913 | /* We use char because int might match the return type of a gcc2
|
---|
| 4914 | builtin and then its argument prototype would still apply. */
|
---|
| 4915 | char opendir ();
|
---|
| 4916 | int
|
---|
| 4917 | main ()
|
---|
| 4918 | {
|
---|
| 4919 | opendir ();
|
---|
| 4920 | ;
|
---|
| 4921 | return 0;
|
---|
| 4922 | }
|
---|
| 4923 | _ACEOF
|
---|
| 4924 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4925 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4926 | (eval $ac_link) 2>conftest.er1
|
---|
| 4927 | ac_status=$?
|
---|
| 4928 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4929 | rm -f conftest.er1
|
---|
| 4930 | cat conftest.err >&5
|
---|
| 4931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4932 | (exit $ac_status); } &&
|
---|
| 4933 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4934 | || test ! -s conftest.err'
|
---|
| 4935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4936 | (eval $ac_try) 2>&5
|
---|
| 4937 | ac_status=$?
|
---|
| 4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4939 | (exit $ac_status); }; } &&
|
---|
| 4940 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4942 | (eval $ac_try) 2>&5
|
---|
| 4943 | ac_status=$?
|
---|
| 4944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4945 | (exit $ac_status); }; }; then
|
---|
| 4946 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 4947 | break
|
---|
[8200] | 4948 | else
|
---|
[8756] | 4949 | echo "$as_me: failed program was:" >&5
|
---|
| 4950 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4951 |
|
---|
[562] | 4952 | fi
|
---|
[8756] | 4953 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4954 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4955 | done
|
---|
| 4956 | fi
|
---|
| 4957 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4958 | fi
|
---|
| 4959 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 4960 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 4961 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 4962 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[562] | 4963 |
|
---|
[687] | 4964 | fi
|
---|
| 4965 |
|
---|
[8756] | 4966 | fi
|
---|
| 4967 |
|
---|
| 4968 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 4969 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 4970 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 4971 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 4972 | else
|
---|
[8756] | 4973 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4974 | /* confdefs.h. */
|
---|
| 4975 | _ACEOF
|
---|
| 4976 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4977 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4978 | /* end confdefs.h. */
|
---|
[562] | 4979 | #include <stdlib.h>
|
---|
| 4980 | #include <stdarg.h>
|
---|
| 4981 | #include <string.h>
|
---|
| 4982 | #include <float.h>
|
---|
[8756] | 4983 |
|
---|
| 4984 | int
|
---|
| 4985 | main ()
|
---|
| 4986 | {
|
---|
| 4987 |
|
---|
| 4988 | ;
|
---|
| 4989 | return 0;
|
---|
| 4990 | }
|
---|
| 4991 | _ACEOF
|
---|
| 4992 | rm -f conftest.$ac_objext
|
---|
| 4993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4994 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4995 | ac_status=$?
|
---|
| 4996 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4997 | rm -f conftest.er1
|
---|
| 4998 | cat conftest.err >&5
|
---|
| 4999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5000 | (exit $ac_status); } &&
|
---|
| 5001 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5002 | || test ! -s conftest.err'
|
---|
| 5003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5004 | (eval $ac_try) 2>&5
|
---|
| 5005 | ac_status=$?
|
---|
| 5006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5007 | (exit $ac_status); }; } &&
|
---|
| 5008 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5010 | (eval $ac_try) 2>&5
|
---|
| 5011 | ac_status=$?
|
---|
| 5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5013 | (exit $ac_status); }; }; then
|
---|
[562] | 5014 | ac_cv_header_stdc=yes
|
---|
| 5015 | else
|
---|
[8756] | 5016 | echo "$as_me: failed program was:" >&5
|
---|
| 5017 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5018 |
|
---|
| 5019 | ac_cv_header_stdc=no
|
---|
[562] | 5020 | fi
|
---|
[8756] | 5021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5022 |
|
---|
| 5023 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5024 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[8756] | 5025 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5026 | /* confdefs.h. */
|
---|
| 5027 | _ACEOF
|
---|
| 5028 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5029 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5030 | /* end confdefs.h. */
|
---|
[562] | 5031 | #include <string.h>
|
---|
[8756] | 5032 |
|
---|
| 5033 | _ACEOF
|
---|
[562] | 5034 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5035 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
[562] | 5036 | :
|
---|
| 5037 | else
|
---|
| 5038 | ac_cv_header_stdc=no
|
---|
| 5039 | fi
|
---|
| 5040 | rm -f conftest*
|
---|
| 5041 |
|
---|
| 5042 | fi
|
---|
| 5043 |
|
---|
| 5044 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5045 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[8756] | 5046 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5047 | /* confdefs.h. */
|
---|
| 5048 | _ACEOF
|
---|
| 5049 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5050 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5051 | /* end confdefs.h. */
|
---|
[562] | 5052 | #include <stdlib.h>
|
---|
[8756] | 5053 |
|
---|
| 5054 | _ACEOF
|
---|
[562] | 5055 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5056 | $EGREP "free" >/dev/null 2>&1; then
|
---|
[562] | 5057 | :
|
---|
| 5058 | else
|
---|
| 5059 | ac_cv_header_stdc=no
|
---|
| 5060 | fi
|
---|
| 5061 | rm -f conftest*
|
---|
| 5062 |
|
---|
| 5063 | fi
|
---|
| 5064 |
|
---|
| 5065 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5066 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[8756] | 5067 | if test "$cross_compiling" = yes; then
|
---|
[562] | 5068 | :
|
---|
| 5069 | else
|
---|
[8756] | 5070 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5071 | /* confdefs.h. */
|
---|
| 5072 | _ACEOF
|
---|
| 5073 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5074 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5075 | /* end confdefs.h. */
|
---|
[562] | 5076 | #include <ctype.h>
|
---|
[8756] | 5077 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5078 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5079 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5080 | #else
|
---|
| 5081 | # define ISLOWER(c) \
|
---|
| 5082 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5083 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5084 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 5085 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5086 | #endif
|
---|
| 5087 |
|
---|
[8200] | 5088 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
[8756] | 5089 | int
|
---|
| 5090 | main ()
|
---|
| 5091 | {
|
---|
| 5092 | int i;
|
---|
| 5093 | for (i = 0; i < 256; i++)
|
---|
| 5094 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 5095 | || toupper (i) != TOUPPER (i))
|
---|
| 5096 | exit(2);
|
---|
| 5097 | exit (0);
|
---|
| 5098 | }
|
---|
| 5099 | _ACEOF
|
---|
| 5100 | rm -f conftest$ac_exeext
|
---|
| 5101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5102 | (eval $ac_link) 2>&5
|
---|
| 5103 | ac_status=$?
|
---|
| 5104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5105 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 5106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5107 | (eval $ac_try) 2>&5
|
---|
| 5108 | ac_status=$?
|
---|
| 5109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5110 | (exit $ac_status); }; }; then
|
---|
[562] | 5111 | :
|
---|
| 5112 | else
|
---|
[8756] | 5113 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5114 | echo "$as_me: failed program was:" >&5
|
---|
| 5115 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5116 |
|
---|
| 5117 | ( exit $ac_status )
|
---|
| 5118 | ac_cv_header_stdc=no
|
---|
[562] | 5119 | fi
|
---|
[8756] | 5120 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5121 | fi
|
---|
| 5122 | fi
|
---|
| 5123 | fi
|
---|
[8756] | 5124 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 5125 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
| 5126 | if test $ac_cv_header_stdc = yes; then
|
---|
[8200] | 5127 |
|
---|
[8756] | 5128 | cat >>confdefs.h <<\_ACEOF
|
---|
[562] | 5129 | #define STDC_HEADERS 1
|
---|
[8756] | 5130 | _ACEOF
|
---|
[562] | 5131 |
|
---|
| 5132 | fi
|
---|
| 5133 |
|
---|
[8756] | 5134 |
|
---|
| 5135 |
|
---|
| 5136 |
|
---|
| 5137 |
|
---|
| 5138 |
|
---|
| 5139 |
|
---|
| 5140 |
|
---|
| 5141 |
|
---|
| 5142 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h
|
---|
[562] | 5143 | do
|
---|
[8756] | 5144 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5145 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5146 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5147 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5148 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5149 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5150 | fi
|
---|
| 5151 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5152 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
[562] | 5153 | else
|
---|
[8756] | 5154 | # Is the header compilable?
|
---|
| 5155 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5156 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
| 5157 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5158 | /* confdefs.h. */
|
---|
| 5159 | _ACEOF
|
---|
| 5160 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5161 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5162 | /* end confdefs.h. */
|
---|
| 5163 | $ac_includes_default
|
---|
| 5164 | #include <$ac_header>
|
---|
| 5165 | _ACEOF
|
---|
| 5166 | rm -f conftest.$ac_objext
|
---|
| 5167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5168 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5169 | ac_status=$?
|
---|
| 5170 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5171 | rm -f conftest.er1
|
---|
| 5172 | cat conftest.err >&5
|
---|
| 5173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5174 | (exit $ac_status); } &&
|
---|
| 5175 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5176 | || test ! -s conftest.err'
|
---|
| 5177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5178 | (eval $ac_try) 2>&5
|
---|
| 5179 | ac_status=$?
|
---|
| 5180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5181 | (exit $ac_status); }; } &&
|
---|
| 5182 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5184 | (eval $ac_try) 2>&5
|
---|
| 5185 | ac_status=$?
|
---|
| 5186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5187 | (exit $ac_status); }; }; then
|
---|
| 5188 | ac_header_compiler=yes
|
---|
[562] | 5189 | else
|
---|
[8756] | 5190 | echo "$as_me: failed program was:" >&5
|
---|
| 5191 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5192 |
|
---|
| 5193 | ac_header_compiler=no
|
---|
[562] | 5194 | fi
|
---|
[8756] | 5195 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5196 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 5197 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 5198 |
|
---|
| 5199 | # Is the header present?
|
---|
| 5200 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 5201 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
| 5202 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5203 | /* confdefs.h. */
|
---|
| 5204 | _ACEOF
|
---|
| 5205 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5206 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5207 | /* end confdefs.h. */
|
---|
| 5208 | #include <$ac_header>
|
---|
| 5209 | _ACEOF
|
---|
| 5210 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 5211 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 5212 | ac_status=$?
|
---|
| 5213 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5214 | rm -f conftest.er1
|
---|
| 5215 | cat conftest.err >&5
|
---|
| 5216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5217 | (exit $ac_status); } >/dev/null; then
|
---|
| 5218 | if test -s conftest.err; then
|
---|
| 5219 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 5220 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 5221 | else
|
---|
| 5222 | ac_cpp_err=
|
---|
| 5223 | fi
|
---|
| 5224 | else
|
---|
| 5225 | ac_cpp_err=yes
|
---|
[562] | 5226 | fi
|
---|
[8756] | 5227 | if test -z "$ac_cpp_err"; then
|
---|
| 5228 | ac_header_preproc=yes
|
---|
[8200] | 5229 | else
|
---|
[8756] | 5230 | echo "$as_me: failed program was:" >&5
|
---|
| 5231 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5232 |
|
---|
| 5233 | ac_header_preproc=no
|
---|
[562] | 5234 | fi
|
---|
[8756] | 5235 | rm -f conftest.err conftest.$ac_ext
|
---|
| 5236 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 5237 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 5238 |
|
---|
| 5239 | # So? What about this header?
|
---|
| 5240 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 5241 | yes:no: )
|
---|
| 5242 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 5243 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 5244 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 5245 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 5246 | ac_header_preproc=yes
|
---|
| 5247 | ;;
|
---|
| 5248 | no:yes:* )
|
---|
| 5249 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 5250 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 5251 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 5252 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 5253 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 5254 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 5255 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 5256 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 5257 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 5258 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 5259 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 5260 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
| 5261 | (
|
---|
| 5262 | cat <<\_ASBOX
|
---|
| 5263 | ## ------------------------------------------ ##
|
---|
| 5264 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 5265 | ## ------------------------------------------ ##
|
---|
| 5266 | _ASBOX
|
---|
| 5267 | ) |
|
---|
| 5268 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 5269 | ;;
|
---|
| 5270 | esac
|
---|
| 5271 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5272 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5273 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5274 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5275 | else
|
---|
| 5276 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
| 5277 | fi
|
---|
| 5278 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5279 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 5280 |
|
---|
| 5281 | fi
|
---|
| 5282 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 5283 | cat >>confdefs.h <<_ACEOF
|
---|
| 5284 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 5285 | _ACEOF
|
---|
| 5286 |
|
---|
| 5287 | fi
|
---|
| 5288 |
|
---|
[562] | 5289 | done
|
---|
| 5290 |
|
---|
[8756] | 5291 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5292 | /* confdefs.h. */
|
---|
| 5293 | _ACEOF
|
---|
| 5294 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5295 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5296 | /* end confdefs.h. */
|
---|
[687] | 5297 | #include <stdio.h>
|
---|
[8756] | 5298 |
|
---|
| 5299 | _ACEOF
|
---|
[687] | 5300 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5301 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 5302 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5303 | #define HAVE_FREAD_DECL 1
|
---|
[8756] | 5304 | _ACEOF
|
---|
[562] | 5305 |
|
---|
[687] | 5306 | fi
|
---|
| 5307 | rm -f conftest*
|
---|
| 5308 |
|
---|
[8756] | 5309 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5310 | /* confdefs.h. */
|
---|
| 5311 | _ACEOF
|
---|
| 5312 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5313 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5314 | /* end confdefs.h. */
|
---|
[687] | 5315 | #include <stdio.h>
|
---|
[8756] | 5316 |
|
---|
| 5317 | _ACEOF
|
---|
[687] | 5318 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5319 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 5320 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5321 | #define HAVE_FGETC_DECL 1
|
---|
[8756] | 5322 | _ACEOF
|
---|
[687] | 5323 |
|
---|
| 5324 | fi
|
---|
| 5325 | rm -f conftest*
|
---|
| 5326 |
|
---|
[8756] | 5327 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5328 | /* confdefs.h. */
|
---|
| 5329 | _ACEOF
|
---|
| 5330 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5331 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5332 | /* end confdefs.h. */
|
---|
[687] | 5333 | #include <sys/procfs.h>
|
---|
[8756] | 5334 |
|
---|
| 5335 | _ACEOF
|
---|
[687] | 5336 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5337 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 5338 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5339 | #define HAVE_PR_BRKSIZE 1
|
---|
[8756] | 5340 | _ACEOF
|
---|
[687] | 5341 |
|
---|
| 5342 | fi
|
---|
| 5343 | rm -f conftest*
|
---|
| 5344 |
|
---|
[8200] | 5345 |
|
---|
[687] | 5346 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 5347 | # for constant arguments. Useless!
|
---|
[8756] | 5348 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
| 5349 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
| 5350 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 5351 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5352 | else
|
---|
[8756] | 5353 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5354 | /* confdefs.h. */
|
---|
| 5355 | _ACEOF
|
---|
| 5356 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5357 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5358 | /* end confdefs.h. */
|
---|
[687] | 5359 | #include <alloca.h>
|
---|
[8756] | 5360 | int
|
---|
| 5361 | main ()
|
---|
| 5362 | {
|
---|
| 5363 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 5364 | ;
|
---|
| 5365 | return 0;
|
---|
| 5366 | }
|
---|
| 5367 | _ACEOF
|
---|
| 5368 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5369 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5370 | (eval $ac_link) 2>conftest.er1
|
---|
| 5371 | ac_status=$?
|
---|
| 5372 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5373 | rm -f conftest.er1
|
---|
| 5374 | cat conftest.err >&5
|
---|
| 5375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5376 | (exit $ac_status); } &&
|
---|
| 5377 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5378 | || test ! -s conftest.err'
|
---|
| 5379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5380 | (eval $ac_try) 2>&5
|
---|
| 5381 | ac_status=$?
|
---|
| 5382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5383 | (exit $ac_status); }; } &&
|
---|
| 5384 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5386 | (eval $ac_try) 2>&5
|
---|
| 5387 | ac_status=$?
|
---|
| 5388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5389 | (exit $ac_status); }; }; then
|
---|
| 5390 | ac_cv_working_alloca_h=yes
|
---|
[562] | 5391 | else
|
---|
[8756] | 5392 | echo "$as_me: failed program was:" >&5
|
---|
| 5393 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5394 |
|
---|
| 5395 | ac_cv_working_alloca_h=no
|
---|
[562] | 5396 | fi
|
---|
[8756] | 5397 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5398 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5399 | fi
|
---|
[8756] | 5400 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
| 5401 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
| 5402 | if test $ac_cv_working_alloca_h = yes; then
|
---|
[562] | 5403 |
|
---|
[8756] | 5404 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5405 | #define HAVE_ALLOCA_H 1
|
---|
[8756] | 5406 | _ACEOF
|
---|
[562] | 5407 |
|
---|
| 5408 | fi
|
---|
| 5409 |
|
---|
[8756] | 5410 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
| 5411 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
| 5412 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 5413 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5414 | else
|
---|
[8756] | 5415 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5416 | /* confdefs.h. */
|
---|
| 5417 | _ACEOF
|
---|
| 5418 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5419 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5420 | /* end confdefs.h. */
|
---|
[687] | 5421 | #ifdef __GNUC__
|
---|
| 5422 | # define alloca __builtin_alloca
|
---|
| 5423 | #else
|
---|
| 5424 | # ifdef _MSC_VER
|
---|
| 5425 | # include <malloc.h>
|
---|
| 5426 | # define alloca _alloca
|
---|
| 5427 | # else
|
---|
| 5428 | # if HAVE_ALLOCA_H
|
---|
| 5429 | # include <alloca.h>
|
---|
| 5430 | # else
|
---|
| 5431 | # ifdef _AIX
|
---|
| 5432 | #pragma alloca
|
---|
| 5433 | # else
|
---|
| 5434 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 5435 | char *alloca ();
|
---|
| 5436 | # endif
|
---|
| 5437 | # endif
|
---|
| 5438 | # endif
|
---|
| 5439 | # endif
|
---|
| 5440 | #endif
|
---|
| 5441 |
|
---|
[8756] | 5442 | int
|
---|
| 5443 | main ()
|
---|
| 5444 | {
|
---|
| 5445 | char *p = (char *) alloca (1);
|
---|
| 5446 | ;
|
---|
| 5447 | return 0;
|
---|
| 5448 | }
|
---|
| 5449 | _ACEOF
|
---|
| 5450 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5451 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5452 | (eval $ac_link) 2>conftest.er1
|
---|
| 5453 | ac_status=$?
|
---|
| 5454 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5455 | rm -f conftest.er1
|
---|
| 5456 | cat conftest.err >&5
|
---|
| 5457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5458 | (exit $ac_status); } &&
|
---|
| 5459 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5460 | || test ! -s conftest.err'
|
---|
| 5461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5462 | (eval $ac_try) 2>&5
|
---|
| 5463 | ac_status=$?
|
---|
| 5464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5465 | (exit $ac_status); }; } &&
|
---|
| 5466 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5468 | (eval $ac_try) 2>&5
|
---|
| 5469 | ac_status=$?
|
---|
| 5470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5471 | (exit $ac_status); }; }; then
|
---|
[687] | 5472 | ac_cv_func_alloca_works=yes
|
---|
[562] | 5473 | else
|
---|
[8756] | 5474 | echo "$as_me: failed program was:" >&5
|
---|
| 5475 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5476 |
|
---|
| 5477 | ac_cv_func_alloca_works=no
|
---|
[562] | 5478 | fi
|
---|
[8756] | 5479 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5480 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5481 | fi
|
---|
[8756] | 5482 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
| 5483 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
[562] | 5484 |
|
---|
[687] | 5485 | if test $ac_cv_func_alloca_works = yes; then
|
---|
[8756] | 5486 |
|
---|
| 5487 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5488 | #define HAVE_ALLOCA 1
|
---|
[8756] | 5489 | _ACEOF
|
---|
[562] | 5490 |
|
---|
[8756] | 5491 | else
|
---|
| 5492 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 5493 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 5494 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 5495 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
[8200] | 5496 |
|
---|
[8756] | 5497 | ALLOCA=alloca.$ac_objext
|
---|
| 5498 |
|
---|
| 5499 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 5500 | #define C_ALLOCA 1
|
---|
[8756] | 5501 | _ACEOF
|
---|
[562] | 5502 |
|
---|
[8200] | 5503 |
|
---|
[8756] | 5504 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
| 5505 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
| 5506 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 5507 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5508 | else
|
---|
[8756] | 5509 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5510 | /* confdefs.h. */
|
---|
| 5511 | _ACEOF
|
---|
| 5512 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5513 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5514 | /* end confdefs.h. */
|
---|
[687] | 5515 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
| 5516 | webecray
|
---|
| 5517 | #else
|
---|
| 5518 | wenotbecray
|
---|
| 5519 | #endif
|
---|
[562] | 5520 |
|
---|
[8756] | 5521 | _ACEOF
|
---|
[687] | 5522 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5523 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
[687] | 5524 | ac_cv_os_cray=yes
|
---|
| 5525 | else
|
---|
| 5526 | ac_cv_os_cray=no
|
---|
| 5527 | fi
|
---|
| 5528 | rm -f conftest*
|
---|
[562] | 5529 |
|
---|
[687] | 5530 | fi
|
---|
[8756] | 5531 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
| 5532 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
[687] | 5533 | if test $ac_cv_os_cray = yes; then
|
---|
[8756] | 5534 | for ac_func in _getb67 GETB67 getb67; do
|
---|
| 5535 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5536 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5537 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5538 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 5539 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5540 | else
|
---|
[8756] | 5541 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5542 | /* confdefs.h. */
|
---|
| 5543 | _ACEOF
|
---|
| 5544 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5545 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5546 | /* end confdefs.h. */
|
---|
| 5547 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5548 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5549 | #define $ac_func innocuous_$ac_func
|
---|
| 5550 |
|
---|
[687] | 5551 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 5552 | which can conflict with char $ac_func (); below.
|
---|
| 5553 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5554 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5555 |
|
---|
| 5556 | #ifdef __STDC__
|
---|
| 5557 | # include <limits.h>
|
---|
| 5558 | #else
|
---|
| 5559 | # include <assert.h>
|
---|
| 5560 | #endif
|
---|
| 5561 |
|
---|
| 5562 | #undef $ac_func
|
---|
| 5563 |
|
---|
[687] | 5564 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 5565 | #ifdef __cplusplus
|
---|
| 5566 | extern "C"
|
---|
| 5567 | {
|
---|
| 5568 | #endif
|
---|
[687] | 5569 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 5570 | builtin and then its argument prototype would still apply. */
|
---|
| 5571 | char $ac_func ();
|
---|
[687] | 5572 | /* The GNU C library defines this for functions which it implements
|
---|
| 5573 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5574 | something starting with __ and the normal name is an alias. */
|
---|
| 5575 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 5576 | choke me
|
---|
| 5577 | #else
|
---|
[8756] | 5578 | char (*f) () = $ac_func;
|
---|
[687] | 5579 | #endif
|
---|
[8756] | 5580 | #ifdef __cplusplus
|
---|
| 5581 | }
|
---|
| 5582 | #endif
|
---|
[687] | 5583 |
|
---|
[8756] | 5584 | int
|
---|
| 5585 | main ()
|
---|
| 5586 | {
|
---|
| 5587 | return f != $ac_func;
|
---|
| 5588 | ;
|
---|
| 5589 | return 0;
|
---|
| 5590 | }
|
---|
| 5591 | _ACEOF
|
---|
| 5592 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5593 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5594 | (eval $ac_link) 2>conftest.er1
|
---|
| 5595 | ac_status=$?
|
---|
| 5596 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5597 | rm -f conftest.er1
|
---|
| 5598 | cat conftest.err >&5
|
---|
| 5599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5600 | (exit $ac_status); } &&
|
---|
| 5601 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5602 | || test ! -s conftest.err'
|
---|
| 5603 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5604 | (eval $ac_try) 2>&5
|
---|
| 5605 | ac_status=$?
|
---|
| 5606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5607 | (exit $ac_status); }; } &&
|
---|
| 5608 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5610 | (eval $ac_try) 2>&5
|
---|
| 5611 | ac_status=$?
|
---|
| 5612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5613 | (exit $ac_status); }; }; then
|
---|
| 5614 | eval "$as_ac_var=yes"
|
---|
[562] | 5615 | else
|
---|
[8756] | 5616 | echo "$as_me: failed program was:" >&5
|
---|
| 5617 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5618 |
|
---|
| 5619 | eval "$as_ac_var=no"
|
---|
[562] | 5620 | fi
|
---|
[8756] | 5621 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5622 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 5623 | fi
|
---|
[8756] | 5624 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5625 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5626 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[562] | 5627 |
|
---|
[8756] | 5628 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5629 | #define CRAY_STACKSEG_END $ac_func
|
---|
[8756] | 5630 | _ACEOF
|
---|
[562] | 5631 |
|
---|
[8756] | 5632 | break
|
---|
[687] | 5633 | fi
|
---|
[562] | 5634 |
|
---|
[8756] | 5635 | done
|
---|
[687] | 5636 | fi
|
---|
| 5637 |
|
---|
[8756] | 5638 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
| 5639 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
| 5640 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 5641 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5642 | else
|
---|
| 5643 | if test "$cross_compiling" = yes; then
|
---|
| 5644 | ac_cv_c_stack_direction=0
|
---|
| 5645 | else
|
---|
[8756] | 5646 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5647 | /* confdefs.h. */
|
---|
| 5648 | _ACEOF
|
---|
| 5649 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5650 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5651 | /* end confdefs.h. */
|
---|
| 5652 | int
|
---|
[687] | 5653 | find_stack_direction ()
|
---|
| 5654 | {
|
---|
| 5655 | static char *addr = 0;
|
---|
| 5656 | auto char dummy;
|
---|
| 5657 | if (addr == 0)
|
---|
| 5658 | {
|
---|
| 5659 | addr = &dummy;
|
---|
| 5660 | return find_stack_direction ();
|
---|
| 5661 | }
|
---|
| 5662 | else
|
---|
| 5663 | return (&dummy > addr) ? 1 : -1;
|
---|
| 5664 | }
|
---|
[8756] | 5665 |
|
---|
| 5666 | int
|
---|
[687] | 5667 | main ()
|
---|
| 5668 | {
|
---|
[8756] | 5669 | exit (find_stack_direction () < 0);
|
---|
[687] | 5670 | }
|
---|
[8756] | 5671 | _ACEOF
|
---|
| 5672 | rm -f conftest$ac_exeext
|
---|
| 5673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5674 | (eval $ac_link) 2>&5
|
---|
| 5675 | ac_status=$?
|
---|
| 5676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5677 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 5678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5679 | (eval $ac_try) 2>&5
|
---|
| 5680 | ac_status=$?
|
---|
| 5681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5682 | (exit $ac_status); }; }; then
|
---|
[687] | 5683 | ac_cv_c_stack_direction=1
|
---|
[562] | 5684 | else
|
---|
[8756] | 5685 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5686 | echo "$as_me: failed program was:" >&5
|
---|
| 5687 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5688 |
|
---|
| 5689 | ( exit $ac_status )
|
---|
| 5690 | ac_cv_c_stack_direction=-1
|
---|
[562] | 5691 | fi
|
---|
[8756] | 5692 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 5693 | fi
|
---|
| 5694 | fi
|
---|
[8756] | 5695 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
| 5696 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
[687] | 5697 |
|
---|
[8756] | 5698 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5699 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
[8756] | 5700 | _ACEOF
|
---|
[687] | 5701 |
|
---|
[8756] | 5702 |
|
---|
[687] | 5703 | fi
|
---|
| 5704 |
|
---|
[8756] | 5705 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
| 5706 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
| 5707 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
| 5708 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 5709 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5710 | else
|
---|
| 5711 | ac_pattern="Autoconf.*'x'"
|
---|
[8756] | 5712 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5713 | /* confdefs.h. */
|
---|
| 5714 | _ACEOF
|
---|
| 5715 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5716 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5717 | /* end confdefs.h. */
|
---|
[687] | 5718 | #include <sgtty.h>
|
---|
| 5719 | Autoconf TIOCGETP
|
---|
[8756] | 5720 | _ACEOF
|
---|
[687] | 5721 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5722 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[687] | 5723 | ac_cv_prog_gcc_traditional=yes
|
---|
| 5724 | else
|
---|
| 5725 | ac_cv_prog_gcc_traditional=no
|
---|
| 5726 | fi
|
---|
[562] | 5727 | rm -f conftest*
|
---|
[687] | 5728 |
|
---|
[8200] | 5729 |
|
---|
[687] | 5730 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[8756] | 5731 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5732 | /* confdefs.h. */
|
---|
| 5733 | _ACEOF
|
---|
| 5734 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5735 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5736 | /* end confdefs.h. */
|
---|
[687] | 5737 | #include <termio.h>
|
---|
| 5738 | Autoconf TCGETA
|
---|
[8756] | 5739 | _ACEOF
|
---|
[687] | 5740 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[8756] | 5741 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[687] | 5742 | ac_cv_prog_gcc_traditional=yes
|
---|
[562] | 5743 | fi
|
---|
[687] | 5744 | rm -f conftest*
|
---|
[562] | 5745 |
|
---|
[687] | 5746 | fi
|
---|
| 5747 | fi
|
---|
[8756] | 5748 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
| 5749 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
[687] | 5750 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 5751 | CC="$CC -traditional"
|
---|
| 5752 | fi
|
---|
| 5753 | fi
|
---|
| 5754 |
|
---|
[8756] | 5755 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
| 5756 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
| 5757 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 5758 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 5759 | else
|
---|
[8756] | 5760 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5761 | /* confdefs.h. */
|
---|
| 5762 | _ACEOF
|
---|
| 5763 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5764 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5765 | /* end confdefs.h. */
|
---|
[687] | 5766 | #include <sys/types.h>
|
---|
| 5767 | #include <signal.h>
|
---|
| 5768 | #ifdef signal
|
---|
[8756] | 5769 | # undef signal
|
---|
[687] | 5770 | #endif
|
---|
| 5771 | #ifdef __cplusplus
|
---|
| 5772 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 5773 | #else
|
---|
| 5774 | void (*signal ()) ();
|
---|
| 5775 | #endif
|
---|
[562] | 5776 |
|
---|
[8756] | 5777 | int
|
---|
| 5778 | main ()
|
---|
| 5779 | {
|
---|
[687] | 5780 | int i;
|
---|
[8756] | 5781 | ;
|
---|
| 5782 | return 0;
|
---|
| 5783 | }
|
---|
| 5784 | _ACEOF
|
---|
| 5785 | rm -f conftest.$ac_objext
|
---|
| 5786 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5787 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5788 | ac_status=$?
|
---|
| 5789 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5790 | rm -f conftest.er1
|
---|
| 5791 | cat conftest.err >&5
|
---|
| 5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5793 | (exit $ac_status); } &&
|
---|
| 5794 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5795 | || test ! -s conftest.err'
|
---|
| 5796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5797 | (eval $ac_try) 2>&5
|
---|
| 5798 | ac_status=$?
|
---|
| 5799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5800 | (exit $ac_status); }; } &&
|
---|
| 5801 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5803 | (eval $ac_try) 2>&5
|
---|
| 5804 | ac_status=$?
|
---|
| 5805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5806 | (exit $ac_status); }; }; then
|
---|
[687] | 5807 | ac_cv_type_signal=void
|
---|
[562] | 5808 | else
|
---|
[8756] | 5809 | echo "$as_me: failed program was:" >&5
|
---|
| 5810 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5811 |
|
---|
| 5812 | ac_cv_type_signal=int
|
---|
[562] | 5813 | fi
|
---|
[8756] | 5814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[562] | 5815 | fi
|
---|
[8756] | 5816 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
| 5817 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
[562] | 5818 |
|
---|
[8756] | 5819 | cat >>confdefs.h <<_ACEOF
|
---|
[687] | 5820 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
[8756] | 5821 | _ACEOF
|
---|
[562] | 5822 |
|
---|
[8200] | 5823 |
|
---|
[8756] | 5824 |
|
---|
| 5825 | for ac_func in vprintf
|
---|
| 5826 | do
|
---|
| 5827 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 5828 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 5829 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 5830 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 5831 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5832 | else
|
---|
[8756] | 5833 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5834 | /* confdefs.h. */
|
---|
| 5835 | _ACEOF
|
---|
| 5836 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5837 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5838 | /* end confdefs.h. */
|
---|
| 5839 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 5840 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5841 | #define $ac_func innocuous_$ac_func
|
---|
| 5842 |
|
---|
[562] | 5843 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 5844 | which can conflict with char $ac_func (); below.
|
---|
| 5845 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5846 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5847 |
|
---|
| 5848 | #ifdef __STDC__
|
---|
| 5849 | # include <limits.h>
|
---|
| 5850 | #else
|
---|
| 5851 | # include <assert.h>
|
---|
| 5852 | #endif
|
---|
| 5853 |
|
---|
| 5854 | #undef $ac_func
|
---|
| 5855 |
|
---|
[562] | 5856 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 5857 | #ifdef __cplusplus
|
---|
| 5858 | extern "C"
|
---|
| 5859 | {
|
---|
| 5860 | #endif
|
---|
[562] | 5861 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 5862 | builtin and then its argument prototype would still apply. */
|
---|
| 5863 | char $ac_func ();
|
---|
[562] | 5864 | /* The GNU C library defines this for functions which it implements
|
---|
| 5865 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5866 | something starting with __ and the normal name is an alias. */
|
---|
[8756] | 5867 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
[562] | 5868 | choke me
|
---|
| 5869 | #else
|
---|
[8756] | 5870 | char (*f) () = $ac_func;
|
---|
[562] | 5871 | #endif
|
---|
[8756] | 5872 | #ifdef __cplusplus
|
---|
| 5873 | }
|
---|
| 5874 | #endif
|
---|
[562] | 5875 |
|
---|
[8756] | 5876 | int
|
---|
| 5877 | main ()
|
---|
| 5878 | {
|
---|
| 5879 | return f != $ac_func;
|
---|
| 5880 | ;
|
---|
| 5881 | return 0;
|
---|
| 5882 | }
|
---|
| 5883 | _ACEOF
|
---|
| 5884 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5886 | (eval $ac_link) 2>conftest.er1
|
---|
| 5887 | ac_status=$?
|
---|
| 5888 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5889 | rm -f conftest.er1
|
---|
| 5890 | cat conftest.err >&5
|
---|
| 5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5892 | (exit $ac_status); } &&
|
---|
| 5893 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5894 | || test ! -s conftest.err'
|
---|
| 5895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5896 | (eval $ac_try) 2>&5
|
---|
| 5897 | ac_status=$?
|
---|
| 5898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5899 | (exit $ac_status); }; } &&
|
---|
| 5900 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5901 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5902 | (eval $ac_try) 2>&5
|
---|
| 5903 | ac_status=$?
|
---|
| 5904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5905 | (exit $ac_status); }; }; then
|
---|
| 5906 | eval "$as_ac_var=yes"
|
---|
[562] | 5907 | else
|
---|
[8756] | 5908 | echo "$as_me: failed program was:" >&5
|
---|
| 5909 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5910 |
|
---|
| 5911 | eval "$as_ac_var=no"
|
---|
[562] | 5912 | fi
|
---|
[8756] | 5913 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5914 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 5915 | fi
|
---|
[8756] | 5916 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 5917 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 5918 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 5919 | cat >>confdefs.h <<_ACEOF
|
---|
| 5920 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 5921 | _ACEOF
|
---|
[8200] | 5922 |
|
---|
[8756] | 5923 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
| 5924 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
| 5925 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 5926 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[562] | 5927 | else
|
---|
[8756] | 5928 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5929 | /* confdefs.h. */
|
---|
| 5930 | _ACEOF
|
---|
| 5931 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5932 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5933 | /* end confdefs.h. */
|
---|
| 5934 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 5935 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 5936 | #define _doprnt innocuous__doprnt
|
---|
[8200] | 5937 |
|
---|
[562] | 5938 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 5939 | which can conflict with char _doprnt (); below.
|
---|
| 5940 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 5941 | <limits.h> exists even on freestanding compilers. */
|
---|
| 5942 |
|
---|
| 5943 | #ifdef __STDC__
|
---|
| 5944 | # include <limits.h>
|
---|
| 5945 | #else
|
---|
| 5946 | # include <assert.h>
|
---|
| 5947 | #endif
|
---|
| 5948 |
|
---|
| 5949 | #undef _doprnt
|
---|
| 5950 |
|
---|
[562] | 5951 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 5952 | #ifdef __cplusplus
|
---|
| 5953 | extern "C"
|
---|
| 5954 | {
|
---|
| 5955 | #endif
|
---|
[562] | 5956 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 5957 | builtin and then its argument prototype would still apply. */
|
---|
| 5958 | char _doprnt ();
|
---|
[562] | 5959 | /* The GNU C library defines this for functions which it implements
|
---|
| 5960 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 5961 | something starting with __ and the normal name is an alias. */
|
---|
| 5962 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
| 5963 | choke me
|
---|
| 5964 | #else
|
---|
[8756] | 5965 | char (*f) () = _doprnt;
|
---|
[562] | 5966 | #endif
|
---|
[8756] | 5967 | #ifdef __cplusplus
|
---|
| 5968 | }
|
---|
| 5969 | #endif
|
---|
[562] | 5970 |
|
---|
[8756] | 5971 | int
|
---|
| 5972 | main ()
|
---|
| 5973 | {
|
---|
| 5974 | return f != _doprnt;
|
---|
| 5975 | ;
|
---|
| 5976 | return 0;
|
---|
| 5977 | }
|
---|
| 5978 | _ACEOF
|
---|
| 5979 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5980 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5981 | (eval $ac_link) 2>conftest.er1
|
---|
| 5982 | ac_status=$?
|
---|
| 5983 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5984 | rm -f conftest.er1
|
---|
| 5985 | cat conftest.err >&5
|
---|
| 5986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5987 | (exit $ac_status); } &&
|
---|
| 5988 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5989 | || test ! -s conftest.err'
|
---|
| 5990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5991 | (eval $ac_try) 2>&5
|
---|
| 5992 | ac_status=$?
|
---|
| 5993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5994 | (exit $ac_status); }; } &&
|
---|
| 5995 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5997 | (eval $ac_try) 2>&5
|
---|
| 5998 | ac_status=$?
|
---|
| 5999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6000 | (exit $ac_status); }; }; then
|
---|
| 6001 | ac_cv_func__doprnt=yes
|
---|
[562] | 6002 | else
|
---|
[8756] | 6003 | echo "$as_me: failed program was:" >&5
|
---|
| 6004 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6005 |
|
---|
| 6006 | ac_cv_func__doprnt=no
|
---|
[562] | 6007 | fi
|
---|
[8756] | 6008 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6009 | conftest$ac_exeext conftest.$ac_ext
|
---|
[562] | 6010 | fi
|
---|
[8756] | 6011 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
| 6012 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
| 6013 | if test $ac_cv_func__doprnt = yes; then
|
---|
[562] | 6014 |
|
---|
[8756] | 6015 | cat >>confdefs.h <<\_ACEOF
|
---|
[562] | 6016 | #define HAVE_DOPRNT 1
|
---|
[8756] | 6017 | _ACEOF
|
---|
[562] | 6018 |
|
---|
| 6019 | fi
|
---|
| 6020 |
|
---|
| 6021 | fi
|
---|
[8756] | 6022 | done
|
---|
[562] | 6023 |
|
---|
[8756] | 6024 |
|
---|
| 6025 |
|
---|
| 6026 |
|
---|
| 6027 |
|
---|
| 6028 |
|
---|
| 6029 |
|
---|
| 6030 |
|
---|
| 6031 |
|
---|
| 6032 |
|
---|
| 6033 |
|
---|
| 6034 |
|
---|
[788] | 6035 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
[687] | 6036 | do
|
---|
[8756] | 6037 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6038 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6039 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6040 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6041 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6042 | else
|
---|
[8756] | 6043 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6044 | /* confdefs.h. */
|
---|
| 6045 | _ACEOF
|
---|
| 6046 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6047 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6048 | /* end confdefs.h. */
|
---|
| 6049 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6050 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6051 | #define $ac_func innocuous_$ac_func
|
---|
| 6052 |
|
---|
[687] | 6053 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6054 | which can conflict with char $ac_func (); below.
|
---|
| 6055 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6056 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6057 |
|
---|
| 6058 | #ifdef __STDC__
|
---|
| 6059 | # include <limits.h>
|
---|
| 6060 | #else
|
---|
| 6061 | # include <assert.h>
|
---|
| 6062 | #endif
|
---|
| 6063 |
|
---|
| 6064 | #undef $ac_func
|
---|
| 6065 |
|
---|
[687] | 6066 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6067 | #ifdef __cplusplus
|
---|
| 6068 | extern "C"
|
---|
| 6069 | {
|
---|
| 6070 | #endif
|
---|
[687] | 6071 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6072 | builtin and then its argument prototype would still apply. */
|
---|
| 6073 | char $ac_func ();
|
---|
[687] | 6074 | /* The GNU C library defines this for functions which it implements
|
---|
| 6075 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6076 | something starting with __ and the normal name is an alias. */
|
---|
| 6077 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6078 | choke me
|
---|
| 6079 | #else
|
---|
[8756] | 6080 | char (*f) () = $ac_func;
|
---|
[687] | 6081 | #endif
|
---|
[8756] | 6082 | #ifdef __cplusplus
|
---|
| 6083 | }
|
---|
| 6084 | #endif
|
---|
[687] | 6085 |
|
---|
[8756] | 6086 | int
|
---|
| 6087 | main ()
|
---|
| 6088 | {
|
---|
| 6089 | return f != $ac_func;
|
---|
| 6090 | ;
|
---|
| 6091 | return 0;
|
---|
| 6092 | }
|
---|
| 6093 | _ACEOF
|
---|
| 6094 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6095 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6096 | (eval $ac_link) 2>conftest.er1
|
---|
| 6097 | ac_status=$?
|
---|
| 6098 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6099 | rm -f conftest.er1
|
---|
| 6100 | cat conftest.err >&5
|
---|
| 6101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6102 | (exit $ac_status); } &&
|
---|
| 6103 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6104 | || test ! -s conftest.err'
|
---|
| 6105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6106 | (eval $ac_try) 2>&5
|
---|
| 6107 | ac_status=$?
|
---|
| 6108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6109 | (exit $ac_status); }; } &&
|
---|
| 6110 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6112 | (eval $ac_try) 2>&5
|
---|
| 6113 | ac_status=$?
|
---|
| 6114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6115 | (exit $ac_status); }; }; then
|
---|
| 6116 | eval "$as_ac_var=yes"
|
---|
[687] | 6117 | else
|
---|
[8756] | 6118 | echo "$as_me: failed program was:" >&5
|
---|
| 6119 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6120 |
|
---|
| 6121 | eval "$as_ac_var=no"
|
---|
[687] | 6122 | fi
|
---|
[8756] | 6123 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6124 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 6125 | fi
|
---|
[8756] | 6126 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6127 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6128 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6129 | cat >>confdefs.h <<_ACEOF
|
---|
| 6130 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6131 | _ACEOF
|
---|
[8200] | 6132 |
|
---|
[687] | 6133 | fi
|
---|
| 6134 | done
|
---|
| 6135 |
|
---|
[8756] | 6136 |
|
---|
| 6137 |
|
---|
| 6138 |
|
---|
[687] | 6139 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6140 | do
|
---|
[8756] | 6141 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6142 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6143 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6144 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6145 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6146 | else
|
---|
[8756] | 6147 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6148 | /* confdefs.h. */
|
---|
| 6149 | _ACEOF
|
---|
| 6150 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6151 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6152 | /* end confdefs.h. */
|
---|
| 6153 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6154 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6155 | #define $ac_func innocuous_$ac_func
|
---|
| 6156 |
|
---|
[687] | 6157 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6158 | which can conflict with char $ac_func (); below.
|
---|
| 6159 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6160 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6161 |
|
---|
| 6162 | #ifdef __STDC__
|
---|
| 6163 | # include <limits.h>
|
---|
| 6164 | #else
|
---|
| 6165 | # include <assert.h>
|
---|
| 6166 | #endif
|
---|
| 6167 |
|
---|
| 6168 | #undef $ac_func
|
---|
| 6169 |
|
---|
[687] | 6170 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6171 | #ifdef __cplusplus
|
---|
| 6172 | extern "C"
|
---|
| 6173 | {
|
---|
| 6174 | #endif
|
---|
[687] | 6175 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6176 | builtin and then its argument prototype would still apply. */
|
---|
| 6177 | char $ac_func ();
|
---|
[687] | 6178 | /* The GNU C library defines this for functions which it implements
|
---|
| 6179 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6180 | something starting with __ and the normal name is an alias. */
|
---|
| 6181 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6182 | choke me
|
---|
| 6183 | #else
|
---|
[8756] | 6184 | char (*f) () = $ac_func;
|
---|
[687] | 6185 | #endif
|
---|
[8756] | 6186 | #ifdef __cplusplus
|
---|
| 6187 | }
|
---|
| 6188 | #endif
|
---|
[687] | 6189 |
|
---|
[8756] | 6190 | int
|
---|
| 6191 | main ()
|
---|
| 6192 | {
|
---|
| 6193 | return f != $ac_func;
|
---|
| 6194 | ;
|
---|
| 6195 | return 0;
|
---|
| 6196 | }
|
---|
| 6197 | _ACEOF
|
---|
| 6198 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6200 | (eval $ac_link) 2>conftest.er1
|
---|
| 6201 | ac_status=$?
|
---|
| 6202 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6203 | rm -f conftest.er1
|
---|
| 6204 | cat conftest.err >&5
|
---|
| 6205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6206 | (exit $ac_status); } &&
|
---|
| 6207 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6208 | || test ! -s conftest.err'
|
---|
| 6209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6210 | (eval $ac_try) 2>&5
|
---|
| 6211 | ac_status=$?
|
---|
| 6212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6213 | (exit $ac_status); }; } &&
|
---|
| 6214 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6216 | (eval $ac_try) 2>&5
|
---|
| 6217 | ac_status=$?
|
---|
| 6218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6219 | (exit $ac_status); }; }; then
|
---|
| 6220 | eval "$as_ac_var=yes"
|
---|
[687] | 6221 | else
|
---|
[8756] | 6222 | echo "$as_me: failed program was:" >&5
|
---|
| 6223 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6224 |
|
---|
| 6225 | eval "$as_ac_var=no"
|
---|
[687] | 6226 | fi
|
---|
[8756] | 6227 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6228 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 6229 | fi
|
---|
[8756] | 6230 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6231 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6232 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6233 | cat >>confdefs.h <<_ACEOF
|
---|
| 6234 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6235 | _ACEOF
|
---|
[8200] | 6236 |
|
---|
[687] | 6237 | else
|
---|
[8756] | 6238 | case $LIBOBJS in
|
---|
| 6239 | "$ac_func.$ac_objext" | \
|
---|
| 6240 | *" $ac_func.$ac_objext" | \
|
---|
| 6241 | "$ac_func.$ac_objext "* | \
|
---|
| 6242 | *" $ac_func.$ac_objext "* ) ;;
|
---|
| 6243 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
| 6244 | esac
|
---|
| 6245 |
|
---|
[687] | 6246 | fi
|
---|
| 6247 | done
|
---|
| 6248 |
|
---|
[8200] | 6249 |
|
---|
| 6250 |
|
---|
[8756] | 6251 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
| 6252 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
| 6253 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
| 6254 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[3705] | 6255 | else
|
---|
[8756] | 6256 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6257 | /* confdefs.h. */
|
---|
| 6258 | _ACEOF
|
---|
| 6259 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6260 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6261 | /* end confdefs.h. */
|
---|
| 6262 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 6263 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6264 | #define textdomain innocuous_textdomain
|
---|
| 6265 |
|
---|
[3705] | 6266 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6267 | which can conflict with char textdomain (); below.
|
---|
| 6268 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6269 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6270 |
|
---|
| 6271 | #ifdef __STDC__
|
---|
| 6272 | # include <limits.h>
|
---|
| 6273 | #else
|
---|
| 6274 | # include <assert.h>
|
---|
| 6275 | #endif
|
---|
| 6276 |
|
---|
| 6277 | #undef textdomain
|
---|
| 6278 |
|
---|
[3705] | 6279 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6280 | #ifdef __cplusplus
|
---|
| 6281 | extern "C"
|
---|
| 6282 | {
|
---|
| 6283 | #endif
|
---|
[3705] | 6284 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6285 | builtin and then its argument prototype would still apply. */
|
---|
| 6286 | char textdomain ();
|
---|
[3705] | 6287 | /* The GNU C library defines this for functions which it implements
|
---|
| 6288 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6289 | something starting with __ and the normal name is an alias. */
|
---|
[8202] | 6290 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
[3705] | 6291 | choke me
|
---|
| 6292 | #else
|
---|
[8756] | 6293 | char (*f) () = textdomain;
|
---|
[3705] | 6294 | #endif
|
---|
[8756] | 6295 | #ifdef __cplusplus
|
---|
| 6296 | }
|
---|
| 6297 | #endif
|
---|
[3705] | 6298 |
|
---|
[8756] | 6299 | int
|
---|
| 6300 | main ()
|
---|
| 6301 | {
|
---|
| 6302 | return f != textdomain;
|
---|
| 6303 | ;
|
---|
| 6304 | return 0;
|
---|
| 6305 | }
|
---|
| 6306 | _ACEOF
|
---|
| 6307 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6309 | (eval $ac_link) 2>conftest.er1
|
---|
| 6310 | ac_status=$?
|
---|
| 6311 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6312 | rm -f conftest.er1
|
---|
| 6313 | cat conftest.err >&5
|
---|
| 6314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6315 | (exit $ac_status); } &&
|
---|
| 6316 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6317 | || test ! -s conftest.err'
|
---|
| 6318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6319 | (eval $ac_try) 2>&5
|
---|
| 6320 | ac_status=$?
|
---|
| 6321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6322 | (exit $ac_status); }; } &&
|
---|
| 6323 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6325 | (eval $ac_try) 2>&5
|
---|
| 6326 | ac_status=$?
|
---|
| 6327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6328 | (exit $ac_status); }; }; then
|
---|
| 6329 | ac_cv_func_textdomain=yes
|
---|
[3705] | 6330 | else
|
---|
[8756] | 6331 | echo "$as_me: failed program was:" >&5
|
---|
| 6332 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6333 |
|
---|
| 6334 | ac_cv_func_textdomain=no
|
---|
[3705] | 6335 | fi
|
---|
[8756] | 6336 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6337 | conftest$ac_exeext conftest.$ac_ext
|
---|
[3705] | 6338 | fi
|
---|
[8756] | 6339 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
| 6340 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
| 6341 | if test $ac_cv_func_textdomain = yes; then
|
---|
| 6342 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6343 | #define ENABLE_NLS 1
|
---|
| 6344 | _ACEOF
|
---|
[8200] | 6345 |
|
---|
[3705] | 6346 | fi
|
---|
| 6347 |
|
---|
[8200] | 6348 |
|
---|
[687] | 6349 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 6350 | # ---------------------------------------------------------------------------
|
---|
[8756] | 6351 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
| 6352 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
[687] | 6353 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[8756] | 6354 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6355 | echo "${ECHO_T}yes" >&6
|
---|
| 6356 | case $LIBOBJS in
|
---|
| 6357 | "gmalloc.$ac_objext" | \
|
---|
| 6358 | *" gmalloc.$ac_objext" | \
|
---|
| 6359 | "gmalloc.$ac_objext "* | \
|
---|
| 6360 | *" gmalloc.$ac_objext "* ) ;;
|
---|
| 6361 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
| 6362 | esac
|
---|
| 6363 |
|
---|
| 6364 | cat >>confdefs.h <<\_ACEOF
|
---|
[687] | 6365 | #define HAVE_VALLOC 1
|
---|
[8756] | 6366 | _ACEOF
|
---|
[687] | 6367 |
|
---|
| 6368 | else
|
---|
[8756] | 6369 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6370 | echo "${ECHO_T}no" >&6
|
---|
| 6371 |
|
---|
| 6372 | for ac_func in valloc
|
---|
[687] | 6373 | do
|
---|
[8756] | 6374 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6375 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6376 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6377 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6378 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[687] | 6379 | else
|
---|
[8756] | 6380 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6381 | /* confdefs.h. */
|
---|
| 6382 | _ACEOF
|
---|
| 6383 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6384 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6385 | /* end confdefs.h. */
|
---|
| 6386 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6387 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6388 | #define $ac_func innocuous_$ac_func
|
---|
| 6389 |
|
---|
[687] | 6390 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6391 | which can conflict with char $ac_func (); below.
|
---|
| 6392 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6393 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6394 |
|
---|
| 6395 | #ifdef __STDC__
|
---|
| 6396 | # include <limits.h>
|
---|
| 6397 | #else
|
---|
| 6398 | # include <assert.h>
|
---|
| 6399 | #endif
|
---|
| 6400 |
|
---|
| 6401 | #undef $ac_func
|
---|
| 6402 |
|
---|
[687] | 6403 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6404 | #ifdef __cplusplus
|
---|
| 6405 | extern "C"
|
---|
| 6406 | {
|
---|
| 6407 | #endif
|
---|
[687] | 6408 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6409 | builtin and then its argument prototype would still apply. */
|
---|
| 6410 | char $ac_func ();
|
---|
[687] | 6411 | /* The GNU C library defines this for functions which it implements
|
---|
| 6412 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6413 | something starting with __ and the normal name is an alias. */
|
---|
| 6414 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6415 | choke me
|
---|
| 6416 | #else
|
---|
[8756] | 6417 | char (*f) () = $ac_func;
|
---|
[687] | 6418 | #endif
|
---|
[8756] | 6419 | #ifdef __cplusplus
|
---|
| 6420 | }
|
---|
| 6421 | #endif
|
---|
[687] | 6422 |
|
---|
[8756] | 6423 | int
|
---|
| 6424 | main ()
|
---|
| 6425 | {
|
---|
| 6426 | return f != $ac_func;
|
---|
| 6427 | ;
|
---|
| 6428 | return 0;
|
---|
| 6429 | }
|
---|
| 6430 | _ACEOF
|
---|
| 6431 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6432 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6433 | (eval $ac_link) 2>conftest.er1
|
---|
| 6434 | ac_status=$?
|
---|
| 6435 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6436 | rm -f conftest.er1
|
---|
| 6437 | cat conftest.err >&5
|
---|
| 6438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6439 | (exit $ac_status); } &&
|
---|
| 6440 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6441 | || test ! -s conftest.err'
|
---|
| 6442 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6443 | (eval $ac_try) 2>&5
|
---|
| 6444 | ac_status=$?
|
---|
| 6445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6446 | (exit $ac_status); }; } &&
|
---|
| 6447 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6449 | (eval $ac_try) 2>&5
|
---|
| 6450 | ac_status=$?
|
---|
| 6451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6452 | (exit $ac_status); }; }; then
|
---|
| 6453 | eval "$as_ac_var=yes"
|
---|
[687] | 6454 | else
|
---|
[8756] | 6455 | echo "$as_me: failed program was:" >&5
|
---|
| 6456 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6457 |
|
---|
| 6458 | eval "$as_ac_var=no"
|
---|
[687] | 6459 | fi
|
---|
[8756] | 6460 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6461 | conftest$ac_exeext conftest.$ac_ext
|
---|
[687] | 6462 | fi
|
---|
[8756] | 6463 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6464 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6465 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6466 | cat >>confdefs.h <<_ACEOF
|
---|
| 6467 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6468 | _ACEOF
|
---|
[8200] | 6469 |
|
---|
[687] | 6470 | fi
|
---|
| 6471 | done
|
---|
| 6472 |
|
---|
| 6473 | fi
|
---|
| 6474 |
|
---|
[8200] | 6475 | # we cannot generate static libraries under Darwin
|
---|
[8756] | 6476 | echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
| 6477 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
|
---|
[8200] | 6478 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[8756] | 6479 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6480 | echo "${ECHO_T}yes" >&6
|
---|
[8200] | 6481 | STATIC=""
|
---|
| 6482 | else
|
---|
[8756] | 6483 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6484 | echo "${ECHO_T}no" >&6
|
---|
[8200] | 6485 | STATIC="-static "
|
---|
| 6486 | fi
|
---|
[3631] | 6487 |
|
---|
[8200] | 6488 |
|
---|
[8756] | 6489 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
| 6490 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
| 6491 |
|
---|
[700] | 6492 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
| 6493 | if test "${with_dmalloc+set}" = set; then
|
---|
| 6494 | withval="$with_dmalloc"
|
---|
| 6495 | if test "$withval" = yes; then
|
---|
[8756] | 6496 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 6497 | echo "${ECHO_T}yes" >&6
|
---|
| 6498 | cat >>confdefs.h <<\_ACEOF
|
---|
[700] | 6499 | #define WITH_DMALLOC 1
|
---|
[8756] | 6500 | _ACEOF
|
---|
[687] | 6501 |
|
---|
[700] | 6502 | LIBS="$LIBS -ldmalloc"
|
---|
| 6503 | LDFLAGS="$LDFLAGS -g"
|
---|
| 6504 | else
|
---|
[8756] | 6505 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6506 | echo "${ECHO_T}no" >&6
|
---|
[700] | 6507 | fi
|
---|
| 6508 | else
|
---|
[8756] | 6509 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 6510 | echo "${ECHO_T}no" >&6
|
---|
| 6511 | fi;
|
---|
[700] | 6512 |
|
---|
[8756] | 6513 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
| 6514 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
[700] | 6515 |
|
---|
| 6516 | # Check whether --with-regex or --without-regex was given.
|
---|
| 6517 | if test "${with_regex+set}" = set; then
|
---|
| 6518 | withval="$with_regex"
|
---|
| 6519 | if test "$withval" = yes; then
|
---|
| 6520 | ac_with_regex=1
|
---|
[8756] | 6521 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
| 6522 | echo "${ECHO_T}regex" >&6
|
---|
| 6523 | cat >>confdefs.h <<\_ACEOF
|
---|
[700] | 6524 | #define WITH_REGEX 1
|
---|
[8756] | 6525 | _ACEOF
|
---|
[700] | 6526 |
|
---|
[8756] | 6527 | case $LIBOBJS in
|
---|
| 6528 | "regex.$ac_objext" | \
|
---|
| 6529 | *" regex.$ac_objext" | \
|
---|
| 6530 | "regex.$ac_objext "* | \
|
---|
| 6531 | *" regex.$ac_objext "* ) ;;
|
---|
| 6532 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
| 6533 | esac
|
---|
| 6534 |
|
---|
[700] | 6535 | fi
|
---|
[8756] | 6536 | fi;
|
---|
[700] | 6537 | if test -z "$ac_with_regex"; then
|
---|
[8756] | 6538 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
| 6539 | echo "${ECHO_T}rx" >&6
|
---|
| 6540 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
| 6541 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
| 6542 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
| 6543 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[700] | 6544 | else
|
---|
[8756] | 6545 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6546 | /* confdefs.h. */
|
---|
| 6547 | _ACEOF
|
---|
| 6548 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6549 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6550 | /* end confdefs.h. */
|
---|
| 6551 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 6552 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6553 | #define re_rx_search innocuous_re_rx_search
|
---|
| 6554 |
|
---|
[700] | 6555 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
[8756] | 6556 | which can conflict with char re_rx_search (); below.
|
---|
| 6557 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6558 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6559 |
|
---|
| 6560 | #ifdef __STDC__
|
---|
| 6561 | # include <limits.h>
|
---|
| 6562 | #else
|
---|
| 6563 | # include <assert.h>
|
---|
| 6564 | #endif
|
---|
| 6565 |
|
---|
| 6566 | #undef re_rx_search
|
---|
| 6567 |
|
---|
[700] | 6568 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[8756] | 6569 | #ifdef __cplusplus
|
---|
| 6570 | extern "C"
|
---|
| 6571 | {
|
---|
| 6572 | #endif
|
---|
[700] | 6573 | /* We use char because int might match the return type of a gcc2
|
---|
[8756] | 6574 | builtin and then its argument prototype would still apply. */
|
---|
| 6575 | char re_rx_search ();
|
---|
[700] | 6576 | /* The GNU C library defines this for functions which it implements
|
---|
| 6577 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6578 | something starting with __ and the normal name is an alias. */
|
---|
| 6579 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
| 6580 | choke me
|
---|
| 6581 | #else
|
---|
[8756] | 6582 | char (*f) () = re_rx_search;
|
---|
[700] | 6583 | #endif
|
---|
[8756] | 6584 | #ifdef __cplusplus
|
---|
| 6585 | }
|
---|
| 6586 | #endif
|
---|
[700] | 6587 |
|
---|
[8756] | 6588 | int
|
---|
| 6589 | main ()
|
---|
| 6590 | {
|
---|
| 6591 | return f != re_rx_search;
|
---|
| 6592 | ;
|
---|
| 6593 | return 0;
|
---|
| 6594 | }
|
---|
| 6595 | _ACEOF
|
---|
| 6596 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6598 | (eval $ac_link) 2>conftest.er1
|
---|
| 6599 | ac_status=$?
|
---|
| 6600 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6601 | rm -f conftest.er1
|
---|
| 6602 | cat conftest.err >&5
|
---|
| 6603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6604 | (exit $ac_status); } &&
|
---|
| 6605 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6606 | || test ! -s conftest.err'
|
---|
| 6607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6608 | (eval $ac_try) 2>&5
|
---|
| 6609 | ac_status=$?
|
---|
| 6610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6611 | (exit $ac_status); }; } &&
|
---|
| 6612 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6614 | (eval $ac_try) 2>&5
|
---|
| 6615 | ac_status=$?
|
---|
| 6616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6617 | (exit $ac_status); }; }; then
|
---|
| 6618 | ac_cv_func_re_rx_search=yes
|
---|
[700] | 6619 | else
|
---|
[8756] | 6620 | echo "$as_me: failed program was:" >&5
|
---|
| 6621 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6622 |
|
---|
| 6623 | ac_cv_func_re_rx_search=no
|
---|
[700] | 6624 | fi
|
---|
[8756] | 6625 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6626 | conftest$ac_exeext conftest.$ac_ext
|
---|
[700] | 6627 | fi
|
---|
[8756] | 6628 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
| 6629 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
| 6630 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
[700] | 6631 | :
|
---|
| 6632 | else
|
---|
[8756] | 6633 | case $LIBOBJS in
|
---|
| 6634 | "rx.$ac_objext" | \
|
---|
| 6635 | *" rx.$ac_objext" | \
|
---|
| 6636 | "rx.$ac_objext "* | \
|
---|
| 6637 | *" rx.$ac_objext "* ) ;;
|
---|
| 6638 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
| 6639 | esac
|
---|
| 6640 |
|
---|
[700] | 6641 | fi
|
---|
| 6642 |
|
---|
| 6643 | fi
|
---|
| 6644 |
|
---|
[8200] | 6645 |
|
---|
[687] | 6646 | # ---------------------------------------------------------------------------
|
---|
| 6647 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[8756] | 6648 | case $LIBOBJS in
|
---|
| 6649 | "xmalloc.$ac_objext" | \
|
---|
| 6650 | *" xmalloc.$ac_objext" | \
|
---|
| 6651 | "xmalloc.$ac_objext "* | \
|
---|
| 6652 | *" xmalloc.$ac_objext "* ) ;;
|
---|
| 6653 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
| 6654 | esac
|
---|
| 6655 |
|
---|
| 6656 | case $LIBOBJS in
|
---|
| 6657 | "error.$ac_objext" | \
|
---|
| 6658 | *" error.$ac_objext" | \
|
---|
| 6659 | "error.$ac_objext "* | \
|
---|
| 6660 | *" error.$ac_objext "* ) ;;
|
---|
| 6661 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
| 6662 | esac
|
---|
| 6663 |
|
---|
[687] | 6664 | fi
|
---|
| 6665 |
|
---|
[8200] | 6666 |
|
---|
[687] | 6667 | # ---------------------------------------------------------------------------
|
---|
| 6668 |
|
---|
[8756] | 6669 | ac_ext=cc
|
---|
[687] | 6670 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
[8756] | 6671 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 6672 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 6673 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[687] | 6674 |
|
---|
[8200] | 6675 |
|
---|
| 6676 |
|
---|
[8756] | 6677 | echo "$as_me:$LINENO: checking that the GDBM library is available" >&5
|
---|
| 6678 | echo $ECHO_N "checking that the GDBM library is available... $ECHO_C" >&6
|
---|
[2471] | 6679 | if test ! -z "$gdbmdir" ; then
|
---|
[2279] | 6680 | # look in given directory for header file
|
---|
[2884] | 6681 | if test -r $gdbmdir/include/gdbm.h ; then
|
---|
[2279] | 6682 | GDBM_INCLUDE="-I$gdbmdir/include" ;
|
---|
[2884] | 6683 | elif test -r $gdbmdir/gdbm.h ; then
|
---|
[2279] | 6684 | GDBM_INCLUDE="-I$gdbmdir" ;
|
---|
| 6685 | fi
|
---|
| 6686 |
|
---|
| 6687 | # look in given directory for library
|
---|
[2884] | 6688 | if test -r $gdbmdir/libgdbm.a ; then
|
---|
[2279] | 6689 | GDBM_LIBPATH="-L$gdbmdir" ;
|
---|
[2884] | 6690 | elif test -r $gdbmdir/lib/libgdbm.a ; then
|
---|
[2279] | 6691 | GDBM_LIBPATH="-L$gdbmdir/lib" ;
|
---|
[2884] | 6692 | elif test -r $gdbmdir/.libs/libgdbm.a ; then
|
---|
[2279] | 6693 | GDBM_LIBPATH="-L$gdbmdir/.libs" ;
|
---|
| 6694 | fi
|
---|
| 6695 |
|
---|
[2471] | 6696 | if test ! -z "$GDBM_LIBPATH" -a ! -z "$GDBM_INCLUDE" ; then
|
---|
[8756] | 6697 | echo "$as_me:$LINENO: result: $gdbmdir" >&5
|
---|
| 6698 | echo "${ECHO_T}$gdbmdir" >&6 ;
|
---|
[2279] | 6699 | else
|
---|
[8756] | 6700 | echo "$as_me:$LINENO: result: can't find gdbm.h and libgdbm.a in $gdbmdir" >&5
|
---|
| 6701 | echo "${ECHO_T}can't find gdbm.h and libgdbm.a in $gdbmdir" >&6;
|
---|
| 6702 | echo "$as_me:$LINENO: checking looking for GDBM library in default locations" >&5
|
---|
| 6703 | echo $ECHO_N "checking looking for GDBM library in default locations... $ECHO_C" >&6
|
---|
[2279] | 6704 | fi
|
---|
| 6705 | fi
|
---|
| 6706 |
|
---|
[2603] | 6707 | # look in default path and in /usr/local
|
---|
[2471] | 6708 | if test -z "$GDBM_INCLUDE" ; then
|
---|
[8756] | 6709 | # try in system directory
|
---|
| 6710 |
|
---|
| 6711 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6712 | /* confdefs.h. */
|
---|
| 6713 | _ACEOF
|
---|
| 6714 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6715 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6716 | /* end confdefs.h. */
|
---|
[687] | 6717 | #include <gdbm.h>
|
---|
| 6718 |
|
---|
[8756] | 6719 | int
|
---|
| 6720 | main ()
|
---|
| 6721 | {
|
---|
[687] | 6722 |
|
---|
[8756] | 6723 | ;
|
---|
| 6724 | return 0;
|
---|
| 6725 | }
|
---|
| 6726 | _ACEOF
|
---|
| 6727 | rm -f conftest.$ac_objext
|
---|
| 6728 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6729 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6730 | ac_status=$?
|
---|
| 6731 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6732 | rm -f conftest.er1
|
---|
| 6733 | cat conftest.err >&5
|
---|
| 6734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6735 | (exit $ac_status); } &&
|
---|
| 6736 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6737 | || test ! -s conftest.err'
|
---|
| 6738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6739 | (eval $ac_try) 2>&5
|
---|
| 6740 | ac_status=$?
|
---|
| 6741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6742 | (exit $ac_status); }; } &&
|
---|
| 6743 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6745 | (eval $ac_try) 2>&5
|
---|
| 6746 | ac_status=$?
|
---|
| 6747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6748 | (exit $ac_status); }; }; then
|
---|
[687] | 6749 | success=yes
|
---|
| 6750 | else
|
---|
[8756] | 6751 | echo "$as_me: failed program was:" >&5
|
---|
| 6752 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6753 |
|
---|
| 6754 | success=no
|
---|
| 6755 |
|
---|
[687] | 6756 | fi
|
---|
[8756] | 6757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[2603] | 6758 |
|
---|
| 6759 | if test $success = "no"; then
|
---|
| 6760 | # last chance - look in /usr/local (eg FreeBSD)
|
---|
| 6761 | GDBM_LIBPATH=-L/usr/local/lib
|
---|
| 6762 | GDBM_INCLUDE=-I/usr/local/include
|
---|
| 6763 | ac_save_CXXFLAGS="$CXXFLAGS"
|
---|
| 6764 | ac_save_LIBS="$LIBS"
|
---|
| 6765 | CXXFLAGS="$CXXFLAGS -I/usr/local/include"
|
---|
| 6766 | LIBS="$LIBS -L/usr/local/lib -lgdbm"
|
---|
[8756] | 6767 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6768 | /* confdefs.h. */
|
---|
| 6769 | _ACEOF
|
---|
| 6770 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6771 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6772 | /* end confdefs.h. */
|
---|
[2603] | 6773 | #include <gdbm.h>
|
---|
| 6774 | #include <stdio.h>
|
---|
[8756] | 6775 |
|
---|
| 6776 | int
|
---|
| 6777 | main ()
|
---|
| 6778 | {
|
---|
[2603] | 6779 | printf("%s",gdbm_version);
|
---|
[8756] | 6780 | ;
|
---|
| 6781 | return 0;
|
---|
| 6782 | }
|
---|
| 6783 | _ACEOF
|
---|
| 6784 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6785 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6786 | (eval $ac_link) 2>conftest.er1
|
---|
| 6787 | ac_status=$?
|
---|
| 6788 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6789 | rm -f conftest.er1
|
---|
| 6790 | cat conftest.err >&5
|
---|
| 6791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6792 | (exit $ac_status); } &&
|
---|
| 6793 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6794 | || test ! -s conftest.err'
|
---|
| 6795 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6796 | (eval $ac_try) 2>&5
|
---|
| 6797 | ac_status=$?
|
---|
| 6798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6799 | (exit $ac_status); }; } &&
|
---|
| 6800 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6802 | (eval $ac_try) 2>&5
|
---|
| 6803 | ac_status=$?
|
---|
| 6804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6805 | (exit $ac_status); }; }; then
|
---|
[2603] | 6806 | success=/usr/local
|
---|
| 6807 | else
|
---|
[8756] | 6808 | echo "$as_me: failed program was:" >&5
|
---|
| 6809 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6810 |
|
---|
| 6811 | success=no
|
---|
| 6812 |
|
---|
[2603] | 6813 | fi
|
---|
[8756] | 6814 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6815 | conftest$ac_exeext conftest.$ac_ext
|
---|
[2603] | 6816 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 6817 | LIBS=$ac_save_LIBS
|
---|
| 6818 | fi
|
---|
| 6819 |
|
---|
[8756] | 6820 | echo "$as_me:$LINENO: result: $success" >&5
|
---|
| 6821 | echo "${ECHO_T}$success" >&6
|
---|
[2279] | 6822 | if test $success = "no"; then
|
---|
[8756] | 6823 | { { echo "$as_me:$LINENO: error: GDBM Library not available - cannot install" >&5
|
---|
| 6824 | echo "$as_me: error: GDBM Library not available - cannot install" >&2;}
|
---|
| 6825 | { (exit 1); exit 1; }; }
|
---|
[2279] | 6826 | fi
|
---|
[687] | 6827 | fi
|
---|
[8756] | 6828 | cat >>confdefs.h <<\_ACEOF
|
---|
[2603] | 6829 | #define HAVE_LIBGDBM 1
|
---|
[8756] | 6830 | _ACEOF
|
---|
[687] | 6831 |
|
---|
[8200] | 6832 |
|
---|
| 6833 |
|
---|
| 6834 |
|
---|
| 6835 |
|
---|
[8756] | 6836 | echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
|
---|
| 6837 | echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
|
---|
[687] | 6838 | success="no"
|
---|
| 6839 | pl_path="$PATH"
|
---|
| 6840 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
| 6841 | for pl_dir in $pl_path; do
|
---|
| 6842 | test -z "$pl_dir" && pl_dir=.
|
---|
| 6843 | if test -x $pl_dir/perl; then
|
---|
| 6844 | success="yes"
|
---|
| 6845 | break
|
---|
| 6846 | fi
|
---|
| 6847 | done
|
---|
| 6848 | IFS="$pl_save_ifs"
|
---|
| 6849 |
|
---|
| 6850 | if test $success = "yes"; then
|
---|
| 6851 | try=`perl configtest.pl` || try="0"
|
---|
| 6852 | try=`expr $try \> 5.000`
|
---|
| 6853 | if test $try = "1"; then
|
---|
[8756] | 6854 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 6855 | echo "${ECHO_T}\"yes\"" >&6
|
---|
[687] | 6856 | else
|
---|
| 6857 | success="no"
|
---|
| 6858 | fi
|
---|
| 6859 | fi
|
---|
| 6860 |
|
---|
| 6861 | if test $success = "no"; then
|
---|
[8756] | 6862 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 6863 | echo "${ECHO_T}\"no\"" >&6
|
---|
| 6864 | { { echo "$as_me:$LINENO: error: \"Perl 5 not available - cannot install\"" >&5
|
---|
| 6865 | echo "$as_me: error: \"Perl 5 not available - cannot install\"" >&2;}
|
---|
| 6866 | { (exit 1); exit 1; }; }
|
---|
[687] | 6867 | fi
|
---|
| 6868 |
|
---|
| 6869 | success=no
|
---|
[8756] | 6870 | echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
| 6871 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
[687] | 6872 |
|
---|
[8756] | 6873 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6874 | /* confdefs.h. */
|
---|
| 6875 | _ACEOF
|
---|
| 6876 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6877 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6878 | /* end confdefs.h. */
|
---|
[687] | 6879 | #include <vector>
|
---|
| 6880 |
|
---|
[8756] | 6881 | int
|
---|
| 6882 | main ()
|
---|
| 6883 | {
|
---|
[687] | 6884 |
|
---|
[8756] | 6885 | ;
|
---|
| 6886 | return 0;
|
---|
| 6887 | }
|
---|
| 6888 | _ACEOF
|
---|
| 6889 | rm -f conftest.$ac_objext
|
---|
| 6890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6891 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6892 | ac_status=$?
|
---|
| 6893 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6894 | rm -f conftest.er1
|
---|
| 6895 | cat conftest.err >&5
|
---|
| 6896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6897 | (exit $ac_status); } &&
|
---|
| 6898 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6899 | || test ! -s conftest.err'
|
---|
| 6900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6901 | (eval $ac_try) 2>&5
|
---|
| 6902 | ac_status=$?
|
---|
| 6903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6904 | (exit $ac_status); }; } &&
|
---|
| 6905 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6906 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6907 | (eval $ac_try) 2>&5
|
---|
| 6908 | ac_status=$?
|
---|
| 6909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6910 | (exit $ac_status); }; }; then
|
---|
[687] | 6911 | success=yes
|
---|
| 6912 | else
|
---|
[8756] | 6913 | echo "$as_me: failed program was:" >&5
|
---|
| 6914 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6915 |
|
---|
[687] | 6916 | fi
|
---|
[8756] | 6917 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 6918 |
|
---|
| 6919 | if test $success = "no"; then
|
---|
[8756] | 6920 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6921 | /* confdefs.h. */
|
---|
| 6922 | _ACEOF
|
---|
| 6923 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6924 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6925 | /* end confdefs.h. */
|
---|
[687] | 6926 | #include <vector.h>
|
---|
| 6927 |
|
---|
[8756] | 6928 | int
|
---|
| 6929 | main ()
|
---|
| 6930 | {
|
---|
[687] | 6931 |
|
---|
[8756] | 6932 | ;
|
---|
| 6933 | return 0;
|
---|
| 6934 | }
|
---|
| 6935 | _ACEOF
|
---|
| 6936 | rm -f conftest.$ac_objext
|
---|
| 6937 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6938 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6939 | ac_status=$?
|
---|
| 6940 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6941 | rm -f conftest.er1
|
---|
| 6942 | cat conftest.err >&5
|
---|
| 6943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6944 | (exit $ac_status); } &&
|
---|
| 6945 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6946 | || test ! -s conftest.err'
|
---|
| 6947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6948 | (eval $ac_try) 2>&5
|
---|
| 6949 | ac_status=$?
|
---|
| 6950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6951 | (exit $ac_status); }; } &&
|
---|
| 6952 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6954 | (eval $ac_try) 2>&5
|
---|
| 6955 | ac_status=$?
|
---|
| 6956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6957 | (exit $ac_status); }; }; then
|
---|
[687] | 6958 | success="yes"
|
---|
| 6959 | else
|
---|
[8756] | 6960 | echo "$as_me: failed program was:" >&5
|
---|
| 6961 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6962 |
|
---|
[687] | 6963 | fi
|
---|
[8756] | 6964 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 6965 | fi
|
---|
| 6966 |
|
---|
| 6967 | if test $success = "no"; then
|
---|
[8756] | 6968 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6969 | /* confdefs.h. */
|
---|
| 6970 | _ACEOF
|
---|
| 6971 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6972 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6973 | /* end confdefs.h. */
|
---|
[687] | 6974 | #include <ospace\\std\\vector>
|
---|
| 6975 |
|
---|
[8756] | 6976 | int
|
---|
| 6977 | main ()
|
---|
| 6978 | {
|
---|
[687] | 6979 |
|
---|
[8756] | 6980 | ;
|
---|
| 6981 | return 0;
|
---|
| 6982 | }
|
---|
| 6983 | _ACEOF
|
---|
| 6984 | rm -f conftest.$ac_objext
|
---|
| 6985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6986 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6987 | ac_status=$?
|
---|
| 6988 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6989 | rm -f conftest.er1
|
---|
| 6990 | cat conftest.err >&5
|
---|
| 6991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6992 | (exit $ac_status); } &&
|
---|
| 6993 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 6994 | || test ! -s conftest.err'
|
---|
| 6995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6996 | (eval $ac_try) 2>&5
|
---|
| 6997 | ac_status=$?
|
---|
| 6998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6999 | (exit $ac_status); }; } &&
|
---|
| 7000 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7002 | (eval $ac_try) 2>&5
|
---|
| 7003 | ac_status=$?
|
---|
| 7004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7005 | (exit $ac_status); }; }; then
|
---|
[687] | 7006 | success="yes"
|
---|
| 7007 | else
|
---|
[8756] | 7008 | echo "$as_me: failed program was:" >&5
|
---|
| 7009 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7010 |
|
---|
[687] | 7011 | fi
|
---|
[8756] | 7012 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[687] | 7013 | fi
|
---|
| 7014 |
|
---|
| 7015 | if test $success = yes; then
|
---|
[8756] | 7016 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 7017 | echo "${ECHO_T}\"no\"" >&6
|
---|
[687] | 7018 | else
|
---|
[8756] | 7019 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 7020 | echo "${ECHO_T}\"yes\"" >&6
|
---|
| 7021 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
| 7022 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
| 7023 | { (exit 1); exit 1; }; }
|
---|
[687] | 7024 | fi
|
---|
| 7025 |
|
---|
[2950] | 7026 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
[2951] | 7027 | # check for running bash under cygwin
|
---|
| 7028 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 7029 | then
|
---|
| 7030 | gsdlos=windows
|
---|
| 7031 | fi
|
---|
[687] | 7032 |
|
---|
[8200] | 7033 |
|
---|
[687] | 7034 | # ---------------------------------------------------------------------------
|
---|
| 7035 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[8756] | 7036 | case $LIBOBJS in
|
---|
| 7037 | "xmalloc.o.$ac_objext" | \
|
---|
| 7038 | *" xmalloc.o.$ac_objext" | \
|
---|
| 7039 | "xmalloc.o.$ac_objext "* | \
|
---|
| 7040 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
| 7041 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
|
---|
| 7042 | esac
|
---|
| 7043 |
|
---|
| 7044 | case $LIBOBJS in
|
---|
| 7045 | "error.$ac_objext" | \
|
---|
| 7046 | *" error.$ac_objext" | \
|
---|
| 7047 | "error.$ac_objext "* | \
|
---|
| 7048 | *" error.$ac_objext "* ) ;;
|
---|
| 7049 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
| 7050 | esac
|
---|
| 7051 |
|
---|
[687] | 7052 | fi
|
---|
| 7053 |
|
---|
[3063] | 7054 | # ---------------------------------------------------------------------------
|
---|
[687] | 7055 |
|
---|
[3063] | 7056 | moduleDirs=""
|
---|
| 7057 | MODULEDIRS=""
|
---|
| 7058 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
| 7059 | if test -d "$x"; then
|
---|
| 7060 | d="$x/Makefile.in"
|
---|
| 7061 | if test -e "$d"; then
|
---|
| 7062 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
| 7063 | MODULEDIRS="$MODULEDIRS $x"
|
---|
| 7064 | fi
|
---|
| 7065 | fi
|
---|
| 7066 | done
|
---|
| 7067 | echo "Making$moduleDirs in modules directory"
|
---|
| 7068 |
|
---|
[8200] | 7069 |
|
---|
[687] | 7070 | # ---------------------------------------------------------------------------
|
---|
[1675] | 7071 |
|
---|
| 7072 |
|
---|
[8756] | 7073 | subdirs="$subdirs packages"
|
---|
| 7074 |
|
---|
| 7075 |
|
---|
[3063] | 7076 | # the list of folders in the src folder
|
---|
| 7077 | srclist="src/mgpp/lib/Makefile src/mgpp/text/Makefile src/mgpp/Makefile \
|
---|
| 7078 | src/hashfile/Makefile src/colservr/Makefile src/recpt/Makefile src/txt2db/Makefile \
|
---|
[8200] | 7079 | src/oaiservr/Makefile src/db2txt/Makefile src/getpw/Makefile src/phind/generate/Makefile"
|
---|
[3063] | 7080 |
|
---|
[8756] | 7081 | ac_config_files="$ac_config_files packages/Makefile packages/mg/Makefile packages/mg/src/text/Makefile packages/mg/src/images/Makefile packages/mg/src/scripts/Makefile packages/mg/lib/Makefile lib/Makefile Makefile $srclist $moduleDirs"
|
---|
| 7082 | cat >confcache <<\_ACEOF
|
---|
[562] | 7083 | # This file is a shell script that caches the results of configure
|
---|
| 7084 | # tests run on this system so they can be shared between configure
|
---|
[8756] | 7085 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 7086 | # It is not useful on other systems. If it contains results you don't
|
---|
| 7087 | # want to keep, you may remove or edit it.
|
---|
[562] | 7088 | #
|
---|
[8756] | 7089 | # config.status only pays attention to the cache file if you give it
|
---|
| 7090 | # the --recheck option to rerun configure.
|
---|
[562] | 7091 | #
|
---|
[8756] | 7092 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
| 7093 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 7094 | # following values.
|
---|
| 7095 |
|
---|
| 7096 | _ACEOF
|
---|
| 7097 |
|
---|
[562] | 7098 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 7099 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
| 7100 | # So, don't put newlines in cache variables' values.
|
---|
| 7101 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 7102 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[8756] | 7103 | {
|
---|
| 7104 | (set) 2>&1 |
|
---|
| 7105 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 7106 | *ac_space=\ *)
|
---|
| 7107 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 7108 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
| 7109 | sed -n \
|
---|
| 7110 | "s/'/'\\\\''/g;
|
---|
| 7111 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
| 7112 | ;;
|
---|
| 7113 | *)
|
---|
| 7114 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
| 7115 | sed -n \
|
---|
| 7116 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
| 7117 | ;;
|
---|
| 7118 | esac;
|
---|
| 7119 | } |
|
---|
| 7120 | sed '
|
---|
| 7121 | t clear
|
---|
| 7122 | : clear
|
---|
| 7123 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 7124 | t end
|
---|
| 7125 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 7126 | : end' >>confcache
|
---|
| 7127 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
[562] | 7128 | if test -w $cache_file; then
|
---|
[8756] | 7129 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
| 7130 | cat confcache >$cache_file
|
---|
[562] | 7131 | else
|
---|
| 7132 | echo "not updating unwritable cache $cache_file"
|
---|
| 7133 | fi
|
---|
| 7134 | fi
|
---|
| 7135 | rm -f confcache
|
---|
| 7136 |
|
---|
| 7137 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 7138 | # Let make expand exec_prefix.
|
---|
| 7139 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 7140 |
|
---|
[8756] | 7141 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 7142 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 7143 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7144 | # (actually we leave an empty line to preserve line numbers).
|
---|
[562] | 7145 | if test "x$srcdir" = x.; then
|
---|
[8756] | 7146 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
| 7147 | s/:*\$(srcdir):*/:/;
|
---|
| 7148 | s/:*\${srcdir}:*/:/;
|
---|
| 7149 | s/:*@srcdir@:*/:/;
|
---|
| 7150 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
| 7151 | s/:*$//;
|
---|
| 7152 | s/^[^=]*=[ ]*$//;
|
---|
| 7153 | }'
|
---|
[562] | 7154 | fi
|
---|
| 7155 |
|
---|
[687] | 7156 | DEFS=-DHAVE_CONFIG_H
|
---|
[562] | 7157 |
|
---|
[8756] | 7158 | ac_libobjs=
|
---|
| 7159 | ac_ltlibobjs=
|
---|
| 7160 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 7161 | # 1. Remove the extension, and $U if already installed.
|
---|
| 7162 | ac_i=`echo "$ac_i" |
|
---|
| 7163 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
| 7164 | # 2. Add them.
|
---|
| 7165 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
| 7166 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
| 7167 | done
|
---|
| 7168 | LIBOBJS=$ac_libobjs
|
---|
| 7169 |
|
---|
| 7170 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 7171 |
|
---|
| 7172 |
|
---|
| 7173 |
|
---|
[562] | 7174 | : ${CONFIG_STATUS=./config.status}
|
---|
[8756] | 7175 | ac_clean_files_save=$ac_clean_files
|
---|
| 7176 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
| 7177 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
| 7178 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 7179 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
| 7180 | #! $SHELL
|
---|
| 7181 | # Generated by $as_me.
|
---|
[562] | 7182 | # Run this file to recreate the current configuration.
|
---|
| 7183 | # Compiler output produced by configure, useful for debugging
|
---|
[8756] | 7184 | # configure, is in config.log if it exists.
|
---|
[562] | 7185 |
|
---|
[8756] | 7186 | debug=false
|
---|
| 7187 | ac_cs_recheck=false
|
---|
| 7188 | ac_cs_silent=false
|
---|
| 7189 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
| 7190 | _ACEOF
|
---|
| 7191 |
|
---|
| 7192 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7193 | ## --------------------- ##
|
---|
| 7194 | ## M4sh Initialization. ##
|
---|
| 7195 | ## --------------------- ##
|
---|
| 7196 |
|
---|
| 7197 | # Be Bourne compatible
|
---|
| 7198 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
| 7199 | emulate sh
|
---|
| 7200 | NULLCMD=:
|
---|
| 7201 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
| 7202 | # is contrary to our usage. Disable this feature.
|
---|
| 7203 | alias -g '${1+"$@"}'='"$@"'
|
---|
| 7204 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 7205 | set -o posix
|
---|
| 7206 | fi
|
---|
| 7207 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
| 7208 |
|
---|
| 7209 | # Support unset when possible.
|
---|
| 7210 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 7211 | as_unset=unset
|
---|
| 7212 | else
|
---|
| 7213 | as_unset=false
|
---|
| 7214 | fi
|
---|
| 7215 |
|
---|
| 7216 |
|
---|
| 7217 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 7218 | $as_unset ENV MAIL MAILPATH
|
---|
| 7219 | PS1='$ '
|
---|
| 7220 | PS2='> '
|
---|
| 7221 | PS4='+ '
|
---|
| 7222 |
|
---|
| 7223 | # NLS nuisances.
|
---|
| 7224 | for as_var in \
|
---|
| 7225 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 7226 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 7227 | LC_TELEPHONE LC_TIME
|
---|
[562] | 7228 | do
|
---|
[8756] | 7229 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 7230 | eval $as_var=C; export $as_var
|
---|
| 7231 | else
|
---|
| 7232 | $as_unset $as_var
|
---|
| 7233 | fi
|
---|
[562] | 7234 | done
|
---|
| 7235 |
|
---|
[8756] | 7236 | # Required to use basename.
|
---|
| 7237 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7238 | as_expr=expr
|
---|
| 7239 | else
|
---|
| 7240 | as_expr=false
|
---|
| 7241 | fi
|
---|
[562] | 7242 |
|
---|
[8756] | 7243 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
| 7244 | as_basename=basename
|
---|
| 7245 | else
|
---|
| 7246 | as_basename=false
|
---|
| 7247 | fi
|
---|
[562] | 7248 |
|
---|
| 7249 |
|
---|
[8756] | 7250 | # Name of the executable.
|
---|
| 7251 | as_me=`$as_basename "$0" ||
|
---|
| 7252 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 7253 | X"$0" : 'X\(//\)$' \| \
|
---|
| 7254 | X"$0" : 'X\(/\)$' \| \
|
---|
| 7255 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7256 | echo X/"$0" |
|
---|
| 7257 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 7258 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7259 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 7260 | s/.*/./; q'`
|
---|
[3631] | 7261 |
|
---|
| 7262 |
|
---|
[8756] | 7263 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
| 7264 | # Avoid depending upon Character Ranges.
|
---|
| 7265 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 7266 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 7267 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 7268 | as_cr_digits='0123456789'
|
---|
| 7269 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
| 7270 |
|
---|
| 7271 | # The user is always right.
|
---|
| 7272 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 7273 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 7274 | echo "exit 0" >>conf$$.sh
|
---|
| 7275 | chmod +x conf$$.sh
|
---|
| 7276 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 7277 | PATH_SEPARATOR=';'
|
---|
[8200] | 7278 | else
|
---|
[8756] | 7279 | PATH_SEPARATOR=:
|
---|
[8200] | 7280 | fi
|
---|
[8756] | 7281 | rm -f conf$$.sh
|
---|
| 7282 | fi
|
---|
| 7283 |
|
---|
| 7284 |
|
---|
| 7285 | as_lineno_1=$LINENO
|
---|
| 7286 | as_lineno_2=$LINENO
|
---|
| 7287 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7288 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7289 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 7290 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 7291 | # relative or not.
|
---|
| 7292 | case $0 in
|
---|
| 7293 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 7294 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7295 | for as_dir in $PATH
|
---|
| 7296 | do
|
---|
| 7297 | IFS=$as_save_IFS
|
---|
| 7298 | test -z "$as_dir" && as_dir=.
|
---|
| 7299 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 7300 | done
|
---|
| 7301 |
|
---|
| 7302 | ;;
|
---|
| 7303 | esac
|
---|
| 7304 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 7305 | # in which case we are not to be found in the path.
|
---|
| 7306 | if test "x$as_myself" = x; then
|
---|
| 7307 | as_myself=$0
|
---|
| 7308 | fi
|
---|
| 7309 | if test ! -f "$as_myself"; then
|
---|
| 7310 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
| 7311 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
| 7312 | { (exit 1); exit 1; }; }
|
---|
| 7313 | fi
|
---|
| 7314 | case $CONFIG_SHELL in
|
---|
| 7315 | '')
|
---|
| 7316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 7317 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 7318 | do
|
---|
| 7319 | IFS=$as_save_IFS
|
---|
| 7320 | test -z "$as_dir" && as_dir=.
|
---|
| 7321 | for as_base in sh bash ksh sh5; do
|
---|
| 7322 | case $as_dir in
|
---|
| 7323 | /*)
|
---|
| 7324 | if ("$as_dir/$as_base" -c '
|
---|
| 7325 | as_lineno_1=$LINENO
|
---|
| 7326 | as_lineno_2=$LINENO
|
---|
| 7327 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 7328 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 7329 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 7330 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 7331 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 7332 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 7333 | export CONFIG_SHELL
|
---|
| 7334 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 7335 | fi;;
|
---|
| 7336 | esac
|
---|
| 7337 | done
|
---|
| 7338 | done
|
---|
| 7339 | ;;
|
---|
| 7340 | esac
|
---|
| 7341 |
|
---|
| 7342 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 7343 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 7344 | # line-number line before each line; the second 'sed' does the real
|
---|
| 7345 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 7346 | # with the numbered line, and appends trailing '-' during
|
---|
| 7347 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 7348 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 7349 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 7350 | sed '=' <$as_myself |
|
---|
| 7351 | sed '
|
---|
| 7352 | N
|
---|
| 7353 | s,$,-,
|
---|
| 7354 | : loop
|
---|
| 7355 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 7356 | t loop
|
---|
| 7357 | s,-$,,
|
---|
| 7358 | s,^['$as_cr_digits']*\n,,
|
---|
| 7359 | ' >$as_me.lineno &&
|
---|
| 7360 | chmod +x $as_me.lineno ||
|
---|
| 7361 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
| 7362 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
| 7363 | { (exit 1); exit 1; }; }
|
---|
| 7364 |
|
---|
| 7365 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 7366 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 7367 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 7368 | . ./$as_me.lineno
|
---|
| 7369 | # Exit status is that of the last command.
|
---|
| 7370 | exit
|
---|
| 7371 | }
|
---|
| 7372 |
|
---|
| 7373 |
|
---|
| 7374 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 7375 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 7376 | ' ECHO_T=' ' ;;
|
---|
| 7377 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 7378 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
| 7379 | esac
|
---|
| 7380 |
|
---|
| 7381 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 7382 | as_expr=expr
|
---|
| 7383 | else
|
---|
| 7384 | as_expr=false
|
---|
| 7385 | fi
|
---|
| 7386 |
|
---|
| 7387 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7388 | echo >conf$$.file
|
---|
| 7389 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7390 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 7391 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 7392 | if test -f conf$$.exe; then
|
---|
| 7393 | # Don't use ln at all; we don't have any links
|
---|
| 7394 | as_ln_s='cp -p'
|
---|
[8200] | 7395 | else
|
---|
[8756] | 7396 | as_ln_s='ln -s'
|
---|
[562] | 7397 | fi
|
---|
[8756] | 7398 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 7399 | as_ln_s=ln
|
---|
| 7400 | else
|
---|
| 7401 | as_ln_s='cp -p'
|
---|
| 7402 | fi
|
---|
| 7403 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 7404 |
|
---|
| 7405 | if mkdir -p . 2>/dev/null; then
|
---|
| 7406 | as_mkdir_p=:
|
---|
| 7407 | else
|
---|
| 7408 | test -d ./-p && rmdir ./-p
|
---|
| 7409 | as_mkdir_p=false
|
---|
| 7410 | fi
|
---|
| 7411 |
|
---|
| 7412 | as_executable_p="test -f"
|
---|
| 7413 |
|
---|
| 7414 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 7415 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7416 |
|
---|
| 7417 | # Sed expression to map a string onto a valid variable name.
|
---|
| 7418 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 7419 |
|
---|
| 7420 |
|
---|
| 7421 | # IFS
|
---|
| 7422 | # We need space, tab and new line, in precisely that order.
|
---|
| 7423 | as_nl='
|
---|
| 7424 | '
|
---|
| 7425 | IFS=" $as_nl"
|
---|
| 7426 |
|
---|
| 7427 | # CDPATH.
|
---|
| 7428 | $as_unset CDPATH
|
---|
| 7429 |
|
---|
| 7430 | exec 6>&1
|
---|
| 7431 |
|
---|
| 7432 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
| 7433 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
| 7434 | # values after options handling. Logging --version etc. is OK.
|
---|
| 7435 | exec 5>>config.log
|
---|
| 7436 | {
|
---|
| 7437 | echo
|
---|
| 7438 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 7439 | ## Running $as_me. ##
|
---|
| 7440 | _ASBOX
|
---|
| 7441 | } >&5
|
---|
| 7442 | cat >&5 <<_CSEOF
|
---|
| 7443 |
|
---|
| 7444 | This file was extended by $as_me, which was
|
---|
| 7445 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
| 7446 |
|
---|
| 7447 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 7448 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 7449 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 7450 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 7451 | $ $0 $@
|
---|
| 7452 |
|
---|
| 7453 | _CSEOF
|
---|
| 7454 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
| 7455 | echo >&5
|
---|
| 7456 | _ACEOF
|
---|
| 7457 |
|
---|
| 7458 | # Files that config.status was made for.
|
---|
| 7459 | if test -n "$ac_config_files"; then
|
---|
| 7460 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
| 7461 | fi
|
---|
| 7462 |
|
---|
| 7463 | if test -n "$ac_config_headers"; then
|
---|
| 7464 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
| 7465 | fi
|
---|
| 7466 |
|
---|
| 7467 | if test -n "$ac_config_links"; then
|
---|
| 7468 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
| 7469 | fi
|
---|
| 7470 |
|
---|
| 7471 | if test -n "$ac_config_commands"; then
|
---|
| 7472 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
| 7473 | fi
|
---|
| 7474 |
|
---|
| 7475 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7476 |
|
---|
| 7477 | ac_cs_usage="\
|
---|
| 7478 | \`$as_me' instantiates files from templates according to the
|
---|
| 7479 | current configuration.
|
---|
| 7480 |
|
---|
| 7481 | Usage: $0 [OPTIONS] [FILE]...
|
---|
| 7482 |
|
---|
| 7483 | -h, --help print this help, then exit
|
---|
| 7484 | -V, --version print version number, then exit
|
---|
| 7485 | -q, --quiet do not print progress messages
|
---|
| 7486 | -d, --debug don't remove temporary files
|
---|
| 7487 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
| 7488 | --file=FILE[:TEMPLATE]
|
---|
| 7489 | instantiate the configuration file FILE
|
---|
| 7490 | --header=FILE[:TEMPLATE]
|
---|
| 7491 | instantiate the configuration header FILE
|
---|
| 7492 |
|
---|
| 7493 | Configuration files:
|
---|
| 7494 | $config_files
|
---|
| 7495 |
|
---|
| 7496 | Configuration headers:
|
---|
| 7497 | $config_headers
|
---|
| 7498 |
|
---|
| 7499 | Report bugs to <[email protected]>."
|
---|
| 7500 | _ACEOF
|
---|
| 7501 |
|
---|
| 7502 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7503 | ac_cs_version="\\
|
---|
| 7504 | config.status
|
---|
| 7505 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
| 7506 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
| 7507 |
|
---|
| 7508 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
| 7509 | This config.status script is free software; the Free Software Foundation
|
---|
| 7510 | gives unlimited permission to copy, distribute and modify it."
|
---|
| 7511 | srcdir=$srcdir
|
---|
| 7512 | INSTALL="$INSTALL"
|
---|
| 7513 | _ACEOF
|
---|
| 7514 |
|
---|
| 7515 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7516 | # If no file are specified by the user, then we need to provide default
|
---|
| 7517 | # value. By we need to know if files were specified by the user.
|
---|
| 7518 | ac_need_defaults=:
|
---|
| 7519 | while test $# != 0
|
---|
| 7520 | do
|
---|
| 7521 | case $1 in
|
---|
| 7522 | --*=*)
|
---|
| 7523 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
| 7524 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
| 7525 | ac_shift=:
|
---|
| 7526 | ;;
|
---|
| 7527 | -*)
|
---|
| 7528 | ac_option=$1
|
---|
| 7529 | ac_optarg=$2
|
---|
| 7530 | ac_shift=shift
|
---|
| 7531 | ;;
|
---|
| 7532 | *) # This is not an option, so the user has probably given explicit
|
---|
| 7533 | # arguments.
|
---|
| 7534 | ac_option=$1
|
---|
| 7535 | ac_need_defaults=false;;
|
---|
| 7536 | esac
|
---|
| 7537 |
|
---|
| 7538 | case $ac_option in
|
---|
| 7539 | # Handling of the options.
|
---|
| 7540 | _ACEOF
|
---|
| 7541 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7542 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 7543 | ac_cs_recheck=: ;;
|
---|
| 7544 | --version | --vers* | -V )
|
---|
| 7545 | echo "$ac_cs_version"; exit 0 ;;
|
---|
| 7546 | --he | --h)
|
---|
| 7547 | # Conflict between --help and --header
|
---|
| 7548 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
| 7549 | Try \`$0 --help' for more information." >&5
|
---|
| 7550 | echo "$as_me: error: ambiguous option: $1
|
---|
| 7551 | Try \`$0 --help' for more information." >&2;}
|
---|
| 7552 | { (exit 1); exit 1; }; };;
|
---|
| 7553 | --help | --hel | -h )
|
---|
| 7554 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
| 7555 | --debug | --d* | -d )
|
---|
| 7556 | debug=: ;;
|
---|
| 7557 | --file | --fil | --fi | --f )
|
---|
| 7558 | $ac_shift
|
---|
| 7559 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
| 7560 | ac_need_defaults=false;;
|
---|
| 7561 | --header | --heade | --head | --hea )
|
---|
| 7562 | $ac_shift
|
---|
| 7563 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
| 7564 | ac_need_defaults=false;;
|
---|
| 7565 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 7566 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 7567 | ac_cs_silent=: ;;
|
---|
| 7568 |
|
---|
| 7569 | # This is an error.
|
---|
| 7570 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
| 7571 | Try \`$0 --help' for more information." >&5
|
---|
| 7572 | echo "$as_me: error: unrecognized option: $1
|
---|
| 7573 | Try \`$0 --help' for more information." >&2;}
|
---|
| 7574 | { (exit 1); exit 1; }; } ;;
|
---|
| 7575 |
|
---|
| 7576 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
| 7577 |
|
---|
| 7578 | esac
|
---|
| 7579 | shift
|
---|
[8200] | 7580 | done
|
---|
[8756] | 7581 |
|
---|
| 7582 | ac_configure_extra_args=
|
---|
| 7583 |
|
---|
| 7584 | if $ac_cs_silent; then
|
---|
| 7585 | exec 6>/dev/null
|
---|
| 7586 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
[8200] | 7587 | fi
|
---|
[562] | 7588 |
|
---|
[8756] | 7589 | _ACEOF
|
---|
| 7590 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7591 | if \$ac_cs_recheck; then
|
---|
| 7592 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 7593 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
| 7594 | fi
|
---|
[8200] | 7595 |
|
---|
[8756] | 7596 | _ACEOF
|
---|
| 7597 |
|
---|
| 7598 |
|
---|
| 7599 |
|
---|
| 7600 |
|
---|
| 7601 |
|
---|
| 7602 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7603 | for ac_config_target in $ac_config_targets
|
---|
| 7604 | do
|
---|
| 7605 | case "$ac_config_target" in
|
---|
| 7606 | # Handling of arguments.
|
---|
| 7607 | "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
|
---|
| 7608 | "packages/mg/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/Makefile" ;;
|
---|
| 7609 | "packages/mg/src/text/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/text/Makefile" ;;
|
---|
| 7610 | "packages/mg/src/images/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/images/Makefile" ;;
|
---|
| 7611 | "packages/mg/src/scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/src/scripts/Makefile" ;;
|
---|
| 7612 | "packages/mg/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/mg/lib/Makefile" ;;
|
---|
| 7613 | "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
|
---|
| 7614 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 7615 | "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
| 7616 | "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
| 7617 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 7618 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 7619 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 7620 | { (exit 1); exit 1; }; };;
|
---|
[562] | 7621 | esac
|
---|
[8756] | 7622 | done
|
---|
[562] | 7623 |
|
---|
[8756] | 7624 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 7625 | # then the envvar interface is used. Set only those that are not.
|
---|
| 7626 | # We use the long form for the default assignment because of an extremely
|
---|
| 7627 | # bizarre bug on SunOS 4.1.3.
|
---|
| 7628 | if $ac_need_defaults; then
|
---|
| 7629 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 7630 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 7631 | fi
|
---|
[8200] | 7632 |
|
---|
[8756] | 7633 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
| 7634 | # simply because there is no reason to put it here, and in addition,
|
---|
| 7635 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
| 7636 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
| 7637 | $debug ||
|
---|
| 7638 | {
|
---|
| 7639 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
| 7640 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
| 7641 | }
|
---|
| 7642 |
|
---|
| 7643 | # Create a (secure) tmp directory for tmp files.
|
---|
| 7644 |
|
---|
| 7645 | {
|
---|
| 7646 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
| 7647 | test -n "$tmp" && test -d "$tmp"
|
---|
| 7648 | } ||
|
---|
| 7649 | {
|
---|
| 7650 | tmp=./confstat$$-$RANDOM
|
---|
| 7651 | (umask 077 && mkdir $tmp)
|
---|
| 7652 | } ||
|
---|
| 7653 | {
|
---|
| 7654 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
| 7655 | { (exit 1); exit 1; }
|
---|
| 7656 | }
|
---|
| 7657 |
|
---|
| 7658 | _ACEOF
|
---|
| 7659 |
|
---|
| 7660 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7661 |
|
---|
| 7662 | #
|
---|
| 7663 | # CONFIG_FILES section.
|
---|
| 7664 | #
|
---|
| 7665 |
|
---|
| 7666 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 7667 | # This happens for instance when ./config.status config.h
|
---|
| 7668 | if test -n "\$CONFIG_FILES"; then
|
---|
| 7669 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 7670 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
| 7671 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
| 7672 | s,@SHELL@,$SHELL,;t t
|
---|
| 7673 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
| 7674 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
| 7675 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
| 7676 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
| 7677 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
| 7678 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
| 7679 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
| 7680 | s,@prefix@,$prefix,;t t
|
---|
| 7681 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
| 7682 | s,@bindir@,$bindir,;t t
|
---|
| 7683 | s,@sbindir@,$sbindir,;t t
|
---|
| 7684 | s,@libexecdir@,$libexecdir,;t t
|
---|
| 7685 | s,@datadir@,$datadir,;t t
|
---|
| 7686 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
| 7687 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
| 7688 | s,@localstatedir@,$localstatedir,;t t
|
---|
| 7689 | s,@libdir@,$libdir,;t t
|
---|
| 7690 | s,@includedir@,$includedir,;t t
|
---|
| 7691 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
| 7692 | s,@infodir@,$infodir,;t t
|
---|
| 7693 | s,@mandir@,$mandir,;t t
|
---|
| 7694 | s,@build_alias@,$build_alias,;t t
|
---|
| 7695 | s,@host_alias@,$host_alias,;t t
|
---|
| 7696 | s,@target_alias@,$target_alias,;t t
|
---|
| 7697 | s,@DEFS@,$DEFS,;t t
|
---|
| 7698 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
| 7699 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
| 7700 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
| 7701 | s,@LIBS@,$LIBS,;t t
|
---|
| 7702 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
| 7703 | s,@VERSION@,$VERSION,;t t
|
---|
| 7704 | s,@USE_FASTCGI@,$USE_FASTCGI,;t t
|
---|
| 7705 | s,@USE_LANGACTION@,$USE_LANGACTION,;t t
|
---|
| 7706 | s,@USE_CORBA@,$USE_CORBA,;t t
|
---|
| 7707 | s,@MICO_DIR@,$MICO_DIR,;t t
|
---|
| 7708 | s,@USE_Z3950@,$USE_Z3950,;t t
|
---|
| 7709 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
| 7710 | s,@CC@,$CC,;t t
|
---|
| 7711 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
| 7712 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
| 7713 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
| 7714 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
| 7715 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
| 7716 | s,@CXX@,$CXX,;t t
|
---|
| 7717 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
| 7718 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
| 7719 | s,@AWK@,$AWK,;t t
|
---|
| 7720 | s,@YACC@,$YACC,;t t
|
---|
| 7721 | s,@build@,$build,;t t
|
---|
| 7722 | s,@build_cpu@,$build_cpu,;t t
|
---|
| 7723 | s,@build_vendor@,$build_vendor,;t t
|
---|
| 7724 | s,@build_os@,$build_os,;t t
|
---|
| 7725 | s,@host@,$host,;t t
|
---|
| 7726 | s,@host_cpu@,$host_cpu,;t t
|
---|
| 7727 | s,@host_vendor@,$host_vendor,;t t
|
---|
| 7728 | s,@host_os@,$host_os,;t t
|
---|
| 7729 | s,@target@,$target,;t t
|
---|
| 7730 | s,@target_cpu@,$target_cpu,;t t
|
---|
| 7731 | s,@target_vendor@,$target_vendor,;t t
|
---|
| 7732 | s,@target_os@,$target_os,;t t
|
---|
| 7733 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
| 7734 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
| 7735 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
| 7736 | s,@LN_S@,$LN_S,;t t
|
---|
| 7737 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
| 7738 | s,@RANLIB@,$RANLIB,;t t
|
---|
| 7739 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
| 7740 | s,@MICO_VER@,$MICO_VER,;t t
|
---|
| 7741 | s,@CPP@,$CPP,;t t
|
---|
| 7742 | s,@EGREP@,$EGREP,;t t
|
---|
| 7743 | s,@U@,$U,;t t
|
---|
| 7744 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
| 7745 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
| 7746 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
| 7747 | s,@STATIC@,$STATIC,;t t
|
---|
| 7748 | s,@GDBM_LIBPATH@,$GDBM_LIBPATH,;t t
|
---|
| 7749 | s,@GDBM_INCLUDE@,$GDBM_INCLUDE,;t t
|
---|
| 7750 | s,@gsdlos@,$gsdlos,;t t
|
---|
| 7751 | s,@MODULEDIRS@,$MODULEDIRS,;t t
|
---|
| 7752 | s,@subdirs@,$subdirs,;t t
|
---|
| 7753 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
| 7754 | CEOF
|
---|
| 7755 |
|
---|
| 7756 | _ACEOF
|
---|
| 7757 |
|
---|
| 7758 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7759 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 7760 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 7761 | ac_max_sed_lines=48
|
---|
| 7762 | ac_sed_frag=1 # Number of current file.
|
---|
| 7763 | ac_beg=1 # First line for current file.
|
---|
| 7764 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
| 7765 | ac_more_lines=:
|
---|
| 7766 | ac_sed_cmds=
|
---|
| 7767 | while $ac_more_lines; do
|
---|
| 7768 | if test $ac_beg -gt 1; then
|
---|
| 7769 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 7770 | else
|
---|
| 7771 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 7772 | fi
|
---|
| 7773 | if test ! -s $tmp/subs.frag; then
|
---|
| 7774 | ac_more_lines=false
|
---|
| 7775 | else
|
---|
| 7776 | # The purpose of the label and of the branching condition is to
|
---|
| 7777 | # speed up the sed processing (if there are no `@' at all, there
|
---|
| 7778 | # is no need to browse any of the substitutions).
|
---|
| 7779 | # These are the two extra sed commands mentioned above.
|
---|
| 7780 | (echo ':t
|
---|
| 7781 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
| 7782 | if test -z "$ac_sed_cmds"; then
|
---|
| 7783 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 7784 | else
|
---|
| 7785 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 7786 | fi
|
---|
| 7787 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
| 7788 | ac_beg=$ac_end
|
---|
| 7789 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
| 7790 | fi
|
---|
| 7791 | done
|
---|
| 7792 | if test -z "$ac_sed_cmds"; then
|
---|
| 7793 | ac_sed_cmds=cat
|
---|
[562] | 7794 | fi
|
---|
[8756] | 7795 | fi # test -n "$CONFIG_FILES"
|
---|
[562] | 7796 |
|
---|
[8756] | 7797 | _ACEOF
|
---|
| 7798 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7799 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
| 7800 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 7801 | case $ac_file in
|
---|
| 7802 | - | *:- | *:-:* ) # input from stdin
|
---|
| 7803 | cat >$tmp/stdin
|
---|
| 7804 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 7805 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 7806 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 7807 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 7808 | * ) ac_file_in=$ac_file.in ;;
|
---|
[562] | 7809 | esac
|
---|
| 7810 |
|
---|
[8756] | 7811 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
| 7812 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 7813 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7814 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 7815 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 7816 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 7817 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7818 | echo X"$ac_file" |
|
---|
| 7819 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 7820 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 7821 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7822 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 7823 | s/.*/./; q'`
|
---|
| 7824 | { if $as_mkdir_p; then
|
---|
| 7825 | mkdir -p "$ac_dir"
|
---|
| 7826 | else
|
---|
| 7827 | as_dir="$ac_dir"
|
---|
| 7828 | as_dirs=
|
---|
| 7829 | while test ! -d "$as_dir"; do
|
---|
| 7830 | as_dirs="$as_dir $as_dirs"
|
---|
| 7831 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 7832 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 7833 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 7834 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 7835 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 7836 | . : '\(.\)' 2>/dev/null ||
|
---|
| 7837 | echo X"$as_dir" |
|
---|
| 7838 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 7839 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 7840 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 7841 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 7842 | s/.*/./; q'`
|
---|
| 7843 | done
|
---|
| 7844 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 7845 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 7846 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 7847 | { (exit 1); exit 1; }; }; }
|
---|
[562] | 7848 |
|
---|
[8756] | 7849 | ac_builddir=.
|
---|
| 7850 |
|
---|
| 7851 | if test "$ac_dir" != .; then
|
---|
| 7852 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 7853 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 7854 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 7855 | else
|
---|
| 7856 | ac_dir_suffix= ac_top_builddir=
|
---|
| 7857 | fi
|
---|
| 7858 |
|
---|
| 7859 | case $srcdir in
|
---|
| 7860 | .) # No --srcdir option. We are building in place.
|
---|
| 7861 | ac_srcdir=.
|
---|
| 7862 | if test -z "$ac_top_builddir"; then
|
---|
| 7863 | ac_top_srcdir=.
|
---|
| 7864 | else
|
---|
| 7865 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 7866 | fi ;;
|
---|
| 7867 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 7868 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 7869 | ac_top_srcdir=$srcdir ;;
|
---|
| 7870 | *) # Relative path.
|
---|
| 7871 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 7872 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 7873 | esac
|
---|
| 7874 |
|
---|
| 7875 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 7876 | # the directories may not exist.
|
---|
| 7877 | case `pwd` in
|
---|
| 7878 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 7879 | *)
|
---|
| 7880 | case "$ac_dir" in
|
---|
| 7881 | .) ac_abs_builddir=`pwd`;;
|
---|
| 7882 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 7883 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 7884 | esac;;
|
---|
| 7885 | esac
|
---|
| 7886 | case $ac_abs_builddir in
|
---|
| 7887 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 7888 | *)
|
---|
| 7889 | case ${ac_top_builddir}. in
|
---|
| 7890 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 7891 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 7892 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 7893 | esac;;
|
---|
| 7894 | esac
|
---|
| 7895 | case $ac_abs_builddir in
|
---|
| 7896 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 7897 | *)
|
---|
| 7898 | case $ac_srcdir in
|
---|
| 7899 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 7900 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 7901 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 7902 | esac;;
|
---|
| 7903 | esac
|
---|
| 7904 | case $ac_abs_builddir in
|
---|
| 7905 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 7906 | *)
|
---|
| 7907 | case $ac_top_srcdir in
|
---|
| 7908 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 7909 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 7910 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 7911 | esac;;
|
---|
| 7912 | esac
|
---|
| 7913 |
|
---|
| 7914 |
|
---|
| 7915 | case $INSTALL in
|
---|
| 7916 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
| 7917 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
[8200] | 7918 | esac
|
---|
[562] | 7919 |
|
---|
[8756] | 7920 | if test x"$ac_file" != x-; then
|
---|
| 7921 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 7922 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 7923 | rm -f "$ac_file"
|
---|
| 7924 | fi
|
---|
| 7925 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 7926 | # use $as_me), people would be surprised to read:
|
---|
| 7927 | # /* config.h. Generated by config.status. */
|
---|
| 7928 | if test x"$ac_file" = x-; then
|
---|
| 7929 | configure_input=
|
---|
| 7930 | else
|
---|
| 7931 | configure_input="$ac_file. "
|
---|
| 7932 | fi
|
---|
| 7933 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
| 7934 | sed 's,.*/,,'` by configure."
|
---|
[562] | 7935 |
|
---|
[8756] | 7936 | # First look for the input files in the build tree, otherwise in the
|
---|
| 7937 | # src tree.
|
---|
| 7938 | ac_file_inputs=`IFS=:
|
---|
| 7939 | for f in $ac_file_in; do
|
---|
| 7940 | case $f in
|
---|
| 7941 | -) echo $tmp/stdin ;;
|
---|
| 7942 | [\\/$]*)
|
---|
| 7943 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 7944 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 7945 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 7946 | { (exit 1); exit 1; }; }
|
---|
| 7947 | echo "$f";;
|
---|
| 7948 | *) # Relative
|
---|
| 7949 | if test -f "$f"; then
|
---|
| 7950 | # Build tree
|
---|
| 7951 | echo "$f"
|
---|
| 7952 | elif test -f "$srcdir/$f"; then
|
---|
| 7953 | # Source tree
|
---|
| 7954 | echo "$srcdir/$f"
|
---|
| 7955 | else
|
---|
| 7956 | # /dev/null tree
|
---|
| 7957 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 7958 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 7959 | { (exit 1); exit 1; }; }
|
---|
| 7960 | fi;;
|
---|
| 7961 | esac
|
---|
| 7962 | done` || { (exit 1); exit 1; }
|
---|
| 7963 | _ACEOF
|
---|
| 7964 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 7965 | sed "$ac_vpsub
|
---|
| 7966 | $extrasub
|
---|
| 7967 | _ACEOF
|
---|
| 7968 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7969 | :t
|
---|
| 7970 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
| 7971 | s,@configure_input@,$configure_input,;t t
|
---|
| 7972 | s,@srcdir@,$ac_srcdir,;t t
|
---|
| 7973 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
| 7974 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
| 7975 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
| 7976 | s,@builddir@,$ac_builddir,;t t
|
---|
| 7977 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
| 7978 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
| 7979 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
| 7980 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
| 7981 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
| 7982 | rm -f $tmp/stdin
|
---|
| 7983 | if test x"$ac_file" != x-; then
|
---|
| 7984 | mv $tmp/out $ac_file
|
---|
| 7985 | else
|
---|
| 7986 | cat $tmp/out
|
---|
| 7987 | rm -f $tmp/out
|
---|
| 7988 | fi
|
---|
| 7989 |
|
---|
| 7990 | done
|
---|
| 7991 | _ACEOF
|
---|
| 7992 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 7993 |
|
---|
| 7994 | #
|
---|
| 7995 | # CONFIG_HEADER section.
|
---|
| 7996 | #
|
---|
| 7997 |
|
---|
[687] | 7998 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 7999 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 8000 | #
|
---|
| 8001 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
[8756] | 8002 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 8003 | ac_dB='[ ].*$,\1#\2'
|
---|
| 8004 | ac_dC=' '
|
---|
| 8005 | ac_dD=',;t'
|
---|
| 8006 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
| 8007 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 8008 | ac_uB='$,\1#\2define\3'
|
---|
[687] | 8009 | ac_uC=' '
|
---|
[8756] | 8010 | ac_uD=',;t'
|
---|
[687] | 8011 |
|
---|
[8756] | 8012 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
[687] | 8013 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[8756] | 8014 | case $ac_file in
|
---|
| 8015 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8016 | cat >$tmp/stdin
|
---|
| 8017 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8018 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8019 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8020 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8021 | * ) ac_file_in=$ac_file.in ;;
|
---|
[687] | 8022 | esac
|
---|
[562] | 8023 |
|
---|
[8756] | 8024 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8025 | echo "$as_me: creating $ac_file" >&6;}
|
---|
[687] | 8026 |
|
---|
[8756] | 8027 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8028 | # src tree.
|
---|
| 8029 | ac_file_inputs=`IFS=:
|
---|
| 8030 | for f in $ac_file_in; do
|
---|
| 8031 | case $f in
|
---|
| 8032 | -) echo $tmp/stdin ;;
|
---|
| 8033 | [\\/$]*)
|
---|
| 8034 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8035 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8036 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8037 | { (exit 1); exit 1; }; }
|
---|
| 8038 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
| 8039 | echo "$f";;
|
---|
| 8040 | *) # Relative
|
---|
| 8041 | if test -f "$f"; then
|
---|
| 8042 | # Build tree
|
---|
| 8043 | echo "$f"
|
---|
| 8044 | elif test -f "$srcdir/$f"; then
|
---|
| 8045 | # Source tree
|
---|
| 8046 | echo "$srcdir/$f"
|
---|
| 8047 | else
|
---|
| 8048 | # /dev/null tree
|
---|
| 8049 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8050 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8051 | { (exit 1); exit 1; }; }
|
---|
| 8052 | fi;;
|
---|
| 8053 | esac
|
---|
| 8054 | done` || { (exit 1); exit 1; }
|
---|
| 8055 | # Remove the trailing spaces.
|
---|
| 8056 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
[687] | 8057 |
|
---|
[8756] | 8058 | _ACEOF
|
---|
[687] | 8059 |
|
---|
[8756] | 8060 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
| 8061 | # `conftest.undefs', that substitutes the proper values into
|
---|
| 8062 | # config.h.in to produce config.h. The first handles `#define'
|
---|
| 8063 | # templates, and the second `#undef' templates.
|
---|
| 8064 | # And first: Protect against being on the right side of a sed subst in
|
---|
| 8065 | # config.status. Protect against being in an unquoted here document
|
---|
| 8066 | # in config.status.
|
---|
| 8067 | rm -f conftest.defines conftest.undefs
|
---|
| 8068 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
| 8069 | # Putting comments in sed scripts is not portable.
|
---|
| 8070 | #
|
---|
| 8071 | # `end' is used to avoid that the second main sed command (meant for
|
---|
| 8072 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
| 8073 | # See the Autoconf documentation for `clear'.
|
---|
| 8074 | cat >confdef2sed.sed <<\_ACEOF
|
---|
| 8075 | s/[\\&,]/\\&/g
|
---|
| 8076 | s,[\\$`],\\&,g
|
---|
| 8077 | t clear
|
---|
| 8078 | : clear
|
---|
| 8079 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
| 8080 | t end
|
---|
| 8081 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
| 8082 | : end
|
---|
| 8083 | _ACEOF
|
---|
| 8084 | # If some macros were called several times there might be several times
|
---|
| 8085 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
| 8086 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
| 8087 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
| 8088 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
| 8089 | rm -f confdef2sed.sed
|
---|
[687] | 8090 |
|
---|
| 8091 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 8092 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 8093 | # on some systems where configure will not decide to define it.
|
---|
[8756] | 8094 | cat >>conftest.undefs <<\_ACEOF
|
---|
| 8095 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
| 8096 | _ACEOF
|
---|
[687] | 8097 |
|
---|
[8756] | 8098 | # Break up conftest.defines because some shells have a limit on the size
|
---|
| 8099 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8100 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
| 8101 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
| 8102 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
| 8103 | echo ' :' >>$CONFIG_STATUS
|
---|
| 8104 | rm -f conftest.tail
|
---|
| 8105 | while grep . conftest.defines >/dev/null
|
---|
| 8106 | do
|
---|
| 8107 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
| 8108 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8109 | # Speed up: don't consider the non `#define' lines.
|
---|
| 8110 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
| 8111 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8112 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8113 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8114 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
| 8115 | echo 'CEOF
|
---|
| 8116 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
| 8117 | rm -f $tmp/in
|
---|
| 8118 | mv $tmp/out $tmp/in
|
---|
| 8119 | ' >>$CONFIG_STATUS
|
---|
| 8120 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
| 8121 | rm -f conftest.defines
|
---|
| 8122 | mv conftest.tail conftest.defines
|
---|
| 8123 | done
|
---|
| 8124 | rm -f conftest.defines
|
---|
| 8125 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
| 8126 | echo >>$CONFIG_STATUS
|
---|
[687] | 8127 |
|
---|
[8756] | 8128 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
| 8129 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8130 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
[687] | 8131 | rm -f conftest.tail
|
---|
[8756] | 8132 | while grep . conftest.undefs >/dev/null
|
---|
[687] | 8133 | do
|
---|
[8756] | 8134 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
| 8135 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8136 | # Speed up: don't consider the non `#undef'
|
---|
| 8137 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
| 8138 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8139 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8140 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8141 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
[687] | 8142 | echo 'CEOF
|
---|
[8756] | 8143 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
| 8144 | rm -f $tmp/in
|
---|
| 8145 | mv $tmp/out $tmp/in
|
---|
| 8146 | ' >>$CONFIG_STATUS
|
---|
| 8147 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
| 8148 | rm -f conftest.undefs
|
---|
| 8149 | mv conftest.tail conftest.undefs
|
---|
[687] | 8150 | done
|
---|
[8756] | 8151 | rm -f conftest.undefs
|
---|
[687] | 8152 |
|
---|
[8756] | 8153 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8154 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8155 | # use $as_me), people would be surprised to read:
|
---|
| 8156 | # /* config.h. Generated by config.status. */
|
---|
| 8157 | if test x"$ac_file" = x-; then
|
---|
| 8158 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
[687] | 8159 | else
|
---|
[8756] | 8160 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
| 8161 | fi
|
---|
| 8162 | cat $tmp/in >>$tmp/config.h
|
---|
| 8163 | rm -f $tmp/in
|
---|
| 8164 | if test x"$ac_file" != x-; then
|
---|
| 8165 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
| 8166 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
| 8167 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
| 8168 | else
|
---|
| 8169 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8170 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8171 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8172 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8173 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8174 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8175 | echo X"$ac_file" |
|
---|
| 8176 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8177 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8178 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8179 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8180 | s/.*/./; q'`
|
---|
| 8181 | { if $as_mkdir_p; then
|
---|
| 8182 | mkdir -p "$ac_dir"
|
---|
| 8183 | else
|
---|
| 8184 | as_dir="$ac_dir"
|
---|
| 8185 | as_dirs=
|
---|
| 8186 | while test ! -d "$as_dir"; do
|
---|
| 8187 | as_dirs="$as_dir $as_dirs"
|
---|
| 8188 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8189 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8190 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8191 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8192 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8193 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8194 | echo X"$as_dir" |
|
---|
| 8195 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8196 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8197 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8198 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8199 | s/.*/./; q'`
|
---|
| 8200 | done
|
---|
| 8201 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8202 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8203 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8204 | { (exit 1); exit 1; }; }; }
|
---|
| 8205 |
|
---|
| 8206 | rm -f $ac_file
|
---|
| 8207 | mv $tmp/config.h $ac_file
|
---|
[687] | 8208 | fi
|
---|
[8756] | 8209 | else
|
---|
| 8210 | cat $tmp/config.h
|
---|
| 8211 | rm -f $tmp/config.h
|
---|
[687] | 8212 | fi
|
---|
[8756] | 8213 | done
|
---|
| 8214 | _ACEOF
|
---|
[8200] | 8215 |
|
---|
[8756] | 8216 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[687] | 8217 |
|
---|
[8756] | 8218 | { (exit 0); exit 0; }
|
---|
| 8219 | _ACEOF
|
---|
[562] | 8220 | chmod +x $CONFIG_STATUS
|
---|
[8756] | 8221 | ac_clean_files=$ac_clean_files_save
|
---|
[562] | 8222 |
|
---|
[8756] | 8223 |
|
---|
| 8224 | # configure is writing to config.log, and then calls config.status.
|
---|
| 8225 | # config.status does its own redirection, appending to config.log.
|
---|
| 8226 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 8227 | # by configure, so config.status won't be able to write to it; its
|
---|
| 8228 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 8229 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 8230 | # appended to by config.status. When coming back to configure, we
|
---|
| 8231 | # need to make the FD available again.
|
---|
| 8232 | if test "$no_create" != yes; then
|
---|
| 8233 | ac_cs_success=:
|
---|
| 8234 | ac_config_status_args=
|
---|
| 8235 | test "$silent" = yes &&
|
---|
| 8236 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
| 8237 | exec 5>/dev/null
|
---|
| 8238 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
| 8239 | exec 5>>config.log
|
---|
| 8240 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 8241 | # would make configure fail if this is the last instruction.
|
---|
| 8242 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
| 8243 | fi
|
---|
| 8244 |
|
---|
| 8245 | #
|
---|
| 8246 | # CONFIG_SUBDIRS section.
|
---|
| 8247 | #
|
---|
[1675] | 8248 | if test "$no_recursion" != yes; then
|
---|
[562] | 8249 |
|
---|
[1675] | 8250 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
| 8251 | ac_sub_configure_args=
|
---|
| 8252 | ac_prev=
|
---|
| 8253 | for ac_arg in $ac_configure_args; do
|
---|
| 8254 | if test -n "$ac_prev"; then
|
---|
| 8255 | ac_prev=
|
---|
| 8256 | continue
|
---|
| 8257 | fi
|
---|
[8756] | 8258 | case $ac_arg in
|
---|
[1675] | 8259 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 8260 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 8261 | ac_prev=cache_file ;;
|
---|
| 8262 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
[8756] | 8263 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
| 8264 | | --c=*)
|
---|
[1675] | 8265 | ;;
|
---|
[8756] | 8266 | --config-cache | -C)
|
---|
| 8267 | ;;
|
---|
[1675] | 8268 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 8269 | ac_prev=srcdir ;;
|
---|
| 8270 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 8271 | ;;
|
---|
[8756] | 8272 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 8273 | ac_prev=prefix ;;
|
---|
| 8274 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 8275 | ;;
|
---|
[1675] | 8276 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
| 8277 | esac
|
---|
| 8278 | done
|
---|
[562] | 8279 |
|
---|
[8756] | 8280 | # Always prepend --prefix to ensure using the same prefix
|
---|
| 8281 | # in subdir configurations.
|
---|
| 8282 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
[1570] | 8283 |
|
---|
[8756] | 8284 | ac_popdir=`pwd`
|
---|
| 8285 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
| 8286 |
|
---|
[1675] | 8287 | # Do not complain, so a configure script can configure whichever
|
---|
| 8288 | # parts of a large source tree are present.
|
---|
[8756] | 8289 | test -d $srcdir/$ac_dir || continue
|
---|
[1675] | 8290 |
|
---|
[8756] | 8291 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
| 8292 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
| 8293 | { if $as_mkdir_p; then
|
---|
| 8294 | mkdir -p "$ac_dir"
|
---|
| 8295 | else
|
---|
| 8296 | as_dir="$ac_dir"
|
---|
| 8297 | as_dirs=
|
---|
| 8298 | while test ! -d "$as_dir"; do
|
---|
| 8299 | as_dirs="$as_dir $as_dirs"
|
---|
| 8300 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8301 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8302 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8303 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8304 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8305 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8306 | echo X"$as_dir" |
|
---|
| 8307 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8308 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8309 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8310 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8311 | s/.*/./; q'`
|
---|
| 8312 | done
|
---|
| 8313 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8314 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8315 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8316 | { (exit 1); exit 1; }; }; }
|
---|
[8200] | 8317 |
|
---|
[8756] | 8318 | ac_builddir=.
|
---|
[1675] | 8319 |
|
---|
[8756] | 8320 | if test "$ac_dir" != .; then
|
---|
| 8321 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8322 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8323 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8324 | else
|
---|
| 8325 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8326 | fi
|
---|
[1675] | 8327 |
|
---|
[8756] | 8328 | case $srcdir in
|
---|
| 8329 | .) # No --srcdir option. We are building in place.
|
---|
| 8330 | ac_srcdir=.
|
---|
| 8331 | if test -z "$ac_top_builddir"; then
|
---|
| 8332 | ac_top_srcdir=.
|
---|
| 8333 | else
|
---|
| 8334 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8335 | fi ;;
|
---|
| 8336 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
| 8337 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
| 8338 | ac_top_srcdir=$srcdir ;;
|
---|
| 8339 | *) # Relative path.
|
---|
| 8340 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8341 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
| 8342 | esac
|
---|
[1675] | 8343 |
|
---|
[8756] | 8344 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8345 | # the directories may not exist.
|
---|
| 8346 | case `pwd` in
|
---|
| 8347 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8348 | *)
|
---|
| 8349 | case "$ac_dir" in
|
---|
| 8350 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8351 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8352 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8353 | esac;;
|
---|
| 8354 | esac
|
---|
| 8355 | case $ac_abs_builddir in
|
---|
| 8356 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8357 | *)
|
---|
| 8358 | case ${ac_top_builddir}. in
|
---|
| 8359 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8360 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8361 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8362 | esac;;
|
---|
| 8363 | esac
|
---|
| 8364 | case $ac_abs_builddir in
|
---|
| 8365 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8366 | *)
|
---|
| 8367 | case $ac_srcdir in
|
---|
| 8368 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8369 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8370 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8371 | esac;;
|
---|
| 8372 | esac
|
---|
| 8373 | case $ac_abs_builddir in
|
---|
| 8374 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8375 | *)
|
---|
| 8376 | case $ac_top_srcdir in
|
---|
| 8377 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8378 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8379 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8380 | esac;;
|
---|
| 8381 | esac
|
---|
[1675] | 8382 |
|
---|
[8756] | 8383 |
|
---|
| 8384 | cd $ac_dir
|
---|
| 8385 |
|
---|
[1675] | 8386 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[8756] | 8387 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 8388 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
| 8389 | elif test -f $ac_srcdir/configure; then
|
---|
| 8390 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
| 8391 | elif test -f $ac_srcdir/configure.in; then
|
---|
[1675] | 8392 | ac_sub_configure=$ac_configure
|
---|
| 8393 | else
|
---|
[8756] | 8394 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
| 8395 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
[1675] | 8396 | ac_sub_configure=
|
---|
| 8397 | fi
|
---|
| 8398 |
|
---|
| 8399 | # The recursion is here.
|
---|
| 8400 | if test -n "$ac_sub_configure"; then
|
---|
| 8401 | # Make the cache file name correct relative to the subdirectory.
|
---|
[8756] | 8402 | case $cache_file in
|
---|
| 8403 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
[1675] | 8404 | *) # Relative path.
|
---|
[8756] | 8405 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
[1675] | 8406 | esac
|
---|
| 8407 |
|
---|
[8756] | 8408 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
| 8409 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
[1675] | 8410 | # The eval makes quoting arguments work.
|
---|
[8756] | 8411 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
| 8412 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
| 8413 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
| 8414 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
| 8415 | { (exit 1); exit 1; }; }
|
---|
[1675] | 8416 | fi
|
---|
| 8417 |
|
---|
| 8418 | cd $ac_popdir
|
---|
| 8419 | done
|
---|
| 8420 | fi
|
---|
| 8421 |
|
---|
[8200] | 8422 |
|
---|
| 8423 |
|
---|