[16568] | 1 | #! /bin/sh
|
---|
| 2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
[24901] | 3 | # Generated by GNU Autoconf 2.59.
|
---|
[16568] | 4 | #
|
---|
[24901] | 5 | # Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[16568] | 6 | # This configure script is free software; the Free Software Foundation
|
---|
| 7 | # gives unlimited permission to copy, distribute and modify it.
|
---|
[24901] | 8 | ## --------------------- ##
|
---|
| 9 | ## M4sh Initialization. ##
|
---|
| 10 | ## --------------------- ##
|
---|
[16568] | 11 |
|
---|
[24901] | 12 | # Be Bourne compatible
|
---|
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
[16568] | 14 | emulate sh
|
---|
| 15 | NULLCMD=:
|
---|
[24901] | 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
[16568] | 17 | # is contrary to our usage. Disable this feature.
|
---|
| 18 | alias -g '${1+"$@"}'='"$@"'
|
---|
[24901] | 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 20 | set -o posix
|
---|
[16568] | 21 | fi
|
---|
[24901] | 22 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[16568] | 23 |
|
---|
[24901] | 24 | # Support unset when possible.
|
---|
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 26 | as_unset=unset
|
---|
[16568] | 27 | else
|
---|
[24901] | 28 | as_unset=false
|
---|
[16568] | 29 | fi
|
---|
| 30 |
|
---|
| 31 |
|
---|
[24901] | 32 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 33 | $as_unset ENV MAIL MAILPATH
|
---|
[16568] | 34 | PS1='$ '
|
---|
| 35 | PS2='> '
|
---|
| 36 | PS4='+ '
|
---|
| 37 |
|
---|
| 38 | # NLS nuisances.
|
---|
[24901] | 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
|
---|
[16568] | 43 | do
|
---|
[24901] | 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 45 | eval $as_var=C; export $as_var
|
---|
[16568] | 46 | else
|
---|
[24901] | 47 | $as_unset $as_var
|
---|
[16568] | 48 | fi
|
---|
[24901] | 49 | done
|
---|
[16568] | 50 |
|
---|
[24901] | 51 | # Required to use basename.
|
---|
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
[16568] | 53 | as_expr=expr
|
---|
| 54 | else
|
---|
| 55 | as_expr=false
|
---|
| 56 | fi
|
---|
| 57 |
|
---|
[24901] | 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
[16568] | 59 | as_basename=basename
|
---|
| 60 | else
|
---|
| 61 | as_basename=false
|
---|
| 62 | fi
|
---|
| 63 |
|
---|
| 64 |
|
---|
[24901] | 65 | # Name of the executable.
|
---|
| 66 | as_me=`$as_basename "$0" ||
|
---|
[16568] | 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 68 | X"$0" : 'X\(//\)$' \| \
|
---|
[24901] | 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'`
|
---|
[16568] | 76 |
|
---|
[24901] | 77 |
|
---|
| 78 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
[20854] | 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
|
---|
[16568] | 85 |
|
---|
[24901] | 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
|
---|
[16568] | 98 |
|
---|
[24901] | 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 |
|
---|
[16568] | 165 | sed '
|
---|
| 166 | N
|
---|
[24901] | 167 | s,$,-,
|
---|
| 168 | : loop
|
---|
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
[16568] | 170 | t loop
|
---|
[24901] | 171 | s,-$,,
|
---|
| 172 | s,^['$as_cr_digits']*\n,,
|
---|
[16568] | 173 | ' >$as_me.lineno &&
|
---|
[24901] | 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; }; }
|
---|
[16568] | 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
|
---|
[24901] | 180 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 181 | . ./$as_me.lineno
|
---|
[16568] | 182 | # Exit status is that of the last command.
|
---|
| 183 | exit
|
---|
| 184 | }
|
---|
| 185 |
|
---|
[24901] | 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= ;;
|
---|
[16568] | 192 | esac
|
---|
| 193 |
|
---|
[24901] | 194 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 195 | as_expr=expr
|
---|
[16568] | 196 | else
|
---|
[24901] | 197 | as_expr=false
|
---|
[16568] | 198 | fi
|
---|
[24901] | 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
|
---|
[23356] | 209 | as_ln_s='ln -s'
|
---|
[20854] | 210 | fi
|
---|
[24901] | 211 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 212 | as_ln_s=ln
|
---|
[16568] | 213 | else
|
---|
| 214 | as_ln_s='cp -p'
|
---|
| 215 | fi
|
---|
[24901] | 216 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
[16568] | 217 |
|
---|
| 218 | if mkdir -p . 2>/dev/null; then
|
---|
[24901] | 219 | as_mkdir_p=:
|
---|
[16568] | 220 | else
|
---|
| 221 | test -d ./-p && rmdir ./-p
|
---|
| 222 | as_mkdir_p=false
|
---|
| 223 | fi
|
---|
| 224 |
|
---|
[24901] | 225 | as_executable_p="test -f"
|
---|
[16568] | 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 |
|
---|
[24901] | 234 | # IFS
|
---|
| 235 | # We need space, tab and new line, in precisely that order.
|
---|
| 236 | as_nl='
|
---|
| 237 | '
|
---|
| 238 | IFS=" $as_nl"
|
---|
[16568] | 239 |
|
---|
[24901] | 240 | # CDPATH.
|
---|
| 241 | $as_unset CDPATH
|
---|
| 242 |
|
---|
| 243 |
|
---|
[16568] | 244 | # Name of the host.
|
---|
[24901] | 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
[16568] | 246 | # so uname gets run too.
|
---|
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 248 |
|
---|
[24901] | 249 | exec 6>&1
|
---|
| 250 |
|
---|
[16568] | 251 | #
|
---|
| 252 | # Initializations.
|
---|
| 253 | #
|
---|
| 254 | ac_default_prefix=/usr/local
|
---|
| 255 | ac_config_libobj_dir=.
|
---|
| 256 | cross_compiling=no
|
---|
| 257 | subdirs=
|
---|
| 258 | MFLAGS=
|
---|
| 259 | MAKEFLAGS=
|
---|
[24901] | 260 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
[16568] | 261 |
|
---|
[24901] | 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 |
|
---|
[16568] | 267 | # Identity of this package.
|
---|
| 268 | PACKAGE_NAME=
|
---|
| 269 | PACKAGE_TARNAME=
|
---|
| 270 | PACKAGE_VERSION=
|
---|
| 271 | PACKAGE_STRING=
|
---|
| 272 | PACKAGE_BUGREPORT=
|
---|
| 273 |
|
---|
| 274 | # Factoring default headers for most tests.
|
---|
| 275 | ac_includes_default="\
|
---|
| 276 | #include <stdio.h>
|
---|
[24901] | 277 | #if HAVE_SYS_TYPES_H
|
---|
[16568] | 278 | # include <sys/types.h>
|
---|
| 279 | #endif
|
---|
[24901] | 280 | #if HAVE_SYS_STAT_H
|
---|
[16568] | 281 | # include <sys/stat.h>
|
---|
| 282 | #endif
|
---|
[24901] | 283 | #if STDC_HEADERS
|
---|
[16568] | 284 | # include <stdlib.h>
|
---|
| 285 | # include <stddef.h>
|
---|
| 286 | #else
|
---|
[24901] | 287 | # if HAVE_STDLIB_H
|
---|
[16568] | 288 | # include <stdlib.h>
|
---|
| 289 | # endif
|
---|
| 290 | #endif
|
---|
[24901] | 291 | #if HAVE_STRING_H
|
---|
| 292 | # if !STDC_HEADERS && HAVE_MEMORY_H
|
---|
[16568] | 293 | # include <memory.h>
|
---|
| 294 | # endif
|
---|
| 295 | # include <string.h>
|
---|
| 296 | #endif
|
---|
[24901] | 297 | #if HAVE_STRINGS_H
|
---|
[16568] | 298 | # include <strings.h>
|
---|
| 299 | #endif
|
---|
[24901] | 300 | #if HAVE_INTTYPES_H
|
---|
[16568] | 301 | # include <inttypes.h>
|
---|
[24901] | 302 | #else
|
---|
| 303 | # if HAVE_STDINT_H
|
---|
| 304 | # include <stdint.h>
|
---|
| 305 | # endif
|
---|
[16568] | 306 | #endif
|
---|
[24901] | 307 | #if HAVE_UNISTD_H
|
---|
[16568] | 308 | # include <unistd.h>
|
---|
| 309 | #endif"
|
---|
| 310 |
|
---|
[24901] | 311 | ac_subdirs_all="$ac_subdirs_all packages"
|
---|
[24958] | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS PACKAGE VERSION USE_FASTCGI USE_LANGACTION USE_CORBA MICO_DIR USE_Z3950 USE_YAZ ENABLE_JAVA USE_JDBM USE_GDBM ENABLE_ACCENTFOLD USE_SQLITE USE_RSS USE_APACHE_HTTPD ENABLE_MG ENABLE_MGPP ENABLE_LUCENE LDFLAGS CFLAGS CC CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX JAVAC JAVACFLAGS JAVA uudecode AWK YACC build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S SET_MAKE RANLIB ac_ct_RANLIB COMPAT32BITFLAGS MICO_VER CPP EGREP U ANSI2KNR ALLOCA LIBOBJS STATIC gsdlos gsdlarch MODULEDIRS subdirs LTLIBOBJS'
|
---|
[16568] | 313 | ac_subst_files=''
|
---|
| 314 |
|
---|
| 315 | # Initialize some variables set by options.
|
---|
| 316 | ac_init_help=
|
---|
| 317 | ac_init_version=false
|
---|
| 318 | # The variables have the same names as the options, with
|
---|
| 319 | # dashes changed to underlines.
|
---|
| 320 | cache_file=/dev/null
|
---|
| 321 | exec_prefix=NONE
|
---|
| 322 | no_create=
|
---|
| 323 | no_recursion=
|
---|
| 324 | prefix=NONE
|
---|
| 325 | program_prefix=NONE
|
---|
| 326 | program_suffix=NONE
|
---|
| 327 | program_transform_name=s,x,x,
|
---|
| 328 | silent=
|
---|
| 329 | site=
|
---|
| 330 | srcdir=
|
---|
| 331 | verbose=
|
---|
| 332 | x_includes=NONE
|
---|
| 333 | x_libraries=NONE
|
---|
| 334 |
|
---|
| 335 | # Installation directory options.
|
---|
| 336 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
| 337 | # and all the variables that are supposed to be based on exec_prefix
|
---|
| 338 | # by default will actually change.
|
---|
| 339 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
| 340 | bindir='${exec_prefix}/bin'
|
---|
| 341 | sbindir='${exec_prefix}/sbin'
|
---|
| 342 | libexecdir='${exec_prefix}/libexec'
|
---|
[24901] | 343 | datadir='${prefix}/share'
|
---|
[16568] | 344 | sysconfdir='${prefix}/etc'
|
---|
| 345 | sharedstatedir='${prefix}/com'
|
---|
| 346 | localstatedir='${prefix}/var'
|
---|
[24901] | 347 | libdir='${exec_prefix}/lib'
|
---|
[16568] | 348 | includedir='${prefix}/include'
|
---|
| 349 | oldincludedir='/usr/include'
|
---|
[24901] | 350 | infodir='${prefix}/info'
|
---|
| 351 | mandir='${prefix}/man'
|
---|
[16568] | 352 |
|
---|
| 353 | ac_prev=
|
---|
| 354 | for ac_option
|
---|
| 355 | do
|
---|
| 356 | # If the previous option needs an argument, assign it.
|
---|
| 357 | if test -n "$ac_prev"; then
|
---|
[24901] | 358 | eval "$ac_prev=\$ac_option"
|
---|
[16568] | 359 | ac_prev=
|
---|
| 360 | continue
|
---|
| 361 | fi
|
---|
| 362 |
|
---|
[24901] | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
[16568] | 364 |
|
---|
| 365 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
| 366 |
|
---|
[24901] | 367 | case $ac_option in
|
---|
[16568] | 368 |
|
---|
| 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
| 370 | ac_prev=bindir ;;
|
---|
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
| 372 | bindir=$ac_optarg ;;
|
---|
| 373 |
|
---|
| 374 | -build | --build | --buil | --bui | --bu)
|
---|
| 375 | ac_prev=build_alias ;;
|
---|
| 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
| 377 | build_alias=$ac_optarg ;;
|
---|
| 378 |
|
---|
| 379 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 381 | ac_prev=cache_file ;;
|
---|
| 382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
| 384 | cache_file=$ac_optarg ;;
|
---|
| 385 |
|
---|
| 386 | --config-cache | -C)
|
---|
| 387 | cache_file=config.cache ;;
|
---|
| 388 |
|
---|
[24901] | 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
[16568] | 390 | ac_prev=datadir ;;
|
---|
[24901] | 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
| 392 | | --da=*)
|
---|
[16568] | 393 | datadir=$ac_optarg ;;
|
---|
| 394 |
|
---|
| 395 | -disable-* | --disable-*)
|
---|
[24901] | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
[16568] | 397 | # Reject names that are not valid shell variable names.
|
---|
[24901] | 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 400 | { (exit 1); exit 1; }; }
|
---|
| 401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 402 | eval "enable_$ac_feature=no" ;;
|
---|
[16568] | 403 |
|
---|
| 404 | -enable-* | --enable-*)
|
---|
[24901] | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
[16568] | 406 | # Reject names that are not valid shell variable names.
|
---|
[24901] | 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
| 409 | { (exit 1); exit 1; }; }
|
---|
| 410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
| 411 | case $ac_option in
|
---|
| 412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
| 413 | *) ac_optarg=yes ;;
|
---|
[20854] | 414 | esac
|
---|
[24901] | 415 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
[16568] | 416 |
|
---|
| 417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
| 418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
| 419 | | --exec | --exe | --ex)
|
---|
| 420 | ac_prev=exec_prefix ;;
|
---|
| 421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
| 422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
| 423 | | --exec=* | --exe=* | --ex=*)
|
---|
| 424 | exec_prefix=$ac_optarg ;;
|
---|
| 425 |
|
---|
| 426 | -gas | --gas | --ga | --g)
|
---|
| 427 | # Obsolete; use --with-gas.
|
---|
| 428 | with_gas=yes ;;
|
---|
| 429 |
|
---|
| 430 | -help | --help | --hel | --he | -h)
|
---|
| 431 | ac_init_help=long ;;
|
---|
| 432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
| 433 | ac_init_help=recursive ;;
|
---|
| 434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
| 435 | ac_init_help=short ;;
|
---|
| 436 |
|
---|
| 437 | -host | --host | --hos | --ho)
|
---|
| 438 | ac_prev=host_alias ;;
|
---|
| 439 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
| 440 | host_alias=$ac_optarg ;;
|
---|
| 441 |
|
---|
| 442 | -includedir | --includedir | --includedi | --included | --include \
|
---|
| 443 | | --includ | --inclu | --incl | --inc)
|
---|
| 444 | ac_prev=includedir ;;
|
---|
| 445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
| 446 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
| 447 | includedir=$ac_optarg ;;
|
---|
| 448 |
|
---|
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
| 450 | ac_prev=infodir ;;
|
---|
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
| 452 | infodir=$ac_optarg ;;
|
---|
| 453 |
|
---|
| 454 | -libdir | --libdir | --libdi | --libd)
|
---|
| 455 | ac_prev=libdir ;;
|
---|
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
| 457 | libdir=$ac_optarg ;;
|
---|
| 458 |
|
---|
| 459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
| 460 | | --libexe | --libex | --libe)
|
---|
| 461 | ac_prev=libexecdir ;;
|
---|
| 462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
| 463 | | --libexe=* | --libex=* | --libe=*)
|
---|
| 464 | libexecdir=$ac_optarg ;;
|
---|
| 465 |
|
---|
| 466 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
[24901] | 467 | | --localstate | --localstat | --localsta | --localst \
|
---|
| 468 | | --locals | --local | --loca | --loc | --lo)
|
---|
[16568] | 469 | ac_prev=localstatedir ;;
|
---|
| 470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
[24901] | 471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
| 472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
[16568] | 473 | localstatedir=$ac_optarg ;;
|
---|
| 474 |
|
---|
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
| 476 | ac_prev=mandir ;;
|
---|
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
| 478 | mandir=$ac_optarg ;;
|
---|
| 479 |
|
---|
| 480 | -nfp | --nfp | --nf)
|
---|
| 481 | # Obsolete; use --without-fp.
|
---|
| 482 | with_fp=no ;;
|
---|
| 483 |
|
---|
| 484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
| 485 | | --no-cr | --no-c | -n)
|
---|
| 486 | no_create=yes ;;
|
---|
| 487 |
|
---|
| 488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
| 489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
| 490 | no_recursion=yes ;;
|
---|
| 491 |
|
---|
| 492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
| 493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
| 494 | | --oldin | --oldi | --old | --ol | --o)
|
---|
| 495 | ac_prev=oldincludedir ;;
|
---|
| 496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
| 497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
| 498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
| 499 | oldincludedir=$ac_optarg ;;
|
---|
| 500 |
|
---|
| 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 502 | ac_prev=prefix ;;
|
---|
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 504 | prefix=$ac_optarg ;;
|
---|
| 505 |
|
---|
| 506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
| 507 | | --program-pre | --program-pr | --program-p)
|
---|
| 508 | ac_prev=program_prefix ;;
|
---|
| 509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
| 510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
| 511 | program_prefix=$ac_optarg ;;
|
---|
| 512 |
|
---|
| 513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
| 514 | | --program-suf | --program-su | --program-s)
|
---|
| 515 | ac_prev=program_suffix ;;
|
---|
| 516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
| 517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
| 518 | program_suffix=$ac_optarg ;;
|
---|
| 519 |
|
---|
| 520 | -program-transform-name | --program-transform-name \
|
---|
| 521 | | --program-transform-nam | --program-transform-na \
|
---|
| 522 | | --program-transform-n | --program-transform- \
|
---|
| 523 | | --program-transform | --program-transfor \
|
---|
| 524 | | --program-transfo | --program-transf \
|
---|
| 525 | | --program-trans | --program-tran \
|
---|
| 526 | | --progr-tra | --program-tr | --program-t)
|
---|
| 527 | ac_prev=program_transform_name ;;
|
---|
| 528 | -program-transform-name=* | --program-transform-name=* \
|
---|
| 529 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
| 530 | | --program-transform-n=* | --program-transform-=* \
|
---|
| 531 | | --program-transform=* | --program-transfor=* \
|
---|
| 532 | | --program-transfo=* | --program-transf=* \
|
---|
| 533 | | --program-trans=* | --program-tran=* \
|
---|
| 534 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
| 535 | program_transform_name=$ac_optarg ;;
|
---|
| 536 |
|
---|
| 537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 538 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 539 | silent=yes ;;
|
---|
| 540 |
|
---|
| 541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
| 542 | ac_prev=sbindir ;;
|
---|
| 543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
| 544 | | --sbi=* | --sb=*)
|
---|
| 545 | sbindir=$ac_optarg ;;
|
---|
| 546 |
|
---|
| 547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
| 548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
| 549 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
| 550 | | --sha | --sh)
|
---|
| 551 | ac_prev=sharedstatedir ;;
|
---|
| 552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
| 553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
| 554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
| 555 | | --sha=* | --sh=*)
|
---|
| 556 | sharedstatedir=$ac_optarg ;;
|
---|
| 557 |
|
---|
| 558 | -site | --site | --sit)
|
---|
| 559 | ac_prev=site ;;
|
---|
| 560 | -site=* | --site=* | --sit=*)
|
---|
| 561 | site=$ac_optarg ;;
|
---|
| 562 |
|
---|
| 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 564 | ac_prev=srcdir ;;
|
---|
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 566 | srcdir=$ac_optarg ;;
|
---|
| 567 |
|
---|
| 568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
| 569 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
| 570 | ac_prev=sysconfdir ;;
|
---|
| 571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
| 572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
| 573 | sysconfdir=$ac_optarg ;;
|
---|
| 574 |
|
---|
| 575 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
| 576 | ac_prev=target_alias ;;
|
---|
| 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
| 578 | target_alias=$ac_optarg ;;
|
---|
| 579 |
|
---|
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
| 581 | verbose=yes ;;
|
---|
| 582 |
|
---|
| 583 | -version | --version | --versio | --versi | --vers | -V)
|
---|
| 584 | ac_init_version=: ;;
|
---|
| 585 |
|
---|
| 586 | -with-* | --with-*)
|
---|
[24901] | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
[16568] | 588 | # Reject names that are not valid shell variable names.
|
---|
[24901] | 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 590 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 591 | { (exit 1); exit 1; }; }
|
---|
| 592 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
| 593 | case $ac_option in
|
---|
| 594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
| 595 | *) ac_optarg=yes ;;
|
---|
[20854] | 596 | esac
|
---|
[24901] | 597 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
[16568] | 598 |
|
---|
| 599 | -without-* | --without-*)
|
---|
[24901] | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
[16568] | 601 | # Reject names that are not valid shell variable names.
|
---|
[24901] | 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
| 603 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
| 604 | { (exit 1); exit 1; }; }
|
---|
| 605 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
| 606 | eval "with_$ac_package=no" ;;
|
---|
[16568] | 607 |
|
---|
| 608 | --x)
|
---|
| 609 | # Obsolete; use --with-x.
|
---|
| 610 | with_x=yes ;;
|
---|
| 611 |
|
---|
| 612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
| 613 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
| 614 | ac_prev=x_includes ;;
|
---|
| 615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
| 616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
| 617 | x_includes=$ac_optarg ;;
|
---|
| 618 |
|
---|
| 619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
| 620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
| 621 | ac_prev=x_libraries ;;
|
---|
| 622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
| 623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
| 624 | x_libraries=$ac_optarg ;;
|
---|
| 625 |
|
---|
[24901] | 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
| 627 | Try \`$0 --help' for more information." >&2
|
---|
| 628 | { (exit 1); exit 1; }; }
|
---|
[16568] | 629 | ;;
|
---|
| 630 |
|
---|
| 631 | *=*)
|
---|
| 632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
| 633 | # Reject names that are not valid shell variable names.
|
---|
[24901] | 634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
| 635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
| 636 | { (exit 1); exit 1; }; }
|
---|
| 637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
| 638 | eval "$ac_envvar='$ac_optarg'"
|
---|
[16568] | 639 | export $ac_envvar ;;
|
---|
| 640 |
|
---|
| 641 | *)
|
---|
| 642 | # FIXME: should be removed in autoconf 3.0.
|
---|
[24901] | 643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
[16568] | 644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
[24901] | 645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
[16568] | 646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
| 647 | ;;
|
---|
| 648 |
|
---|
| 649 | esac
|
---|
| 650 | done
|
---|
| 651 |
|
---|
| 652 | if test -n "$ac_prev"; then
|
---|
| 653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
[24901] | 654 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
| 655 | { (exit 1); exit 1; }; }
|
---|
[16568] | 656 | fi
|
---|
| 657 |
|
---|
[24901] | 658 | # Be sure to have absolute paths.
|
---|
| 659 | for ac_var in exec_prefix prefix
|
---|
| 660 | do
|
---|
| 661 | eval ac_val=$`echo $ac_var`
|
---|
| 662 | case $ac_val in
|
---|
| 663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
| 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 665 | { (exit 1); exit 1; }; };;
|
---|
[16568] | 666 | esac
|
---|
[24901] | 667 | done
|
---|
[16568] | 668 |
|
---|
[24901] | 669 | # Be sure to have absolute paths.
|
---|
| 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
| 671 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
[20854] | 672 | do
|
---|
[24901] | 673 | eval ac_val=$`echo $ac_var`
|
---|
[20854] | 674 | case $ac_val in
|
---|
[24901] | 675 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
| 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
| 677 | { (exit 1); exit 1; }; };;
|
---|
[20854] | 678 | esac
|
---|
| 679 | done
|
---|
| 680 |
|
---|
[16568] | 681 | # There might be people who depend on the old broken behavior: `$host'
|
---|
| 682 | # used to hold the argument of --host etc.
|
---|
| 683 | # FIXME: To remove some day.
|
---|
| 684 | build=$build_alias
|
---|
| 685 | host=$host_alias
|
---|
| 686 | target=$target_alias
|
---|
| 687 |
|
---|
| 688 | # FIXME: To remove some day.
|
---|
| 689 | if test "x$host_alias" != x; then
|
---|
| 690 | if test "x$build_alias" = x; then
|
---|
| 691 | cross_compiling=maybe
|
---|
[24901] | 692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
| 693 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
[16568] | 694 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
| 695 | cross_compiling=yes
|
---|
| 696 | fi
|
---|
| 697 | fi
|
---|
| 698 |
|
---|
| 699 | ac_tool_prefix=
|
---|
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
| 701 |
|
---|
| 702 | test "$silent" = yes && exec 6>/dev/null
|
---|
| 703 |
|
---|
| 704 |
|
---|
| 705 | # Find the source files, if location was not specified.
|
---|
| 706 | if test -z "$srcdir"; then
|
---|
| 707 | ac_srcdir_defaulted=yes
|
---|
[24901] | 708 | # Try the directory containing this script, then its parent.
|
---|
| 709 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
| 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 711 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
| 712 | X"$0" : 'X\(//\)$' \| \
|
---|
| 713 | X"$0" : 'X\(/\)' \| \
|
---|
| 714 | . : '\(.\)' 2>/dev/null ||
|
---|
| 715 | echo X"$0" |
|
---|
| 716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 718 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 719 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 720 | s/.*/./; q'`
|
---|
[16568] | 721 | srcdir=$ac_confdir
|
---|
[24901] | 722 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
[16568] | 723 | srcdir=..
|
---|
| 724 | fi
|
---|
| 725 | else
|
---|
| 726 | ac_srcdir_defaulted=no
|
---|
| 727 | fi
|
---|
[24901] | 728 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
| 729 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
| 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
| 731 | { (exit 1); exit 1; }; }
|
---|
| 732 | else
|
---|
| 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
| 734 | { (exit 1); exit 1; }; }
|
---|
| 735 | fi
|
---|
[20848] | 736 | fi
|
---|
[24901] | 737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
---|
| 738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
---|
| 739 | { (exit 1); exit 1; }; }
|
---|
| 740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
| 741 | ac_env_build_alias_set=${build_alias+set}
|
---|
| 742 | ac_env_build_alias_value=$build_alias
|
---|
| 743 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
| 744 | ac_cv_env_build_alias_value=$build_alias
|
---|
| 745 | ac_env_host_alias_set=${host_alias+set}
|
---|
| 746 | ac_env_host_alias_value=$host_alias
|
---|
| 747 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
| 748 | ac_cv_env_host_alias_value=$host_alias
|
---|
| 749 | ac_env_target_alias_set=${target_alias+set}
|
---|
| 750 | ac_env_target_alias_value=$target_alias
|
---|
| 751 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
| 752 | ac_cv_env_target_alias_value=$target_alias
|
---|
| 753 | ac_env_CC_set=${CC+set}
|
---|
| 754 | ac_env_CC_value=$CC
|
---|
| 755 | ac_cv_env_CC_set=${CC+set}
|
---|
| 756 | ac_cv_env_CC_value=$CC
|
---|
| 757 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 758 | ac_env_CFLAGS_value=$CFLAGS
|
---|
| 759 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
| 760 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
| 761 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 762 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
| 763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
| 764 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
| 765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 766 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
| 768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
| 769 | ac_env_CXX_set=${CXX+set}
|
---|
| 770 | ac_env_CXX_value=$CXX
|
---|
| 771 | ac_cv_env_CXX_set=${CXX+set}
|
---|
| 772 | ac_cv_env_CXX_value=$CXX
|
---|
| 773 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 774 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 775 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
| 776 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
| 777 | ac_env_CPP_set=${CPP+set}
|
---|
| 778 | ac_env_CPP_value=$CPP
|
---|
| 779 | ac_cv_env_CPP_set=${CPP+set}
|
---|
| 780 | ac_cv_env_CPP_value=$CPP
|
---|
[16568] | 781 |
|
---|
| 782 | #
|
---|
| 783 | # Report the --help message.
|
---|
| 784 | #
|
---|
| 785 | if test "$ac_init_help" = "long"; then
|
---|
| 786 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
| 787 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
| 788 | cat <<_ACEOF
|
---|
| 789 | \`configure' configures this package to adapt to many kinds of systems.
|
---|
| 790 |
|
---|
| 791 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
| 792 |
|
---|
| 793 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
| 794 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
| 795 |
|
---|
| 796 | Defaults for the options are specified in brackets.
|
---|
| 797 |
|
---|
| 798 | Configuration:
|
---|
| 799 | -h, --help display this help and exit
|
---|
| 800 | --help=short display options specific to this package
|
---|
| 801 | --help=recursive display the short help of all the included packages
|
---|
| 802 | -V, --version display version information and exit
|
---|
[24901] | 803 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
[16568] | 804 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
| 805 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
| 806 | -n, --no-create do not create output files
|
---|
| 807 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
| 808 |
|
---|
[24901] | 809 | _ACEOF
|
---|
| 810 |
|
---|
| 811 | cat <<_ACEOF
|
---|
[16568] | 812 | Installation directories:
|
---|
| 813 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
[24901] | 814 | [$ac_default_prefix]
|
---|
[16568] | 815 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
[24901] | 816 | [PREFIX]
|
---|
[16568] | 817 |
|
---|
| 818 | By default, \`make install' will install all the files in
|
---|
| 819 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
| 820 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
| 821 | for instance \`--prefix=\$HOME'.
|
---|
| 822 |
|
---|
| 823 | For better control, use the options below.
|
---|
| 824 |
|
---|
| 825 | Fine tuning of the installation directories:
|
---|
[24901] | 826 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
| 827 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
| 828 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
| 829 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
| 830 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
| 831 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
| 832 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
| 833 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
| 834 | --includedir=DIR C header files [PREFIX/include]
|
---|
| 835 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
| 836 | --infodir=DIR info documentation [PREFIX/info]
|
---|
| 837 | --mandir=DIR man documentation [PREFIX/man]
|
---|
[16568] | 838 | _ACEOF
|
---|
| 839 |
|
---|
| 840 | cat <<\_ACEOF
|
---|
| 841 |
|
---|
| 842 | System types:
|
---|
| 843 | --build=BUILD configure for building on BUILD [guessed]
|
---|
| 844 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
| 845 | --target=TARGET configure for building compilers for TARGET [HOST]
|
---|
| 846 | _ACEOF
|
---|
| 847 | fi
|
---|
| 848 |
|
---|
| 849 | if test -n "$ac_init_help"; then
|
---|
| 850 |
|
---|
| 851 | cat <<\_ACEOF
|
---|
| 852 |
|
---|
| 853 | Optional Features:
|
---|
| 854 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
| 855 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
| 856 | --enable-corba Enable CORBA support
|
---|
| 857 | --enable-z3950 Enable Z39.50 client support
|
---|
| 858 | --disable-yaz Disable YAZ compilation
|
---|
[23356] | 859 | --disable-java Disable Java compilation
|
---|
[22058] | 860 | --disable-jdbm Disable JDBM compilation
|
---|
| 861 | --disable-gdbm Disable GDBM compilation
|
---|
[16568] | 862 | --disable-accentfold Disable Accent Folding for MGPP
|
---|
| 863 | --disable-sqlite Disable SQLite support
|
---|
[24958] | 864 | --disable-rss Disable RSS support
|
---|
[20854] | 865 | --enable-apache-httpd Enable Apache httpd support
|
---|
[21329] | 866 | --disable-mg Disable MG compilation
|
---|
| 867 | --disable-mgpp Disable MGPP compilation
|
---|
| 868 | --disable-lucene Disable Lucene compilation
|
---|
[16568] | 869 |
|
---|
| 870 | Optional Packages:
|
---|
| 871 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
| 872 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
| 873 | --with-micodir Use installed MICO directory
|
---|
| 874 | --with-dmalloc use dmalloc, as in
|
---|
| 875 | ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz
|
---|
| 876 | --with-regex use older regex in lieu of GNU rx for matching
|
---|
| 877 |
|
---|
| 878 | Some influential environment variables:
|
---|
| 879 | CC C compiler command
|
---|
| 880 | CFLAGS C compiler flags
|
---|
| 881 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
| 882 | nonstandard directory <lib dir>
|
---|
[24901] | 883 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
| 884 | headers in a nonstandard directory <include dir>
|
---|
[16568] | 885 | CXX C++ compiler command
|
---|
| 886 | CXXFLAGS C++ compiler flags
|
---|
| 887 | CPP C preprocessor
|
---|
| 888 |
|
---|
| 889 | Use these variables to override the choices made by `configure' or to help
|
---|
| 890 | it to find libraries and programs with nonstandard names/locations.
|
---|
| 891 |
|
---|
| 892 | _ACEOF
|
---|
| 893 | fi
|
---|
| 894 |
|
---|
| 895 | if test "$ac_init_help" = "recursive"; then
|
---|
| 896 | # If there are subdirs, report their specific --help.
|
---|
[24901] | 897 | ac_popdir=`pwd`
|
---|
[16568] | 898 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
[24901] | 899 | test -d $ac_dir || continue
|
---|
[16568] | 900 | ac_builddir=.
|
---|
| 901 |
|
---|
[24901] | 902 | if test "$ac_dir" != .; then
|
---|
| 903 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 904 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 905 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 906 | else
|
---|
| 907 | ac_dir_suffix= ac_top_builddir=
|
---|
| 908 | fi
|
---|
[16568] | 909 |
|
---|
| 910 | case $srcdir in
|
---|
[24901] | 911 | .) # No --srcdir option. We are building in place.
|
---|
[16568] | 912 | ac_srcdir=.
|
---|
[24901] | 913 | if test -z "$ac_top_builddir"; then
|
---|
| 914 | ac_top_srcdir=.
|
---|
| 915 | else
|
---|
| 916 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 917 | fi ;;
|
---|
| 918 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
[16568] | 919 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[24901] | 920 | ac_top_srcdir=$srcdir ;;
|
---|
| 921 | *) # Relative path.
|
---|
| 922 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 923 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
[16568] | 924 | esac
|
---|
| 925 |
|
---|
[24901] | 926 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 927 | # the directories may not exist.
|
---|
| 928 | case `pwd` in
|
---|
| 929 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 930 | *)
|
---|
| 931 | case "$ac_dir" in
|
---|
| 932 | .) ac_abs_builddir=`pwd`;;
|
---|
| 933 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 934 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 935 | esac;;
|
---|
| 936 | esac
|
---|
| 937 | case $ac_abs_builddir in
|
---|
| 938 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 939 | *)
|
---|
| 940 | case ${ac_top_builddir}. in
|
---|
| 941 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 942 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 943 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 944 | esac;;
|
---|
| 945 | esac
|
---|
| 946 | case $ac_abs_builddir in
|
---|
| 947 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 948 | *)
|
---|
| 949 | case $ac_srcdir in
|
---|
| 950 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 951 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 952 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 953 | esac;;
|
---|
| 954 | esac
|
---|
| 955 | case $ac_abs_builddir in
|
---|
| 956 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 957 | *)
|
---|
| 958 | case $ac_top_srcdir in
|
---|
| 959 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 960 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 961 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 962 | esac;;
|
---|
| 963 | esac
|
---|
| 964 |
|
---|
| 965 | cd $ac_dir
|
---|
| 966 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
| 967 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 968 | echo
|
---|
| 969 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
| 970 | elif test -f $ac_srcdir/configure; then
|
---|
| 971 | echo
|
---|
| 972 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
| 973 | elif test -f $ac_srcdir/configure.ac ||
|
---|
| 974 | test -f $ac_srcdir/configure.in; then
|
---|
| 975 | echo
|
---|
| 976 | $ac_configure --help
|
---|
[16568] | 977 | else
|
---|
[24901] | 978 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
| 979 | fi
|
---|
| 980 | cd $ac_popdir
|
---|
[16568] | 981 | done
|
---|
| 982 | fi
|
---|
| 983 |
|
---|
[24901] | 984 | test -n "$ac_init_help" && exit 0
|
---|
[16568] | 985 | if $ac_init_version; then
|
---|
| 986 | cat <<\_ACEOF
|
---|
| 987 |
|
---|
[24901] | 988 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[16568] | 989 | This configure script is free software; the Free Software Foundation
|
---|
| 990 | gives unlimited permission to copy, distribute and modify it.
|
---|
| 991 | _ACEOF
|
---|
[24901] | 992 | exit 0
|
---|
[16568] | 993 | fi
|
---|
[24901] | 994 | exec 5>config.log
|
---|
| 995 | cat >&5 <<_ACEOF
|
---|
[16568] | 996 | This file contains any messages produced by compilers while
|
---|
| 997 | running configure, to aid debugging if configure makes a mistake.
|
---|
| 998 |
|
---|
| 999 | It was created by $as_me, which was
|
---|
[24901] | 1000 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
[16568] | 1001 |
|
---|
| 1002 | $ $0 $@
|
---|
| 1003 |
|
---|
| 1004 | _ACEOF
|
---|
| 1005 | {
|
---|
| 1006 | cat <<_ASUNAME
|
---|
| 1007 | ## --------- ##
|
---|
| 1008 | ## Platform. ##
|
---|
| 1009 | ## --------- ##
|
---|
| 1010 |
|
---|
| 1011 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
| 1012 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
| 1013 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
| 1014 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
| 1015 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
| 1016 |
|
---|
| 1017 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
| 1018 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
| 1019 |
|
---|
| 1020 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
| 1021 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
| 1022 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
[24901] | 1023 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
[16568] | 1024 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
| 1025 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
| 1026 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
| 1027 |
|
---|
| 1028 | _ASUNAME
|
---|
| 1029 |
|
---|
| 1030 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1031 | for as_dir in $PATH
|
---|
| 1032 | do
|
---|
| 1033 | IFS=$as_save_IFS
|
---|
| 1034 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 1035 | echo "PATH: $as_dir"
|
---|
| 1036 | done
|
---|
[16568] | 1037 |
|
---|
| 1038 | } >&5
|
---|
| 1039 |
|
---|
| 1040 | cat >&5 <<_ACEOF
|
---|
| 1041 |
|
---|
| 1042 |
|
---|
| 1043 | ## ----------- ##
|
---|
| 1044 | ## Core tests. ##
|
---|
| 1045 | ## ----------- ##
|
---|
| 1046 |
|
---|
| 1047 | _ACEOF
|
---|
| 1048 |
|
---|
| 1049 |
|
---|
| 1050 | # Keep a trace of the command line.
|
---|
| 1051 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
| 1052 | # Strip out --silent because we don't want to record it for future runs.
|
---|
| 1053 | # Also quote any args containing shell meta-characters.
|
---|
| 1054 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
| 1055 | ac_configure_args=
|
---|
| 1056 | ac_configure_args0=
|
---|
| 1057 | ac_configure_args1=
|
---|
[24901] | 1058 | ac_sep=
|
---|
[16568] | 1059 | ac_must_keep_next=false
|
---|
| 1060 | for ac_pass in 1 2
|
---|
| 1061 | do
|
---|
| 1062 | for ac_arg
|
---|
| 1063 | do
|
---|
| 1064 | case $ac_arg in
|
---|
| 1065 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
| 1066 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 1067 | | -silent | --silent | --silen | --sile | --sil)
|
---|
| 1068 | continue ;;
|
---|
[24901] | 1069 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1070 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[16568] | 1071 | esac
|
---|
| 1072 | case $ac_pass in
|
---|
[24901] | 1073 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
[16568] | 1074 | 2)
|
---|
[24901] | 1075 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
[16568] | 1076 | if test $ac_must_keep_next = true; then
|
---|
| 1077 | ac_must_keep_next=false # Got value, back to normal.
|
---|
| 1078 | else
|
---|
| 1079 | case $ac_arg in
|
---|
| 1080 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
| 1081 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
| 1082 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
| 1083 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
| 1084 | case "$ac_configure_args0 " in
|
---|
| 1085 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
| 1086 | esac
|
---|
| 1087 | ;;
|
---|
| 1088 | -* ) ac_must_keep_next=true ;;
|
---|
| 1089 | esac
|
---|
| 1090 | fi
|
---|
[24901] | 1091 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
| 1092 | # Get rid of the leading space.
|
---|
| 1093 | ac_sep=" "
|
---|
[16568] | 1094 | ;;
|
---|
| 1095 | esac
|
---|
| 1096 | done
|
---|
| 1097 | done
|
---|
[24901] | 1098 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
| 1099 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
[16568] | 1100 |
|
---|
| 1101 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
| 1102 | # config.log. We remove comments because anyway the quotes in there
|
---|
| 1103 | # would cause problems or look ugly.
|
---|
[24901] | 1104 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
| 1105 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
[16568] | 1106 | trap 'exit_status=$?
|
---|
| 1107 | # Save into config.log some information that might help in debugging.
|
---|
| 1108 | {
|
---|
| 1109 | echo
|
---|
| 1110 |
|
---|
[24901] | 1111 | cat <<\_ASBOX
|
---|
| 1112 | ## ---------------- ##
|
---|
[16568] | 1113 | ## Cache variables. ##
|
---|
[24901] | 1114 | ## ---------------- ##
|
---|
| 1115 | _ASBOX
|
---|
[16568] | 1116 | echo
|
---|
| 1117 | # The following way of writing the cache mishandles newlines in values,
|
---|
[24901] | 1118 | {
|
---|
[16568] | 1119 | (set) 2>&1 |
|
---|
[24901] | 1120 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
| 1121 | *ac_space=\ *)
|
---|
[16568] | 1122 | sed -n \
|
---|
[24901] | 1123 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
| 1124 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
| 1125 | ;;
|
---|
[16568] | 1126 | *)
|
---|
[24901] | 1127 | sed -n \
|
---|
| 1128 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[16568] | 1129 | ;;
|
---|
[24901] | 1130 | esac;
|
---|
| 1131 | }
|
---|
[16568] | 1132 | echo
|
---|
| 1133 |
|
---|
[24901] | 1134 | cat <<\_ASBOX
|
---|
| 1135 | ## ----------------- ##
|
---|
[16568] | 1136 | ## Output variables. ##
|
---|
[24901] | 1137 | ## ----------------- ##
|
---|
| 1138 | _ASBOX
|
---|
[16568] | 1139 | echo
|
---|
| 1140 | for ac_var in $ac_subst_vars
|
---|
| 1141 | do
|
---|
[24901] | 1142 | eval ac_val=$`echo $ac_var`
|
---|
| 1143 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
[16568] | 1144 | done | sort
|
---|
| 1145 | echo
|
---|
| 1146 |
|
---|
| 1147 | if test -n "$ac_subst_files"; then
|
---|
[24901] | 1148 | cat <<\_ASBOX
|
---|
| 1149 | ## ------------- ##
|
---|
| 1150 | ## Output files. ##
|
---|
| 1151 | ## ------------- ##
|
---|
| 1152 | _ASBOX
|
---|
[16568] | 1153 | echo
|
---|
| 1154 | for ac_var in $ac_subst_files
|
---|
| 1155 | do
|
---|
[24901] | 1156 | eval ac_val=$`echo $ac_var`
|
---|
| 1157 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
[16568] | 1158 | done | sort
|
---|
| 1159 | echo
|
---|
| 1160 | fi
|
---|
| 1161 |
|
---|
| 1162 | if test -s confdefs.h; then
|
---|
[24901] | 1163 | cat <<\_ASBOX
|
---|
| 1164 | ## ----------- ##
|
---|
[16568] | 1165 | ## confdefs.h. ##
|
---|
[24901] | 1166 | ## ----------- ##
|
---|
| 1167 | _ASBOX
|
---|
[16568] | 1168 | echo
|
---|
[24901] | 1169 | sed "/^$/d" confdefs.h | sort
|
---|
[16568] | 1170 | echo
|
---|
| 1171 | fi
|
---|
| 1172 | test "$ac_signal" != 0 &&
|
---|
[24901] | 1173 | echo "$as_me: caught signal $ac_signal"
|
---|
| 1174 | echo "$as_me: exit $exit_status"
|
---|
[16568] | 1175 | } >&5
|
---|
[24901] | 1176 | rm -f core *.core &&
|
---|
| 1177 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
[16568] | 1178 | exit $exit_status
|
---|
[24901] | 1179 | ' 0
|
---|
[16568] | 1180 | for ac_signal in 1 2 13 15; do
|
---|
[24901] | 1181 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
[16568] | 1182 | done
|
---|
| 1183 | ac_signal=0
|
---|
| 1184 |
|
---|
| 1185 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
[24901] | 1186 | rm -rf conftest* confdefs.h
|
---|
| 1187 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
| 1188 | echo >confdefs.h
|
---|
[16568] | 1189 |
|
---|
| 1190 | # Predefined preprocessor variables.
|
---|
| 1191 |
|
---|
| 1192 | cat >>confdefs.h <<_ACEOF
|
---|
| 1193 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
| 1194 | _ACEOF
|
---|
| 1195 |
|
---|
[24901] | 1196 |
|
---|
[16568] | 1197 | cat >>confdefs.h <<_ACEOF
|
---|
| 1198 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
| 1199 | _ACEOF
|
---|
| 1200 |
|
---|
[24901] | 1201 |
|
---|
[16568] | 1202 | cat >>confdefs.h <<_ACEOF
|
---|
| 1203 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
| 1204 | _ACEOF
|
---|
| 1205 |
|
---|
[24901] | 1206 |
|
---|
[16568] | 1207 | cat >>confdefs.h <<_ACEOF
|
---|
| 1208 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
| 1209 | _ACEOF
|
---|
| 1210 |
|
---|
[24901] | 1211 |
|
---|
[16568] | 1212 | cat >>confdefs.h <<_ACEOF
|
---|
| 1213 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
| 1214 | _ACEOF
|
---|
| 1215 |
|
---|
| 1216 |
|
---|
| 1217 | # Let the site file select an alternate cache file if it wants to.
|
---|
[24901] | 1218 | # Prefer explicitly selected file to automatically selected ones.
|
---|
| 1219 | if test -z "$CONFIG_SITE"; then
|
---|
| 1220 | if test "x$prefix" != xNONE; then
|
---|
| 1221 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
| 1222 | else
|
---|
| 1223 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
| 1224 | fi
|
---|
[16568] | 1225 | fi
|
---|
[24901] | 1226 | for ac_site_file in $CONFIG_SITE; do
|
---|
| 1227 | if test -r "$ac_site_file"; then
|
---|
| 1228 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
| 1229 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
[16568] | 1230 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
[24901] | 1231 | . "$ac_site_file"
|
---|
[16568] | 1232 | fi
|
---|
| 1233 | done
|
---|
| 1234 |
|
---|
| 1235 | if test -r "$cache_file"; then
|
---|
[24901] | 1236 | # Some versions of bash will fail to source /dev/null (special
|
---|
| 1237 | # files actually), so we avoid doing that.
|
---|
| 1238 | if test -f "$cache_file"; then
|
---|
| 1239 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
| 1240 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
[16568] | 1241 | case $cache_file in
|
---|
[24901] | 1242 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
| 1243 | *) . ./$cache_file;;
|
---|
[16568] | 1244 | esac
|
---|
| 1245 | fi
|
---|
| 1246 | else
|
---|
[24901] | 1247 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
| 1248 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
[16568] | 1249 | >$cache_file
|
---|
| 1250 | fi
|
---|
| 1251 |
|
---|
| 1252 | # Check that the precious variables saved in the cache have kept the same
|
---|
| 1253 | # value.
|
---|
| 1254 | ac_cache_corrupted=false
|
---|
[24901] | 1255 | for ac_var in `(set) 2>&1 |
|
---|
| 1256 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
[16568] | 1257 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
| 1258 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
[24901] | 1259 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
| 1260 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
[16568] | 1261 | case $ac_old_set,$ac_new_set in
|
---|
| 1262 | set,)
|
---|
[24901] | 1263 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
| 1264 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
[16568] | 1265 | ac_cache_corrupted=: ;;
|
---|
| 1266 | ,set)
|
---|
[24901] | 1267 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
| 1268 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
[16568] | 1269 | ac_cache_corrupted=: ;;
|
---|
| 1270 | ,);;
|
---|
| 1271 | *)
|
---|
| 1272 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
[24901] | 1273 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
| 1274 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
| 1275 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
| 1276 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
| 1277 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
| 1278 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
| 1279 | ac_cache_corrupted=:
|
---|
[16568] | 1280 | fi;;
|
---|
| 1281 | esac
|
---|
| 1282 | # Pass precious variables to config.status.
|
---|
| 1283 | if test "$ac_new_set" = set; then
|
---|
| 1284 | case $ac_new_val in
|
---|
[24901] | 1285 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
| 1286 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
[16568] | 1287 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
| 1288 | esac
|
---|
| 1289 | case " $ac_configure_args " in
|
---|
| 1290 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
[24901] | 1291 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
[16568] | 1292 | esac
|
---|
| 1293 | fi
|
---|
| 1294 | done
|
---|
| 1295 | if $ac_cache_corrupted; then
|
---|
[24901] | 1296 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
| 1297 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
| 1298 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
| 1299 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
| 1300 | { (exit 1); exit 1; }; }
|
---|
[16568] | 1301 | fi
|
---|
| 1302 |
|
---|
[20854] | 1303 | ac_ext=c
|
---|
| 1304 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1305 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1306 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1307 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[16568] | 1308 |
|
---|
| 1309 |
|
---|
| 1310 |
|
---|
| 1311 |
|
---|
| 1312 |
|
---|
| 1313 |
|
---|
[24901] | 1314 |
|
---|
| 1315 |
|
---|
| 1316 |
|
---|
| 1317 |
|
---|
| 1318 |
|
---|
| 1319 |
|
---|
| 1320 |
|
---|
| 1321 |
|
---|
| 1322 |
|
---|
| 1323 |
|
---|
| 1324 |
|
---|
| 1325 |
|
---|
| 1326 |
|
---|
| 1327 | ac_config_headers="$ac_config_headers config.h"
|
---|
| 1328 |
|
---|
| 1329 |
|
---|
| 1330 |
|
---|
| 1331 |
|
---|
[16568] | 1332 | PACKAGE=gsdl
|
---|
[23356] | 1333 | VERSION=2.x-svn
|
---|
[16568] | 1334 | cat >>confdefs.h <<_ACEOF
|
---|
| 1335 | #define PACKAGE "$PACKAGE"
|
---|
| 1336 | _ACEOF
|
---|
| 1337 |
|
---|
| 1338 | cat >>confdefs.h <<_ACEOF
|
---|
| 1339 | #define VERSION "$VERSION"
|
---|
| 1340 | _ACEOF
|
---|
| 1341 |
|
---|
| 1342 |
|
---|
| 1343 |
|
---|
| 1344 |
|
---|
| 1345 | USE_FASTCGI=0
|
---|
| 1346 | if test USE_FASTCGI = 1; then
|
---|
[24901] | 1347 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1348 | #define USE_FASTCGI 1
|
---|
| 1349 | _ACEOF
|
---|
[16568] | 1350 |
|
---|
| 1351 |
|
---|
| 1352 | fi
|
---|
| 1353 |
|
---|
| 1354 | if test USE_LANGACTION = 1; then
|
---|
[24901] | 1355 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1356 | #define USE_LANGACTION 1
|
---|
| 1357 | _ACEOF
|
---|
[16568] | 1358 |
|
---|
| 1359 |
|
---|
| 1360 | fi
|
---|
| 1361 |
|
---|
[24901] | 1362 | # Check whether --enable-corba or --disable-corba was given.
|
---|
| 1363 | if test "${enable_corba+set}" = set; then
|
---|
| 1364 | enableval="$enable_corba"
|
---|
| 1365 | USE_CORBA=$enableval
|
---|
[16568] | 1366 | else
|
---|
[22058] | 1367 | USE_CORBA=no
|
---|
[24901] | 1368 | fi;
|
---|
[22058] | 1369 | if test $USE_CORBA = "yes" -o $USE_CORBA = "1" ; then
|
---|
| 1370 | USE_CORBA=1
|
---|
[24901] | 1371 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1372 | #define USE_CORBA
|
---|
| 1373 | _ACEOF
|
---|
[16568] | 1374 |
|
---|
[22058] | 1375 | else
|
---|
| 1376 | USE_CORBA=0
|
---|
| 1377 | fi
|
---|
[16568] | 1378 |
|
---|
| 1379 |
|
---|
| 1380 |
|
---|
[24901] | 1381 | # Check whether --with-micodir or --without-micodir was given.
|
---|
| 1382 | if test "${with_micodir+set}" = set; then
|
---|
| 1383 | withval="$with_micodir"
|
---|
| 1384 | MICO_DIR=$withval
|
---|
[16568] | 1385 | else
|
---|
| 1386 | MICO_DIR="default"
|
---|
[24901] | 1387 | fi;
|
---|
[16568] | 1388 | cat >>confdefs.h <<_ACEOF
|
---|
| 1389 | #define MICO_DIR "$MICO_DIR"
|
---|
| 1390 | _ACEOF
|
---|
| 1391 |
|
---|
| 1392 |
|
---|
| 1393 |
|
---|
[24901] | 1394 | # Check whether --enable-z3950 or --disable-z3950 was given.
|
---|
| 1395 | if test "${enable_z3950+set}" = set; then
|
---|
| 1396 | enableval="$enable_z3950"
|
---|
| 1397 | USE_Z3950=$enableval
|
---|
[16568] | 1398 | else
|
---|
[22058] | 1399 | USE_Z3950=no
|
---|
[24901] | 1400 | fi;
|
---|
[22058] | 1401 | if test $USE_Z3950 = "yes" -o $USE_Z3950 = "1" ; then
|
---|
| 1402 | USE_Z3950=1
|
---|
[24901] | 1403 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1404 | #define USE_Z3950
|
---|
| 1405 | _ACEOF
|
---|
[16568] | 1406 |
|
---|
[22058] | 1407 | else
|
---|
| 1408 | USE_Z3950=0
|
---|
[16568] | 1409 | fi
|
---|
| 1410 |
|
---|
[22058] | 1411 |
|
---|
[24901] | 1412 | # Check whether --enable-yaz or --disable-yaz was given.
|
---|
| 1413 | if test "${enable_yaz+set}" = set; then
|
---|
| 1414 | enableval="$enable_yaz"
|
---|
| 1415 | USE_YAZ=$enableval
|
---|
[22058] | 1416 | else
|
---|
| 1417 | USE_YAZ=yes
|
---|
[24901] | 1418 | fi;
|
---|
[22058] | 1419 | if test $USE_YAZ = "yes" -o $USE_YAZ = "1" ; then
|
---|
| 1420 | USE_YAZ=1
|
---|
[24901] | 1421 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1422 | #define USE_YAZ
|
---|
| 1423 | _ACEOF
|
---|
[22058] | 1424 |
|
---|
| 1425 | else
|
---|
[20854] | 1426 | USE_YAZ=0
|
---|
[22058] | 1427 | fi
|
---|
| 1428 |
|
---|
| 1429 |
|
---|
[24901] | 1430 | # Check whether --enable-java or --disable-java was given.
|
---|
| 1431 | if test "${enable_java+set}" = set; then
|
---|
| 1432 | enableval="$enable_java"
|
---|
| 1433 | ENABLE_JAVA=$enableval
|
---|
[16568] | 1434 | else
|
---|
[23356] | 1435 | ENABLE_JAVA=yes
|
---|
[24901] | 1436 | fi;
|
---|
[23356] | 1437 | if test $ENABLE_JAVA = "yes" -o $ENABLE_JAVA = "1" ; then
|
---|
| 1438 | ENABLE_JAVA=1
|
---|
| 1439 | if test "x$JAVA_HOME" != "x" ; then
|
---|
| 1440 | echo "Detected JAVA_HOME is set, however this will not be used during compilation"
|
---|
| 1441 | echo "To control the version of 'javac' and 'java' set environment variables JAVAC"
|
---|
| 1442 | echo "and JAVA respectively"
|
---|
| 1443 | export JAVA_HOME=
|
---|
| 1444 | fi
|
---|
| 1445 | else
|
---|
| 1446 | ENABLE_JAVA=0
|
---|
| 1447 | fi
|
---|
| 1448 |
|
---|
| 1449 |
|
---|
[24901] | 1450 | # Check whether --enable-jdbm or --disable-jdbm was given.
|
---|
| 1451 | if test "${enable_jdbm+set}" = set; then
|
---|
| 1452 | enableval="$enable_jdbm"
|
---|
| 1453 | USE_JDBM=$enableval
|
---|
[23356] | 1454 | else
|
---|
[22058] | 1455 | USE_JDBM=yes
|
---|
[24901] | 1456 | fi;
|
---|
[23356] | 1457 | if test $ENABLE_JAVA = "1" -a \( $USE_JDBM = "yes" -o $USE_JDBM = "1" \) ; then
|
---|
[22058] | 1458 | USE_JDBM=1
|
---|
[24901] | 1459 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1460 | #define USE_JDBM
|
---|
| 1461 | _ACEOF
|
---|
[16568] | 1462 |
|
---|
[22058] | 1463 | else
|
---|
| 1464 | USE_JDBM=0
|
---|
| 1465 | fi
|
---|
[16568] | 1466 |
|
---|
| 1467 |
|
---|
[24901] | 1468 | # Check whether --enable-gdbm or --disable-gdbm was given.
|
---|
| 1469 | if test "${enable_gdbm+set}" = set; then
|
---|
| 1470 | enableval="$enable_gdbm"
|
---|
| 1471 | USE_GDBM=$enableval
|
---|
[22058] | 1472 | else
|
---|
| 1473 | USE_GDBM=yes
|
---|
[24901] | 1474 | fi;
|
---|
[22058] | 1475 | if test $USE_GDBM = "yes" -o $USE_GDBM = "1" ; then
|
---|
| 1476 | USE_GDBM=1
|
---|
[24901] | 1477 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1478 | #define USE_GDBM
|
---|
| 1479 | _ACEOF
|
---|
[22058] | 1480 |
|
---|
| 1481 | else
|
---|
| 1482 | USE_GDBM=0
|
---|
| 1483 | fi
|
---|
| 1484 |
|
---|
| 1485 |
|
---|
[24901] | 1486 | # Check whether --enable-accentfold or --disable-accentfold was given.
|
---|
| 1487 | if test "${enable_accentfold+set}" = set; then
|
---|
| 1488 | enableval="$enable_accentfold"
|
---|
| 1489 | ENABLE_ACCENTFOLD=$enableval
|
---|
[16568] | 1490 | else
|
---|
[22058] | 1491 | ENABLE_ACCENTFOLD=yes
|
---|
[24901] | 1492 | fi;
|
---|
[22058] | 1493 | if test $ENABLE_ACCENTFOLD = "yes" -o $ENABLE_ACCENTFOLD = "1" ; then
|
---|
[16568] | 1494 | ENABLE_ACCENTFOLD=1
|
---|
[24901] | 1495 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1496 | #define ENABLE_ACCENTFOLD
|
---|
| 1497 | _ACEOF
|
---|
[16568] | 1498 |
|
---|
[22058] | 1499 | else
|
---|
| 1500 | ENABLE_ACCENTFOLD=0
|
---|
| 1501 | fi
|
---|
[16568] | 1502 |
|
---|
| 1503 |
|
---|
[24901] | 1504 | # Check whether --enable-sqlite or --disable-sqlite was given.
|
---|
| 1505 | if test "${enable_sqlite+set}" = set; then
|
---|
| 1506 | enableval="$enable_sqlite"
|
---|
| 1507 | USE_SQLITE=$enableval
|
---|
[16568] | 1508 | else
|
---|
[22058] | 1509 | USE_SQLITE=yes
|
---|
[24901] | 1510 | fi;
|
---|
[22058] | 1511 | if test $USE_SQLITE = "yes" -o $USE_SQLITE = "1" ; then
|
---|
[16568] | 1512 | USE_SQLITE=1
|
---|
[24901] | 1513 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1514 | #define USE_SQLITE
|
---|
| 1515 | _ACEOF
|
---|
[16568] | 1516 |
|
---|
[22058] | 1517 | else
|
---|
| 1518 | USE_SQLITE=0
|
---|
| 1519 | fi
|
---|
[16568] | 1520 |
|
---|
| 1521 |
|
---|
[24958] | 1522 | # Check whether --enable-rss or --disable-rss was given.
|
---|
| 1523 | if test "${enable_rss+set}" = set; then
|
---|
| 1524 | enableval="$enable_rss"
|
---|
| 1525 | USE_RSS=$enableval
|
---|
| 1526 | else
|
---|
| 1527 | USE_RSS=yes
|
---|
| 1528 | fi;
|
---|
| 1529 | if test $USE_RSS = "yes" -o $USE_RSS = "1" ; then
|
---|
| 1530 | USE_RSS=1
|
---|
| 1531 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1532 | #define USE_RSS
|
---|
| 1533 | _ACEOF
|
---|
| 1534 |
|
---|
| 1535 | else
|
---|
| 1536 | USE_RSS=0
|
---|
| 1537 | fi
|
---|
| 1538 |
|
---|
| 1539 |
|
---|
| 1540 |
|
---|
[24901] | 1541 | # Check whether --enable-apache-httpd or --disable-apache-httpd was given.
|
---|
| 1542 | if test "${enable_apache_httpd+set}" = set; then
|
---|
| 1543 | enableval="$enable_apache_httpd"
|
---|
| 1544 | USE_APACHE_HTTPD=$enableval
|
---|
[20848] | 1545 | else
|
---|
[22058] | 1546 | USE_APACHE_HTTPD=no
|
---|
[24901] | 1547 | fi;
|
---|
[22068] | 1548 | if test $USE_APACHE_HTTPD = "yes" -o $USE_APACHE_HTTPD = "1" ; then
|
---|
| 1549 | USE_APACHE_HTTPD=1
|
---|
[24901] | 1550 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1551 | #define USE_APACHE_HTTPD
|
---|
| 1552 | _ACEOF
|
---|
[18487] | 1553 |
|
---|
[22068] | 1554 | else
|
---|
| 1555 | USE_APACHE_HTTPD=0
|
---|
[22058] | 1556 | fi
|
---|
[18487] | 1557 |
|
---|
[22068] | 1558 |
|
---|
| 1559 |
|
---|
[24901] | 1560 | # Check whether --enable-mg or --disable-mg was given.
|
---|
| 1561 | if test "${enable_mg+set}" = set; then
|
---|
| 1562 | enableval="$enable_mg"
|
---|
| 1563 | ENABLE_MG=$enableval
|
---|
[21329] | 1564 | else
|
---|
| 1565 | ENABLE_MG=yes
|
---|
[24901] | 1566 | fi;
|
---|
[21329] | 1567 | if test $ENABLE_MG = "yes" -o $ENABLE_MG = "1" ; then
|
---|
| 1568 | ENABLE_MG=1
|
---|
[24901] | 1569 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1570 | #define ENABLE_MG
|
---|
| 1571 | _ACEOF
|
---|
[18487] | 1572 |
|
---|
[21329] | 1573 | else
|
---|
| 1574 | ENABLE_MG=0
|
---|
| 1575 | fi
|
---|
| 1576 |
|
---|
| 1577 |
|
---|
[24901] | 1578 | # Check whether --enable-mgpp or --disable-mgpp was given.
|
---|
| 1579 | if test "${enable_mgpp+set}" = set; then
|
---|
| 1580 | enableval="$enable_mgpp"
|
---|
| 1581 | ENABLE_MGPP=$enableval
|
---|
[21329] | 1582 | else
|
---|
| 1583 | ENABLE_MGPP=yes
|
---|
[24901] | 1584 | fi;
|
---|
[21329] | 1585 | if test $ENABLE_MGPP = "yes" -o $ENABLE_MGPP = "1" ; then
|
---|
| 1586 | ENABLE_MGPP=1
|
---|
[24901] | 1587 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1588 | #define ENABLE_MGPP
|
---|
| 1589 | _ACEOF
|
---|
[21329] | 1590 |
|
---|
| 1591 | else
|
---|
| 1592 | ENABLE_MGPP=0
|
---|
| 1593 | fi
|
---|
| 1594 |
|
---|
| 1595 |
|
---|
[24901] | 1596 | # Check whether --enable-lucene or --disable-lucene was given.
|
---|
| 1597 | if test "${enable_lucene+set}" = set; then
|
---|
| 1598 | enableval="$enable_lucene"
|
---|
| 1599 | ENABLE_LUCENE=$enableval
|
---|
[21329] | 1600 | else
|
---|
| 1601 | ENABLE_LUCENE=yes
|
---|
[24901] | 1602 | fi;
|
---|
[23356] | 1603 | if test $ENABLE_JAVA = "1" -a \( $ENABLE_LUCENE = "yes" -o $ENABLE_LUCENE = "1" \) ; then
|
---|
[21329] | 1604 | ENABLE_LUCENE=1
|
---|
[24901] | 1605 | cat >>confdefs.h <<\_ACEOF
|
---|
| 1606 | #define ENABLE_LUCENE
|
---|
| 1607 | _ACEOF
|
---|
[21329] | 1608 |
|
---|
| 1609 | else
|
---|
| 1610 | ENABLE_LUCENE=0
|
---|
| 1611 | fi
|
---|
| 1612 |
|
---|
| 1613 |
|
---|
[16568] | 1614 | LDFLAGS=$LDFLAGS
|
---|
| 1615 |
|
---|
| 1616 | if test -z "$CFLAGS"; then
|
---|
| 1617 | CFLAGS=-O2
|
---|
| 1618 | fi
|
---|
| 1619 |
|
---|
| 1620 |
|
---|
| 1621 |
|
---|
| 1622 | ac_ext=c
|
---|
| 1623 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 1624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 1625 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 1626 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 1627 | if test -n "$ac_tool_prefix"; then
|
---|
| 1628 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
| 1629 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
[24901] | 1630 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1631 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1632 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1633 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 1634 | else
|
---|
| 1635 | if test -n "$CC"; then
|
---|
| 1636 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1637 | else
|
---|
| 1638 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1639 | for as_dir in $PATH
|
---|
| 1640 | do
|
---|
| 1641 | IFS=$as_save_IFS
|
---|
| 1642 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 1643 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1644 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 1645 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
[24901] | 1646 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 1647 | break 2
|
---|
| 1648 | fi
|
---|
| 1649 | done
|
---|
[24901] | 1650 | done
|
---|
[16568] | 1651 |
|
---|
| 1652 | fi
|
---|
| 1653 | fi
|
---|
| 1654 | CC=$ac_cv_prog_CC
|
---|
| 1655 | if test -n "$CC"; then
|
---|
[24901] | 1656 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1657 | echo "${ECHO_T}$CC" >&6
|
---|
[16568] | 1658 | else
|
---|
[24901] | 1659 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1660 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 1661 | fi
|
---|
| 1662 |
|
---|
| 1663 | fi
|
---|
| 1664 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1665 | ac_ct_CC=$CC
|
---|
| 1666 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
| 1667 | set dummy gcc; ac_word=$2
|
---|
[24901] | 1668 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1669 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1670 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1671 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 1672 | else
|
---|
| 1673 | if test -n "$ac_ct_CC"; then
|
---|
| 1674 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1675 | else
|
---|
| 1676 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1677 | for as_dir in $PATH
|
---|
| 1678 | do
|
---|
| 1679 | IFS=$as_save_IFS
|
---|
| 1680 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 1681 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1682 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 1683 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
[24901] | 1684 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 1685 | break 2
|
---|
| 1686 | fi
|
---|
| 1687 | done
|
---|
[24901] | 1688 | done
|
---|
[16568] | 1689 |
|
---|
| 1690 | fi
|
---|
| 1691 | fi
|
---|
| 1692 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1693 | if test -n "$ac_ct_CC"; then
|
---|
[24901] | 1694 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1695 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
[16568] | 1696 | else
|
---|
[24901] | 1697 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1698 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 1699 | fi
|
---|
| 1700 |
|
---|
[24901] | 1701 | CC=$ac_ct_CC
|
---|
[16568] | 1702 | else
|
---|
| 1703 | CC="$ac_cv_prog_CC"
|
---|
| 1704 | fi
|
---|
| 1705 |
|
---|
| 1706 | if test -z "$CC"; then
|
---|
[24901] | 1707 | if test -n "$ac_tool_prefix"; then
|
---|
| 1708 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
[16568] | 1709 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
[24901] | 1710 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1711 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1712 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1713 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 1714 | else
|
---|
| 1715 | if test -n "$CC"; then
|
---|
| 1716 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1717 | else
|
---|
| 1718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1719 | for as_dir in $PATH
|
---|
| 1720 | do
|
---|
| 1721 | IFS=$as_save_IFS
|
---|
| 1722 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 1723 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1724 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 1725 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
[24901] | 1726 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 1727 | break 2
|
---|
| 1728 | fi
|
---|
| 1729 | done
|
---|
[24901] | 1730 | done
|
---|
[16568] | 1731 |
|
---|
| 1732 | fi
|
---|
| 1733 | fi
|
---|
| 1734 | CC=$ac_cv_prog_CC
|
---|
| 1735 | if test -n "$CC"; then
|
---|
[24901] | 1736 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1737 | echo "${ECHO_T}$CC" >&6
|
---|
[16568] | 1738 | else
|
---|
[24901] | 1739 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1740 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 1741 | fi
|
---|
| 1742 |
|
---|
[24901] | 1743 | fi
|
---|
| 1744 | if test -z "$ac_cv_prog_CC"; then
|
---|
| 1745 | ac_ct_CC=$CC
|
---|
| 1746 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1747 | set dummy cc; ac_word=$2
|
---|
| 1748 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1749 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1750 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1751 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 1752 | else
|
---|
| 1753 | if test -n "$ac_ct_CC"; then
|
---|
| 1754 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1755 | else
|
---|
| 1756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1757 | for as_dir in $PATH
|
---|
| 1758 | do
|
---|
| 1759 | IFS=$as_save_IFS
|
---|
| 1760 | test -z "$as_dir" && as_dir=.
|
---|
| 1761 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1762 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
| 1763 | ac_cv_prog_ac_ct_CC="cc"
|
---|
| 1764 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
| 1765 | break 2
|
---|
| 1766 | fi
|
---|
| 1767 | done
|
---|
| 1768 | done
|
---|
[23356] | 1769 |
|
---|
[16568] | 1770 | fi
|
---|
[24901] | 1771 | fi
|
---|
| 1772 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1773 | if test -n "$ac_ct_CC"; then
|
---|
| 1774 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1775 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
| 1776 | else
|
---|
| 1777 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1778 | echo "${ECHO_T}no" >&6
|
---|
| 1779 | fi
|
---|
| 1780 |
|
---|
| 1781 | CC=$ac_ct_CC
|
---|
| 1782 | else
|
---|
| 1783 | CC="$ac_cv_prog_CC"
|
---|
| 1784 | fi
|
---|
| 1785 |
|
---|
| 1786 | fi
|
---|
[16568] | 1787 | if test -z "$CC"; then
|
---|
| 1788 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
| 1789 | set dummy cc; ac_word=$2
|
---|
[24901] | 1790 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1791 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1792 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1793 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 1794 | else
|
---|
| 1795 | if test -n "$CC"; then
|
---|
| 1796 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1797 | else
|
---|
| 1798 | ac_prog_rejected=no
|
---|
| 1799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1800 | for as_dir in $PATH
|
---|
| 1801 | do
|
---|
| 1802 | IFS=$as_save_IFS
|
---|
| 1803 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 1804 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1805 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 1806 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
| 1807 | ac_prog_rejected=yes
|
---|
| 1808 | continue
|
---|
| 1809 | fi
|
---|
| 1810 | ac_cv_prog_CC="cc"
|
---|
[24901] | 1811 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 1812 | break 2
|
---|
| 1813 | fi
|
---|
| 1814 | done
|
---|
[24901] | 1815 | done
|
---|
[16568] | 1816 |
|
---|
| 1817 | if test $ac_prog_rejected = yes; then
|
---|
| 1818 | # We found a bogon in the path, so make sure we never use it.
|
---|
| 1819 | set dummy $ac_cv_prog_CC
|
---|
| 1820 | shift
|
---|
| 1821 | if test $# != 0; then
|
---|
| 1822 | # We chose a different compiler from the bogus one.
|
---|
| 1823 | # However, it has the same basename, so the bogon will be chosen
|
---|
| 1824 | # first if we set CC to just the basename; use the full file name.
|
---|
| 1825 | shift
|
---|
| 1826 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
| 1827 | fi
|
---|
| 1828 | fi
|
---|
| 1829 | fi
|
---|
| 1830 | fi
|
---|
| 1831 | CC=$ac_cv_prog_CC
|
---|
| 1832 | if test -n "$CC"; then
|
---|
[24901] | 1833 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1834 | echo "${ECHO_T}$CC" >&6
|
---|
[16568] | 1835 | else
|
---|
[24901] | 1836 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1837 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 1838 | fi
|
---|
| 1839 |
|
---|
| 1840 | fi
|
---|
| 1841 | if test -z "$CC"; then
|
---|
| 1842 | if test -n "$ac_tool_prefix"; then
|
---|
[24901] | 1843 | for ac_prog in cl
|
---|
[16568] | 1844 | do
|
---|
| 1845 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 1846 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[24901] | 1847 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1848 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1849 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
| 1850 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 1851 | else
|
---|
| 1852 | if test -n "$CC"; then
|
---|
| 1853 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
| 1854 | else
|
---|
| 1855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1856 | for as_dir in $PATH
|
---|
| 1857 | do
|
---|
| 1858 | IFS=$as_save_IFS
|
---|
| 1859 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 1860 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1861 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 1862 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
[24901] | 1863 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 1864 | break 2
|
---|
| 1865 | fi
|
---|
| 1866 | done
|
---|
[24901] | 1867 | done
|
---|
[16568] | 1868 |
|
---|
| 1869 | fi
|
---|
| 1870 | fi
|
---|
| 1871 | CC=$ac_cv_prog_CC
|
---|
| 1872 | if test -n "$CC"; then
|
---|
[24901] | 1873 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
| 1874 | echo "${ECHO_T}$CC" >&6
|
---|
[16568] | 1875 | else
|
---|
[24901] | 1876 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1877 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 1878 | fi
|
---|
| 1879 |
|
---|
| 1880 | test -n "$CC" && break
|
---|
| 1881 | done
|
---|
| 1882 | fi
|
---|
| 1883 | if test -z "$CC"; then
|
---|
| 1884 | ac_ct_CC=$CC
|
---|
[24901] | 1885 | for ac_prog in cl
|
---|
[16568] | 1886 | do
|
---|
| 1887 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 1888 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 1889 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 1890 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 1891 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
| 1892 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 1893 | else
|
---|
| 1894 | if test -n "$ac_ct_CC"; then
|
---|
| 1895 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
| 1896 | else
|
---|
| 1897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 1898 | for as_dir in $PATH
|
---|
| 1899 | do
|
---|
| 1900 | IFS=$as_save_IFS
|
---|
| 1901 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 1902 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 1903 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 1904 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
[24901] | 1905 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 1906 | break 2
|
---|
| 1907 | fi
|
---|
| 1908 | done
|
---|
[24901] | 1909 | done
|
---|
[16568] | 1910 |
|
---|
| 1911 | fi
|
---|
| 1912 | fi
|
---|
| 1913 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
| 1914 | if test -n "$ac_ct_CC"; then
|
---|
[24901] | 1915 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
| 1916 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
[16568] | 1917 | else
|
---|
[24901] | 1918 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 1919 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 1920 | fi
|
---|
| 1921 |
|
---|
| 1922 | test -n "$ac_ct_CC" && break
|
---|
| 1923 | done
|
---|
| 1924 |
|
---|
[24901] | 1925 | CC=$ac_ct_CC
|
---|
[16568] | 1926 | fi
|
---|
| 1927 |
|
---|
| 1928 | fi
|
---|
| 1929 |
|
---|
| 1930 |
|
---|
[24901] | 1931 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
| 1932 | See \`config.log' for more details." >&5
|
---|
| 1933 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
| 1934 | See \`config.log' for more details." >&2;}
|
---|
| 1935 | { (exit 1); exit 1; }; }
|
---|
[16568] | 1936 |
|
---|
| 1937 | # Provide some information about the compiler.
|
---|
[24901] | 1938 | echo "$as_me:$LINENO:" \
|
---|
| 1939 | "checking for C compiler version" >&5
|
---|
| 1940 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 1941 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 1942 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
[16568] | 1943 | ac_status=$?
|
---|
[24901] | 1944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1945 | (exit $ac_status); }
|
---|
| 1946 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 1947 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 1948 | ac_status=$?
|
---|
| 1949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1950 | (exit $ac_status); }
|
---|
| 1951 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 1952 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 1953 | ac_status=$?
|
---|
| 1954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1955 | (exit $ac_status); }
|
---|
[16568] | 1956 |
|
---|
[24901] | 1957 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 1958 | /* confdefs.h. */
|
---|
| 1959 | _ACEOF
|
---|
| 1960 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 1961 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 1962 | /* end confdefs.h. */
|
---|
| 1963 |
|
---|
| 1964 | int
|
---|
| 1965 | main ()
|
---|
| 1966 | {
|
---|
| 1967 |
|
---|
| 1968 | ;
|
---|
| 1969 | return 0;
|
---|
| 1970 | }
|
---|
| 1971 | _ACEOF
|
---|
| 1972 | ac_clean_files_save=$ac_clean_files
|
---|
[24901] | 1973 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
[16568] | 1974 | # Try to create an executable without -o first, disregard a.out.
|
---|
| 1975 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
| 1976 | # of exeext.
|
---|
[24901] | 1977 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
| 1978 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
| 1979 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
| 1980 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
| 1981 | (eval $ac_link_default) 2>&5
|
---|
| 1982 | ac_status=$?
|
---|
| 1983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 1984 | (exit $ac_status); }; then
|
---|
| 1985 | # Find the output, starting from the most likely. This scheme is
|
---|
| 1986 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
| 1987 | # resort.
|
---|
[20854] | 1988 |
|
---|
[24901] | 1989 | # Be careful to initialize this variable, since it used to be cached.
|
---|
| 1990 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
| 1991 | ac_cv_exeext=
|
---|
| 1992 | # b.out is created by i960 compilers.
|
---|
| 1993 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
[16568] | 1994 | do
|
---|
| 1995 | test -f "$ac_file" || continue
|
---|
| 1996 | case $ac_file in
|
---|
[24901] | 1997 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
[16568] | 1998 | ;;
|
---|
[24901] | 1999 | conftest.$ac_ext )
|
---|
| 2000 | # This is the source file.
|
---|
| 2001 | ;;
|
---|
[16568] | 2002 | [ab].out )
|
---|
| 2003 | # We found the default executable, but exeext='' is most
|
---|
| 2004 | # certainly right.
|
---|
| 2005 | break;;
|
---|
| 2006 | *.* )
|
---|
[24901] | 2007 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
| 2008 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
| 2009 | # but it would be cool to find out if it's true. Does anybody
|
---|
| 2010 | # maintain Libtool? --akim.
|
---|
| 2011 | export ac_cv_exeext
|
---|
[16568] | 2012 | break;;
|
---|
| 2013 | * )
|
---|
| 2014 | break;;
|
---|
| 2015 | esac
|
---|
| 2016 | done
|
---|
| 2017 | else
|
---|
[24901] | 2018 | echo "$as_me: failed program was:" >&5
|
---|
[16568] | 2019 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2020 |
|
---|
[24901] | 2021 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
| 2022 | See \`config.log' for more details." >&5
|
---|
| 2023 | echo "$as_me: error: C compiler cannot create executables
|
---|
| 2024 | See \`config.log' for more details." >&2;}
|
---|
| 2025 | { (exit 77); exit 77; }; }
|
---|
[16568] | 2026 | fi
|
---|
[24901] | 2027 |
|
---|
[16568] | 2028 | ac_exeext=$ac_cv_exeext
|
---|
[24901] | 2029 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
| 2030 | echo "${ECHO_T}$ac_file" >&6
|
---|
[16568] | 2031 |
|
---|
[24901] | 2032 | # Check the compiler produces executables we can run. If not, either
|
---|
| 2033 | # the compiler is broken, or we cross compile.
|
---|
| 2034 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
| 2035 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
| 2036 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
| 2037 | # If not cross compiling, check that we can run a simple program.
|
---|
| 2038 | if test "$cross_compiling" != yes; then
|
---|
| 2039 | if { ac_try='./$ac_file'
|
---|
| 2040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2041 | (eval $ac_try) 2>&5
|
---|
| 2042 | ac_status=$?
|
---|
| 2043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2044 | (exit $ac_status); }; }; then
|
---|
| 2045 | cross_compiling=no
|
---|
| 2046 | else
|
---|
| 2047 | if test "$cross_compiling" = maybe; then
|
---|
| 2048 | cross_compiling=yes
|
---|
| 2049 | else
|
---|
| 2050 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
| 2051 | If you meant to cross compile, use \`--host'.
|
---|
| 2052 | See \`config.log' for more details." >&5
|
---|
| 2053 | echo "$as_me: error: cannot run C compiled programs.
|
---|
| 2054 | If you meant to cross compile, use \`--host'.
|
---|
| 2055 | See \`config.log' for more details." >&2;}
|
---|
| 2056 | { (exit 1); exit 1; }; }
|
---|
| 2057 | fi
|
---|
| 2058 | fi
|
---|
| 2059 | fi
|
---|
| 2060 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 2061 | echo "${ECHO_T}yes" >&6
|
---|
| 2062 |
|
---|
| 2063 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
[16568] | 2064 | ac_clean_files=$ac_clean_files_save
|
---|
[24901] | 2065 | # Check the compiler produces executables we can run. If not, either
|
---|
| 2066 | # the compiler is broken, or we cross compile.
|
---|
| 2067 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
| 2068 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
| 2069 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
| 2070 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
| 2071 |
|
---|
| 2072 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
| 2073 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
| 2074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 2075 | (eval $ac_link) 2>&5
|
---|
[16568] | 2076 | ac_status=$?
|
---|
[24901] | 2077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2078 | (exit $ac_status); }; then
|
---|
[16568] | 2079 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
| 2080 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
| 2081 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
| 2082 | # `rm'.
|
---|
| 2083 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
| 2084 | test -f "$ac_file" || continue
|
---|
| 2085 | case $ac_file in
|
---|
[24901] | 2086 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
[16568] | 2087 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
[24901] | 2088 | export ac_cv_exeext
|
---|
[16568] | 2089 | break;;
|
---|
| 2090 | * ) break;;
|
---|
| 2091 | esac
|
---|
| 2092 | done
|
---|
| 2093 | else
|
---|
[24901] | 2094 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 2095 | See \`config.log' for more details." >&5
|
---|
| 2096 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
| 2097 | See \`config.log' for more details." >&2;}
|
---|
| 2098 | { (exit 1); exit 1; }; }
|
---|
[16568] | 2099 | fi
|
---|
| 2100 |
|
---|
[24901] | 2101 | rm -f conftest$ac_cv_exeext
|
---|
| 2102 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
| 2103 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
| 2104 |
|
---|
[16568] | 2105 | rm -f conftest.$ac_ext
|
---|
| 2106 | EXEEXT=$ac_cv_exeext
|
---|
| 2107 | ac_exeext=$EXEEXT
|
---|
[24901] | 2108 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
| 2109 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
| 2110 | if test "${ac_cv_objext+set}" = set; then
|
---|
| 2111 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 2112 | else
|
---|
| 2113 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2114 | /* confdefs.h. */
|
---|
[23356] | 2115 | _ACEOF
|
---|
[24901] | 2116 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2117 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 2118 | /* end confdefs.h. */
|
---|
| 2119 |
|
---|
| 2120 | int
|
---|
| 2121 | main ()
|
---|
| 2122 | {
|
---|
| 2123 |
|
---|
| 2124 | ;
|
---|
| 2125 | return 0;
|
---|
| 2126 | }
|
---|
| 2127 | _ACEOF
|
---|
| 2128 | rm -f conftest.o conftest.obj
|
---|
[24901] | 2129 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2130 | (eval $ac_compile) 2>&5
|
---|
[16568] | 2131 | ac_status=$?
|
---|
[24901] | 2132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2133 | (exit $ac_status); }; then
|
---|
| 2134 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
[16568] | 2135 | case $ac_file in
|
---|
[24901] | 2136 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
[16568] | 2137 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
| 2138 | break;;
|
---|
| 2139 | esac
|
---|
| 2140 | done
|
---|
| 2141 | else
|
---|
[24901] | 2142 | echo "$as_me: failed program was:" >&5
|
---|
[16568] | 2143 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2144 |
|
---|
[24901] | 2145 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
| 2146 | See \`config.log' for more details." >&5
|
---|
| 2147 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
| 2148 | See \`config.log' for more details." >&2;}
|
---|
| 2149 | { (exit 1); exit 1; }; }
|
---|
[16568] | 2150 | fi
|
---|
[24901] | 2151 |
|
---|
[16568] | 2152 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
| 2153 | fi
|
---|
[24901] | 2154 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
| 2155 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
[16568] | 2156 | OBJEXT=$ac_cv_objext
|
---|
| 2157 | ac_objext=$OBJEXT
|
---|
[24901] | 2158 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
| 2159 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
| 2160 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
| 2161 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 2162 | else
|
---|
[24901] | 2163 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2164 | /* confdefs.h. */
|
---|
| 2165 | _ACEOF
|
---|
| 2166 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2167 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 2168 | /* end confdefs.h. */
|
---|
| 2169 |
|
---|
| 2170 | int
|
---|
| 2171 | main ()
|
---|
| 2172 | {
|
---|
| 2173 | #ifndef __GNUC__
|
---|
| 2174 | choke me
|
---|
| 2175 | #endif
|
---|
| 2176 |
|
---|
| 2177 | ;
|
---|
| 2178 | return 0;
|
---|
| 2179 | }
|
---|
| 2180 | _ACEOF
|
---|
[24901] | 2181 | rm -f conftest.$ac_objext
|
---|
| 2182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2183 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2184 | ac_status=$?
|
---|
| 2185 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2186 | rm -f conftest.er1
|
---|
| 2187 | cat conftest.err >&5
|
---|
| 2188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2189 | (exit $ac_status); } &&
|
---|
| 2190 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2191 | || test ! -s conftest.err'
|
---|
| 2192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2193 | (eval $ac_try) 2>&5
|
---|
| 2194 | ac_status=$?
|
---|
| 2195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2196 | (exit $ac_status); }; } &&
|
---|
| 2197 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2199 | (eval $ac_try) 2>&5
|
---|
| 2200 | ac_status=$?
|
---|
| 2201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2202 | (exit $ac_status); }; }; then
|
---|
[16568] | 2203 | ac_compiler_gnu=yes
|
---|
| 2204 | else
|
---|
[24901] | 2205 | echo "$as_me: failed program was:" >&5
|
---|
| 2206 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2207 |
|
---|
| 2208 | ac_compiler_gnu=no
|
---|
[16568] | 2209 | fi
|
---|
[24901] | 2210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 2211 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
| 2212 |
|
---|
| 2213 | fi
|
---|
[24901] | 2214 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
| 2215 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
| 2216 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
[16568] | 2217 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
| 2218 | ac_save_CFLAGS=$CFLAGS
|
---|
[24901] | 2219 | CFLAGS="-g"
|
---|
| 2220 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
| 2221 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
| 2222 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
| 2223 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 2224 | else
|
---|
[24901] | 2225 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2226 | /* confdefs.h. */
|
---|
| 2227 | _ACEOF
|
---|
| 2228 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2229 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 2230 | /* end confdefs.h. */
|
---|
| 2231 |
|
---|
| 2232 | int
|
---|
| 2233 | main ()
|
---|
| 2234 | {
|
---|
| 2235 |
|
---|
| 2236 | ;
|
---|
| 2237 | return 0;
|
---|
| 2238 | }
|
---|
| 2239 | _ACEOF
|
---|
[24901] | 2240 | rm -f conftest.$ac_objext
|
---|
| 2241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2242 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2243 | ac_status=$?
|
---|
| 2244 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2245 | rm -f conftest.er1
|
---|
| 2246 | cat conftest.err >&5
|
---|
| 2247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2248 | (exit $ac_status); } &&
|
---|
| 2249 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2250 | || test ! -s conftest.err'
|
---|
| 2251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2252 | (eval $ac_try) 2>&5
|
---|
| 2253 | ac_status=$?
|
---|
| 2254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2255 | (exit $ac_status); }; } &&
|
---|
| 2256 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2258 | (eval $ac_try) 2>&5
|
---|
| 2259 | ac_status=$?
|
---|
| 2260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2261 | (exit $ac_status); }; }; then
|
---|
[16568] | 2262 | ac_cv_prog_cc_g=yes
|
---|
| 2263 | else
|
---|
[24901] | 2264 | echo "$as_me: failed program was:" >&5
|
---|
| 2265 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[16568] | 2266 |
|
---|
[24901] | 2267 | ac_cv_prog_cc_g=no
|
---|
[16568] | 2268 | fi
|
---|
[24901] | 2269 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 2270 | fi
|
---|
[24901] | 2271 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
| 2272 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
[16568] | 2273 | if test "$ac_test_CFLAGS" = set; then
|
---|
| 2274 | CFLAGS=$ac_save_CFLAGS
|
---|
| 2275 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
| 2276 | if test "$GCC" = yes; then
|
---|
| 2277 | CFLAGS="-g -O2"
|
---|
| 2278 | else
|
---|
| 2279 | CFLAGS="-g"
|
---|
| 2280 | fi
|
---|
| 2281 | else
|
---|
| 2282 | if test "$GCC" = yes; then
|
---|
| 2283 | CFLAGS="-O2"
|
---|
| 2284 | else
|
---|
| 2285 | CFLAGS=
|
---|
| 2286 | fi
|
---|
| 2287 | fi
|
---|
[24901] | 2288 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
| 2289 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
| 2290 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 2291 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 2292 | else
|
---|
[24901] | 2293 | ac_cv_prog_cc_stdc=no
|
---|
[16568] | 2294 | ac_save_CC=$CC
|
---|
[24901] | 2295 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2296 | /* confdefs.h. */
|
---|
| 2297 | _ACEOF
|
---|
| 2298 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2299 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 2300 | /* end confdefs.h. */
|
---|
| 2301 | #include <stdarg.h>
|
---|
| 2302 | #include <stdio.h>
|
---|
| 2303 | #include <sys/types.h>
|
---|
| 2304 | #include <sys/stat.h>
|
---|
| 2305 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
| 2306 | struct buf { int x; };
|
---|
| 2307 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
| 2308 | static char *e (p, i)
|
---|
| 2309 | char **p;
|
---|
| 2310 | int i;
|
---|
| 2311 | {
|
---|
| 2312 | return p[i];
|
---|
| 2313 | }
|
---|
| 2314 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
| 2315 | {
|
---|
| 2316 | char *s;
|
---|
| 2317 | va_list v;
|
---|
| 2318 | va_start (v,p);
|
---|
| 2319 | s = g (p, va_arg (v,int));
|
---|
| 2320 | va_end (v);
|
---|
| 2321 | return s;
|
---|
| 2322 | }
|
---|
| 2323 |
|
---|
| 2324 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
| 2325 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
| 2326 | These don't provoke an error unfortunately, instead are silently treated
|
---|
[24901] | 2327 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
[16568] | 2328 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
| 2329 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
[24901] | 2330 | that's true only with -std1. */
|
---|
[16568] | 2331 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
| 2332 |
|
---|
| 2333 | int test (int i, double x);
|
---|
| 2334 | struct s1 {int (*f) (int a);};
|
---|
| 2335 | struct s2 {int (*f) (double a);};
|
---|
| 2336 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
| 2337 | int argc;
|
---|
| 2338 | char **argv;
|
---|
| 2339 | int
|
---|
| 2340 | main ()
|
---|
| 2341 | {
|
---|
| 2342 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
| 2343 | ;
|
---|
| 2344 | return 0;
|
---|
| 2345 | }
|
---|
| 2346 | _ACEOF
|
---|
[24901] | 2347 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 2348 | # breaks some systems' header files.
|
---|
| 2349 | # AIX -qlanglvl=ansi
|
---|
| 2350 | # Ultrix and OSF/1 -std1
|
---|
| 2351 | # HP-UX 10.20 and later -Ae
|
---|
| 2352 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
| 2353 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
| 2354 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
[16568] | 2355 | do
|
---|
| 2356 | CC="$ac_save_CC $ac_arg"
|
---|
[24901] | 2357 | rm -f conftest.$ac_objext
|
---|
| 2358 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2359 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2360 | ac_status=$?
|
---|
| 2361 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2362 | rm -f conftest.er1
|
---|
| 2363 | cat conftest.err >&5
|
---|
| 2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2365 | (exit $ac_status); } &&
|
---|
| 2366 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2367 | || test ! -s conftest.err'
|
---|
| 2368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2369 | (eval $ac_try) 2>&5
|
---|
| 2370 | ac_status=$?
|
---|
| 2371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2372 | (exit $ac_status); }; } &&
|
---|
| 2373 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2375 | (eval $ac_try) 2>&5
|
---|
| 2376 | ac_status=$?
|
---|
| 2377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2378 | (exit $ac_status); }; }; then
|
---|
| 2379 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
| 2380 | break
|
---|
| 2381 | else
|
---|
| 2382 | echo "$as_me: failed program was:" >&5
|
---|
| 2383 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2384 |
|
---|
[16568] | 2385 | fi
|
---|
[24901] | 2386 | rm -f conftest.err conftest.$ac_objext
|
---|
[16568] | 2387 | done
|
---|
[24901] | 2388 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
[16568] | 2389 | CC=$ac_save_CC
|
---|
| 2390 |
|
---|
| 2391 | fi
|
---|
[24901] | 2392 |
|
---|
| 2393 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 2394 | x|xno)
|
---|
| 2395 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
| 2396 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
[16568] | 2397 | *)
|
---|
[24901] | 2398 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 2399 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
| 2400 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
[16568] | 2401 | esac
|
---|
| 2402 |
|
---|
[24901] | 2403 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
| 2404 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
| 2405 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
| 2406 | # the declaration of exit, since it's the most demanding environment.
|
---|
| 2407 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2408 | #ifndef __cplusplus
|
---|
| 2409 | choke me
|
---|
| 2410 | #endif
|
---|
| 2411 | _ACEOF
|
---|
| 2412 | rm -f conftest.$ac_objext
|
---|
| 2413 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2414 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2415 | ac_status=$?
|
---|
| 2416 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2417 | rm -f conftest.er1
|
---|
| 2418 | cat conftest.err >&5
|
---|
| 2419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2420 | (exit $ac_status); } &&
|
---|
| 2421 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2422 | || test ! -s conftest.err'
|
---|
| 2423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2424 | (eval $ac_try) 2>&5
|
---|
| 2425 | ac_status=$?
|
---|
| 2426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2427 | (exit $ac_status); }; } &&
|
---|
| 2428 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2430 | (eval $ac_try) 2>&5
|
---|
| 2431 | ac_status=$?
|
---|
| 2432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2433 | (exit $ac_status); }; }; then
|
---|
| 2434 | for ac_declaration in \
|
---|
| 2435 | '' \
|
---|
| 2436 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2437 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2438 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2439 | 'extern "C" void exit (int);' \
|
---|
| 2440 | 'void exit (int);'
|
---|
| 2441 | do
|
---|
| 2442 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2443 | /* confdefs.h. */
|
---|
| 2444 | _ACEOF
|
---|
| 2445 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2446 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2447 | /* end confdefs.h. */
|
---|
| 2448 | $ac_declaration
|
---|
| 2449 | #include <stdlib.h>
|
---|
| 2450 | int
|
---|
| 2451 | main ()
|
---|
| 2452 | {
|
---|
| 2453 | exit (42);
|
---|
| 2454 | ;
|
---|
| 2455 | return 0;
|
---|
| 2456 | }
|
---|
| 2457 | _ACEOF
|
---|
| 2458 | rm -f conftest.$ac_objext
|
---|
| 2459 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2460 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2461 | ac_status=$?
|
---|
| 2462 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2463 | rm -f conftest.er1
|
---|
| 2464 | cat conftest.err >&5
|
---|
| 2465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2466 | (exit $ac_status); } &&
|
---|
| 2467 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2468 | || test ! -s conftest.err'
|
---|
| 2469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2470 | (eval $ac_try) 2>&5
|
---|
| 2471 | ac_status=$?
|
---|
| 2472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2473 | (exit $ac_status); }; } &&
|
---|
| 2474 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2475 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2476 | (eval $ac_try) 2>&5
|
---|
| 2477 | ac_status=$?
|
---|
| 2478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2479 | (exit $ac_status); }; }; then
|
---|
| 2480 | :
|
---|
| 2481 | else
|
---|
| 2482 | echo "$as_me: failed program was:" >&5
|
---|
| 2483 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2484 |
|
---|
| 2485 | continue
|
---|
[20854] | 2486 | fi
|
---|
[24901] | 2487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2488 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2489 | /* confdefs.h. */
|
---|
| 2490 | _ACEOF
|
---|
| 2491 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2492 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 2493 | /* end confdefs.h. */
|
---|
| 2494 | $ac_declaration
|
---|
| 2495 | int
|
---|
| 2496 | main ()
|
---|
| 2497 | {
|
---|
| 2498 | exit (42);
|
---|
| 2499 | ;
|
---|
| 2500 | return 0;
|
---|
| 2501 | }
|
---|
| 2502 | _ACEOF
|
---|
| 2503 | rm -f conftest.$ac_objext
|
---|
| 2504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2505 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2506 | ac_status=$?
|
---|
| 2507 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2508 | rm -f conftest.er1
|
---|
| 2509 | cat conftest.err >&5
|
---|
| 2510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2511 | (exit $ac_status); } &&
|
---|
| 2512 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 2513 | || test ! -s conftest.err'
|
---|
| 2514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2515 | (eval $ac_try) 2>&5
|
---|
| 2516 | ac_status=$?
|
---|
| 2517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2518 | (exit $ac_status); }; } &&
|
---|
| 2519 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2521 | (eval $ac_try) 2>&5
|
---|
| 2522 | ac_status=$?
|
---|
| 2523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2524 | (exit $ac_status); }; }; then
|
---|
| 2525 | break
|
---|
| 2526 | else
|
---|
| 2527 | echo "$as_me: failed program was:" >&5
|
---|
| 2528 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[20854] | 2529 |
|
---|
[24901] | 2530 | fi
|
---|
| 2531 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2532 | done
|
---|
| 2533 | rm -f conftest*
|
---|
| 2534 | if test -n "$ac_declaration"; then
|
---|
| 2535 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2536 | echo $ac_declaration >>confdefs.h
|
---|
| 2537 | echo '#endif' >>confdefs.h
|
---|
| 2538 | fi
|
---|
| 2539 |
|
---|
| 2540 | else
|
---|
| 2541 | echo "$as_me: failed program was:" >&5
|
---|
| 2542 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2543 |
|
---|
| 2544 | fi
|
---|
| 2545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 2546 | ac_ext=c
|
---|
| 2547 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2548 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2549 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2550 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2551 |
|
---|
[24901] | 2552 | ac_ext=cc
|
---|
[16568] | 2553 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 2554 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2555 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2556 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
[24901] | 2557 | if test -n "$ac_tool_prefix"; then
|
---|
| 2558 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[16568] | 2559 | do
|
---|
| 2560 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
| 2561 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
[24901] | 2562 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2563 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2564 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
| 2565 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 2566 | else
|
---|
| 2567 | if test -n "$CXX"; then
|
---|
| 2568 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
| 2569 | else
|
---|
| 2570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2571 | for as_dir in $PATH
|
---|
| 2572 | do
|
---|
| 2573 | IFS=$as_save_IFS
|
---|
| 2574 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 2575 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2576 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 2577 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
[24901] | 2578 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 2579 | break 2
|
---|
| 2580 | fi
|
---|
| 2581 | done
|
---|
[24901] | 2582 | done
|
---|
[16568] | 2583 |
|
---|
| 2584 | fi
|
---|
| 2585 | fi
|
---|
| 2586 | CXX=$ac_cv_prog_CXX
|
---|
| 2587 | if test -n "$CXX"; then
|
---|
[24901] | 2588 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
| 2589 | echo "${ECHO_T}$CXX" >&6
|
---|
[16568] | 2590 | else
|
---|
[24901] | 2591 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2592 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 2593 | fi
|
---|
| 2594 |
|
---|
| 2595 | test -n "$CXX" && break
|
---|
| 2596 | done
|
---|
| 2597 | fi
|
---|
| 2598 | if test -z "$CXX"; then
|
---|
| 2599 | ac_ct_CXX=$CXX
|
---|
[24901] | 2600 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
[16568] | 2601 | do
|
---|
| 2602 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2603 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 2604 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2605 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2606 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
| 2607 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 2608 | else
|
---|
| 2609 | if test -n "$ac_ct_CXX"; then
|
---|
| 2610 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
| 2611 | else
|
---|
| 2612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2613 | for as_dir in $PATH
|
---|
| 2614 | do
|
---|
| 2615 | IFS=$as_save_IFS
|
---|
| 2616 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 2617 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2618 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 2619 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
[24901] | 2620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 2621 | break 2
|
---|
| 2622 | fi
|
---|
| 2623 | done
|
---|
[24901] | 2624 | done
|
---|
[16568] | 2625 |
|
---|
| 2626 | fi
|
---|
| 2627 | fi
|
---|
| 2628 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
| 2629 | if test -n "$ac_ct_CXX"; then
|
---|
[24901] | 2630 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
| 2631 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
[16568] | 2632 | else
|
---|
[24901] | 2633 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2634 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 2635 | fi
|
---|
| 2636 |
|
---|
| 2637 | test -n "$ac_ct_CXX" && break
|
---|
| 2638 | done
|
---|
[24901] | 2639 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
[16568] | 2640 |
|
---|
[24901] | 2641 | CXX=$ac_ct_CXX
|
---|
[16568] | 2642 | fi
|
---|
| 2643 |
|
---|
[24901] | 2644 |
|
---|
[16568] | 2645 | # Provide some information about the compiler.
|
---|
[24901] | 2646 | echo "$as_me:$LINENO:" \
|
---|
| 2647 | "checking for C++ compiler version" >&5
|
---|
| 2648 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
| 2649 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
| 2650 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
[16568] | 2651 | ac_status=$?
|
---|
[24901] | 2652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2653 | (exit $ac_status); }
|
---|
| 2654 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
| 2655 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
| 2656 | ac_status=$?
|
---|
| 2657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2658 | (exit $ac_status); }
|
---|
| 2659 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
| 2660 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
| 2661 | ac_status=$?
|
---|
| 2662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2663 | (exit $ac_status); }
|
---|
[16568] | 2664 |
|
---|
[24901] | 2665 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
| 2666 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
| 2667 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
| 2668 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 2669 | else
|
---|
[24901] | 2670 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2671 | /* confdefs.h. */
|
---|
| 2672 | _ACEOF
|
---|
| 2673 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2674 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 2675 | /* end confdefs.h. */
|
---|
| 2676 |
|
---|
| 2677 | int
|
---|
| 2678 | main ()
|
---|
| 2679 | {
|
---|
| 2680 | #ifndef __GNUC__
|
---|
| 2681 | choke me
|
---|
| 2682 | #endif
|
---|
| 2683 |
|
---|
| 2684 | ;
|
---|
| 2685 | return 0;
|
---|
| 2686 | }
|
---|
| 2687 | _ACEOF
|
---|
[24901] | 2688 | rm -f conftest.$ac_objext
|
---|
| 2689 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2690 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2691 | ac_status=$?
|
---|
| 2692 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2693 | rm -f conftest.er1
|
---|
| 2694 | cat conftest.err >&5
|
---|
| 2695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2696 | (exit $ac_status); } &&
|
---|
| 2697 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2698 | || test ! -s conftest.err'
|
---|
| 2699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2700 | (eval $ac_try) 2>&5
|
---|
| 2701 | ac_status=$?
|
---|
| 2702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2703 | (exit $ac_status); }; } &&
|
---|
| 2704 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2706 | (eval $ac_try) 2>&5
|
---|
| 2707 | ac_status=$?
|
---|
| 2708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2709 | (exit $ac_status); }; }; then
|
---|
[16568] | 2710 | ac_compiler_gnu=yes
|
---|
| 2711 | else
|
---|
[24901] | 2712 | echo "$as_me: failed program was:" >&5
|
---|
| 2713 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2714 |
|
---|
| 2715 | ac_compiler_gnu=no
|
---|
[16568] | 2716 | fi
|
---|
[24901] | 2717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 2718 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
| 2719 |
|
---|
| 2720 | fi
|
---|
[24901] | 2721 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
| 2722 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
| 2723 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
[16568] | 2724 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
| 2725 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
[24901] | 2726 | CXXFLAGS="-g"
|
---|
| 2727 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
| 2728 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
| 2729 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
| 2730 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 2731 | else
|
---|
[24901] | 2732 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2733 | /* confdefs.h. */
|
---|
| 2734 | _ACEOF
|
---|
| 2735 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2736 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 2737 | /* end confdefs.h. */
|
---|
| 2738 |
|
---|
| 2739 | int
|
---|
| 2740 | main ()
|
---|
| 2741 | {
|
---|
| 2742 |
|
---|
| 2743 | ;
|
---|
| 2744 | return 0;
|
---|
| 2745 | }
|
---|
| 2746 | _ACEOF
|
---|
[24901] | 2747 | rm -f conftest.$ac_objext
|
---|
| 2748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2749 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2750 | ac_status=$?
|
---|
| 2751 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2752 | rm -f conftest.er1
|
---|
| 2753 | cat conftest.err >&5
|
---|
| 2754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2755 | (exit $ac_status); } &&
|
---|
| 2756 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2757 | || test ! -s conftest.err'
|
---|
| 2758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2759 | (eval $ac_try) 2>&5
|
---|
| 2760 | ac_status=$?
|
---|
| 2761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2762 | (exit $ac_status); }; } &&
|
---|
| 2763 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2765 | (eval $ac_try) 2>&5
|
---|
| 2766 | ac_status=$?
|
---|
| 2767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2768 | (exit $ac_status); }; }; then
|
---|
[16568] | 2769 | ac_cv_prog_cxx_g=yes
|
---|
| 2770 | else
|
---|
[24901] | 2771 | echo "$as_me: failed program was:" >&5
|
---|
| 2772 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2773 |
|
---|
| 2774 | ac_cv_prog_cxx_g=no
|
---|
| 2775 | fi
|
---|
| 2776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2777 | fi
|
---|
| 2778 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
| 2779 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
| 2780 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
| 2781 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
| 2782 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
| 2783 | if test "$GXX" = yes; then
|
---|
| 2784 | CXXFLAGS="-g -O2"
|
---|
| 2785 | else
|
---|
| 2786 | CXXFLAGS="-g"
|
---|
| 2787 | fi
|
---|
| 2788 | else
|
---|
| 2789 | if test "$GXX" = yes; then
|
---|
| 2790 | CXXFLAGS="-O2"
|
---|
| 2791 | else
|
---|
| 2792 | CXXFLAGS=
|
---|
| 2793 | fi
|
---|
| 2794 | fi
|
---|
| 2795 | for ac_declaration in \
|
---|
| 2796 | '' \
|
---|
| 2797 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
| 2798 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
| 2799 | 'extern "C" void exit (int) throw ();' \
|
---|
| 2800 | 'extern "C" void exit (int);' \
|
---|
| 2801 | 'void exit (int);'
|
---|
| 2802 | do
|
---|
| 2803 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2804 | /* confdefs.h. */
|
---|
| 2805 | _ACEOF
|
---|
| 2806 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2807 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[23356] | 2808 | /* end confdefs.h. */
|
---|
[24901] | 2809 | $ac_declaration
|
---|
| 2810 | #include <stdlib.h>
|
---|
[23356] | 2811 | int
|
---|
| 2812 | main ()
|
---|
| 2813 | {
|
---|
[24901] | 2814 | exit (42);
|
---|
[23356] | 2815 | ;
|
---|
| 2816 | return 0;
|
---|
| 2817 | }
|
---|
| 2818 | _ACEOF
|
---|
[24901] | 2819 | rm -f conftest.$ac_objext
|
---|
| 2820 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2821 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2822 | ac_status=$?
|
---|
| 2823 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2824 | rm -f conftest.er1
|
---|
| 2825 | cat conftest.err >&5
|
---|
| 2826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2827 | (exit $ac_status); } &&
|
---|
| 2828 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2829 | || test ! -s conftest.err'
|
---|
| 2830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2831 | (eval $ac_try) 2>&5
|
---|
| 2832 | ac_status=$?
|
---|
| 2833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2834 | (exit $ac_status); }; } &&
|
---|
| 2835 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2837 | (eval $ac_try) 2>&5
|
---|
| 2838 | ac_status=$?
|
---|
| 2839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2840 | (exit $ac_status); }; }; then
|
---|
| 2841 | :
|
---|
| 2842 | else
|
---|
| 2843 | echo "$as_me: failed program was:" >&5
|
---|
| 2844 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[23356] | 2845 |
|
---|
[24901] | 2846 | continue
|
---|
| 2847 | fi
|
---|
| 2848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2849 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 2850 | /* confdefs.h. */
|
---|
| 2851 | _ACEOF
|
---|
| 2852 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 2853 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[23356] | 2854 | /* end confdefs.h. */
|
---|
[24901] | 2855 | $ac_declaration
|
---|
[23356] | 2856 | int
|
---|
| 2857 | main ()
|
---|
| 2858 | {
|
---|
[24901] | 2859 | exit (42);
|
---|
[23356] | 2860 | ;
|
---|
| 2861 | return 0;
|
---|
| 2862 | }
|
---|
| 2863 | _ACEOF
|
---|
[24901] | 2864 | rm -f conftest.$ac_objext
|
---|
| 2865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 2866 | (eval $ac_compile) 2>conftest.er1
|
---|
| 2867 | ac_status=$?
|
---|
| 2868 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 2869 | rm -f conftest.er1
|
---|
| 2870 | cat conftest.err >&5
|
---|
| 2871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2872 | (exit $ac_status); } &&
|
---|
| 2873 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 2874 | || test ! -s conftest.err'
|
---|
| 2875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2876 | (eval $ac_try) 2>&5
|
---|
| 2877 | ac_status=$?
|
---|
| 2878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2879 | (exit $ac_status); }; } &&
|
---|
| 2880 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 2881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 2882 | (eval $ac_try) 2>&5
|
---|
| 2883 | ac_status=$?
|
---|
| 2884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 2885 | (exit $ac_status); }; }; then
|
---|
| 2886 | break
|
---|
| 2887 | else
|
---|
| 2888 | echo "$as_me: failed program was:" >&5
|
---|
| 2889 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 2890 |
|
---|
[20854] | 2891 | fi
|
---|
[24901] | 2892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 2893 | done
|
---|
| 2894 | rm -f conftest*
|
---|
| 2895 | if test -n "$ac_declaration"; then
|
---|
| 2896 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
| 2897 | echo $ac_declaration >>confdefs.h
|
---|
| 2898 | echo '#endif' >>confdefs.h
|
---|
[20854] | 2899 | fi
|
---|
[24901] | 2900 |
|
---|
[23356] | 2901 | ac_ext=c
|
---|
| 2902 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 2903 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 2904 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 2905 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 2906 |
|
---|
| 2907 | if test $ENABLE_JAVA = "1" ; then
|
---|
| 2908 |
|
---|
| 2909 |
|
---|
| 2910 | if test "x$JAVAC" = x ; then
|
---|
| 2911 | if test "x$JAVAPREFIX" = x; then
|
---|
| 2912 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
[20854] | 2913 | do
|
---|
[23356] | 2914 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2915 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 2916 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2917 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2918 | if test "${ac_cv_prog_JAVAC+set}" = set; then
|
---|
| 2919 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 2920 | else
|
---|
| 2921 | if test -n "$JAVAC"; then
|
---|
| 2922 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 2923 | else
|
---|
| 2924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2925 | for as_dir in $PATH
|
---|
| 2926 | do
|
---|
| 2927 | IFS=$as_save_IFS
|
---|
| 2928 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 2929 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2930 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 2931 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[24901] | 2932 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 2933 | break 2
|
---|
| 2934 | fi
|
---|
| 2935 | done
|
---|
[24901] | 2936 | done
|
---|
[23356] | 2937 |
|
---|
| 2938 | fi
|
---|
| 2939 | fi
|
---|
| 2940 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 2941 | if test -n "$JAVAC"; then
|
---|
[24901] | 2942 | echo "$as_me:$LINENO: result: $JAVAC" >&5
|
---|
| 2943 | echo "${ECHO_T}$JAVAC" >&6
|
---|
[23356] | 2944 | else
|
---|
[24901] | 2945 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2946 | echo "${ECHO_T}no" >&6
|
---|
[23356] | 2947 | fi
|
---|
| 2948 |
|
---|
| 2949 | test -n "$JAVAC" && break
|
---|
| 2950 | done
|
---|
| 2951 |
|
---|
| 2952 | else
|
---|
| 2953 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 2954 | do
|
---|
| 2955 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 2956 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 2957 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 2958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 2959 | if test "${ac_cv_prog_JAVAC+set}" = set; then
|
---|
| 2960 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 2961 | else
|
---|
| 2962 | if test -n "$JAVAC"; then
|
---|
| 2963 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 2964 | else
|
---|
| 2965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 2966 | for as_dir in $PATH
|
---|
| 2967 | do
|
---|
| 2968 | IFS=$as_save_IFS
|
---|
| 2969 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 2970 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 2971 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 2972 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[24901] | 2973 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 2974 | break 2
|
---|
| 2975 | fi
|
---|
| 2976 | done
|
---|
[24901] | 2977 | done
|
---|
[23356] | 2978 |
|
---|
| 2979 | fi
|
---|
| 2980 | fi
|
---|
| 2981 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 2982 | if test -n "$JAVAC"; then
|
---|
[24901] | 2983 | echo "$as_me:$LINENO: result: $JAVAC" >&5
|
---|
| 2984 | echo "${ECHO_T}$JAVAC" >&6
|
---|
[23356] | 2985 | else
|
---|
[24901] | 2986 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 2987 | echo "${ECHO_T}no" >&6
|
---|
[23356] | 2988 | fi
|
---|
| 2989 |
|
---|
| 2990 | test -n "$JAVAC" && break
|
---|
| 2991 | done
|
---|
| 2992 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
| 2993 |
|
---|
| 2994 | fi
|
---|
[24901] | 2995 | test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
|
---|
| 2996 | echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
|
---|
| 2997 | { (exit 1); exit 1; }; }
|
---|
[23356] | 2998 | else
|
---|
| 2999 | echo "Checking for javac... $JAVAC"
|
---|
| 3000 | fi
|
---|
| 3001 |
|
---|
| 3002 |
|
---|
| 3003 |
|
---|
[24901] | 3004 | echo "$as_me:$LINENO: checking if $JAVAC works" >&5
|
---|
| 3005 | echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6
|
---|
| 3006 | if test "${ac_cv_prog_javac_works+set}" = set; then
|
---|
| 3007 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 3008 | else
|
---|
| 3009 |
|
---|
| 3010 | JAVA_TEST=Test.java
|
---|
| 3011 | CLASS_TEST=Test.class
|
---|
| 3012 | cat << \EOF > $JAVA_TEST
|
---|
[24958] | 3013 | /* #line 3013 "configure" */
|
---|
[23356] | 3014 | public class Test {
|
---|
[16568] | 3015 | }
|
---|
[23356] | 3016 | EOF
|
---|
| 3017 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
[24901] | 3018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[20854] | 3019 | (eval $ac_try) 2>&5
|
---|
| 3020 | ac_status=$?
|
---|
[24901] | 3021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3022 | (exit $ac_status); }; } >/dev/null 2>&1; then
|
---|
[23356] | 3023 | ac_cv_prog_javac_works=yes
|
---|
| 3024 | else
|
---|
[24901] | 3025 | { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
|
---|
| 3026 | echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
|
---|
| 3027 | { (exit 1); exit 1; }; }
|
---|
[23356] | 3028 | echo "configure: failed program was:" >&5
|
---|
| 3029 | cat $JAVA_TEST >&5
|
---|
| 3030 | fi
|
---|
| 3031 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
| 3032 |
|
---|
| 3033 | fi
|
---|
[24901] | 3034 | echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
|
---|
| 3035 | echo "${ECHO_T}$ac_cv_prog_javac_works" >&6
|
---|
[23356] | 3036 | if test "x$JAVACFLAGS" = x ; then
|
---|
| 3037 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
| 3038 | fi
|
---|
| 3039 |
|
---|
| 3040 |
|
---|
| 3041 |
|
---|
| 3042 |
|
---|
| 3043 | if test "x$JAVA" = x ; then
|
---|
| 3044 | if test x$JAVAPREFIX = x; then
|
---|
| 3045 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
| 3046 | do
|
---|
| 3047 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3048 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 3049 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3050 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3051 | if test "${ac_cv_prog_JAVA+set}" = set; then
|
---|
| 3052 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 3053 | else
|
---|
| 3054 | if test -n "$JAVA"; then
|
---|
| 3055 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
| 3056 | else
|
---|
| 3057 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3058 | for as_dir in $PATH
|
---|
| 3059 | do
|
---|
| 3060 | IFS=$as_save_IFS
|
---|
| 3061 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3062 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3063 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 3064 | ac_cv_prog_JAVA="$ac_prog"
|
---|
[24901] | 3065 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 3066 | break 2
|
---|
| 3067 | fi
|
---|
| 3068 | done
|
---|
[24901] | 3069 | done
|
---|
[23356] | 3070 |
|
---|
| 3071 | fi
|
---|
| 3072 | fi
|
---|
| 3073 | JAVA=$ac_cv_prog_JAVA
|
---|
| 3074 | if test -n "$JAVA"; then
|
---|
[24901] | 3075 | echo "$as_me:$LINENO: result: $JAVA" >&5
|
---|
| 3076 | echo "${ECHO_T}$JAVA" >&6
|
---|
[23356] | 3077 | else
|
---|
[24901] | 3078 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3079 | echo "${ECHO_T}no" >&6
|
---|
[23356] | 3080 | fi
|
---|
| 3081 |
|
---|
| 3082 | test -n "$JAVA" && break
|
---|
| 3083 | done
|
---|
| 3084 |
|
---|
| 3085 | else
|
---|
| 3086 | test x$JAVA = x && for ac_prog in java$EXEEXT
|
---|
| 3087 | do
|
---|
| 3088 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3089 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 3090 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3091 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3092 | if test "${ac_cv_prog_JAVA+set}" = set; then
|
---|
| 3093 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 3094 | else
|
---|
| 3095 | if test -n "$JAVA"; then
|
---|
| 3096 | ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
|
---|
| 3097 | else
|
---|
| 3098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3099 | for as_dir in $PATH
|
---|
| 3100 | do
|
---|
| 3101 | IFS=$as_save_IFS
|
---|
| 3102 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3103 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3104 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 3105 | ac_cv_prog_JAVA="$ac_prog"
|
---|
[24901] | 3106 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 3107 | break 2
|
---|
| 3108 | fi
|
---|
| 3109 | done
|
---|
[24901] | 3110 | done
|
---|
[23356] | 3111 |
|
---|
| 3112 | fi
|
---|
| 3113 | fi
|
---|
| 3114 | JAVA=$ac_cv_prog_JAVA
|
---|
| 3115 | if test -n "$JAVA"; then
|
---|
[24901] | 3116 | echo "$as_me:$LINENO: result: $JAVA" >&5
|
---|
| 3117 | echo "${ECHO_T}$JAVA" >&6
|
---|
[23356] | 3118 | else
|
---|
[24901] | 3119 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3120 | echo "${ECHO_T}no" >&6
|
---|
[23356] | 3121 | fi
|
---|
| 3122 |
|
---|
| 3123 | test -n "$JAVA" && break
|
---|
| 3124 | done
|
---|
| 3125 | test -n "$JAVA" || JAVA="$JAVAPREFIX"
|
---|
| 3126 |
|
---|
| 3127 | fi
|
---|
[24901] | 3128 | test x$JAVA = x && { { echo "$as_me:$LINENO: error: no acceptable Java virtual machine found in \$PATH" >&5
|
---|
| 3129 | echo "$as_me: error: no acceptable Java virtual machine found in \$PATH" >&2;}
|
---|
| 3130 | { (exit 1); exit 1; }; }
|
---|
[23356] | 3131 | fi
|
---|
| 3132 |
|
---|
| 3133 |
|
---|
| 3134 | # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
|
---|
| 3135 | set dummy uudecode$EXEEXT; ac_word=$2
|
---|
[24901] | 3136 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3137 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3138 | if test "${ac_cv_prog_uudecode+set}" = set; then
|
---|
| 3139 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 3140 | else
|
---|
| 3141 | if test -n "$uudecode"; then
|
---|
| 3142 | ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
|
---|
| 3143 | else
|
---|
| 3144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3145 | for as_dir in $PATH
|
---|
| 3146 | do
|
---|
| 3147 | IFS=$as_save_IFS
|
---|
| 3148 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3149 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3150 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 3151 | ac_cv_prog_uudecode="yes"
|
---|
[24901] | 3152 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 3153 | break 2
|
---|
| 3154 | fi
|
---|
| 3155 | done
|
---|
[24901] | 3156 | done
|
---|
[23356] | 3157 |
|
---|
| 3158 | fi
|
---|
| 3159 | fi
|
---|
| 3160 | uudecode=$ac_cv_prog_uudecode
|
---|
| 3161 | if test -n "$uudecode"; then
|
---|
[24901] | 3162 | echo "$as_me:$LINENO: result: $uudecode" >&5
|
---|
| 3163 | echo "${ECHO_T}$uudecode" >&6
|
---|
[23356] | 3164 | else
|
---|
[24901] | 3165 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3166 | echo "${ECHO_T}no" >&6
|
---|
[23356] | 3167 | fi
|
---|
| 3168 |
|
---|
| 3169 | if test x$uudecode = xyes; then
|
---|
[24901] | 3170 | echo "$as_me:$LINENO: checking if uudecode can decode base 64 file" >&5
|
---|
| 3171 | echo $ECHO_N "checking if uudecode can decode base 64 file... $ECHO_C" >&6
|
---|
| 3172 | if test "${ac_cv_prog_uudecode_base64+set}" = set; then
|
---|
| 3173 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 3174 | else
|
---|
| 3175 |
|
---|
| 3176 | cat << \EOF > Test.uue
|
---|
| 3177 | begin-base64 644 Test.class
|
---|
| 3178 | yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
|
---|
| 3179 | bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
|
---|
| 3180 | bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
|
---|
| 3181 | YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
|
---|
| 3182 | aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
|
---|
| 3183 | AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
|
---|
| 3184 | AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
|
---|
| 3185 | ====
|
---|
| 3186 | EOF
|
---|
| 3187 | if uudecode$EXEEXT Test.uue; then
|
---|
| 3188 | ac_cv_prog_uudecode_base64=yes
|
---|
| 3189 | else
|
---|
[24958] | 3190 | echo "configure: 3190: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
|
---|
[23356] | 3191 | echo "configure: failed file was:" >&5
|
---|
| 3192 | cat Test.uue >&5
|
---|
| 3193 | ac_cv_prog_uudecode_base64=no
|
---|
| 3194 | fi
|
---|
| 3195 | rm -f Test.uue
|
---|
| 3196 | fi
|
---|
[24901] | 3197 | echo "$as_me:$LINENO: result: $ac_cv_prog_uudecode_base64" >&5
|
---|
| 3198 | echo "${ECHO_T}$ac_cv_prog_uudecode_base64" >&6
|
---|
[23356] | 3199 | fi
|
---|
| 3200 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
| 3201 | rm -f Test.class
|
---|
[24901] | 3202 | { echo "$as_me:$LINENO: WARNING: I have to compile Test.class from scratch" >&5
|
---|
| 3203 | echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
|
---|
[23356] | 3204 | if test x$ac_cv_prog_javac_works = xno; then
|
---|
[24901] | 3205 | { { echo "$as_me:$LINENO: error: Cannot compile java source. $JAVAC does not work properly" >&5
|
---|
| 3206 | echo "$as_me: error: Cannot compile java source. $JAVAC does not work properly" >&2;}
|
---|
| 3207 | { (exit 1); exit 1; }; }
|
---|
[23356] | 3208 | fi
|
---|
| 3209 | if test x$ac_cv_prog_javac_works = x; then
|
---|
| 3210 |
|
---|
| 3211 | if test "x$JAVAC" = x ; then
|
---|
| 3212 | if test "x$JAVAPREFIX" = x; then
|
---|
| 3213 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 3214 | do
|
---|
| 3215 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3216 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 3217 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3218 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3219 | if test "${ac_cv_prog_JAVAC+set}" = set; then
|
---|
| 3220 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 3221 | else
|
---|
| 3222 | if test -n "$JAVAC"; then
|
---|
| 3223 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 3224 | else
|
---|
| 3225 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3226 | for as_dir in $PATH
|
---|
| 3227 | do
|
---|
| 3228 | IFS=$as_save_IFS
|
---|
| 3229 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3230 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3231 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 3232 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[24901] | 3233 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 3234 | break 2
|
---|
| 3235 | fi
|
---|
| 3236 | done
|
---|
[24901] | 3237 | done
|
---|
[23356] | 3238 |
|
---|
| 3239 | fi
|
---|
| 3240 | fi
|
---|
| 3241 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 3242 | if test -n "$JAVAC"; then
|
---|
[24901] | 3243 | echo "$as_me:$LINENO: result: $JAVAC" >&5
|
---|
| 3244 | echo "${ECHO_T}$JAVAC" >&6
|
---|
[23356] | 3245 | else
|
---|
[24901] | 3246 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3247 | echo "${ECHO_T}no" >&6
|
---|
[23356] | 3248 | fi
|
---|
| 3249 |
|
---|
| 3250 | test -n "$JAVAC" && break
|
---|
| 3251 | done
|
---|
| 3252 |
|
---|
| 3253 | else
|
---|
| 3254 | test "x$JAVAC" = x && for ac_prog in javac$EXEEXT
|
---|
| 3255 | do
|
---|
| 3256 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3257 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 3258 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3259 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3260 | if test "${ac_cv_prog_JAVAC+set}" = set; then
|
---|
| 3261 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 3262 | else
|
---|
| 3263 | if test -n "$JAVAC"; then
|
---|
| 3264 | ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
|
---|
| 3265 | else
|
---|
| 3266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3267 | for as_dir in $PATH
|
---|
| 3268 | do
|
---|
| 3269 | IFS=$as_save_IFS
|
---|
| 3270 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3271 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3272 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[23356] | 3273 | ac_cv_prog_JAVAC="$ac_prog"
|
---|
[24901] | 3274 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[23356] | 3275 | break 2
|
---|
| 3276 | fi
|
---|
| 3277 | done
|
---|
[24901] | 3278 | done
|
---|
[23356] | 3279 |
|
---|
| 3280 | fi
|
---|
| 3281 | fi
|
---|
| 3282 | JAVAC=$ac_cv_prog_JAVAC
|
---|
| 3283 | if test -n "$JAVAC"; then
|
---|
[24901] | 3284 | echo "$as_me:$LINENO: result: $JAVAC" >&5
|
---|
| 3285 | echo "${ECHO_T}$JAVAC" >&6
|
---|
[23356] | 3286 | else
|
---|
[24901] | 3287 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3288 | echo "${ECHO_T}no" >&6
|
---|
[23356] | 3289 | fi
|
---|
| 3290 |
|
---|
| 3291 | test -n "$JAVAC" && break
|
---|
| 3292 | done
|
---|
| 3293 | test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
|
---|
| 3294 |
|
---|
| 3295 | fi
|
---|
[24901] | 3296 | test "x$JAVAC" = x && { { echo "$as_me:$LINENO: error: no acceptable Java compiler found in \$PATH" >&5
|
---|
| 3297 | echo "$as_me: error: no acceptable Java compiler found in \$PATH" >&2;}
|
---|
| 3298 | { (exit 1); exit 1; }; }
|
---|
[23356] | 3299 | else
|
---|
| 3300 | echo "Checking for javac... $JAVAC"
|
---|
| 3301 | fi
|
---|
| 3302 |
|
---|
| 3303 |
|
---|
| 3304 |
|
---|
[24901] | 3305 | echo "$as_me:$LINENO: checking if $JAVAC works" >&5
|
---|
| 3306 | echo $ECHO_N "checking if $JAVAC works... $ECHO_C" >&6
|
---|
| 3307 | if test "${ac_cv_prog_javac_works+set}" = set; then
|
---|
| 3308 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 3309 | else
|
---|
| 3310 |
|
---|
| 3311 | JAVA_TEST=Test.java
|
---|
| 3312 | CLASS_TEST=Test.class
|
---|
| 3313 | cat << \EOF > $JAVA_TEST
|
---|
[24958] | 3314 | /* #line 3314 "configure" */
|
---|
[23356] | 3315 | public class Test {
|
---|
| 3316 | }
|
---|
| 3317 | EOF
|
---|
| 3318 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
[24901] | 3319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[20854] | 3320 | (eval $ac_try) 2>&5
|
---|
| 3321 | ac_status=$?
|
---|
[24901] | 3322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3323 | (exit $ac_status); }; } >/dev/null 2>&1; then
|
---|
[23356] | 3324 | ac_cv_prog_javac_works=yes
|
---|
[16568] | 3325 | else
|
---|
[24901] | 3326 | { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
|
---|
| 3327 | echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
|
---|
| 3328 | { (exit 1); exit 1; }; }
|
---|
[23356] | 3329 | echo "configure: failed program was:" >&5
|
---|
| 3330 | cat $JAVA_TEST >&5
|
---|
| 3331 | fi
|
---|
| 3332 | rm -f $JAVA_TEST $CLASS_TEST
|
---|
[16568] | 3333 |
|
---|
[20854] | 3334 | fi
|
---|
[24901] | 3335 | echo "$as_me:$LINENO: result: $ac_cv_prog_javac_works" >&5
|
---|
| 3336 | echo "${ECHO_T}$ac_cv_prog_javac_works" >&6
|
---|
[23356] | 3337 | if test "x$JAVACFLAGS" = x ; then
|
---|
| 3338 | JAVACFLAGS="-source 1.4 -target 1.4"
|
---|
| 3339 | fi
|
---|
| 3340 |
|
---|
| 3341 |
|
---|
| 3342 |
|
---|
| 3343 | fi
|
---|
| 3344 | fi
|
---|
[24901] | 3345 | echo "$as_me:$LINENO: checking if $JAVA works" >&5
|
---|
| 3346 | echo $ECHO_N "checking if $JAVA works... $ECHO_C" >&6
|
---|
| 3347 | if test "${ac_cv_prog_java_works+set}" = set; then
|
---|
| 3348 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[23356] | 3349 | else
|
---|
| 3350 |
|
---|
| 3351 | JAVA_TEST=Test.java
|
---|
| 3352 | CLASS_TEST=Test.class
|
---|
| 3353 | TEST=Test
|
---|
| 3354 | cat << \EOF > $JAVA_TEST
|
---|
[24958] | 3355 | /* [#]line 3355 "configure" */
|
---|
[23356] | 3356 | public class Test {
|
---|
| 3357 | public static void main (String args[]) {
|
---|
| 3358 | System.exit (0);
|
---|
| 3359 | } }
|
---|
| 3360 | EOF
|
---|
| 3361 | if test x$ac_cv_prog_uudecode_base64 != xyes; then
|
---|
| 3362 | if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
|
---|
[24901] | 3363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[20854] | 3364 | (eval $ac_try) 2>&5
|
---|
| 3365 | ac_status=$?
|
---|
[24901] | 3366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3367 | (exit $ac_status); }; } && test -s $CLASS_TEST; then
|
---|
[23356] | 3368 | :
|
---|
| 3369 | else
|
---|
| 3370 | echo "configure: failed program was:" >&5
|
---|
| 3371 | cat $JAVA_TEST >&5
|
---|
[24901] | 3372 | { { echo "$as_me:$LINENO: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&5
|
---|
| 3373 | echo "$as_me: error: The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" >&2;}
|
---|
| 3374 | { (exit 1); exit 1; }; }
|
---|
[23356] | 3375 | fi
|
---|
| 3376 | fi
|
---|
| 3377 | if { ac_try='$JAVA $JAVAFLAGS $TEST'
|
---|
[24901] | 3378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
[20854] | 3379 | (eval $ac_try) 2>&5
|
---|
| 3380 | ac_status=$?
|
---|
[24901] | 3381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3382 | (exit $ac_status); }; } >/dev/null 2>&1; then
|
---|
[23356] | 3383 | ac_cv_prog_java_works=yes
|
---|
[16568] | 3384 | else
|
---|
[23356] | 3385 | echo "configure: failed program was:" >&5
|
---|
| 3386 | cat $JAVA_TEST >&5
|
---|
[24901] | 3387 | { { echo "$as_me:$LINENO: error: The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" >&5
|
---|
| 3388 | echo "$as_me: error: The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" >&2;}
|
---|
| 3389 | { (exit 1); exit 1; }; }
|
---|
[23356] | 3390 | fi
|
---|
| 3391 | rm -fr $JAVA_TEST $CLASS_TEST Test.uue
|
---|
[16568] | 3392 |
|
---|
| 3393 | fi
|
---|
[24901] | 3394 | echo "$as_me:$LINENO: result: $ac_cv_prog_java_works" >&5
|
---|
| 3395 | echo "${ECHO_T}$ac_cv_prog_java_works" >&6
|
---|
[16568] | 3396 |
|
---|
| 3397 |
|
---|
[23356] | 3398 |
|
---|
| 3399 | fi
|
---|
[16568] | 3400 | for ac_prog in gawk mawk nawk awk
|
---|
| 3401 | do
|
---|
| 3402 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3403 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 3404 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3405 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3406 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
| 3407 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3408 | else
|
---|
| 3409 | if test -n "$AWK"; then
|
---|
| 3410 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
| 3411 | else
|
---|
| 3412 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3413 | for as_dir in $PATH
|
---|
| 3414 | do
|
---|
| 3415 | IFS=$as_save_IFS
|
---|
| 3416 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3417 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3418 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 3419 | ac_cv_prog_AWK="$ac_prog"
|
---|
[24901] | 3420 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 3421 | break 2
|
---|
| 3422 | fi
|
---|
| 3423 | done
|
---|
[24901] | 3424 | done
|
---|
[16568] | 3425 |
|
---|
| 3426 | fi
|
---|
| 3427 | fi
|
---|
| 3428 | AWK=$ac_cv_prog_AWK
|
---|
| 3429 | if test -n "$AWK"; then
|
---|
[24901] | 3430 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
| 3431 | echo "${ECHO_T}$AWK" >&6
|
---|
[16568] | 3432 | else
|
---|
[24901] | 3433 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3434 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 3435 | fi
|
---|
| 3436 |
|
---|
| 3437 | test -n "$AWK" && break
|
---|
| 3438 | done
|
---|
| 3439 |
|
---|
| 3440 | for ac_prog in 'bison -y' byacc
|
---|
| 3441 | do
|
---|
| 3442 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
| 3443 | set dummy $ac_prog; ac_word=$2
|
---|
[24901] | 3444 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3445 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3446 | if test "${ac_cv_prog_YACC+set}" = set; then
|
---|
| 3447 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3448 | else
|
---|
| 3449 | if test -n "$YACC"; then
|
---|
| 3450 | ac_cv_prog_YACC="$YACC" # Let the user override the test.
|
---|
| 3451 | else
|
---|
| 3452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3453 | for as_dir in $PATH
|
---|
| 3454 | do
|
---|
| 3455 | IFS=$as_save_IFS
|
---|
| 3456 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3457 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3458 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 3459 | ac_cv_prog_YACC="$ac_prog"
|
---|
[24901] | 3460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 3461 | break 2
|
---|
| 3462 | fi
|
---|
| 3463 | done
|
---|
[24901] | 3464 | done
|
---|
[16568] | 3465 |
|
---|
| 3466 | fi
|
---|
| 3467 | fi
|
---|
| 3468 | YACC=$ac_cv_prog_YACC
|
---|
| 3469 | if test -n "$YACC"; then
|
---|
[24901] | 3470 | echo "$as_me:$LINENO: result: $YACC" >&5
|
---|
| 3471 | echo "${ECHO_T}$YACC" >&6
|
---|
[16568] | 3472 | else
|
---|
[24901] | 3473 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3474 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 3475 | fi
|
---|
| 3476 |
|
---|
| 3477 | test -n "$YACC" && break
|
---|
| 3478 | done
|
---|
| 3479 | test -n "$YACC" || YACC="yacc"
|
---|
| 3480 |
|
---|
| 3481 | ac_aux_dir=
|
---|
[24901] | 3482 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
| 3483 | if test -f $ac_dir/install-sh; then
|
---|
[16568] | 3484 | ac_aux_dir=$ac_dir
|
---|
| 3485 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
| 3486 | break
|
---|
[24901] | 3487 | elif test -f $ac_dir/install.sh; then
|
---|
[16568] | 3488 | ac_aux_dir=$ac_dir
|
---|
| 3489 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
| 3490 | break
|
---|
[24901] | 3491 | elif test -f $ac_dir/shtool; then
|
---|
[16568] | 3492 | ac_aux_dir=$ac_dir
|
---|
| 3493 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
| 3494 | break
|
---|
| 3495 | fi
|
---|
| 3496 | done
|
---|
| 3497 | if test -z "$ac_aux_dir"; then
|
---|
[24901] | 3498 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
| 3499 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
| 3500 | { (exit 1); exit 1; }; }
|
---|
[16568] | 3501 | fi
|
---|
[24901] | 3502 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
| 3503 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
| 3504 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
[16568] | 3505 |
|
---|
| 3506 | # Make sure we can run config.sub.
|
---|
[24901] | 3507 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
| 3508 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
| 3509 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
| 3510 | { (exit 1); exit 1; }; }
|
---|
[16568] | 3511 |
|
---|
[24901] | 3512 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
| 3513 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
| 3514 | if test "${ac_cv_build+set}" = set; then
|
---|
| 3515 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3516 | else
|
---|
[24901] | 3517 | ac_cv_build_alias=$build_alias
|
---|
| 3518 | test -z "$ac_cv_build_alias" &&
|
---|
| 3519 | ac_cv_build_alias=`$ac_config_guess`
|
---|
| 3520 | test -z "$ac_cv_build_alias" &&
|
---|
| 3521 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
| 3522 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
| 3523 | { (exit 1); exit 1; }; }
|
---|
| 3524 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
| 3525 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
| 3526 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
| 3527 | { (exit 1); exit 1; }; }
|
---|
[16568] | 3528 |
|
---|
| 3529 | fi
|
---|
[24901] | 3530 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
| 3531 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
[16568] | 3532 | build=$ac_cv_build
|
---|
[24901] | 3533 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 3534 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 3535 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[16568] | 3536 |
|
---|
| 3537 |
|
---|
[24901] | 3538 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
| 3539 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
| 3540 | if test "${ac_cv_host+set}" = set; then
|
---|
| 3541 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3542 | else
|
---|
[24901] | 3543 | ac_cv_host_alias=$host_alias
|
---|
| 3544 | test -z "$ac_cv_host_alias" &&
|
---|
| 3545 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
| 3546 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
| 3547 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
| 3548 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
| 3549 | { (exit 1); exit 1; }; }
|
---|
[16568] | 3550 |
|
---|
| 3551 | fi
|
---|
[24901] | 3552 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
| 3553 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
[16568] | 3554 | host=$ac_cv_host
|
---|
[24901] | 3555 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 3556 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 3557 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[16568] | 3558 |
|
---|
| 3559 |
|
---|
[24901] | 3560 | echo "$as_me:$LINENO: checking target system type" >&5
|
---|
| 3561 | echo $ECHO_N "checking target system type... $ECHO_C" >&6
|
---|
| 3562 | if test "${ac_cv_target+set}" = set; then
|
---|
| 3563 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3564 | else
|
---|
[24901] | 3565 | ac_cv_target_alias=$target_alias
|
---|
| 3566 | test "x$ac_cv_target_alias" = "x" &&
|
---|
| 3567 | ac_cv_target_alias=$ac_cv_host_alias
|
---|
| 3568 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
|
---|
| 3569 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
|
---|
| 3570 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
|
---|
| 3571 | { (exit 1); exit 1; }; }
|
---|
[16568] | 3572 |
|
---|
| 3573 | fi
|
---|
[24901] | 3574 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5
|
---|
| 3575 | echo "${ECHO_T}$ac_cv_target" >&6
|
---|
[16568] | 3576 | target=$ac_cv_target
|
---|
[24901] | 3577 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
| 3578 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
| 3579 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
[16568] | 3580 |
|
---|
| 3581 |
|
---|
| 3582 | # The aliases save the names the user supplied, while $host etc.
|
---|
| 3583 | # will get canonicalized.
|
---|
| 3584 | test -n "$target_alias" &&
|
---|
| 3585 | test "$program_prefix$program_suffix$program_transform_name" = \
|
---|
| 3586 | NONENONEs,x,x, &&
|
---|
| 3587 | program_prefix=${target_alias}-
|
---|
| 3588 | # Find a good install program. We prefer a C program (faster),
|
---|
| 3589 | # so one script is as good as another. But avoid the broken or
|
---|
| 3590 | # incompatible versions:
|
---|
| 3591 | # SysV /etc/install, /usr/sbin/install
|
---|
| 3592 | # SunOS /usr/etc/install
|
---|
| 3593 | # IRIX /sbin/install
|
---|
| 3594 | # AIX /bin/install
|
---|
| 3595 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
| 3596 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
| 3597 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
| 3598 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
| 3599 | # OS/2's system install, which has a completely different semantic
|
---|
| 3600 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
[24901] | 3601 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
| 3602 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
[16568] | 3603 | if test -z "$INSTALL"; then
|
---|
[24901] | 3604 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 3605 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3606 | else
|
---|
| 3607 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3608 | for as_dir in $PATH
|
---|
| 3609 | do
|
---|
| 3610 | IFS=$as_save_IFS
|
---|
| 3611 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3612 | # Account for people who put trailing slashes in PATH elements.
|
---|
| 3613 | case $as_dir/ in
|
---|
| 3614 | ./ | .// | /cC/* | \
|
---|
[16568] | 3615 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
[24901] | 3616 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
[16568] | 3617 | /usr/ucb/* ) ;;
|
---|
| 3618 | *)
|
---|
| 3619 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
| 3620 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
| 3621 | # by default.
|
---|
| 3622 | for ac_prog in ginstall scoinst install; do
|
---|
| 3623 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
[24901] | 3624 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
[16568] | 3625 | if test $ac_prog = install &&
|
---|
| 3626 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 3627 | # AIX install. It has an incompatible calling convention.
|
---|
| 3628 | :
|
---|
| 3629 | elif test $ac_prog = install &&
|
---|
| 3630 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
| 3631 | # program-specific install script used by HP pwplus--don't use.
|
---|
| 3632 | :
|
---|
| 3633 | else
|
---|
[24901] | 3634 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
| 3635 | break 3
|
---|
[16568] | 3636 | fi
|
---|
| 3637 | fi
|
---|
| 3638 | done
|
---|
| 3639 | done
|
---|
| 3640 | ;;
|
---|
| 3641 | esac
|
---|
[24901] | 3642 | done
|
---|
[16568] | 3643 |
|
---|
| 3644 |
|
---|
| 3645 | fi
|
---|
| 3646 | if test "${ac_cv_path_install+set}" = set; then
|
---|
| 3647 | INSTALL=$ac_cv_path_install
|
---|
| 3648 | else
|
---|
[24901] | 3649 | # As a last resort, use the slow shell script. We don't cache a
|
---|
| 3650 | # path for INSTALL within a source directory, because that will
|
---|
[16568] | 3651 | # break other packages using the cache if that directory is
|
---|
[24901] | 3652 | # removed, or if the path is relative.
|
---|
[16568] | 3653 | INSTALL=$ac_install_sh
|
---|
| 3654 | fi
|
---|
| 3655 | fi
|
---|
[24901] | 3656 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
| 3657 | echo "${ECHO_T}$INSTALL" >&6
|
---|
[16568] | 3658 |
|
---|
| 3659 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
| 3660 | # It thinks the first close brace ends the variable substitution.
|
---|
| 3661 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
| 3662 |
|
---|
| 3663 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
| 3664 |
|
---|
| 3665 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
| 3666 |
|
---|
[24901] | 3667 | echo "$as_me:$LINENO: checking whether ln -s works" >&5
|
---|
| 3668 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
|
---|
[16568] | 3669 | LN_S=$as_ln_s
|
---|
| 3670 | if test "$LN_S" = "ln -s"; then
|
---|
[24901] | 3671 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3672 | echo "${ECHO_T}yes" >&6
|
---|
[16568] | 3673 | else
|
---|
[24901] | 3674 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5
|
---|
| 3675 | echo "${ECHO_T}no, using $LN_S" >&6
|
---|
[16568] | 3676 | fi
|
---|
| 3677 |
|
---|
[24901] | 3678 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
| 3679 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
| 3680 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
|
---|
| 3681 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
| 3682 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3683 | else
|
---|
| 3684 | cat >conftest.make <<\_ACEOF
|
---|
| 3685 | all:
|
---|
[24901] | 3686 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
[16568] | 3687 | _ACEOF
|
---|
[24901] | 3688 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
| 3689 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
| 3690 | if test -n "$ac_maketemp"; then
|
---|
| 3691 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
| 3692 | else
|
---|
| 3693 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
| 3694 | fi
|
---|
[16568] | 3695 | rm -f conftest.make
|
---|
| 3696 | fi
|
---|
[24901] | 3697 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
| 3698 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3699 | echo "${ECHO_T}yes" >&6
|
---|
[16568] | 3700 | SET_MAKE=
|
---|
| 3701 | else
|
---|
[24901] | 3702 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3703 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 3704 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
| 3705 | fi
|
---|
| 3706 |
|
---|
| 3707 | if test -n "$ac_tool_prefix"; then
|
---|
| 3708 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
|
---|
| 3709 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2
|
---|
[24901] | 3710 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3711 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3712 | if test "${ac_cv_prog_RANLIB+set}" = set; then
|
---|
| 3713 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3714 | else
|
---|
| 3715 | if test -n "$RANLIB"; then
|
---|
| 3716 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
|
---|
| 3717 | else
|
---|
| 3718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3719 | for as_dir in $PATH
|
---|
| 3720 | do
|
---|
| 3721 | IFS=$as_save_IFS
|
---|
| 3722 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3723 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3724 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 3725 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
|
---|
[24901] | 3726 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 3727 | break 2
|
---|
| 3728 | fi
|
---|
| 3729 | done
|
---|
[24901] | 3730 | done
|
---|
[16568] | 3731 |
|
---|
| 3732 | fi
|
---|
| 3733 | fi
|
---|
| 3734 | RANLIB=$ac_cv_prog_RANLIB
|
---|
| 3735 | if test -n "$RANLIB"; then
|
---|
[24901] | 3736 | echo "$as_me:$LINENO: result: $RANLIB" >&5
|
---|
| 3737 | echo "${ECHO_T}$RANLIB" >&6
|
---|
[16568] | 3738 | else
|
---|
[24901] | 3739 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3740 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 3741 | fi
|
---|
| 3742 |
|
---|
| 3743 | fi
|
---|
| 3744 | if test -z "$ac_cv_prog_RANLIB"; then
|
---|
| 3745 | ac_ct_RANLIB=$RANLIB
|
---|
| 3746 | # Extract the first word of "ranlib", so it can be a program name with args.
|
---|
| 3747 | set dummy ranlib; ac_word=$2
|
---|
[24901] | 3748 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
| 3749 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
| 3750 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
|
---|
| 3751 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3752 | else
|
---|
| 3753 | if test -n "$ac_ct_RANLIB"; then
|
---|
| 3754 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
|
---|
| 3755 | else
|
---|
| 3756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 3757 | for as_dir in $PATH
|
---|
| 3758 | do
|
---|
| 3759 | IFS=$as_save_IFS
|
---|
| 3760 | test -z "$as_dir" && as_dir=.
|
---|
[24901] | 3761 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
| 3762 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
[16568] | 3763 | ac_cv_prog_ac_ct_RANLIB="ranlib"
|
---|
[24901] | 3764 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
[16568] | 3765 | break 2
|
---|
| 3766 | fi
|
---|
| 3767 | done
|
---|
[24901] | 3768 | done
|
---|
[16568] | 3769 |
|
---|
[24901] | 3770 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
|
---|
[16568] | 3771 | fi
|
---|
| 3772 | fi
|
---|
| 3773 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
|
---|
| 3774 | if test -n "$ac_ct_RANLIB"; then
|
---|
[24901] | 3775 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
|
---|
| 3776 | echo "${ECHO_T}$ac_ct_RANLIB" >&6
|
---|
[16568] | 3777 | else
|
---|
[24901] | 3778 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3779 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 3780 | fi
|
---|
| 3781 |
|
---|
[24901] | 3782 | RANLIB=$ac_ct_RANLIB
|
---|
[16568] | 3783 | else
|
---|
| 3784 | RANLIB="$ac_cv_prog_RANLIB"
|
---|
| 3785 | fi
|
---|
| 3786 |
|
---|
| 3787 |
|
---|
[24901] | 3788 | echo "$as_me:$LINENO: checking to see if architecture is 64-bit" >&5
|
---|
| 3789 | echo $ECHO_N "checking to see if architecture is 64-bit... $ECHO_C" >&6
|
---|
[16568] | 3790 | arch_64bit=no
|
---|
| 3791 | case "$host_cpu" in
|
---|
| 3792 | x86_64) arch_64bit=yes ;;
|
---|
| 3793 | esac
|
---|
| 3794 |
|
---|
| 3795 | if test "$arch_64bit" = yes; then
|
---|
[24901] | 3796 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 3797 | echo "${ECHO_T}yes" >&6
|
---|
[16568] | 3798 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3799 | COMPAT32BITFLAGS="-m32"
|
---|
[24901] | 3800 | gsdlarch='64'
|
---|
[16568] | 3801 | fi
|
---|
| 3802 | else
|
---|
[24901] | 3803 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 3804 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 3805 | if test -z "$COMPAT32BITFLAGS" ; then
|
---|
| 3806 | COMPAT32BITFLAGS=
|
---|
[24901] | 3807 | gsdlarch='32'
|
---|
[16568] | 3808 | fi
|
---|
| 3809 | fi
|
---|
[21432] | 3810 |
|
---|
| 3811 | # Only need compat32bitflag if using MG or MGPP
|
---|
| 3812 | if test "$ENABLE_MG" = "0" ; then
|
---|
| 3813 | COMPAT32BITFLAGS=
|
---|
| 3814 | else
|
---|
| 3815 | if test "$ENABLE_MGPP" = "0" ; then
|
---|
| 3816 | COMPAT32BITFLAGS=
|
---|
| 3817 | fi
|
---|
| 3818 | fi
|
---|
| 3819 |
|
---|
[16568] | 3820 | export COMPAT32BITFLAGS
|
---|
| 3821 |
|
---|
| 3822 |
|
---|
| 3823 |
|
---|
| 3824 | #moved CORBA MICO directory test to get version of MICO
|
---|
| 3825 | if test $USE_CORBA = 1; then
|
---|
| 3826 |
|
---|
| 3827 | if test $MICO_DIR = "default"; then
|
---|
| 3828 | #do something
|
---|
| 3829 | MICO_INC="-I packages/mico/mico/include"
|
---|
| 3830 | else
|
---|
| 3831 | #build the micotest program
|
---|
| 3832 | MICO_INC= ""
|
---|
| 3833 | if test $MICO_DIR != yes; then
|
---|
| 3834 | MICO_INC="-I $MICO_DIR"
|
---|
| 3835 | fi
|
---|
| 3836 | fi
|
---|
| 3837 |
|
---|
| 3838 | #get MICO_VER value
|
---|
| 3839 | sh -c "$CC -c micotest.cpp -o micotest.o $MICO_INC 2>&1" > /dev/null
|
---|
| 3840 | sh -c "$CC -o micotest micotest.o -lstdc++ 2>&1" > /dev/null
|
---|
| 3841 | MICO_VER=`./micotest` || MICO_VER=2.3.5
|
---|
| 3842 | sh -c "rm micotest"
|
---|
| 3843 | sh -c "rm micotest.o"
|
---|
| 3844 |
|
---|
| 3845 | #do test of MICO_VER
|
---|
| 3846 | if test MICO_VER != 0; then
|
---|
[24901] | 3847 | cat >>confdefs.h <<\_ACEOF
|
---|
| 3848 | #define MICO_VER 1
|
---|
| 3849 | _ACEOF
|
---|
[16568] | 3850 |
|
---|
| 3851 |
|
---|
| 3852 | fi
|
---|
| 3853 | #end USE_CORBA test
|
---|
| 3854 | fi
|
---|
| 3855 |
|
---|
| 3856 |
|
---|
| 3857 | ac_ext=c
|
---|
| 3858 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 3859 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 3860 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 3861 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
[24901] | 3862 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
| 3863 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
[16568] | 3864 | # On Suns, sometimes $CPP names a directory.
|
---|
| 3865 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
| 3866 | CPP=
|
---|
| 3867 | fi
|
---|
| 3868 | if test -z "$CPP"; then
|
---|
[24901] | 3869 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
| 3870 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 3871 | else
|
---|
| 3872 | # Double quotes because CPP needs to be expanded
|
---|
| 3873 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
| 3874 | do
|
---|
| 3875 | ac_preproc_ok=false
|
---|
| 3876 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3877 | do
|
---|
| 3878 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3879 | # with a fresh cross-compiler works.
|
---|
| 3880 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3881 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3882 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3883 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[24901] | 3884 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3885 | /* confdefs.h. */
|
---|
| 3886 | _ACEOF
|
---|
| 3887 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3888 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 3889 | /* end confdefs.h. */
|
---|
| 3890 | #ifdef __STDC__
|
---|
| 3891 | # include <limits.h>
|
---|
| 3892 | #else
|
---|
| 3893 | # include <assert.h>
|
---|
| 3894 | #endif
|
---|
| 3895 | Syntax error
|
---|
| 3896 | _ACEOF
|
---|
[24901] | 3897 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3898 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3899 | ac_status=$?
|
---|
| 3900 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3901 | rm -f conftest.er1
|
---|
| 3902 | cat conftest.err >&5
|
---|
| 3903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3904 | (exit $ac_status); } >/dev/null; then
|
---|
| 3905 | if test -s conftest.err; then
|
---|
| 3906 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3907 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3908 | else
|
---|
| 3909 | ac_cpp_err=
|
---|
| 3910 | fi
|
---|
| 3911 | else
|
---|
| 3912 | ac_cpp_err=yes
|
---|
| 3913 | fi
|
---|
| 3914 | if test -z "$ac_cpp_err"; then
|
---|
| 3915 | :
|
---|
| 3916 | else
|
---|
| 3917 | echo "$as_me: failed program was:" >&5
|
---|
| 3918 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[23356] | 3919 |
|
---|
[16568] | 3920 | # Broken: fails on valid input.
|
---|
| 3921 | continue
|
---|
| 3922 | fi
|
---|
[24901] | 3923 | rm -f conftest.err conftest.$ac_ext
|
---|
[16568] | 3924 |
|
---|
[24901] | 3925 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
[16568] | 3926 | # can be detected and how.
|
---|
[24901] | 3927 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3928 | /* confdefs.h. */
|
---|
| 3929 | _ACEOF
|
---|
| 3930 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3931 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 3932 | /* end confdefs.h. */
|
---|
| 3933 | #include <ac_nonexistent.h>
|
---|
| 3934 | _ACEOF
|
---|
[24901] | 3935 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 3936 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 3937 | ac_status=$?
|
---|
| 3938 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 3939 | rm -f conftest.er1
|
---|
| 3940 | cat conftest.err >&5
|
---|
| 3941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 3942 | (exit $ac_status); } >/dev/null; then
|
---|
| 3943 | if test -s conftest.err; then
|
---|
| 3944 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 3945 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 3946 | else
|
---|
| 3947 | ac_cpp_err=
|
---|
| 3948 | fi
|
---|
| 3949 | else
|
---|
| 3950 | ac_cpp_err=yes
|
---|
| 3951 | fi
|
---|
| 3952 | if test -z "$ac_cpp_err"; then
|
---|
[16568] | 3953 | # Broken: success on invalid input.
|
---|
| 3954 | continue
|
---|
| 3955 | else
|
---|
[24901] | 3956 | echo "$as_me: failed program was:" >&5
|
---|
| 3957 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 3958 |
|
---|
[16568] | 3959 | # Passes both tests.
|
---|
| 3960 | ac_preproc_ok=:
|
---|
| 3961 | break
|
---|
| 3962 | fi
|
---|
[24901] | 3963 | rm -f conftest.err conftest.$ac_ext
|
---|
[16568] | 3964 |
|
---|
| 3965 | done
|
---|
| 3966 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
[24901] | 3967 | rm -f conftest.err conftest.$ac_ext
|
---|
| 3968 | if $ac_preproc_ok; then
|
---|
[16568] | 3969 | break
|
---|
| 3970 | fi
|
---|
| 3971 |
|
---|
| 3972 | done
|
---|
| 3973 | ac_cv_prog_CPP=$CPP
|
---|
| 3974 |
|
---|
| 3975 | fi
|
---|
| 3976 | CPP=$ac_cv_prog_CPP
|
---|
| 3977 | else
|
---|
| 3978 | ac_cv_prog_CPP=$CPP
|
---|
| 3979 | fi
|
---|
[24901] | 3980 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
| 3981 | echo "${ECHO_T}$CPP" >&6
|
---|
[16568] | 3982 | ac_preproc_ok=false
|
---|
| 3983 | for ac_c_preproc_warn_flag in '' yes
|
---|
| 3984 | do
|
---|
| 3985 | # Use a header file that comes with gcc, so configuring glibc
|
---|
| 3986 | # with a fresh cross-compiler works.
|
---|
| 3987 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 3988 | # <limits.h> exists even on freestanding compilers.
|
---|
| 3989 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
| 3990 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
[24901] | 3991 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 3992 | /* confdefs.h. */
|
---|
| 3993 | _ACEOF
|
---|
| 3994 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 3995 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 3996 | /* end confdefs.h. */
|
---|
| 3997 | #ifdef __STDC__
|
---|
| 3998 | # include <limits.h>
|
---|
| 3999 | #else
|
---|
| 4000 | # include <assert.h>
|
---|
| 4001 | #endif
|
---|
| 4002 | Syntax error
|
---|
| 4003 | _ACEOF
|
---|
[24901] | 4004 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 4005 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 4006 | ac_status=$?
|
---|
| 4007 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4008 | rm -f conftest.er1
|
---|
| 4009 | cat conftest.err >&5
|
---|
| 4010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4011 | (exit $ac_status); } >/dev/null; then
|
---|
| 4012 | if test -s conftest.err; then
|
---|
| 4013 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 4014 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 4015 | else
|
---|
| 4016 | ac_cpp_err=
|
---|
| 4017 | fi
|
---|
| 4018 | else
|
---|
| 4019 | ac_cpp_err=yes
|
---|
| 4020 | fi
|
---|
| 4021 | if test -z "$ac_cpp_err"; then
|
---|
| 4022 | :
|
---|
| 4023 | else
|
---|
| 4024 | echo "$as_me: failed program was:" >&5
|
---|
| 4025 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[23356] | 4026 |
|
---|
[16568] | 4027 | # Broken: fails on valid input.
|
---|
| 4028 | continue
|
---|
| 4029 | fi
|
---|
[24901] | 4030 | rm -f conftest.err conftest.$ac_ext
|
---|
[16568] | 4031 |
|
---|
[24901] | 4032 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
[16568] | 4033 | # can be detected and how.
|
---|
[24901] | 4034 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4035 | /* confdefs.h. */
|
---|
| 4036 | _ACEOF
|
---|
| 4037 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4038 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 4039 | /* end confdefs.h. */
|
---|
| 4040 | #include <ac_nonexistent.h>
|
---|
| 4041 | _ACEOF
|
---|
[24901] | 4042 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 4043 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 4044 | ac_status=$?
|
---|
| 4045 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4046 | rm -f conftest.er1
|
---|
| 4047 | cat conftest.err >&5
|
---|
| 4048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4049 | (exit $ac_status); } >/dev/null; then
|
---|
| 4050 | if test -s conftest.err; then
|
---|
| 4051 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 4052 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 4053 | else
|
---|
| 4054 | ac_cpp_err=
|
---|
| 4055 | fi
|
---|
| 4056 | else
|
---|
| 4057 | ac_cpp_err=yes
|
---|
| 4058 | fi
|
---|
| 4059 | if test -z "$ac_cpp_err"; then
|
---|
[16568] | 4060 | # Broken: success on invalid input.
|
---|
| 4061 | continue
|
---|
| 4062 | else
|
---|
[24901] | 4063 | echo "$as_me: failed program was:" >&5
|
---|
| 4064 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4065 |
|
---|
[16568] | 4066 | # Passes both tests.
|
---|
| 4067 | ac_preproc_ok=:
|
---|
| 4068 | break
|
---|
| 4069 | fi
|
---|
[24901] | 4070 | rm -f conftest.err conftest.$ac_ext
|
---|
[16568] | 4071 |
|
---|
| 4072 | done
|
---|
| 4073 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
[24901] | 4074 | rm -f conftest.err conftest.$ac_ext
|
---|
| 4075 | if $ac_preproc_ok; then
|
---|
| 4076 | :
|
---|
[16568] | 4077 | else
|
---|
[24901] | 4078 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 4079 | See \`config.log' for more details." >&5
|
---|
| 4080 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
| 4081 | See \`config.log' for more details." >&2;}
|
---|
| 4082 | { (exit 1); exit 1; }; }
|
---|
[16568] | 4083 | fi
|
---|
| 4084 |
|
---|
| 4085 | ac_ext=c
|
---|
| 4086 | ac_cpp='$CPP $CPPFLAGS'
|
---|
| 4087 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 4088 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 4089 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
| 4090 |
|
---|
| 4091 |
|
---|
[24901] | 4092 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
| 4093 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
| 4094 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
| 4095 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 4096 | else
|
---|
[24901] | 4097 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
| 4098 | then ac_cv_prog_egrep='grep -E'
|
---|
| 4099 | else ac_cv_prog_egrep='egrep'
|
---|
[16568] | 4100 | fi
|
---|
[24901] | 4101 | fi
|
---|
| 4102 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
| 4103 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
| 4104 | EGREP=$ac_cv_prog_egrep
|
---|
[16568] | 4105 |
|
---|
[24901] | 4106 |
|
---|
| 4107 |
|
---|
| 4108 | echo "$as_me:$LINENO: checking for AIX" >&5
|
---|
| 4109 | echo $ECHO_N "checking for AIX... $ECHO_C" >&6
|
---|
| 4110 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4111 | /* confdefs.h. */
|
---|
| 4112 | _ACEOF
|
---|
| 4113 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4114 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4115 | /* end confdefs.h. */
|
---|
| 4116 | #ifdef _AIX
|
---|
| 4117 | yes
|
---|
| 4118 | #endif
|
---|
| 4119 |
|
---|
| 4120 | _ACEOF
|
---|
| 4121 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
| 4122 | $EGREP "yes" >/dev/null 2>&1; then
|
---|
| 4123 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 4124 | echo "${ECHO_T}yes" >&6
|
---|
| 4125 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4126 | #define _ALL_SOURCE 1
|
---|
| 4127 | _ACEOF
|
---|
| 4128 |
|
---|
[16568] | 4129 | else
|
---|
[24901] | 4130 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4131 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 4132 | fi
|
---|
[24901] | 4133 | rm -f conftest*
|
---|
[16568] | 4134 |
|
---|
| 4135 |
|
---|
[24901] | 4136 | echo "$as_me:$LINENO: checking for library containing strerror" >&5
|
---|
| 4137 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
|
---|
| 4138 | if test "${ac_cv_search_strerror+set}" = set; then
|
---|
| 4139 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4140 | else
|
---|
| 4141 | ac_func_search_save_LIBS=$LIBS
|
---|
| 4142 | ac_cv_search_strerror=no
|
---|
| 4143 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4144 | /* confdefs.h. */
|
---|
| 4145 | _ACEOF
|
---|
| 4146 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4147 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4148 | /* end confdefs.h. */
|
---|
[16568] | 4149 |
|
---|
[24901] | 4150 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4151 | #ifdef __cplusplus
|
---|
| 4152 | extern "C"
|
---|
| 4153 | #endif
|
---|
| 4154 | /* We use char because int might match the return type of a gcc2
|
---|
| 4155 | builtin and then its argument prototype would still apply. */
|
---|
| 4156 | char strerror ();
|
---|
| 4157 | int
|
---|
| 4158 | main ()
|
---|
| 4159 | {
|
---|
| 4160 | strerror ();
|
---|
| 4161 | ;
|
---|
| 4162 | return 0;
|
---|
| 4163 | }
|
---|
| 4164 | _ACEOF
|
---|
| 4165 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4166 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4167 | (eval $ac_link) 2>conftest.er1
|
---|
| 4168 | ac_status=$?
|
---|
| 4169 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4170 | rm -f conftest.er1
|
---|
| 4171 | cat conftest.err >&5
|
---|
| 4172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4173 | (exit $ac_status); } &&
|
---|
| 4174 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4175 | || test ! -s conftest.err'
|
---|
| 4176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4177 | (eval $ac_try) 2>&5
|
---|
| 4178 | ac_status=$?
|
---|
| 4179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4180 | (exit $ac_status); }; } &&
|
---|
| 4181 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4183 | (eval $ac_try) 2>&5
|
---|
| 4184 | ac_status=$?
|
---|
| 4185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4186 | (exit $ac_status); }; }; then
|
---|
| 4187 | ac_cv_search_strerror="none required"
|
---|
[16568] | 4188 | else
|
---|
[24901] | 4189 | echo "$as_me: failed program was:" >&5
|
---|
| 4190 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[16568] | 4191 |
|
---|
[24901] | 4192 | fi
|
---|
| 4193 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4194 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4195 | if test "$ac_cv_search_strerror" = no; then
|
---|
| 4196 | for ac_lib in cposix; do
|
---|
| 4197 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
| 4198 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4199 | /* confdefs.h. */
|
---|
| 4200 | _ACEOF
|
---|
| 4201 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4202 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4203 | /* end confdefs.h. */
|
---|
| 4204 |
|
---|
| 4205 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 4206 | #ifdef __cplusplus
|
---|
| 4207 | extern "C"
|
---|
| 4208 | #endif
|
---|
| 4209 | /* We use char because int might match the return type of a gcc2
|
---|
| 4210 | builtin and then its argument prototype would still apply. */
|
---|
| 4211 | char strerror ();
|
---|
| 4212 | int
|
---|
| 4213 | main ()
|
---|
| 4214 | {
|
---|
| 4215 | strerror ();
|
---|
| 4216 | ;
|
---|
| 4217 | return 0;
|
---|
| 4218 | }
|
---|
| 4219 | _ACEOF
|
---|
| 4220 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 4221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4222 | (eval $ac_link) 2>conftest.er1
|
---|
| 4223 | ac_status=$?
|
---|
| 4224 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4225 | rm -f conftest.er1
|
---|
| 4226 | cat conftest.err >&5
|
---|
| 4227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4228 | (exit $ac_status); } &&
|
---|
| 4229 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4230 | || test ! -s conftest.err'
|
---|
| 4231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4232 | (eval $ac_try) 2>&5
|
---|
| 4233 | ac_status=$?
|
---|
| 4234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4235 | (exit $ac_status); }; } &&
|
---|
| 4236 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 4237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4238 | (eval $ac_try) 2>&5
|
---|
| 4239 | ac_status=$?
|
---|
| 4240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4241 | (exit $ac_status); }; }; then
|
---|
| 4242 | ac_cv_search_strerror="-l$ac_lib"
|
---|
| 4243 | break
|
---|
[16568] | 4244 | else
|
---|
[24901] | 4245 | echo "$as_me: failed program was:" >&5
|
---|
| 4246 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4247 |
|
---|
[16568] | 4248 | fi
|
---|
[24901] | 4249 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 4250 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 4251 | done
|
---|
| 4252 | fi
|
---|
| 4253 | LIBS=$ac_func_search_save_LIBS
|
---|
| 4254 | fi
|
---|
| 4255 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
|
---|
| 4256 | echo "${ECHO_T}$ac_cv_search_strerror" >&6
|
---|
| 4257 | if test "$ac_cv_search_strerror" != no; then
|
---|
| 4258 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
|
---|
[16568] | 4259 |
|
---|
| 4260 | fi
|
---|
| 4261 |
|
---|
[24901] | 4262 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 4263 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 4264 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 4265 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 4266 | else
|
---|
[24901] | 4267 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4268 | /* confdefs.h. */
|
---|
| 4269 | _ACEOF
|
---|
| 4270 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4271 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 4272 | /* end confdefs.h. */
|
---|
| 4273 | #include <stdlib.h>
|
---|
| 4274 | #include <stdarg.h>
|
---|
| 4275 | #include <string.h>
|
---|
| 4276 | #include <float.h>
|
---|
| 4277 |
|
---|
| 4278 | int
|
---|
| 4279 | main ()
|
---|
| 4280 | {
|
---|
| 4281 |
|
---|
| 4282 | ;
|
---|
| 4283 | return 0;
|
---|
| 4284 | }
|
---|
| 4285 | _ACEOF
|
---|
[24901] | 4286 | rm -f conftest.$ac_objext
|
---|
| 4287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4288 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4289 | ac_status=$?
|
---|
| 4290 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4291 | rm -f conftest.er1
|
---|
| 4292 | cat conftest.err >&5
|
---|
| 4293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4294 | (exit $ac_status); } &&
|
---|
| 4295 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4296 | || test ! -s conftest.err'
|
---|
| 4297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4298 | (eval $ac_try) 2>&5
|
---|
| 4299 | ac_status=$?
|
---|
| 4300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4301 | (exit $ac_status); }; } &&
|
---|
| 4302 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4304 | (eval $ac_try) 2>&5
|
---|
| 4305 | ac_status=$?
|
---|
| 4306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4307 | (exit $ac_status); }; }; then
|
---|
[16568] | 4308 | ac_cv_header_stdc=yes
|
---|
| 4309 | else
|
---|
[24901] | 4310 | echo "$as_me: failed program was:" >&5
|
---|
| 4311 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4312 |
|
---|
| 4313 | ac_cv_header_stdc=no
|
---|
[16568] | 4314 | fi
|
---|
[24901] | 4315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 4316 |
|
---|
| 4317 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4318 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[24901] | 4319 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4320 | /* confdefs.h. */
|
---|
| 4321 | _ACEOF
|
---|
| 4322 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4323 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 4324 | /* end confdefs.h. */
|
---|
| 4325 | #include <string.h>
|
---|
| 4326 |
|
---|
| 4327 | _ACEOF
|
---|
| 4328 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 4329 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 4330 | :
|
---|
[16568] | 4331 | else
|
---|
| 4332 | ac_cv_header_stdc=no
|
---|
| 4333 | fi
|
---|
| 4334 | rm -f conftest*
|
---|
| 4335 |
|
---|
| 4336 | fi
|
---|
| 4337 |
|
---|
| 4338 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4339 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[24901] | 4340 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4341 | /* confdefs.h. */
|
---|
| 4342 | _ACEOF
|
---|
| 4343 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4344 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 4345 | /* end confdefs.h. */
|
---|
| 4346 | #include <stdlib.h>
|
---|
| 4347 |
|
---|
| 4348 | _ACEOF
|
---|
| 4349 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 4350 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 4351 | :
|
---|
[16568] | 4352 | else
|
---|
| 4353 | ac_cv_header_stdc=no
|
---|
| 4354 | fi
|
---|
| 4355 | rm -f conftest*
|
---|
| 4356 |
|
---|
| 4357 | fi
|
---|
| 4358 |
|
---|
| 4359 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4360 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[24901] | 4361 | if test "$cross_compiling" = yes; then
|
---|
[16568] | 4362 | :
|
---|
| 4363 | else
|
---|
[24901] | 4364 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4365 | /* confdefs.h. */
|
---|
| 4366 | _ACEOF
|
---|
| 4367 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4368 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 4369 | /* end confdefs.h. */
|
---|
| 4370 | #include <ctype.h>
|
---|
| 4371 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 4372 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 4373 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 4374 | #else
|
---|
| 4375 | # define ISLOWER(c) \
|
---|
| 4376 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 4377 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 4378 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 4379 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 4380 | #endif
|
---|
| 4381 |
|
---|
| 4382 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 4383 | int
|
---|
| 4384 | main ()
|
---|
| 4385 | {
|
---|
| 4386 | int i;
|
---|
| 4387 | for (i = 0; i < 256; i++)
|
---|
| 4388 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 4389 | || toupper (i) != TOUPPER (i))
|
---|
[24901] | 4390 | exit(2);
|
---|
| 4391 | exit (0);
|
---|
[16568] | 4392 | }
|
---|
| 4393 | _ACEOF
|
---|
[24901] | 4394 | rm -f conftest$ac_exeext
|
---|
| 4395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 4396 | (eval $ac_link) 2>&5
|
---|
| 4397 | ac_status=$?
|
---|
| 4398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4399 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 4400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4401 | (eval $ac_try) 2>&5
|
---|
| 4402 | ac_status=$?
|
---|
| 4403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4404 | (exit $ac_status); }; }; then
|
---|
| 4405 | :
|
---|
| 4406 | else
|
---|
| 4407 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 4408 | echo "$as_me: failed program was:" >&5
|
---|
| 4409 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[23356] | 4410 |
|
---|
[24901] | 4411 | ( exit $ac_status )
|
---|
| 4412 | ac_cv_header_stdc=no
|
---|
[16568] | 4413 | fi
|
---|
[24901] | 4414 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 4415 | fi
|
---|
| 4416 | fi
|
---|
| 4417 | fi
|
---|
[24901] | 4418 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 4419 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
[16568] | 4420 | if test $ac_cv_header_stdc = yes; then
|
---|
| 4421 |
|
---|
[24901] | 4422 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4423 | #define STDC_HEADERS 1
|
---|
| 4424 | _ACEOF
|
---|
[16568] | 4425 |
|
---|
| 4426 | fi
|
---|
| 4427 |
|
---|
| 4428 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
| 4429 |
|
---|
| 4430 |
|
---|
| 4431 |
|
---|
| 4432 |
|
---|
| 4433 |
|
---|
| 4434 |
|
---|
| 4435 |
|
---|
| 4436 |
|
---|
| 4437 |
|
---|
[24901] | 4438 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
| 4439 | inttypes.h stdint.h unistd.h
|
---|
| 4440 | do
|
---|
| 4441 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 4442 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 4443 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 4444 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 4445 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4446 | else
|
---|
| 4447 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4448 | /* confdefs.h. */
|
---|
| 4449 | _ACEOF
|
---|
| 4450 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4451 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4452 | /* end confdefs.h. */
|
---|
| 4453 | $ac_includes_default
|
---|
[23356] | 4454 |
|
---|
[24901] | 4455 | #include <$ac_header>
|
---|
| 4456 | _ACEOF
|
---|
| 4457 | rm -f conftest.$ac_objext
|
---|
| 4458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4459 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4460 | ac_status=$?
|
---|
| 4461 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4462 | rm -f conftest.er1
|
---|
| 4463 | cat conftest.err >&5
|
---|
| 4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4465 | (exit $ac_status); } &&
|
---|
| 4466 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4467 | || test ! -s conftest.err'
|
---|
| 4468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4469 | (eval $ac_try) 2>&5
|
---|
| 4470 | ac_status=$?
|
---|
| 4471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4472 | (exit $ac_status); }; } &&
|
---|
| 4473 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4475 | (eval $ac_try) 2>&5
|
---|
| 4476 | ac_status=$?
|
---|
| 4477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4478 | (exit $ac_status); }; }; then
|
---|
| 4479 | eval "$as_ac_Header=yes"
|
---|
| 4480 | else
|
---|
| 4481 | echo "$as_me: failed program was:" >&5
|
---|
| 4482 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[23356] | 4483 |
|
---|
[24901] | 4484 | eval "$as_ac_Header=no"
|
---|
| 4485 | fi
|
---|
| 4486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4487 | fi
|
---|
| 4488 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 4489 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 4490 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
| 4491 | cat >>confdefs.h <<_ACEOF
|
---|
| 4492 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
| 4493 | _ACEOF
|
---|
[23356] | 4494 |
|
---|
[24901] | 4495 | fi
|
---|
[23356] | 4496 |
|
---|
[24901] | 4497 | done
|
---|
[23356] | 4498 |
|
---|
| 4499 |
|
---|
[24901] | 4500 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 4501 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 4502 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 4503 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 4504 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4505 | fi
|
---|
| 4506 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 4507 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[16568] | 4508 | else
|
---|
[24901] | 4509 | # Is the header compilable?
|
---|
| 4510 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5
|
---|
| 4511 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
|
---|
| 4512 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4513 | /* confdefs.h. */
|
---|
| 4514 | _ACEOF
|
---|
| 4515 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4516 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 4517 | /* end confdefs.h. */
|
---|
[24901] | 4518 | $ac_includes_default
|
---|
| 4519 | #include <minix/config.h>
|
---|
| 4520 | _ACEOF
|
---|
| 4521 | rm -f conftest.$ac_objext
|
---|
| 4522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4523 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4524 | ac_status=$?
|
---|
| 4525 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4526 | rm -f conftest.er1
|
---|
| 4527 | cat conftest.err >&5
|
---|
| 4528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4529 | (exit $ac_status); } &&
|
---|
| 4530 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4531 | || test ! -s conftest.err'
|
---|
| 4532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4533 | (eval $ac_try) 2>&5
|
---|
| 4534 | ac_status=$?
|
---|
| 4535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4536 | (exit $ac_status); }; } &&
|
---|
| 4537 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4539 | (eval $ac_try) 2>&5
|
---|
| 4540 | ac_status=$?
|
---|
| 4541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4542 | (exit $ac_status); }; }; then
|
---|
| 4543 | ac_header_compiler=yes
|
---|
| 4544 | else
|
---|
| 4545 | echo "$as_me: failed program was:" >&5
|
---|
| 4546 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[16568] | 4547 |
|
---|
[24901] | 4548 | ac_header_compiler=no
|
---|
| 4549 | fi
|
---|
| 4550 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4551 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 4552 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
[23356] | 4553 |
|
---|
[24901] | 4554 | # Is the header present?
|
---|
| 4555 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5
|
---|
| 4556 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
|
---|
| 4557 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4558 | /* confdefs.h. */
|
---|
[16568] | 4559 | _ACEOF
|
---|
[24901] | 4560 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4561 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4562 | /* end confdefs.h. */
|
---|
| 4563 | #include <minix/config.h>
|
---|
| 4564 | _ACEOF
|
---|
| 4565 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 4566 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 4567 | ac_status=$?
|
---|
| 4568 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4569 | rm -f conftest.er1
|
---|
| 4570 | cat conftest.err >&5
|
---|
| 4571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4572 | (exit $ac_status); } >/dev/null; then
|
---|
| 4573 | if test -s conftest.err; then
|
---|
| 4574 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 4575 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 4576 | else
|
---|
| 4577 | ac_cpp_err=
|
---|
| 4578 | fi
|
---|
[16568] | 4579 | else
|
---|
[24901] | 4580 | ac_cpp_err=yes
|
---|
[16568] | 4581 | fi
|
---|
[24901] | 4582 | if test -z "$ac_cpp_err"; then
|
---|
| 4583 | ac_header_preproc=yes
|
---|
| 4584 | else
|
---|
| 4585 | echo "$as_me: failed program was:" >&5
|
---|
| 4586 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4587 |
|
---|
| 4588 | ac_header_preproc=no
|
---|
[16568] | 4589 | fi
|
---|
[24901] | 4590 | rm -f conftest.err conftest.$ac_ext
|
---|
| 4591 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 4592 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
[16568] | 4593 |
|
---|
[24901] | 4594 | # So? What about this header?
|
---|
| 4595 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 4596 | yes:no: )
|
---|
| 4597 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 4598 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 4599 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
|
---|
| 4600 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
|
---|
| 4601 | ac_header_preproc=yes
|
---|
| 4602 | ;;
|
---|
| 4603 | no:yes:* )
|
---|
| 4604 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
|
---|
| 4605 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
|
---|
| 4606 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
|
---|
| 4607 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
|
---|
| 4608 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
|
---|
| 4609 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
|
---|
| 4610 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 4611 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 4612 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
|
---|
| 4613 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
|
---|
| 4614 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
|
---|
| 4615 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
|
---|
| 4616 | (
|
---|
| 4617 | cat <<\_ASBOX
|
---|
| 4618 | ## ------------------------------------------ ##
|
---|
| 4619 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 4620 | ## ------------------------------------------ ##
|
---|
| 4621 | _ASBOX
|
---|
| 4622 | ) |
|
---|
| 4623 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 4624 | ;;
|
---|
| 4625 | esac
|
---|
| 4626 | echo "$as_me:$LINENO: checking for minix/config.h" >&5
|
---|
| 4627 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
|
---|
| 4628 | if test "${ac_cv_header_minix_config_h+set}" = set; then
|
---|
| 4629 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4630 | else
|
---|
| 4631 | ac_cv_header_minix_config_h=$ac_header_preproc
|
---|
| 4632 | fi
|
---|
| 4633 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
|
---|
| 4634 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
|
---|
[16568] | 4635 |
|
---|
[24901] | 4636 | fi
|
---|
| 4637 | if test $ac_cv_header_minix_config_h = yes; then
|
---|
| 4638 | MINIX=yes
|
---|
| 4639 | else
|
---|
| 4640 | MINIX=
|
---|
| 4641 | fi
|
---|
[16568] | 4642 |
|
---|
| 4643 |
|
---|
[24901] | 4644 | if test "$MINIX" = yes; then
|
---|
[23356] | 4645 |
|
---|
[24901] | 4646 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4647 | #define _POSIX_SOURCE 1
|
---|
| 4648 | _ACEOF
|
---|
[23356] | 4649 |
|
---|
| 4650 |
|
---|
[24901] | 4651 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4652 | #define _POSIX_1_SOURCE 2
|
---|
| 4653 | _ACEOF
|
---|
[16568] | 4654 |
|
---|
[24901] | 4655 |
|
---|
| 4656 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4657 | #define _MINIX 1
|
---|
[16568] | 4658 | _ACEOF
|
---|
| 4659 |
|
---|
| 4660 | fi
|
---|
| 4661 |
|
---|
[24901] | 4662 | echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
|
---|
| 4663 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
|
---|
| 4664 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
| 4665 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 4666 | else
|
---|
| 4667 | ac_cv_prog_cc_stdc=no
|
---|
| 4668 | ac_save_CFLAGS="$CFLAGS"
|
---|
| 4669 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
| 4670 | # breaks some systems' header files.
|
---|
| 4671 | # AIX -qlanglvl=ansi
|
---|
| 4672 | # Ultrix and OSF/1 -std1
|
---|
| 4673 | # HP-UX -Aa -D_HPUX_SOURCE
|
---|
| 4674 | # SVR4 -Xc
|
---|
| 4675 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
|
---|
| 4676 | do
|
---|
| 4677 | CFLAGS="$ac_save_CFLAGS $ac_arg"
|
---|
[24901] | 4678 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4679 | /* confdefs.h. */
|
---|
| 4680 | _ACEOF
|
---|
| 4681 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4682 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 4683 | /* end confdefs.h. */
|
---|
| 4684 | #if !defined(__STDC__) || __STDC__ != 1
|
---|
| 4685 | choke me
|
---|
| 4686 | #endif
|
---|
| 4687 |
|
---|
| 4688 | int
|
---|
| 4689 | main ()
|
---|
| 4690 | {
|
---|
| 4691 | int test (int i, double x);
|
---|
| 4692 | struct s1 {int (*f) (int a);};
|
---|
| 4693 | struct s2 {int (*f) (double a);};
|
---|
| 4694 | ;
|
---|
| 4695 | return 0;
|
---|
| 4696 | }
|
---|
| 4697 | _ACEOF
|
---|
[24901] | 4698 | rm -f conftest.$ac_objext
|
---|
| 4699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4700 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4701 | ac_status=$?
|
---|
| 4702 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4703 | rm -f conftest.er1
|
---|
| 4704 | cat conftest.err >&5
|
---|
| 4705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4706 | (exit $ac_status); } &&
|
---|
| 4707 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4708 | || test ! -s conftest.err'
|
---|
| 4709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4710 | (eval $ac_try) 2>&5
|
---|
| 4711 | ac_status=$?
|
---|
| 4712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4713 | (exit $ac_status); }; } &&
|
---|
| 4714 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4716 | (eval $ac_try) 2>&5
|
---|
| 4717 | ac_status=$?
|
---|
| 4718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4719 | (exit $ac_status); }; }; then
|
---|
[16568] | 4720 | ac_cv_prog_cc_stdc="$ac_arg"; break
|
---|
[24901] | 4721 | else
|
---|
| 4722 | echo "$as_me: failed program was:" >&5
|
---|
| 4723 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4724 |
|
---|
[16568] | 4725 | fi
|
---|
[24901] | 4726 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 4727 | done
|
---|
| 4728 | CFLAGS="$ac_save_CFLAGS"
|
---|
| 4729 |
|
---|
| 4730 | fi
|
---|
| 4731 |
|
---|
[24901] | 4732 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
| 4733 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
[16568] | 4734 | case "x$ac_cv_prog_cc_stdc" in
|
---|
| 4735 | x|xno) ;;
|
---|
| 4736 | *) CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
| 4737 | esac
|
---|
| 4738 |
|
---|
| 4739 |
|
---|
[24901] | 4740 | echo "$as_me:$LINENO: checking for function prototypes" >&5
|
---|
| 4741 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
|
---|
[16568] | 4742 | if test "$ac_cv_prog_cc_stdc" != no; then
|
---|
[24901] | 4743 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 4744 | echo "${ECHO_T}yes" >&6
|
---|
| 4745 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4746 | #define PROTOTYPES 1
|
---|
| 4747 | _ACEOF
|
---|
[16568] | 4748 |
|
---|
| 4749 | U= ANSI2KNR=
|
---|
| 4750 | else
|
---|
[24901] | 4751 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 4752 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 4753 | U=_ ANSI2KNR=ansi2knr
|
---|
| 4754 | fi
|
---|
| 4755 |
|
---|
[24901] | 4756 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
|
---|
| 4757 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
|
---|
| 4758 | if test "${ac_cv_c_const+set}" = set; then
|
---|
| 4759 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 4760 | else
|
---|
[24901] | 4761 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4762 | /* confdefs.h. */
|
---|
| 4763 | _ACEOF
|
---|
| 4764 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4765 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 4766 | /* end confdefs.h. */
|
---|
| 4767 |
|
---|
| 4768 | int
|
---|
| 4769 | main ()
|
---|
| 4770 | {
|
---|
| 4771 | /* FIXME: Include the comments suggested by Paul. */
|
---|
| 4772 | #ifndef __cplusplus
|
---|
| 4773 | /* Ultrix mips cc rejects this. */
|
---|
| 4774 | typedef int charset[2];
|
---|
[24901] | 4775 | const charset x;
|
---|
[16568] | 4776 | /* SunOS 4.1.1 cc rejects this. */
|
---|
[24901] | 4777 | char const *const *ccp;
|
---|
| 4778 | char **p;
|
---|
[16568] | 4779 | /* NEC SVR4.0.2 mips cc rejects this. */
|
---|
| 4780 | struct point {int x, y;};
|
---|
| 4781 | static struct point const zero = {0,0};
|
---|
| 4782 | /* AIX XL C 1.02.0.0 rejects this.
|
---|
| 4783 | It does not let you subtract one const X* pointer from another in
|
---|
| 4784 | an arm of an if-expression whose if-part is not a constant
|
---|
| 4785 | expression */
|
---|
| 4786 | const char *g = "string";
|
---|
[24901] | 4787 | ccp = &g + (g ? g-g : 0);
|
---|
[16568] | 4788 | /* HPUX 7.0 cc rejects these. */
|
---|
[24901] | 4789 | ++ccp;
|
---|
| 4790 | p = (char**) ccp;
|
---|
| 4791 | ccp = (char const *const *) p;
|
---|
[16568] | 4792 | { /* SCO 3.2v4 cc rejects this. */
|
---|
| 4793 | char *t;
|
---|
| 4794 | char const *s = 0 ? (char *) 0 : (char const *) 0;
|
---|
| 4795 |
|
---|
| 4796 | *t++ = 0;
|
---|
| 4797 | }
|
---|
| 4798 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
|
---|
| 4799 | int x[] = {25, 17};
|
---|
| 4800 | const int *foo = &x[0];
|
---|
| 4801 | ++foo;
|
---|
| 4802 | }
|
---|
| 4803 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
|
---|
| 4804 | typedef const int *iptr;
|
---|
| 4805 | iptr p = 0;
|
---|
| 4806 | ++p;
|
---|
| 4807 | }
|
---|
| 4808 | { /* AIX XL C 1.02.0.0 rejects this saying
|
---|
| 4809 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
|
---|
| 4810 | struct s { int j; const int *ap[3]; };
|
---|
| 4811 | struct s *b; b->j = 5;
|
---|
| 4812 | }
|
---|
| 4813 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
|
---|
| 4814 | const int foo = 10;
|
---|
| 4815 | }
|
---|
| 4816 | #endif
|
---|
| 4817 |
|
---|
| 4818 | ;
|
---|
| 4819 | return 0;
|
---|
| 4820 | }
|
---|
| 4821 | _ACEOF
|
---|
[24901] | 4822 | rm -f conftest.$ac_objext
|
---|
| 4823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4824 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4825 | ac_status=$?
|
---|
| 4826 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4827 | rm -f conftest.er1
|
---|
| 4828 | cat conftest.err >&5
|
---|
| 4829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4830 | (exit $ac_status); } &&
|
---|
| 4831 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4832 | || test ! -s conftest.err'
|
---|
| 4833 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4834 | (eval $ac_try) 2>&5
|
---|
| 4835 | ac_status=$?
|
---|
| 4836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4837 | (exit $ac_status); }; } &&
|
---|
| 4838 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4840 | (eval $ac_try) 2>&5
|
---|
| 4841 | ac_status=$?
|
---|
| 4842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4843 | (exit $ac_status); }; }; then
|
---|
[16568] | 4844 | ac_cv_c_const=yes
|
---|
| 4845 | else
|
---|
[24901] | 4846 | echo "$as_me: failed program was:" >&5
|
---|
| 4847 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 4848 |
|
---|
| 4849 | ac_cv_c_const=no
|
---|
[16568] | 4850 | fi
|
---|
[24901] | 4851 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 4852 | fi
|
---|
[24901] | 4853 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
|
---|
| 4854 | echo "${ECHO_T}$ac_cv_c_const" >&6
|
---|
[16568] | 4855 | if test $ac_cv_c_const = no; then
|
---|
| 4856 |
|
---|
[24901] | 4857 | cat >>confdefs.h <<\_ACEOF
|
---|
| 4858 | #define const
|
---|
| 4859 | _ACEOF
|
---|
[16568] | 4860 |
|
---|
| 4861 | fi
|
---|
| 4862 |
|
---|
[24901] | 4863 | echo "$as_me:$LINENO: checking for off_t" >&5
|
---|
| 4864 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6
|
---|
| 4865 | if test "${ac_cv_type_off_t+set}" = set; then
|
---|
| 4866 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4867 | else
|
---|
| 4868 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4869 | /* confdefs.h. */
|
---|
| 4870 | _ACEOF
|
---|
| 4871 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4872 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4873 | /* end confdefs.h. */
|
---|
| 4874 | $ac_includes_default
|
---|
| 4875 | int
|
---|
| 4876 | main ()
|
---|
| 4877 | {
|
---|
| 4878 | if ((off_t *) 0)
|
---|
| 4879 | return 0;
|
---|
| 4880 | if (sizeof (off_t))
|
---|
| 4881 | return 0;
|
---|
| 4882 | ;
|
---|
| 4883 | return 0;
|
---|
| 4884 | }
|
---|
| 4885 | _ACEOF
|
---|
| 4886 | rm -f conftest.$ac_objext
|
---|
| 4887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4888 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4889 | ac_status=$?
|
---|
| 4890 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4891 | rm -f conftest.er1
|
---|
| 4892 | cat conftest.err >&5
|
---|
| 4893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4894 | (exit $ac_status); } &&
|
---|
| 4895 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4896 | || test ! -s conftest.err'
|
---|
| 4897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4898 | (eval $ac_try) 2>&5
|
---|
| 4899 | ac_status=$?
|
---|
| 4900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4901 | (exit $ac_status); }; } &&
|
---|
| 4902 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4904 | (eval $ac_try) 2>&5
|
---|
| 4905 | ac_status=$?
|
---|
| 4906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4907 | (exit $ac_status); }; }; then
|
---|
| 4908 | ac_cv_type_off_t=yes
|
---|
| 4909 | else
|
---|
| 4910 | echo "$as_me: failed program was:" >&5
|
---|
| 4911 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[16568] | 4912 |
|
---|
[24901] | 4913 | ac_cv_type_off_t=no
|
---|
| 4914 | fi
|
---|
| 4915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4916 | fi
|
---|
| 4917 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
|
---|
| 4918 | echo "${ECHO_T}$ac_cv_type_off_t" >&6
|
---|
| 4919 | if test $ac_cv_type_off_t = yes; then
|
---|
| 4920 | :
|
---|
[16568] | 4921 | else
|
---|
| 4922 |
|
---|
| 4923 | cat >>confdefs.h <<_ACEOF
|
---|
[24901] | 4924 | #define off_t long
|
---|
[16568] | 4925 | _ACEOF
|
---|
| 4926 |
|
---|
| 4927 | fi
|
---|
| 4928 |
|
---|
[24901] | 4929 | echo "$as_me:$LINENO: checking for size_t" >&5
|
---|
| 4930 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6
|
---|
| 4931 | if test "${ac_cv_type_size_t+set}" = set; then
|
---|
| 4932 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 4933 | else
|
---|
| 4934 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 4935 | /* confdefs.h. */
|
---|
| 4936 | _ACEOF
|
---|
| 4937 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 4938 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 4939 | /* end confdefs.h. */
|
---|
| 4940 | $ac_includes_default
|
---|
| 4941 | int
|
---|
| 4942 | main ()
|
---|
| 4943 | {
|
---|
| 4944 | if ((size_t *) 0)
|
---|
| 4945 | return 0;
|
---|
| 4946 | if (sizeof (size_t))
|
---|
| 4947 | return 0;
|
---|
| 4948 | ;
|
---|
| 4949 | return 0;
|
---|
| 4950 | }
|
---|
| 4951 | _ACEOF
|
---|
| 4952 | rm -f conftest.$ac_objext
|
---|
| 4953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 4954 | (eval $ac_compile) 2>conftest.er1
|
---|
| 4955 | ac_status=$?
|
---|
| 4956 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 4957 | rm -f conftest.er1
|
---|
| 4958 | cat conftest.err >&5
|
---|
| 4959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4960 | (exit $ac_status); } &&
|
---|
| 4961 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 4962 | || test ! -s conftest.err'
|
---|
| 4963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4964 | (eval $ac_try) 2>&5
|
---|
| 4965 | ac_status=$?
|
---|
| 4966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4967 | (exit $ac_status); }; } &&
|
---|
| 4968 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 4969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 4970 | (eval $ac_try) 2>&5
|
---|
| 4971 | ac_status=$?
|
---|
| 4972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 4973 | (exit $ac_status); }; }; then
|
---|
| 4974 | ac_cv_type_size_t=yes
|
---|
| 4975 | else
|
---|
| 4976 | echo "$as_me: failed program was:" >&5
|
---|
| 4977 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[16568] | 4978 |
|
---|
[24901] | 4979 | ac_cv_type_size_t=no
|
---|
| 4980 | fi
|
---|
| 4981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 4982 | fi
|
---|
| 4983 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
|
---|
| 4984 | echo "${ECHO_T}$ac_cv_type_size_t" >&6
|
---|
| 4985 | if test $ac_cv_type_size_t = yes; then
|
---|
| 4986 | :
|
---|
[16568] | 4987 | else
|
---|
| 4988 |
|
---|
| 4989 | cat >>confdefs.h <<_ACEOF
|
---|
[24901] | 4990 | #define size_t unsigned
|
---|
[16568] | 4991 | _ACEOF
|
---|
| 4992 |
|
---|
| 4993 | fi
|
---|
| 4994 |
|
---|
[24901] | 4995 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
|
---|
| 4996 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
|
---|
| 4997 | if test "${ac_cv_header_time+set}" = set; then
|
---|
| 4998 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 4999 | else
|
---|
[24901] | 5000 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5001 | /* confdefs.h. */
|
---|
| 5002 | _ACEOF
|
---|
| 5003 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5004 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5005 | /* end confdefs.h. */
|
---|
| 5006 | #include <sys/types.h>
|
---|
| 5007 | #include <sys/time.h>
|
---|
| 5008 | #include <time.h>
|
---|
| 5009 |
|
---|
| 5010 | int
|
---|
| 5011 | main ()
|
---|
| 5012 | {
|
---|
| 5013 | if ((struct tm *) 0)
|
---|
| 5014 | return 0;
|
---|
| 5015 | ;
|
---|
| 5016 | return 0;
|
---|
| 5017 | }
|
---|
| 5018 | _ACEOF
|
---|
[24901] | 5019 | rm -f conftest.$ac_objext
|
---|
| 5020 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5021 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5022 | ac_status=$?
|
---|
| 5023 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5024 | rm -f conftest.er1
|
---|
| 5025 | cat conftest.err >&5
|
---|
| 5026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5027 | (exit $ac_status); } &&
|
---|
| 5028 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5029 | || test ! -s conftest.err'
|
---|
| 5030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5031 | (eval $ac_try) 2>&5
|
---|
| 5032 | ac_status=$?
|
---|
| 5033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5034 | (exit $ac_status); }; } &&
|
---|
| 5035 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5036 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5037 | (eval $ac_try) 2>&5
|
---|
| 5038 | ac_status=$?
|
---|
| 5039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5040 | (exit $ac_status); }; }; then
|
---|
[16568] | 5041 | ac_cv_header_time=yes
|
---|
| 5042 | else
|
---|
[24901] | 5043 | echo "$as_me: failed program was:" >&5
|
---|
| 5044 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5045 |
|
---|
| 5046 | ac_cv_header_time=no
|
---|
[16568] | 5047 | fi
|
---|
[24901] | 5048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 5049 | fi
|
---|
[24901] | 5050 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
|
---|
| 5051 | echo "${ECHO_T}$ac_cv_header_time" >&6
|
---|
[16568] | 5052 | if test $ac_cv_header_time = yes; then
|
---|
| 5053 |
|
---|
[24901] | 5054 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5055 | #define TIME_WITH_SYS_TIME 1
|
---|
| 5056 | _ACEOF
|
---|
[16568] | 5057 |
|
---|
| 5058 | fi
|
---|
| 5059 |
|
---|
[24901] | 5060 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
|
---|
| 5061 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
|
---|
| 5062 | if test "${ac_cv_struct_tm+set}" = set; then
|
---|
| 5063 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 5064 | else
|
---|
[24901] | 5065 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5066 | /* confdefs.h. */
|
---|
| 5067 | _ACEOF
|
---|
| 5068 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5069 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5070 | /* end confdefs.h. */
|
---|
| 5071 | #include <sys/types.h>
|
---|
| 5072 | #include <time.h>
|
---|
| 5073 |
|
---|
| 5074 | int
|
---|
| 5075 | main ()
|
---|
| 5076 | {
|
---|
[24901] | 5077 | struct tm *tp; tp->tm_sec;
|
---|
[16568] | 5078 | ;
|
---|
| 5079 | return 0;
|
---|
| 5080 | }
|
---|
| 5081 | _ACEOF
|
---|
[24901] | 5082 | rm -f conftest.$ac_objext
|
---|
| 5083 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5084 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5085 | ac_status=$?
|
---|
| 5086 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5087 | rm -f conftest.er1
|
---|
| 5088 | cat conftest.err >&5
|
---|
| 5089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5090 | (exit $ac_status); } &&
|
---|
| 5091 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5092 | || test ! -s conftest.err'
|
---|
| 5093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5094 | (eval $ac_try) 2>&5
|
---|
| 5095 | ac_status=$?
|
---|
| 5096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5097 | (exit $ac_status); }; } &&
|
---|
| 5098 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5100 | (eval $ac_try) 2>&5
|
---|
| 5101 | ac_status=$?
|
---|
| 5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5103 | (exit $ac_status); }; }; then
|
---|
[16568] | 5104 | ac_cv_struct_tm=time.h
|
---|
| 5105 | else
|
---|
[24901] | 5106 | echo "$as_me: failed program was:" >&5
|
---|
| 5107 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5108 |
|
---|
| 5109 | ac_cv_struct_tm=sys/time.h
|
---|
[16568] | 5110 | fi
|
---|
[24901] | 5111 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 5112 | fi
|
---|
[24901] | 5113 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
|
---|
| 5114 | echo "${ECHO_T}$ac_cv_struct_tm" >&6
|
---|
[16568] | 5115 | if test $ac_cv_struct_tm = sys/time.h; then
|
---|
| 5116 |
|
---|
[24901] | 5117 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5118 | #define TM_IN_SYS_TIME 1
|
---|
| 5119 | _ACEOF
|
---|
[16568] | 5120 |
|
---|
| 5121 | fi
|
---|
| 5122 |
|
---|
| 5123 |
|
---|
| 5124 | if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
|
---|
[24901] | 5125 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5126 | /* confdefs.h. */
|
---|
| 5127 | _ACEOF
|
---|
| 5128 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5129 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5130 | /* end confdefs.h. */
|
---|
| 5131 | #include <stdio.h>
|
---|
| 5132 |
|
---|
| 5133 | int
|
---|
| 5134 | main ()
|
---|
| 5135 | {
|
---|
| 5136 | FILE *rubbish = popen("yes", "r");
|
---|
| 5137 | ;
|
---|
| 5138 | return 0;
|
---|
| 5139 | }
|
---|
| 5140 | _ACEOF
|
---|
[24901] | 5141 | rm -f conftest.$ac_objext
|
---|
| 5142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5143 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5144 | ac_status=$?
|
---|
| 5145 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5146 | rm -f conftest.er1
|
---|
| 5147 | cat conftest.err >&5
|
---|
| 5148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5149 | (exit $ac_status); } &&
|
---|
| 5150 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5151 | || test ! -s conftest.err'
|
---|
| 5152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5153 | (eval $ac_try) 2>&5
|
---|
| 5154 | ac_status=$?
|
---|
| 5155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5156 | (exit $ac_status); }; } &&
|
---|
| 5157 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5158 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5159 | (eval $ac_try) 2>&5
|
---|
| 5160 | ac_status=$?
|
---|
| 5161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5162 | (exit $ac_status); }; }; then
|
---|
| 5163 | :
|
---|
| 5164 | else
|
---|
| 5165 | echo "$as_me: failed program was:" >&5
|
---|
| 5166 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[23356] | 5167 |
|
---|
[24901] | 5168 | CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
|
---|
[16568] | 5169 | fi
|
---|
[24901] | 5170 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 5171 | fi
|
---|
| 5172 |
|
---|
| 5173 |
|
---|
[24901] | 5174 |
|
---|
| 5175 | echo "$as_me:$LINENO: checking for main in -lg" >&5
|
---|
| 5176 | echo $ECHO_N "checking for main in -lg... $ECHO_C" >&6
|
---|
| 5177 | if test "${ac_cv_lib_g_main+set}" = set; then
|
---|
| 5178 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 5179 | else
|
---|
| 5180 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 5181 | LIBS="-lg $LIBS"
|
---|
[24901] | 5182 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5183 | /* confdefs.h. */
|
---|
| 5184 | _ACEOF
|
---|
| 5185 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5186 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5187 | /* end confdefs.h. */
|
---|
| 5188 |
|
---|
| 5189 |
|
---|
| 5190 | int
|
---|
| 5191 | main ()
|
---|
| 5192 | {
|
---|
[24901] | 5193 | main ();
|
---|
[16568] | 5194 | ;
|
---|
| 5195 | return 0;
|
---|
| 5196 | }
|
---|
| 5197 | _ACEOF
|
---|
[24901] | 5198 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5200 | (eval $ac_link) 2>conftest.er1
|
---|
| 5201 | ac_status=$?
|
---|
| 5202 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5203 | rm -f conftest.er1
|
---|
| 5204 | cat conftest.err >&5
|
---|
| 5205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5206 | (exit $ac_status); } &&
|
---|
| 5207 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5208 | || test ! -s conftest.err'
|
---|
| 5209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5210 | (eval $ac_try) 2>&5
|
---|
| 5211 | ac_status=$?
|
---|
| 5212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5213 | (exit $ac_status); }; } &&
|
---|
| 5214 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5216 | (eval $ac_try) 2>&5
|
---|
| 5217 | ac_status=$?
|
---|
| 5218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5219 | (exit $ac_status); }; }; then
|
---|
[16568] | 5220 | ac_cv_lib_g_main=yes
|
---|
| 5221 | else
|
---|
[24901] | 5222 | echo "$as_me: failed program was:" >&5
|
---|
| 5223 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5224 |
|
---|
| 5225 | ac_cv_lib_g_main=no
|
---|
[16568] | 5226 | fi
|
---|
[24901] | 5227 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5228 | conftest$ac_exeext conftest.$ac_ext
|
---|
[16568] | 5229 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 5230 | fi
|
---|
[24901] | 5231 | echo "$as_me:$LINENO: result: $ac_cv_lib_g_main" >&5
|
---|
| 5232 | echo "${ECHO_T}$ac_cv_lib_g_main" >&6
|
---|
| 5233 | if test $ac_cv_lib_g_main = yes; then
|
---|
[16568] | 5234 | cat >>confdefs.h <<_ACEOF
|
---|
| 5235 | #define HAVE_LIBG 1
|
---|
| 5236 | _ACEOF
|
---|
| 5237 |
|
---|
| 5238 | LIBS="-lg $LIBS"
|
---|
| 5239 |
|
---|
| 5240 | fi
|
---|
| 5241 | ac_cv_lib_g=ac_cv_lib_g_main
|
---|
| 5242 |
|
---|
[24901] | 5243 |
|
---|
| 5244 | echo "$as_me:$LINENO: checking for main in -lm" >&5
|
---|
| 5245 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
|
---|
| 5246 | if test "${ac_cv_lib_m_main+set}" = set; then
|
---|
| 5247 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 5248 | else
|
---|
| 5249 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 5250 | LIBS="-lm $LIBS"
|
---|
[24901] | 5251 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5252 | /* confdefs.h. */
|
---|
| 5253 | _ACEOF
|
---|
| 5254 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5255 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5256 | /* end confdefs.h. */
|
---|
| 5257 |
|
---|
| 5258 |
|
---|
| 5259 | int
|
---|
| 5260 | main ()
|
---|
| 5261 | {
|
---|
[24901] | 5262 | main ();
|
---|
[16568] | 5263 | ;
|
---|
| 5264 | return 0;
|
---|
| 5265 | }
|
---|
| 5266 | _ACEOF
|
---|
[24901] | 5267 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5268 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5269 | (eval $ac_link) 2>conftest.er1
|
---|
| 5270 | ac_status=$?
|
---|
| 5271 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5272 | rm -f conftest.er1
|
---|
| 5273 | cat conftest.err >&5
|
---|
| 5274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5275 | (exit $ac_status); } &&
|
---|
| 5276 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5277 | || test ! -s conftest.err'
|
---|
| 5278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5279 | (eval $ac_try) 2>&5
|
---|
| 5280 | ac_status=$?
|
---|
| 5281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5282 | (exit $ac_status); }; } &&
|
---|
| 5283 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5284 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5285 | (eval $ac_try) 2>&5
|
---|
| 5286 | ac_status=$?
|
---|
| 5287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5288 | (exit $ac_status); }; }; then
|
---|
[16568] | 5289 | ac_cv_lib_m_main=yes
|
---|
| 5290 | else
|
---|
[24901] | 5291 | echo "$as_me: failed program was:" >&5
|
---|
| 5292 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5293 |
|
---|
| 5294 | ac_cv_lib_m_main=no
|
---|
[16568] | 5295 | fi
|
---|
[24901] | 5296 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5297 | conftest$ac_exeext conftest.$ac_ext
|
---|
[16568] | 5298 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 5299 | fi
|
---|
[24901] | 5300 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
|
---|
| 5301 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6
|
---|
| 5302 | if test $ac_cv_lib_m_main = yes; then
|
---|
[16568] | 5303 | cat >>confdefs.h <<_ACEOF
|
---|
| 5304 | #define HAVE_LIBM 1
|
---|
| 5305 | _ACEOF
|
---|
| 5306 |
|
---|
| 5307 | LIBS="-lm $LIBS"
|
---|
| 5308 |
|
---|
| 5309 | fi
|
---|
| 5310 | ac_cv_lib_m=ac_cv_lib_m_main
|
---|
| 5311 |
|
---|
[24901] | 5312 |
|
---|
| 5313 | echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
|
---|
| 5314 | echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
|
---|
| 5315 | if test "${ac_cv_lib_crypt_main+set}" = set; then
|
---|
| 5316 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 5317 | else
|
---|
| 5318 | ac_check_lib_save_LIBS=$LIBS
|
---|
| 5319 | LIBS="-lcrypt $LIBS"
|
---|
[24901] | 5320 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5321 | /* confdefs.h. */
|
---|
| 5322 | _ACEOF
|
---|
| 5323 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5324 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5325 | /* end confdefs.h. */
|
---|
| 5326 |
|
---|
| 5327 |
|
---|
| 5328 | int
|
---|
| 5329 | main ()
|
---|
| 5330 | {
|
---|
[24901] | 5331 | main ();
|
---|
[16568] | 5332 | ;
|
---|
| 5333 | return 0;
|
---|
| 5334 | }
|
---|
| 5335 | _ACEOF
|
---|
[24901] | 5336 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5337 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5338 | (eval $ac_link) 2>conftest.er1
|
---|
| 5339 | ac_status=$?
|
---|
| 5340 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5341 | rm -f conftest.er1
|
---|
| 5342 | cat conftest.err >&5
|
---|
| 5343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5344 | (exit $ac_status); } &&
|
---|
| 5345 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5346 | || test ! -s conftest.err'
|
---|
| 5347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5348 | (eval $ac_try) 2>&5
|
---|
| 5349 | ac_status=$?
|
---|
| 5350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5351 | (exit $ac_status); }; } &&
|
---|
| 5352 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5354 | (eval $ac_try) 2>&5
|
---|
| 5355 | ac_status=$?
|
---|
| 5356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5357 | (exit $ac_status); }; }; then
|
---|
[16568] | 5358 | ac_cv_lib_crypt_main=yes
|
---|
| 5359 | else
|
---|
[24901] | 5360 | echo "$as_me: failed program was:" >&5
|
---|
| 5361 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5362 |
|
---|
| 5363 | ac_cv_lib_crypt_main=no
|
---|
[16568] | 5364 | fi
|
---|
[24901] | 5365 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5366 | conftest$ac_exeext conftest.$ac_ext
|
---|
[16568] | 5367 | LIBS=$ac_check_lib_save_LIBS
|
---|
| 5368 | fi
|
---|
[24901] | 5369 | echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
|
---|
| 5370 | echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
|
---|
| 5371 | if test $ac_cv_lib_crypt_main = yes; then
|
---|
[16568] | 5372 | cat >>confdefs.h <<_ACEOF
|
---|
| 5373 | #define HAVE_LIBCRYPT 1
|
---|
| 5374 | _ACEOF
|
---|
| 5375 |
|
---|
| 5376 | LIBS="-lcrypt $LIBS"
|
---|
| 5377 |
|
---|
| 5378 | fi
|
---|
| 5379 | ac_cv_lib_crypt=ac_cv_lib_crypt_main
|
---|
| 5380 |
|
---|
[20848] | 5381 | #if test $ENABLE_ACCENTFOLD = 1; then
|
---|
| 5382 | #AC_HAVE_LIBRARY(iconv)
|
---|
| 5383 | #fi
|
---|
[16568] | 5384 |
|
---|
[24901] | 5385 |
|
---|
| 5386 |
|
---|
| 5387 |
|
---|
| 5388 |
|
---|
| 5389 |
|
---|
[16568] | 5390 | ac_header_dirent=no
|
---|
| 5391 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
[24901] | 5392 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
| 5393 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
| 5394 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
| 5395 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5396 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 5397 | else
|
---|
[24901] | 5398 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5399 | /* confdefs.h. */
|
---|
| 5400 | _ACEOF
|
---|
| 5401 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5402 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5403 | /* end confdefs.h. */
|
---|
| 5404 | #include <sys/types.h>
|
---|
| 5405 | #include <$ac_hdr>
|
---|
| 5406 |
|
---|
| 5407 | int
|
---|
| 5408 | main ()
|
---|
| 5409 | {
|
---|
| 5410 | if ((DIR *) 0)
|
---|
| 5411 | return 0;
|
---|
| 5412 | ;
|
---|
| 5413 | return 0;
|
---|
| 5414 | }
|
---|
| 5415 | _ACEOF
|
---|
[24901] | 5416 | rm -f conftest.$ac_objext
|
---|
| 5417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5418 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5419 | ac_status=$?
|
---|
| 5420 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5421 | rm -f conftest.er1
|
---|
| 5422 | cat conftest.err >&5
|
---|
| 5423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5424 | (exit $ac_status); } &&
|
---|
| 5425 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5426 | || test ! -s conftest.err'
|
---|
| 5427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5428 | (eval $ac_try) 2>&5
|
---|
| 5429 | ac_status=$?
|
---|
| 5430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5431 | (exit $ac_status); }; } &&
|
---|
| 5432 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5434 | (eval $ac_try) 2>&5
|
---|
| 5435 | ac_status=$?
|
---|
| 5436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5437 | (exit $ac_status); }; }; then
|
---|
[16568] | 5438 | eval "$as_ac_Header=yes"
|
---|
| 5439 | else
|
---|
[24901] | 5440 | echo "$as_me: failed program was:" >&5
|
---|
| 5441 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5442 |
|
---|
| 5443 | eval "$as_ac_Header=no"
|
---|
[16568] | 5444 | fi
|
---|
[24901] | 5445 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 5446 | fi
|
---|
[24901] | 5447 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5448 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 5449 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
[16568] | 5450 | cat >>confdefs.h <<_ACEOF
|
---|
[24901] | 5451 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
[16568] | 5452 | _ACEOF
|
---|
| 5453 |
|
---|
| 5454 | ac_header_dirent=$ac_hdr; break
|
---|
| 5455 | fi
|
---|
| 5456 |
|
---|
| 5457 | done
|
---|
| 5458 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
| 5459 | if test $ac_header_dirent = dirent.h; then
|
---|
[24901] | 5460 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 5461 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 5462 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 5463 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 5464 | else
|
---|
| 5465 | ac_func_search_save_LIBS=$LIBS
|
---|
[24901] | 5466 | ac_cv_search_opendir=no
|
---|
| 5467 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5468 | /* confdefs.h. */
|
---|
| 5469 | _ACEOF
|
---|
| 5470 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5471 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5472 | /* end confdefs.h. */
|
---|
| 5473 |
|
---|
[24901] | 5474 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16568] | 5475 | #ifdef __cplusplus
|
---|
| 5476 | extern "C"
|
---|
| 5477 | #endif
|
---|
[24901] | 5478 | /* We use char because int might match the return type of a gcc2
|
---|
| 5479 | builtin and then its argument prototype would still apply. */
|
---|
[16568] | 5480 | char opendir ();
|
---|
| 5481 | int
|
---|
| 5482 | main ()
|
---|
| 5483 | {
|
---|
[24901] | 5484 | opendir ();
|
---|
[16568] | 5485 | ;
|
---|
| 5486 | return 0;
|
---|
| 5487 | }
|
---|
| 5488 | _ACEOF
|
---|
[24901] | 5489 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5490 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5491 | (eval $ac_link) 2>conftest.er1
|
---|
| 5492 | ac_status=$?
|
---|
| 5493 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5494 | rm -f conftest.er1
|
---|
| 5495 | cat conftest.err >&5
|
---|
| 5496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5497 | (exit $ac_status); } &&
|
---|
| 5498 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5499 | || test ! -s conftest.err'
|
---|
| 5500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5501 | (eval $ac_try) 2>&5
|
---|
| 5502 | ac_status=$?
|
---|
| 5503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5504 | (exit $ac_status); }; } &&
|
---|
| 5505 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5507 | (eval $ac_try) 2>&5
|
---|
| 5508 | ac_status=$?
|
---|
| 5509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5510 | (exit $ac_status); }; }; then
|
---|
| 5511 | ac_cv_search_opendir="none required"
|
---|
| 5512 | else
|
---|
| 5513 | echo "$as_me: failed program was:" >&5
|
---|
| 5514 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5515 |
|
---|
| 5516 | fi
|
---|
| 5517 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5518 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5519 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 5520 | for ac_lib in dir; do
|
---|
[23356] | 5521 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
[24901] | 5522 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5523 | /* confdefs.h. */
|
---|
| 5524 | _ACEOF
|
---|
| 5525 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5526 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5527 | /* end confdefs.h. */
|
---|
[16568] | 5528 |
|
---|
[24901] | 5529 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5530 | #ifdef __cplusplus
|
---|
| 5531 | extern "C"
|
---|
| 5532 | #endif
|
---|
| 5533 | /* We use char because int might match the return type of a gcc2
|
---|
| 5534 | builtin and then its argument prototype would still apply. */
|
---|
| 5535 | char opendir ();
|
---|
| 5536 | int
|
---|
| 5537 | main ()
|
---|
| 5538 | {
|
---|
| 5539 | opendir ();
|
---|
| 5540 | ;
|
---|
| 5541 | return 0;
|
---|
| 5542 | }
|
---|
| 5543 | _ACEOF
|
---|
| 5544 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5545 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5546 | (eval $ac_link) 2>conftest.er1
|
---|
| 5547 | ac_status=$?
|
---|
| 5548 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5549 | rm -f conftest.er1
|
---|
| 5550 | cat conftest.err >&5
|
---|
| 5551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5552 | (exit $ac_status); } &&
|
---|
| 5553 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5554 | || test ! -s conftest.err'
|
---|
| 5555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5556 | (eval $ac_try) 2>&5
|
---|
| 5557 | ac_status=$?
|
---|
| 5558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5559 | (exit $ac_status); }; } &&
|
---|
| 5560 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5562 | (eval $ac_try) 2>&5
|
---|
| 5563 | ac_status=$?
|
---|
| 5564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5565 | (exit $ac_status); }; }; then
|
---|
| 5566 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 5567 | break
|
---|
[16568] | 5568 | else
|
---|
[24901] | 5569 | echo "$as_me: failed program was:" >&5
|
---|
| 5570 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5571 |
|
---|
[16568] | 5572 | fi
|
---|
[24901] | 5573 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5574 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5575 | done
|
---|
| 5576 | fi
|
---|
[16568] | 5577 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5578 | fi
|
---|
[24901] | 5579 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 5580 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 5581 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 5582 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[16568] | 5583 |
|
---|
| 5584 | fi
|
---|
| 5585 |
|
---|
| 5586 | else
|
---|
[24901] | 5587 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
| 5588 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
| 5589 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
| 5590 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 5591 | else
|
---|
| 5592 | ac_func_search_save_LIBS=$LIBS
|
---|
[24901] | 5593 | ac_cv_search_opendir=no
|
---|
| 5594 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5595 | /* confdefs.h. */
|
---|
| 5596 | _ACEOF
|
---|
| 5597 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5598 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5599 | /* end confdefs.h. */
|
---|
| 5600 |
|
---|
[24901] | 5601 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
[16568] | 5602 | #ifdef __cplusplus
|
---|
| 5603 | extern "C"
|
---|
| 5604 | #endif
|
---|
[24901] | 5605 | /* We use char because int might match the return type of a gcc2
|
---|
| 5606 | builtin and then its argument prototype would still apply. */
|
---|
[16568] | 5607 | char opendir ();
|
---|
| 5608 | int
|
---|
| 5609 | main ()
|
---|
| 5610 | {
|
---|
[24901] | 5611 | opendir ();
|
---|
[16568] | 5612 | ;
|
---|
| 5613 | return 0;
|
---|
| 5614 | }
|
---|
| 5615 | _ACEOF
|
---|
[24901] | 5616 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5618 | (eval $ac_link) 2>conftest.er1
|
---|
| 5619 | ac_status=$?
|
---|
| 5620 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5621 | rm -f conftest.er1
|
---|
| 5622 | cat conftest.err >&5
|
---|
| 5623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5624 | (exit $ac_status); } &&
|
---|
| 5625 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5626 | || test ! -s conftest.err'
|
---|
| 5627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5628 | (eval $ac_try) 2>&5
|
---|
| 5629 | ac_status=$?
|
---|
| 5630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5631 | (exit $ac_status); }; } &&
|
---|
| 5632 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5634 | (eval $ac_try) 2>&5
|
---|
| 5635 | ac_status=$?
|
---|
| 5636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5637 | (exit $ac_status); }; }; then
|
---|
| 5638 | ac_cv_search_opendir="none required"
|
---|
| 5639 | else
|
---|
| 5640 | echo "$as_me: failed program was:" >&5
|
---|
| 5641 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5642 |
|
---|
| 5643 | fi
|
---|
| 5644 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5645 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5646 | if test "$ac_cv_search_opendir" = no; then
|
---|
| 5647 | for ac_lib in x; do
|
---|
[23356] | 5648 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
[24901] | 5649 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5650 | /* confdefs.h. */
|
---|
| 5651 | _ACEOF
|
---|
| 5652 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5653 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5654 | /* end confdefs.h. */
|
---|
[16568] | 5655 |
|
---|
[24901] | 5656 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 5657 | #ifdef __cplusplus
|
---|
| 5658 | extern "C"
|
---|
| 5659 | #endif
|
---|
| 5660 | /* We use char because int might match the return type of a gcc2
|
---|
| 5661 | builtin and then its argument prototype would still apply. */
|
---|
| 5662 | char opendir ();
|
---|
| 5663 | int
|
---|
| 5664 | main ()
|
---|
| 5665 | {
|
---|
| 5666 | opendir ();
|
---|
| 5667 | ;
|
---|
| 5668 | return 0;
|
---|
| 5669 | }
|
---|
| 5670 | _ACEOF
|
---|
| 5671 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 5672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5673 | (eval $ac_link) 2>conftest.er1
|
---|
| 5674 | ac_status=$?
|
---|
| 5675 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5676 | rm -f conftest.er1
|
---|
| 5677 | cat conftest.err >&5
|
---|
| 5678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5679 | (exit $ac_status); } &&
|
---|
| 5680 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5681 | || test ! -s conftest.err'
|
---|
| 5682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5683 | (eval $ac_try) 2>&5
|
---|
| 5684 | ac_status=$?
|
---|
| 5685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5686 | (exit $ac_status); }; } &&
|
---|
| 5687 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 5688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5689 | (eval $ac_try) 2>&5
|
---|
| 5690 | ac_status=$?
|
---|
| 5691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5692 | (exit $ac_status); }; }; then
|
---|
| 5693 | ac_cv_search_opendir="-l$ac_lib"
|
---|
| 5694 | break
|
---|
[16568] | 5695 | else
|
---|
[24901] | 5696 | echo "$as_me: failed program was:" >&5
|
---|
| 5697 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5698 |
|
---|
[16568] | 5699 | fi
|
---|
[24901] | 5700 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 5701 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 5702 | done
|
---|
| 5703 | fi
|
---|
[16568] | 5704 | LIBS=$ac_func_search_save_LIBS
|
---|
| 5705 | fi
|
---|
[24901] | 5706 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
| 5707 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
| 5708 | if test "$ac_cv_search_opendir" != no; then
|
---|
| 5709 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
[16568] | 5710 |
|
---|
| 5711 | fi
|
---|
| 5712 |
|
---|
| 5713 | fi
|
---|
| 5714 |
|
---|
[24901] | 5715 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
| 5716 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
| 5717 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
| 5718 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 5719 | else
|
---|
[24901] | 5720 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5721 | /* confdefs.h. */
|
---|
| 5722 | _ACEOF
|
---|
| 5723 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5724 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5725 | /* end confdefs.h. */
|
---|
| 5726 | #include <stdlib.h>
|
---|
| 5727 | #include <stdarg.h>
|
---|
| 5728 | #include <string.h>
|
---|
| 5729 | #include <float.h>
|
---|
| 5730 |
|
---|
| 5731 | int
|
---|
| 5732 | main ()
|
---|
| 5733 | {
|
---|
| 5734 |
|
---|
| 5735 | ;
|
---|
| 5736 | return 0;
|
---|
| 5737 | }
|
---|
| 5738 | _ACEOF
|
---|
[24901] | 5739 | rm -f conftest.$ac_objext
|
---|
| 5740 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5741 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5742 | ac_status=$?
|
---|
| 5743 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5744 | rm -f conftest.er1
|
---|
| 5745 | cat conftest.err >&5
|
---|
| 5746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5747 | (exit $ac_status); } &&
|
---|
| 5748 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5749 | || test ! -s conftest.err'
|
---|
| 5750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5751 | (eval $ac_try) 2>&5
|
---|
| 5752 | ac_status=$?
|
---|
| 5753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5754 | (exit $ac_status); }; } &&
|
---|
| 5755 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5757 | (eval $ac_try) 2>&5
|
---|
| 5758 | ac_status=$?
|
---|
| 5759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5760 | (exit $ac_status); }; }; then
|
---|
[16568] | 5761 | ac_cv_header_stdc=yes
|
---|
| 5762 | else
|
---|
[24901] | 5763 | echo "$as_me: failed program was:" >&5
|
---|
| 5764 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5765 |
|
---|
| 5766 | ac_cv_header_stdc=no
|
---|
[16568] | 5767 | fi
|
---|
[24901] | 5768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 5769 |
|
---|
| 5770 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5771 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
[24901] | 5772 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5773 | /* confdefs.h. */
|
---|
| 5774 | _ACEOF
|
---|
| 5775 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5776 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5777 | /* end confdefs.h. */
|
---|
| 5778 | #include <string.h>
|
---|
| 5779 |
|
---|
| 5780 | _ACEOF
|
---|
| 5781 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 5782 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
| 5783 | :
|
---|
[16568] | 5784 | else
|
---|
| 5785 | ac_cv_header_stdc=no
|
---|
| 5786 | fi
|
---|
| 5787 | rm -f conftest*
|
---|
| 5788 |
|
---|
| 5789 | fi
|
---|
| 5790 |
|
---|
| 5791 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5792 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
[24901] | 5793 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5794 | /* confdefs.h. */
|
---|
| 5795 | _ACEOF
|
---|
| 5796 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5797 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5798 | /* end confdefs.h. */
|
---|
| 5799 | #include <stdlib.h>
|
---|
| 5800 |
|
---|
| 5801 | _ACEOF
|
---|
| 5802 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 5803 | $EGREP "free" >/dev/null 2>&1; then
|
---|
| 5804 | :
|
---|
[16568] | 5805 | else
|
---|
| 5806 | ac_cv_header_stdc=no
|
---|
| 5807 | fi
|
---|
| 5808 | rm -f conftest*
|
---|
| 5809 |
|
---|
| 5810 | fi
|
---|
| 5811 |
|
---|
| 5812 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5813 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
[24901] | 5814 | if test "$cross_compiling" = yes; then
|
---|
[16568] | 5815 | :
|
---|
| 5816 | else
|
---|
[24901] | 5817 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5818 | /* confdefs.h. */
|
---|
| 5819 | _ACEOF
|
---|
| 5820 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5821 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 5822 | /* end confdefs.h. */
|
---|
| 5823 | #include <ctype.h>
|
---|
| 5824 | #if ((' ' & 0x0FF) == 0x020)
|
---|
| 5825 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
| 5826 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
| 5827 | #else
|
---|
| 5828 | # define ISLOWER(c) \
|
---|
| 5829 | (('a' <= (c) && (c) <= 'i') \
|
---|
| 5830 | || ('j' <= (c) && (c) <= 'r') \
|
---|
| 5831 | || ('s' <= (c) && (c) <= 'z'))
|
---|
| 5832 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
| 5833 | #endif
|
---|
| 5834 |
|
---|
| 5835 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
| 5836 | int
|
---|
| 5837 | main ()
|
---|
| 5838 | {
|
---|
| 5839 | int i;
|
---|
| 5840 | for (i = 0; i < 256; i++)
|
---|
| 5841 | if (XOR (islower (i), ISLOWER (i))
|
---|
| 5842 | || toupper (i) != TOUPPER (i))
|
---|
[24901] | 5843 | exit(2);
|
---|
| 5844 | exit (0);
|
---|
[16568] | 5845 | }
|
---|
| 5846 | _ACEOF
|
---|
[24901] | 5847 | rm -f conftest$ac_exeext
|
---|
| 5848 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 5849 | (eval $ac_link) 2>&5
|
---|
| 5850 | ac_status=$?
|
---|
| 5851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5852 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 5853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5854 | (eval $ac_try) 2>&5
|
---|
| 5855 | ac_status=$?
|
---|
| 5856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5857 | (exit $ac_status); }; }; then
|
---|
| 5858 | :
|
---|
| 5859 | else
|
---|
| 5860 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 5861 | echo "$as_me: failed program was:" >&5
|
---|
| 5862 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[23356] | 5863 |
|
---|
[24901] | 5864 | ( exit $ac_status )
|
---|
| 5865 | ac_cv_header_stdc=no
|
---|
[16568] | 5866 | fi
|
---|
[24901] | 5867 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 5868 | fi
|
---|
| 5869 | fi
|
---|
| 5870 | fi
|
---|
[24901] | 5871 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
| 5872 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
[16568] | 5873 | if test $ac_cv_header_stdc = yes; then
|
---|
| 5874 |
|
---|
[24901] | 5875 | cat >>confdefs.h <<\_ACEOF
|
---|
| 5876 | #define STDC_HEADERS 1
|
---|
| 5877 | _ACEOF
|
---|
[16568] | 5878 |
|
---|
| 5879 | fi
|
---|
| 5880 |
|
---|
[24901] | 5881 |
|
---|
| 5882 |
|
---|
| 5883 |
|
---|
| 5884 |
|
---|
| 5885 |
|
---|
| 5886 |
|
---|
| 5887 |
|
---|
| 5888 |
|
---|
| 5889 |
|
---|
[16568] | 5890 | for ac_header in fcntl.h limits.h sys/time.h unistd.h crypt.h string.h memory.h sys/procfs.h sys/stat.h
|
---|
[24901] | 5891 | do
|
---|
| 5892 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
| 5893 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5894 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 5895 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 5896 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 5897 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 5898 | fi
|
---|
| 5899 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 5900 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 5901 | else
|
---|
| 5902 | # Is the header compilable?
|
---|
| 5903 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
| 5904 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
| 5905 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5906 | /* confdefs.h. */
|
---|
| 5907 | _ACEOF
|
---|
| 5908 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5909 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5910 | /* end confdefs.h. */
|
---|
| 5911 | $ac_includes_default
|
---|
| 5912 | #include <$ac_header>
|
---|
| 5913 | _ACEOF
|
---|
| 5914 | rm -f conftest.$ac_objext
|
---|
| 5915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 5916 | (eval $ac_compile) 2>conftest.er1
|
---|
| 5917 | ac_status=$?
|
---|
| 5918 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5919 | rm -f conftest.er1
|
---|
| 5920 | cat conftest.err >&5
|
---|
| 5921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5922 | (exit $ac_status); } &&
|
---|
| 5923 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 5924 | || test ! -s conftest.err'
|
---|
| 5925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5926 | (eval $ac_try) 2>&5
|
---|
| 5927 | ac_status=$?
|
---|
| 5928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5929 | (exit $ac_status); }; } &&
|
---|
| 5930 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 5931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 5932 | (eval $ac_try) 2>&5
|
---|
| 5933 | ac_status=$?
|
---|
| 5934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5935 | (exit $ac_status); }; }; then
|
---|
| 5936 | ac_header_compiler=yes
|
---|
| 5937 | else
|
---|
| 5938 | echo "$as_me: failed program was:" >&5
|
---|
| 5939 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5940 |
|
---|
| 5941 | ac_header_compiler=no
|
---|
| 5942 | fi
|
---|
| 5943 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 5944 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
| 5945 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
| 5946 |
|
---|
| 5947 | # Is the header present?
|
---|
| 5948 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
| 5949 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
| 5950 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 5951 | /* confdefs.h. */
|
---|
| 5952 | _ACEOF
|
---|
| 5953 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 5954 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 5955 | /* end confdefs.h. */
|
---|
| 5956 | #include <$ac_header>
|
---|
| 5957 | _ACEOF
|
---|
| 5958 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
| 5959 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
| 5960 | ac_status=$?
|
---|
| 5961 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 5962 | rm -f conftest.er1
|
---|
| 5963 | cat conftest.err >&5
|
---|
| 5964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 5965 | (exit $ac_status); } >/dev/null; then
|
---|
| 5966 | if test -s conftest.err; then
|
---|
| 5967 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
| 5968 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
| 5969 | else
|
---|
| 5970 | ac_cpp_err=
|
---|
| 5971 | fi
|
---|
| 5972 | else
|
---|
| 5973 | ac_cpp_err=yes
|
---|
| 5974 | fi
|
---|
| 5975 | if test -z "$ac_cpp_err"; then
|
---|
| 5976 | ac_header_preproc=yes
|
---|
| 5977 | else
|
---|
| 5978 | echo "$as_me: failed program was:" >&5
|
---|
| 5979 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 5980 |
|
---|
| 5981 | ac_header_preproc=no
|
---|
| 5982 | fi
|
---|
| 5983 | rm -f conftest.err conftest.$ac_ext
|
---|
| 5984 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
| 5985 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
| 5986 |
|
---|
| 5987 | # So? What about this header?
|
---|
| 5988 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
| 5989 | yes:no: )
|
---|
| 5990 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
| 5991 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
| 5992 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
| 5993 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
| 5994 | ac_header_preproc=yes
|
---|
| 5995 | ;;
|
---|
| 5996 | no:yes:* )
|
---|
| 5997 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
| 5998 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
| 5999 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
| 6000 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
| 6001 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
| 6002 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
| 6003 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
| 6004 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
| 6005 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
| 6006 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
| 6007 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
| 6008 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
| 6009 | (
|
---|
| 6010 | cat <<\_ASBOX
|
---|
| 6011 | ## ------------------------------------------ ##
|
---|
| 6012 | ## Report this to the AC_PACKAGE_NAME lists. ##
|
---|
| 6013 | ## ------------------------------------------ ##
|
---|
| 6014 | _ASBOX
|
---|
| 6015 | ) |
|
---|
| 6016 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
| 6017 | ;;
|
---|
| 6018 | esac
|
---|
| 6019 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
| 6020 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
| 6021 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
| 6022 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6023 | else
|
---|
| 6024 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
| 6025 | fi
|
---|
| 6026 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
| 6027 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
| 6028 |
|
---|
| 6029 | fi
|
---|
| 6030 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
[16568] | 6031 | cat >>confdefs.h <<_ACEOF
|
---|
[24901] | 6032 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
[16568] | 6033 | _ACEOF
|
---|
| 6034 |
|
---|
| 6035 | fi
|
---|
| 6036 |
|
---|
| 6037 | done
|
---|
| 6038 |
|
---|
[24901] | 6039 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6040 | /* confdefs.h. */
|
---|
| 6041 | _ACEOF
|
---|
| 6042 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6043 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6044 | /* end confdefs.h. */
|
---|
| 6045 | #include <stdio.h>
|
---|
| 6046 |
|
---|
| 6047 | _ACEOF
|
---|
| 6048 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 6049 | $EGREP "fread" >/dev/null 2>&1; then
|
---|
| 6050 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6051 | #define HAVE_FREAD_DECL 1
|
---|
| 6052 | _ACEOF
|
---|
[16568] | 6053 |
|
---|
| 6054 | fi
|
---|
| 6055 | rm -f conftest*
|
---|
| 6056 |
|
---|
[24901] | 6057 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6058 | /* confdefs.h. */
|
---|
| 6059 | _ACEOF
|
---|
| 6060 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6061 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6062 | /* end confdefs.h. */
|
---|
| 6063 | #include <stdio.h>
|
---|
| 6064 |
|
---|
| 6065 | _ACEOF
|
---|
| 6066 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 6067 | $EGREP "fgetc" >/dev/null 2>&1; then
|
---|
| 6068 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6069 | #define HAVE_FGETC_DECL 1
|
---|
| 6070 | _ACEOF
|
---|
[16568] | 6071 |
|
---|
| 6072 | fi
|
---|
| 6073 | rm -f conftest*
|
---|
| 6074 |
|
---|
[24901] | 6075 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6076 | /* confdefs.h. */
|
---|
| 6077 | _ACEOF
|
---|
| 6078 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6079 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6080 | /* end confdefs.h. */
|
---|
| 6081 | #include <sys/procfs.h>
|
---|
| 6082 |
|
---|
| 6083 | _ACEOF
|
---|
| 6084 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 6085 | $EGREP "pr_brksize" >/dev/null 2>&1; then
|
---|
| 6086 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6087 | #define HAVE_PR_BRKSIZE 1
|
---|
| 6088 | _ACEOF
|
---|
[16568] | 6089 |
|
---|
| 6090 | fi
|
---|
| 6091 | rm -f conftest*
|
---|
| 6092 |
|
---|
| 6093 |
|
---|
| 6094 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
|
---|
| 6095 | # for constant arguments. Useless!
|
---|
[24901] | 6096 | echo "$as_me:$LINENO: checking for working alloca.h" >&5
|
---|
| 6097 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
|
---|
| 6098 | if test "${ac_cv_working_alloca_h+set}" = set; then
|
---|
| 6099 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 6100 | else
|
---|
[24901] | 6101 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6102 | /* confdefs.h. */
|
---|
| 6103 | _ACEOF
|
---|
| 6104 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6105 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6106 | /* end confdefs.h. */
|
---|
| 6107 | #include <alloca.h>
|
---|
| 6108 | int
|
---|
| 6109 | main ()
|
---|
| 6110 | {
|
---|
| 6111 | char *p = (char *) alloca (2 * sizeof (int));
|
---|
| 6112 | ;
|
---|
| 6113 | return 0;
|
---|
| 6114 | }
|
---|
| 6115 | _ACEOF
|
---|
[24901] | 6116 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6117 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6118 | (eval $ac_link) 2>conftest.er1
|
---|
| 6119 | ac_status=$?
|
---|
| 6120 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6121 | rm -f conftest.er1
|
---|
| 6122 | cat conftest.err >&5
|
---|
| 6123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6124 | (exit $ac_status); } &&
|
---|
| 6125 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6126 | || test ! -s conftest.err'
|
---|
| 6127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6128 | (eval $ac_try) 2>&5
|
---|
| 6129 | ac_status=$?
|
---|
| 6130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6131 | (exit $ac_status); }; } &&
|
---|
| 6132 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6134 | (eval $ac_try) 2>&5
|
---|
| 6135 | ac_status=$?
|
---|
| 6136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6137 | (exit $ac_status); }; }; then
|
---|
[16568] | 6138 | ac_cv_working_alloca_h=yes
|
---|
| 6139 | else
|
---|
[24901] | 6140 | echo "$as_me: failed program was:" >&5
|
---|
| 6141 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6142 |
|
---|
| 6143 | ac_cv_working_alloca_h=no
|
---|
[16568] | 6144 | fi
|
---|
[24901] | 6145 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6146 | conftest$ac_exeext conftest.$ac_ext
|
---|
[16568] | 6147 | fi
|
---|
[24901] | 6148 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
|
---|
| 6149 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
|
---|
[16568] | 6150 | if test $ac_cv_working_alloca_h = yes; then
|
---|
| 6151 |
|
---|
[24901] | 6152 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6153 | #define HAVE_ALLOCA_H 1
|
---|
| 6154 | _ACEOF
|
---|
[16568] | 6155 |
|
---|
| 6156 | fi
|
---|
| 6157 |
|
---|
[24901] | 6158 | echo "$as_me:$LINENO: checking for alloca" >&5
|
---|
| 6159 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6
|
---|
| 6160 | if test "${ac_cv_func_alloca_works+set}" = set; then
|
---|
| 6161 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 6162 | else
|
---|
[24901] | 6163 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6164 | /* confdefs.h. */
|
---|
| 6165 | _ACEOF
|
---|
| 6166 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6167 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6168 | /* end confdefs.h. */
|
---|
| 6169 | #ifdef __GNUC__
|
---|
| 6170 | # define alloca __builtin_alloca
|
---|
| 6171 | #else
|
---|
| 6172 | # ifdef _MSC_VER
|
---|
| 6173 | # include <malloc.h>
|
---|
| 6174 | # define alloca _alloca
|
---|
| 6175 | # else
|
---|
[24901] | 6176 | # if HAVE_ALLOCA_H
|
---|
[16568] | 6177 | # include <alloca.h>
|
---|
| 6178 | # else
|
---|
| 6179 | # ifdef _AIX
|
---|
| 6180 | #pragma alloca
|
---|
| 6181 | # else
|
---|
| 6182 | # ifndef alloca /* predefined by HP cc +Olibcalls */
|
---|
| 6183 | char *alloca ();
|
---|
| 6184 | # endif
|
---|
| 6185 | # endif
|
---|
| 6186 | # endif
|
---|
| 6187 | # endif
|
---|
| 6188 | #endif
|
---|
| 6189 |
|
---|
| 6190 | int
|
---|
| 6191 | main ()
|
---|
| 6192 | {
|
---|
| 6193 | char *p = (char *) alloca (1);
|
---|
| 6194 | ;
|
---|
| 6195 | return 0;
|
---|
| 6196 | }
|
---|
| 6197 | _ACEOF
|
---|
[24901] | 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
|
---|
[16568] | 6220 | ac_cv_func_alloca_works=yes
|
---|
| 6221 | else
|
---|
[24901] | 6222 | echo "$as_me: failed program was:" >&5
|
---|
| 6223 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6224 |
|
---|
| 6225 | ac_cv_func_alloca_works=no
|
---|
[16568] | 6226 | fi
|
---|
[24901] | 6227 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6228 | conftest$ac_exeext conftest.$ac_ext
|
---|
[16568] | 6229 | fi
|
---|
[24901] | 6230 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
|
---|
| 6231 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
|
---|
[16568] | 6232 |
|
---|
| 6233 | if test $ac_cv_func_alloca_works = yes; then
|
---|
| 6234 |
|
---|
[24901] | 6235 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6236 | #define HAVE_ALLOCA 1
|
---|
| 6237 | _ACEOF
|
---|
[16568] | 6238 |
|
---|
| 6239 | else
|
---|
| 6240 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions
|
---|
| 6241 | # that cause trouble. Some versions do not even contain alloca or
|
---|
| 6242 | # contain a buggy version. If you still want to use their alloca,
|
---|
| 6243 | # use ar to extract alloca.o from them instead of compiling alloca.c.
|
---|
| 6244 |
|
---|
[24901] | 6245 | ALLOCA=alloca.$ac_objext
|
---|
[16568] | 6246 |
|
---|
[24901] | 6247 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6248 | #define C_ALLOCA 1
|
---|
| 6249 | _ACEOF
|
---|
[16568] | 6250 |
|
---|
| 6251 |
|
---|
[24901] | 6252 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
|
---|
| 6253 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
|
---|
| 6254 | if test "${ac_cv_os_cray+set}" = set; then
|
---|
| 6255 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 6256 | else
|
---|
[24901] | 6257 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6258 | /* confdefs.h. */
|
---|
| 6259 | _ACEOF
|
---|
| 6260 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6261 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6262 | /* end confdefs.h. */
|
---|
[24901] | 6263 | #if defined(CRAY) && ! defined(CRAY2)
|
---|
[16568] | 6264 | webecray
|
---|
| 6265 | #else
|
---|
| 6266 | wenotbecray
|
---|
| 6267 | #endif
|
---|
| 6268 |
|
---|
| 6269 | _ACEOF
|
---|
| 6270 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 6271 | $EGREP "webecray" >/dev/null 2>&1; then
|
---|
[16568] | 6272 | ac_cv_os_cray=yes
|
---|
| 6273 | else
|
---|
| 6274 | ac_cv_os_cray=no
|
---|
| 6275 | fi
|
---|
| 6276 | rm -f conftest*
|
---|
| 6277 |
|
---|
| 6278 | fi
|
---|
[24901] | 6279 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
|
---|
| 6280 | echo "${ECHO_T}$ac_cv_os_cray" >&6
|
---|
[16568] | 6281 | if test $ac_cv_os_cray = yes; then
|
---|
| 6282 | for ac_func in _getb67 GETB67 getb67; do
|
---|
[24901] | 6283 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6284 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6285 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6286 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6287 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6288 | else
|
---|
| 6289 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6290 | /* confdefs.h. */
|
---|
| 6291 | _ACEOF
|
---|
| 6292 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6293 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6294 | /* end confdefs.h. */
|
---|
| 6295 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6296 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6297 | #define $ac_func innocuous_$ac_func
|
---|
[16568] | 6298 |
|
---|
[24901] | 6299 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6300 | which can conflict with char $ac_func (); below.
|
---|
| 6301 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6302 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6303 |
|
---|
| 6304 | #ifdef __STDC__
|
---|
| 6305 | # include <limits.h>
|
---|
| 6306 | #else
|
---|
| 6307 | # include <assert.h>
|
---|
| 6308 | #endif
|
---|
| 6309 |
|
---|
| 6310 | #undef $ac_func
|
---|
| 6311 |
|
---|
| 6312 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6313 | #ifdef __cplusplus
|
---|
| 6314 | extern "C"
|
---|
| 6315 | {
|
---|
| 6316 | #endif
|
---|
| 6317 | /* We use char because int might match the return type of a gcc2
|
---|
| 6318 | builtin and then its argument prototype would still apply. */
|
---|
| 6319 | char $ac_func ();
|
---|
| 6320 | /* The GNU C library defines this for functions which it implements
|
---|
| 6321 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6322 | something starting with __ and the normal name is an alias. */
|
---|
| 6323 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6324 | choke me
|
---|
| 6325 | #else
|
---|
| 6326 | char (*f) () = $ac_func;
|
---|
| 6327 | #endif
|
---|
| 6328 | #ifdef __cplusplus
|
---|
| 6329 | }
|
---|
| 6330 | #endif
|
---|
| 6331 |
|
---|
| 6332 | int
|
---|
| 6333 | main ()
|
---|
| 6334 | {
|
---|
| 6335 | return f != $ac_func;
|
---|
| 6336 | ;
|
---|
| 6337 | return 0;
|
---|
| 6338 | }
|
---|
| 6339 | _ACEOF
|
---|
| 6340 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6342 | (eval $ac_link) 2>conftest.er1
|
---|
| 6343 | ac_status=$?
|
---|
| 6344 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6345 | rm -f conftest.er1
|
---|
| 6346 | cat conftest.err >&5
|
---|
| 6347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6348 | (exit $ac_status); } &&
|
---|
| 6349 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6350 | || test ! -s conftest.err'
|
---|
| 6351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6352 | (eval $ac_try) 2>&5
|
---|
| 6353 | ac_status=$?
|
---|
| 6354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6355 | (exit $ac_status); }; } &&
|
---|
| 6356 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6358 | (eval $ac_try) 2>&5
|
---|
| 6359 | ac_status=$?
|
---|
| 6360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6361 | (exit $ac_status); }; }; then
|
---|
| 6362 | eval "$as_ac_var=yes"
|
---|
| 6363 | else
|
---|
| 6364 | echo "$as_me: failed program was:" >&5
|
---|
| 6365 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6366 |
|
---|
| 6367 | eval "$as_ac_var=no"
|
---|
| 6368 | fi
|
---|
| 6369 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6370 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6371 | fi
|
---|
| 6372 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6373 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6374 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6375 |
|
---|
[16568] | 6376 | cat >>confdefs.h <<_ACEOF
|
---|
| 6377 | #define CRAY_STACKSEG_END $ac_func
|
---|
| 6378 | _ACEOF
|
---|
| 6379 |
|
---|
| 6380 | break
|
---|
| 6381 | fi
|
---|
| 6382 |
|
---|
| 6383 | done
|
---|
| 6384 | fi
|
---|
| 6385 |
|
---|
[24901] | 6386 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
|
---|
| 6387 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
|
---|
| 6388 | if test "${ac_cv_c_stack_direction+set}" = set; then
|
---|
| 6389 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 6390 | else
|
---|
[24901] | 6391 | if test "$cross_compiling" = yes; then
|
---|
[16568] | 6392 | ac_cv_c_stack_direction=0
|
---|
| 6393 | else
|
---|
[24901] | 6394 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6395 | /* confdefs.h. */
|
---|
| 6396 | _ACEOF
|
---|
| 6397 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6398 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6399 | /* end confdefs.h. */
|
---|
| 6400 | int
|
---|
| 6401 | find_stack_direction ()
|
---|
| 6402 | {
|
---|
| 6403 | static char *addr = 0;
|
---|
| 6404 | auto char dummy;
|
---|
| 6405 | if (addr == 0)
|
---|
| 6406 | {
|
---|
| 6407 | addr = &dummy;
|
---|
| 6408 | return find_stack_direction ();
|
---|
| 6409 | }
|
---|
| 6410 | else
|
---|
| 6411 | return (&dummy > addr) ? 1 : -1;
|
---|
| 6412 | }
|
---|
| 6413 |
|
---|
| 6414 | int
|
---|
| 6415 | main ()
|
---|
| 6416 | {
|
---|
[24901] | 6417 | exit (find_stack_direction () < 0);
|
---|
[16568] | 6418 | }
|
---|
| 6419 | _ACEOF
|
---|
[24901] | 6420 | rm -f conftest$ac_exeext
|
---|
| 6421 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6422 | (eval $ac_link) 2>&5
|
---|
| 6423 | ac_status=$?
|
---|
| 6424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6425 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 6426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6427 | (eval $ac_try) 2>&5
|
---|
| 6428 | ac_status=$?
|
---|
| 6429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6430 | (exit $ac_status); }; }; then
|
---|
[16568] | 6431 | ac_cv_c_stack_direction=1
|
---|
| 6432 | else
|
---|
[24901] | 6433 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 6434 | echo "$as_me: failed program was:" >&5
|
---|
| 6435 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6436 |
|
---|
| 6437 | ( exit $ac_status )
|
---|
| 6438 | ac_cv_c_stack_direction=-1
|
---|
[16568] | 6439 | fi
|
---|
[24901] | 6440 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 6441 | fi
|
---|
[24901] | 6442 | fi
|
---|
| 6443 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
|
---|
| 6444 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
|
---|
[23356] | 6445 |
|
---|
[16568] | 6446 | cat >>confdefs.h <<_ACEOF
|
---|
| 6447 | #define STACK_DIRECTION $ac_cv_c_stack_direction
|
---|
| 6448 | _ACEOF
|
---|
| 6449 |
|
---|
| 6450 |
|
---|
| 6451 | fi
|
---|
| 6452 |
|
---|
| 6453 | if test $ac_cv_c_compiler_gnu = yes; then
|
---|
[24901] | 6454 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
|
---|
| 6455 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
|
---|
| 6456 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then
|
---|
| 6457 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 6458 | else
|
---|
| 6459 | ac_pattern="Autoconf.*'x'"
|
---|
[24901] | 6460 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6461 | /* confdefs.h. */
|
---|
| 6462 | _ACEOF
|
---|
| 6463 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6464 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6465 | /* end confdefs.h. */
|
---|
| 6466 | #include <sgtty.h>
|
---|
| 6467 | Autoconf TIOCGETP
|
---|
| 6468 | _ACEOF
|
---|
| 6469 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 6470 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[16568] | 6471 | ac_cv_prog_gcc_traditional=yes
|
---|
| 6472 | else
|
---|
| 6473 | ac_cv_prog_gcc_traditional=no
|
---|
| 6474 | fi
|
---|
| 6475 | rm -f conftest*
|
---|
| 6476 |
|
---|
| 6477 |
|
---|
| 6478 | if test $ac_cv_prog_gcc_traditional = no; then
|
---|
[24901] | 6479 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6480 | /* confdefs.h. */
|
---|
| 6481 | _ACEOF
|
---|
| 6482 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6483 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6484 | /* end confdefs.h. */
|
---|
| 6485 | #include <termio.h>
|
---|
| 6486 | Autoconf TCGETA
|
---|
| 6487 | _ACEOF
|
---|
| 6488 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
[24901] | 6489 | $EGREP "$ac_pattern" >/dev/null 2>&1; then
|
---|
[16568] | 6490 | ac_cv_prog_gcc_traditional=yes
|
---|
| 6491 | fi
|
---|
| 6492 | rm -f conftest*
|
---|
| 6493 |
|
---|
| 6494 | fi
|
---|
| 6495 | fi
|
---|
[24901] | 6496 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
|
---|
| 6497 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
|
---|
[16568] | 6498 | if test $ac_cv_prog_gcc_traditional = yes; then
|
---|
| 6499 | CC="$CC -traditional"
|
---|
| 6500 | fi
|
---|
| 6501 | fi
|
---|
| 6502 |
|
---|
[24901] | 6503 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5
|
---|
| 6504 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
|
---|
| 6505 | if test "${ac_cv_type_signal+set}" = set; then
|
---|
| 6506 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 6507 | else
|
---|
[24901] | 6508 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6509 | /* confdefs.h. */
|
---|
| 6510 | _ACEOF
|
---|
| 6511 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6512 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 6513 | /* end confdefs.h. */
|
---|
| 6514 | #include <sys/types.h>
|
---|
| 6515 | #include <signal.h>
|
---|
[24901] | 6516 | #ifdef signal
|
---|
| 6517 | # undef signal
|
---|
| 6518 | #endif
|
---|
| 6519 | #ifdef __cplusplus
|
---|
| 6520 | extern "C" void (*signal (int, void (*)(int)))(int);
|
---|
| 6521 | #else
|
---|
| 6522 | void (*signal ()) ();
|
---|
| 6523 | #endif
|
---|
[16568] | 6524 |
|
---|
| 6525 | int
|
---|
| 6526 | main ()
|
---|
| 6527 | {
|
---|
[24901] | 6528 | int i;
|
---|
[16568] | 6529 | ;
|
---|
| 6530 | return 0;
|
---|
| 6531 | }
|
---|
| 6532 | _ACEOF
|
---|
[24901] | 6533 | rm -f conftest.$ac_objext
|
---|
| 6534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 6535 | (eval $ac_compile) 2>conftest.er1
|
---|
| 6536 | ac_status=$?
|
---|
| 6537 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6538 | rm -f conftest.er1
|
---|
| 6539 | cat conftest.err >&5
|
---|
| 6540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6541 | (exit $ac_status); } &&
|
---|
| 6542 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6543 | || test ! -s conftest.err'
|
---|
| 6544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6545 | (eval $ac_try) 2>&5
|
---|
| 6546 | ac_status=$?
|
---|
| 6547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6548 | (exit $ac_status); }; } &&
|
---|
| 6549 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 6550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6551 | (eval $ac_try) 2>&5
|
---|
| 6552 | ac_status=$?
|
---|
| 6553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6554 | (exit $ac_status); }; }; then
|
---|
| 6555 | ac_cv_type_signal=void
|
---|
[23356] | 6556 | else
|
---|
[24901] | 6557 | echo "$as_me: failed program was:" >&5
|
---|
| 6558 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6559 |
|
---|
| 6560 | ac_cv_type_signal=int
|
---|
[16568] | 6561 | fi
|
---|
[24901] | 6562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 6563 | fi
|
---|
[24901] | 6564 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
|
---|
| 6565 | echo "${ECHO_T}$ac_cv_type_signal" >&6
|
---|
[16568] | 6566 |
|
---|
| 6567 | cat >>confdefs.h <<_ACEOF
|
---|
| 6568 | #define RETSIGTYPE $ac_cv_type_signal
|
---|
| 6569 | _ACEOF
|
---|
| 6570 |
|
---|
| 6571 |
|
---|
[24901] | 6572 |
|
---|
[16568] | 6573 | for ac_func in vprintf
|
---|
[24901] | 6574 | do
|
---|
| 6575 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6576 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6577 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6578 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6579 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6580 | else
|
---|
| 6581 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6582 | /* confdefs.h. */
|
---|
| 6583 | _ACEOF
|
---|
| 6584 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6585 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6586 | /* end confdefs.h. */
|
---|
| 6587 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6588 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6589 | #define $ac_func innocuous_$ac_func
|
---|
| 6590 |
|
---|
| 6591 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6592 | which can conflict with char $ac_func (); below.
|
---|
| 6593 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6594 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6595 |
|
---|
| 6596 | #ifdef __STDC__
|
---|
| 6597 | # include <limits.h>
|
---|
| 6598 | #else
|
---|
| 6599 | # include <assert.h>
|
---|
| 6600 | #endif
|
---|
| 6601 |
|
---|
| 6602 | #undef $ac_func
|
---|
| 6603 |
|
---|
| 6604 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6605 | #ifdef __cplusplus
|
---|
| 6606 | extern "C"
|
---|
| 6607 | {
|
---|
| 6608 | #endif
|
---|
| 6609 | /* We use char because int might match the return type of a gcc2
|
---|
| 6610 | builtin and then its argument prototype would still apply. */
|
---|
| 6611 | char $ac_func ();
|
---|
| 6612 | /* The GNU C library defines this for functions which it implements
|
---|
| 6613 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6614 | something starting with __ and the normal name is an alias. */
|
---|
| 6615 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6616 | choke me
|
---|
| 6617 | #else
|
---|
| 6618 | char (*f) () = $ac_func;
|
---|
| 6619 | #endif
|
---|
| 6620 | #ifdef __cplusplus
|
---|
| 6621 | }
|
---|
| 6622 | #endif
|
---|
| 6623 |
|
---|
| 6624 | int
|
---|
| 6625 | main ()
|
---|
| 6626 | {
|
---|
| 6627 | return f != $ac_func;
|
---|
| 6628 | ;
|
---|
| 6629 | return 0;
|
---|
| 6630 | }
|
---|
| 6631 | _ACEOF
|
---|
| 6632 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6634 | (eval $ac_link) 2>conftest.er1
|
---|
| 6635 | ac_status=$?
|
---|
| 6636 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6637 | rm -f conftest.er1
|
---|
| 6638 | cat conftest.err >&5
|
---|
| 6639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6640 | (exit $ac_status); } &&
|
---|
| 6641 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6642 | || test ! -s conftest.err'
|
---|
| 6643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6644 | (eval $ac_try) 2>&5
|
---|
| 6645 | ac_status=$?
|
---|
| 6646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6647 | (exit $ac_status); }; } &&
|
---|
| 6648 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6650 | (eval $ac_try) 2>&5
|
---|
| 6651 | ac_status=$?
|
---|
| 6652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6653 | (exit $ac_status); }; }; then
|
---|
| 6654 | eval "$as_ac_var=yes"
|
---|
| 6655 | else
|
---|
| 6656 | echo "$as_me: failed program was:" >&5
|
---|
| 6657 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6658 |
|
---|
| 6659 | eval "$as_ac_var=no"
|
---|
| 6660 | fi
|
---|
| 6661 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6662 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6663 | fi
|
---|
| 6664 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6665 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6666 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[16568] | 6667 | cat >>confdefs.h <<_ACEOF
|
---|
[24901] | 6668 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[16568] | 6669 | _ACEOF
|
---|
| 6670 |
|
---|
[24901] | 6671 | echo "$as_me:$LINENO: checking for _doprnt" >&5
|
---|
| 6672 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
|
---|
| 6673 | if test "${ac_cv_func__doprnt+set}" = set; then
|
---|
| 6674 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6675 | else
|
---|
| 6676 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6677 | /* confdefs.h. */
|
---|
| 6678 | _ACEOF
|
---|
| 6679 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6680 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6681 | /* end confdefs.h. */
|
---|
| 6682 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
|
---|
| 6683 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6684 | #define _doprnt innocuous__doprnt
|
---|
[16568] | 6685 |
|
---|
[24901] | 6686 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6687 | which can conflict with char _doprnt (); below.
|
---|
| 6688 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6689 | <limits.h> exists even on freestanding compilers. */
|
---|
[16568] | 6690 |
|
---|
[24901] | 6691 | #ifdef __STDC__
|
---|
| 6692 | # include <limits.h>
|
---|
| 6693 | #else
|
---|
| 6694 | # include <assert.h>
|
---|
| 6695 | #endif
|
---|
| 6696 |
|
---|
| 6697 | #undef _doprnt
|
---|
| 6698 |
|
---|
| 6699 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6700 | #ifdef __cplusplus
|
---|
| 6701 | extern "C"
|
---|
| 6702 | {
|
---|
| 6703 | #endif
|
---|
| 6704 | /* We use char because int might match the return type of a gcc2
|
---|
| 6705 | builtin and then its argument prototype would still apply. */
|
---|
| 6706 | char _doprnt ();
|
---|
| 6707 | /* The GNU C library defines this for functions which it implements
|
---|
| 6708 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6709 | something starting with __ and the normal name is an alias. */
|
---|
| 6710 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
|
---|
| 6711 | choke me
|
---|
| 6712 | #else
|
---|
| 6713 | char (*f) () = _doprnt;
|
---|
| 6714 | #endif
|
---|
| 6715 | #ifdef __cplusplus
|
---|
| 6716 | }
|
---|
| 6717 | #endif
|
---|
| 6718 |
|
---|
| 6719 | int
|
---|
| 6720 | main ()
|
---|
| 6721 | {
|
---|
| 6722 | return f != _doprnt;
|
---|
| 6723 | ;
|
---|
| 6724 | return 0;
|
---|
| 6725 | }
|
---|
| 6726 | _ACEOF
|
---|
| 6727 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6729 | (eval $ac_link) 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_c_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_exeext'
|
---|
| 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
|
---|
| 6749 | ac_cv_func__doprnt=yes
|
---|
| 6750 | else
|
---|
| 6751 | echo "$as_me: failed program was:" >&5
|
---|
| 6752 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6753 |
|
---|
| 6754 | ac_cv_func__doprnt=no
|
---|
[16568] | 6755 | fi
|
---|
[24901] | 6756 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6757 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6758 | fi
|
---|
| 6759 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
|
---|
| 6760 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6
|
---|
| 6761 | if test $ac_cv_func__doprnt = yes; then
|
---|
[16568] | 6762 |
|
---|
[24901] | 6763 | cat >>confdefs.h <<\_ACEOF
|
---|
| 6764 | #define HAVE_DOPRNT 1
|
---|
| 6765 | _ACEOF
|
---|
| 6766 |
|
---|
[16568] | 6767 | fi
|
---|
[24901] | 6768 |
|
---|
| 6769 | fi
|
---|
[16568] | 6770 | done
|
---|
| 6771 |
|
---|
| 6772 |
|
---|
[24901] | 6773 |
|
---|
| 6774 |
|
---|
| 6775 |
|
---|
| 6776 |
|
---|
| 6777 |
|
---|
| 6778 |
|
---|
| 6779 |
|
---|
| 6780 |
|
---|
| 6781 |
|
---|
| 6782 |
|
---|
[16568] | 6783 | for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize strerror
|
---|
[24901] | 6784 | do
|
---|
| 6785 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6786 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6787 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6788 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6789 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 6790 | else
|
---|
| 6791 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6792 | /* confdefs.h. */
|
---|
| 6793 | _ACEOF
|
---|
| 6794 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6795 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6796 | /* end confdefs.h. */
|
---|
| 6797 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6798 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6799 | #define $ac_func innocuous_$ac_func
|
---|
| 6800 |
|
---|
| 6801 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6802 | which can conflict with char $ac_func (); below.
|
---|
| 6803 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6804 | <limits.h> exists even on freestanding compilers. */
|
---|
| 6805 |
|
---|
| 6806 | #ifdef __STDC__
|
---|
| 6807 | # include <limits.h>
|
---|
| 6808 | #else
|
---|
| 6809 | # include <assert.h>
|
---|
| 6810 | #endif
|
---|
| 6811 |
|
---|
| 6812 | #undef $ac_func
|
---|
| 6813 |
|
---|
| 6814 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6815 | #ifdef __cplusplus
|
---|
| 6816 | extern "C"
|
---|
| 6817 | {
|
---|
| 6818 | #endif
|
---|
| 6819 | /* We use char because int might match the return type of a gcc2
|
---|
| 6820 | builtin and then its argument prototype would still apply. */
|
---|
| 6821 | char $ac_func ();
|
---|
| 6822 | /* The GNU C library defines this for functions which it implements
|
---|
| 6823 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6824 | something starting with __ and the normal name is an alias. */
|
---|
| 6825 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6826 | choke me
|
---|
| 6827 | #else
|
---|
| 6828 | char (*f) () = $ac_func;
|
---|
| 6829 | #endif
|
---|
| 6830 | #ifdef __cplusplus
|
---|
| 6831 | }
|
---|
| 6832 | #endif
|
---|
| 6833 |
|
---|
| 6834 | int
|
---|
| 6835 | main ()
|
---|
| 6836 | {
|
---|
| 6837 | return f != $ac_func;
|
---|
| 6838 | ;
|
---|
| 6839 | return 0;
|
---|
| 6840 | }
|
---|
| 6841 | _ACEOF
|
---|
| 6842 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6844 | (eval $ac_link) 2>conftest.er1
|
---|
| 6845 | ac_status=$?
|
---|
| 6846 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6847 | rm -f conftest.er1
|
---|
| 6848 | cat conftest.err >&5
|
---|
| 6849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6850 | (exit $ac_status); } &&
|
---|
| 6851 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6852 | || test ! -s conftest.err'
|
---|
| 6853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6854 | (eval $ac_try) 2>&5
|
---|
| 6855 | ac_status=$?
|
---|
| 6856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6857 | (exit $ac_status); }; } &&
|
---|
| 6858 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6860 | (eval $ac_try) 2>&5
|
---|
| 6861 | ac_status=$?
|
---|
| 6862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6863 | (exit $ac_status); }; }; then
|
---|
| 6864 | eval "$as_ac_var=yes"
|
---|
| 6865 | else
|
---|
| 6866 | echo "$as_me: failed program was:" >&5
|
---|
| 6867 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 6868 |
|
---|
| 6869 | eval "$as_ac_var=no"
|
---|
| 6870 | fi
|
---|
| 6871 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6872 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6873 | fi
|
---|
| 6874 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6875 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6876 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[16568] | 6877 | cat >>confdefs.h <<_ACEOF
|
---|
[24901] | 6878 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[16568] | 6879 | _ACEOF
|
---|
| 6880 |
|
---|
| 6881 | fi
|
---|
| 6882 | done
|
---|
| 6883 |
|
---|
| 6884 |
|
---|
[24901] | 6885 |
|
---|
| 6886 |
|
---|
| 6887 | for ac_func in ftruncate strstr strcasecmp
|
---|
| 6888 | do
|
---|
| 6889 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 6890 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 6891 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 6892 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 6893 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 6894 | else
|
---|
[24901] | 6895 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 6896 | /* confdefs.h. */
|
---|
| 6897 | _ACEOF
|
---|
| 6898 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 6899 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 6900 | /* end confdefs.h. */
|
---|
| 6901 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 6902 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 6903 | #define $ac_func innocuous_$ac_func
|
---|
[16568] | 6904 |
|
---|
[24901] | 6905 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 6906 | which can conflict with char $ac_func (); below.
|
---|
| 6907 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 6908 | <limits.h> exists even on freestanding compilers. */
|
---|
[16568] | 6909 |
|
---|
[24901] | 6910 | #ifdef __STDC__
|
---|
| 6911 | # include <limits.h>
|
---|
| 6912 | #else
|
---|
| 6913 | # include <assert.h>
|
---|
| 6914 | #endif
|
---|
[16568] | 6915 |
|
---|
[24901] | 6916 | #undef $ac_func
|
---|
| 6917 |
|
---|
| 6918 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 6919 | #ifdef __cplusplus
|
---|
| 6920 | extern "C"
|
---|
| 6921 | {
|
---|
| 6922 | #endif
|
---|
| 6923 | /* We use char because int might match the return type of a gcc2
|
---|
| 6924 | builtin and then its argument prototype would still apply. */
|
---|
| 6925 | char $ac_func ();
|
---|
| 6926 | /* The GNU C library defines this for functions which it implements
|
---|
| 6927 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 6928 | something starting with __ and the normal name is an alias. */
|
---|
| 6929 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 6930 | choke me
|
---|
| 6931 | #else
|
---|
| 6932 | char (*f) () = $ac_func;
|
---|
| 6933 | #endif
|
---|
| 6934 | #ifdef __cplusplus
|
---|
| 6935 | }
|
---|
| 6936 | #endif
|
---|
| 6937 |
|
---|
| 6938 | int
|
---|
| 6939 | main ()
|
---|
| 6940 | {
|
---|
| 6941 | return f != $ac_func;
|
---|
| 6942 | ;
|
---|
| 6943 | return 0;
|
---|
| 6944 | }
|
---|
| 6945 | _ACEOF
|
---|
| 6946 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 6947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 6948 | (eval $ac_link) 2>conftest.er1
|
---|
| 6949 | ac_status=$?
|
---|
| 6950 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 6951 | rm -f conftest.er1
|
---|
| 6952 | cat conftest.err >&5
|
---|
| 6953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6954 | (exit $ac_status); } &&
|
---|
| 6955 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 6956 | || test ! -s conftest.err'
|
---|
| 6957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6958 | (eval $ac_try) 2>&5
|
---|
| 6959 | ac_status=$?
|
---|
| 6960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6961 | (exit $ac_status); }; } &&
|
---|
| 6962 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 6963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 6964 | (eval $ac_try) 2>&5
|
---|
| 6965 | ac_status=$?
|
---|
| 6966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 6967 | (exit $ac_status); }; }; then
|
---|
| 6968 | eval "$as_ac_var=yes"
|
---|
[16568] | 6969 | else
|
---|
[24901] | 6970 | echo "$as_me: failed program was:" >&5
|
---|
| 6971 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[16568] | 6972 |
|
---|
[24901] | 6973 | eval "$as_ac_var=no"
|
---|
[16568] | 6974 | fi
|
---|
[24901] | 6975 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 6976 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 6977 | fi
|
---|
| 6978 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 6979 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 6980 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
| 6981 | cat >>confdefs.h <<_ACEOF
|
---|
| 6982 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
| 6983 | _ACEOF
|
---|
[16568] | 6984 |
|
---|
| 6985 | else
|
---|
[24901] | 6986 | case $LIBOBJS in
|
---|
| 6987 | "$ac_func.$ac_objext" | \
|
---|
| 6988 | *" $ac_func.$ac_objext" | \
|
---|
| 6989 | "$ac_func.$ac_objext "* | \
|
---|
| 6990 | *" $ac_func.$ac_objext "* ) ;;
|
---|
| 6991 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
[16568] | 6992 | esac
|
---|
| 6993 |
|
---|
| 6994 | fi
|
---|
[24901] | 6995 | done
|
---|
[16568] | 6996 |
|
---|
| 6997 |
|
---|
| 6998 |
|
---|
[24901] | 6999 | echo "$as_me:$LINENO: checking for textdomain" >&5
|
---|
| 7000 | echo $ECHO_N "checking for textdomain... $ECHO_C" >&6
|
---|
| 7001 | if test "${ac_cv_func_textdomain+set}" = set; then
|
---|
| 7002 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7003 | else
|
---|
| 7004 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7005 | /* confdefs.h. */
|
---|
| 7006 | _ACEOF
|
---|
| 7007 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7008 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7009 | /* end confdefs.h. */
|
---|
| 7010 | /* Define textdomain to an innocuous variant, in case <limits.h> declares textdomain.
|
---|
| 7011 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 7012 | #define textdomain innocuous_textdomain
|
---|
[16568] | 7013 |
|
---|
[24901] | 7014 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 7015 | which can conflict with char textdomain (); below.
|
---|
| 7016 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 7017 | <limits.h> exists even on freestanding compilers. */
|
---|
| 7018 |
|
---|
| 7019 | #ifdef __STDC__
|
---|
| 7020 | # include <limits.h>
|
---|
| 7021 | #else
|
---|
| 7022 | # include <assert.h>
|
---|
| 7023 | #endif
|
---|
| 7024 |
|
---|
| 7025 | #undef textdomain
|
---|
| 7026 |
|
---|
| 7027 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 7028 | #ifdef __cplusplus
|
---|
| 7029 | extern "C"
|
---|
| 7030 | {
|
---|
| 7031 | #endif
|
---|
| 7032 | /* We use char because int might match the return type of a gcc2
|
---|
| 7033 | builtin and then its argument prototype would still apply. */
|
---|
| 7034 | char textdomain ();
|
---|
| 7035 | /* The GNU C library defines this for functions which it implements
|
---|
| 7036 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 7037 | something starting with __ and the normal name is an alias. */
|
---|
| 7038 | #if defined (__stub_textdomain) || defined (__stub___textdomain)
|
---|
| 7039 | choke me
|
---|
| 7040 | #else
|
---|
| 7041 | char (*f) () = textdomain;
|
---|
| 7042 | #endif
|
---|
| 7043 | #ifdef __cplusplus
|
---|
| 7044 | }
|
---|
| 7045 | #endif
|
---|
| 7046 |
|
---|
| 7047 | int
|
---|
| 7048 | main ()
|
---|
| 7049 | {
|
---|
| 7050 | return f != textdomain;
|
---|
| 7051 | ;
|
---|
| 7052 | return 0;
|
---|
| 7053 | }
|
---|
| 7054 | _ACEOF
|
---|
| 7055 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 7056 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7057 | (eval $ac_link) 2>conftest.er1
|
---|
| 7058 | ac_status=$?
|
---|
| 7059 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7060 | rm -f conftest.er1
|
---|
| 7061 | cat conftest.err >&5
|
---|
| 7062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7063 | (exit $ac_status); } &&
|
---|
| 7064 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7065 | || test ! -s conftest.err'
|
---|
| 7066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7067 | (eval $ac_try) 2>&5
|
---|
| 7068 | ac_status=$?
|
---|
| 7069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7070 | (exit $ac_status); }; } &&
|
---|
| 7071 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 7072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7073 | (eval $ac_try) 2>&5
|
---|
| 7074 | ac_status=$?
|
---|
| 7075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7076 | (exit $ac_status); }; }; then
|
---|
| 7077 | ac_cv_func_textdomain=yes
|
---|
| 7078 | else
|
---|
| 7079 | echo "$as_me: failed program was:" >&5
|
---|
| 7080 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7081 |
|
---|
| 7082 | ac_cv_func_textdomain=no
|
---|
[16568] | 7083 | fi
|
---|
[24901] | 7084 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 7085 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 7086 | fi
|
---|
| 7087 | echo "$as_me:$LINENO: result: $ac_cv_func_textdomain" >&5
|
---|
| 7088 | echo "${ECHO_T}$ac_cv_func_textdomain" >&6
|
---|
| 7089 | if test $ac_cv_func_textdomain = yes; then
|
---|
| 7090 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7091 | #define ENABLE_NLS 1
|
---|
| 7092 | _ACEOF
|
---|
[16568] | 7093 |
|
---|
[24901] | 7094 | fi
|
---|
[16568] | 7095 |
|
---|
[24901] | 7096 |
|
---|
[16568] | 7097 | # *** Custom checking (based on GNU tar configure.in) ***
|
---|
| 7098 | # ---------------------------------------------------------------------------
|
---|
[24901] | 7099 | echo "$as_me:$LINENO: checking for HP-UX needing gmalloc" >&5
|
---|
| 7100 | echo $ECHO_N "checking for HP-UX needing gmalloc... $ECHO_C" >&6
|
---|
[16568] | 7101 | if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
|
---|
[24901] | 7102 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 7103 | echo "${ECHO_T}yes" >&6
|
---|
| 7104 | case $LIBOBJS in
|
---|
| 7105 | "gmalloc.$ac_objext" | \
|
---|
| 7106 | *" gmalloc.$ac_objext" | \
|
---|
| 7107 | "gmalloc.$ac_objext "* | \
|
---|
[16568] | 7108 | *" gmalloc.$ac_objext "* ) ;;
|
---|
[24901] | 7109 | *) LIBOBJS="$LIBOBJS gmalloc.$ac_objext" ;;
|
---|
[16568] | 7110 | esac
|
---|
| 7111 |
|
---|
[24901] | 7112 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7113 | #define HAVE_VALLOC 1
|
---|
| 7114 | _ACEOF
|
---|
[16568] | 7115 |
|
---|
| 7116 | else
|
---|
[24901] | 7117 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 7118 | echo "${ECHO_T}no" >&6
|
---|
| 7119 |
|
---|
| 7120 | for ac_func in valloc
|
---|
| 7121 | do
|
---|
| 7122 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
| 7123 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
| 7124 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
| 7125 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
| 7126 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7127 | else
|
---|
| 7128 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7129 | /* confdefs.h. */
|
---|
| 7130 | _ACEOF
|
---|
| 7131 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7132 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7133 | /* end confdefs.h. */
|
---|
| 7134 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
| 7135 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 7136 | #define $ac_func innocuous_$ac_func
|
---|
| 7137 |
|
---|
| 7138 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 7139 | which can conflict with char $ac_func (); below.
|
---|
| 7140 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 7141 | <limits.h> exists even on freestanding compilers. */
|
---|
| 7142 |
|
---|
| 7143 | #ifdef __STDC__
|
---|
| 7144 | # include <limits.h>
|
---|
| 7145 | #else
|
---|
| 7146 | # include <assert.h>
|
---|
| 7147 | #endif
|
---|
| 7148 |
|
---|
| 7149 | #undef $ac_func
|
---|
| 7150 |
|
---|
| 7151 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 7152 | #ifdef __cplusplus
|
---|
| 7153 | extern "C"
|
---|
| 7154 | {
|
---|
| 7155 | #endif
|
---|
| 7156 | /* We use char because int might match the return type of a gcc2
|
---|
| 7157 | builtin and then its argument prototype would still apply. */
|
---|
| 7158 | char $ac_func ();
|
---|
| 7159 | /* The GNU C library defines this for functions which it implements
|
---|
| 7160 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 7161 | something starting with __ and the normal name is an alias. */
|
---|
| 7162 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
| 7163 | choke me
|
---|
| 7164 | #else
|
---|
| 7165 | char (*f) () = $ac_func;
|
---|
| 7166 | #endif
|
---|
| 7167 | #ifdef __cplusplus
|
---|
| 7168 | }
|
---|
| 7169 | #endif
|
---|
| 7170 |
|
---|
| 7171 | int
|
---|
| 7172 | main ()
|
---|
| 7173 | {
|
---|
| 7174 | return f != $ac_func;
|
---|
| 7175 | ;
|
---|
| 7176 | return 0;
|
---|
| 7177 | }
|
---|
| 7178 | _ACEOF
|
---|
| 7179 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 7180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7181 | (eval $ac_link) 2>conftest.er1
|
---|
| 7182 | ac_status=$?
|
---|
| 7183 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7184 | rm -f conftest.er1
|
---|
| 7185 | cat conftest.err >&5
|
---|
| 7186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7187 | (exit $ac_status); } &&
|
---|
| 7188 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7189 | || test ! -s conftest.err'
|
---|
| 7190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7191 | (eval $ac_try) 2>&5
|
---|
| 7192 | ac_status=$?
|
---|
| 7193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7194 | (exit $ac_status); }; } &&
|
---|
| 7195 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 7196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7197 | (eval $ac_try) 2>&5
|
---|
| 7198 | ac_status=$?
|
---|
| 7199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7200 | (exit $ac_status); }; }; then
|
---|
| 7201 | eval "$as_ac_var=yes"
|
---|
| 7202 | else
|
---|
| 7203 | echo "$as_me: failed program was:" >&5
|
---|
| 7204 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7205 |
|
---|
| 7206 | eval "$as_ac_var=no"
|
---|
| 7207 | fi
|
---|
| 7208 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 7209 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 7210 | fi
|
---|
| 7211 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
| 7212 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
| 7213 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
[16568] | 7214 | cat >>confdefs.h <<_ACEOF
|
---|
[24901] | 7215 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
[16568] | 7216 | _ACEOF
|
---|
| 7217 |
|
---|
| 7218 | fi
|
---|
| 7219 | done
|
---|
| 7220 |
|
---|
| 7221 | fi
|
---|
| 7222 |
|
---|
| 7223 | # we cannot generate static libraries under Darwin
|
---|
[24901] | 7224 | echo "$as_me:$LINENO: checking for Apple MacOS X/Darwin" >&5
|
---|
| 7225 | echo $ECHO_N "checking for Apple MacOS X/Darwin... $ECHO_C" >&6
|
---|
[16568] | 7226 | if test "`(uname -s) 2> /dev/null`" = 'Darwin'; then
|
---|
[24901] | 7227 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 7228 | echo "${ECHO_T}yes" >&6
|
---|
[16568] | 7229 | STATIC=""
|
---|
| 7230 | else
|
---|
[24901] | 7231 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 7232 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 7233 | STATIC="-static "
|
---|
| 7234 | fi
|
---|
| 7235 |
|
---|
| 7236 |
|
---|
[24901] | 7237 | echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
|
---|
| 7238 | echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
|
---|
[16568] | 7239 |
|
---|
[24901] | 7240 | # Check whether --with-dmalloc or --without-dmalloc was given.
|
---|
| 7241 | if test "${with_dmalloc+set}" = set; then
|
---|
| 7242 | withval="$with_dmalloc"
|
---|
| 7243 | if test "$withval" = yes; then
|
---|
| 7244 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
| 7245 | echo "${ECHO_T}yes" >&6
|
---|
| 7246 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7247 | #define WITH_DMALLOC 1
|
---|
| 7248 | _ACEOF
|
---|
[16568] | 7249 |
|
---|
| 7250 | LIBS="$LIBS -ldmalloc"
|
---|
| 7251 | LDFLAGS="$LDFLAGS -g"
|
---|
| 7252 | else
|
---|
[24901] | 7253 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 7254 | echo "${ECHO_T}no" >&6
|
---|
[16568] | 7255 | fi
|
---|
| 7256 | else
|
---|
[24901] | 7257 | echo "$as_me:$LINENO: result: no" >&5
|
---|
| 7258 | echo "${ECHO_T}no" >&6
|
---|
| 7259 | fi;
|
---|
[16568] | 7260 |
|
---|
[24901] | 7261 | echo "$as_me:$LINENO: checking which of rx or regex is wanted" >&5
|
---|
| 7262 | echo $ECHO_N "checking which of rx or regex is wanted... $ECHO_C" >&6
|
---|
[16568] | 7263 |
|
---|
[24901] | 7264 | # Check whether --with-regex or --without-regex was given.
|
---|
| 7265 | if test "${with_regex+set}" = set; then
|
---|
| 7266 | withval="$with_regex"
|
---|
| 7267 | if test "$withval" = yes; then
|
---|
[16568] | 7268 | ac_with_regex=1
|
---|
[24901] | 7269 | echo "$as_me:$LINENO: result: regex" >&5
|
---|
| 7270 | echo "${ECHO_T}regex" >&6
|
---|
| 7271 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7272 | #define WITH_REGEX 1
|
---|
| 7273 | _ACEOF
|
---|
[16568] | 7274 |
|
---|
[24901] | 7275 | case $LIBOBJS in
|
---|
| 7276 | "regex.$ac_objext" | \
|
---|
| 7277 | *" regex.$ac_objext" | \
|
---|
| 7278 | "regex.$ac_objext "* | \
|
---|
[16568] | 7279 | *" regex.$ac_objext "* ) ;;
|
---|
[24901] | 7280 | *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
|
---|
[16568] | 7281 | esac
|
---|
| 7282 |
|
---|
| 7283 | fi
|
---|
[24901] | 7284 | fi;
|
---|
[16568] | 7285 | if test -z "$ac_with_regex"; then
|
---|
[24901] | 7286 | echo "$as_me:$LINENO: result: rx" >&5
|
---|
| 7287 | echo "${ECHO_T}rx" >&6
|
---|
| 7288 | echo "$as_me:$LINENO: checking for re_rx_search" >&5
|
---|
| 7289 | echo $ECHO_N "checking for re_rx_search... $ECHO_C" >&6
|
---|
| 7290 | if test "${ac_cv_func_re_rx_search+set}" = set; then
|
---|
| 7291 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
| 7292 | else
|
---|
| 7293 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7294 | /* confdefs.h. */
|
---|
| 7295 | _ACEOF
|
---|
| 7296 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7297 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
| 7298 | /* end confdefs.h. */
|
---|
| 7299 | /* Define re_rx_search to an innocuous variant, in case <limits.h> declares re_rx_search.
|
---|
| 7300 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
| 7301 | #define re_rx_search innocuous_re_rx_search
|
---|
[16568] | 7302 |
|
---|
[24901] | 7303 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
| 7304 | which can conflict with char re_rx_search (); below.
|
---|
| 7305 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
| 7306 | <limits.h> exists even on freestanding compilers. */
|
---|
| 7307 |
|
---|
| 7308 | #ifdef __STDC__
|
---|
| 7309 | # include <limits.h>
|
---|
| 7310 | #else
|
---|
| 7311 | # include <assert.h>
|
---|
| 7312 | #endif
|
---|
| 7313 |
|
---|
| 7314 | #undef re_rx_search
|
---|
| 7315 |
|
---|
| 7316 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
| 7317 | #ifdef __cplusplus
|
---|
| 7318 | extern "C"
|
---|
| 7319 | {
|
---|
| 7320 | #endif
|
---|
| 7321 | /* We use char because int might match the return type of a gcc2
|
---|
| 7322 | builtin and then its argument prototype would still apply. */
|
---|
| 7323 | char re_rx_search ();
|
---|
| 7324 | /* The GNU C library defines this for functions which it implements
|
---|
| 7325 | to always fail with ENOSYS. Some functions are actually named
|
---|
| 7326 | something starting with __ and the normal name is an alias. */
|
---|
| 7327 | #if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
|
---|
| 7328 | choke me
|
---|
| 7329 | #else
|
---|
| 7330 | char (*f) () = re_rx_search;
|
---|
| 7331 | #endif
|
---|
| 7332 | #ifdef __cplusplus
|
---|
| 7333 | }
|
---|
| 7334 | #endif
|
---|
| 7335 |
|
---|
| 7336 | int
|
---|
| 7337 | main ()
|
---|
| 7338 | {
|
---|
| 7339 | return f != re_rx_search;
|
---|
| 7340 | ;
|
---|
| 7341 | return 0;
|
---|
| 7342 | }
|
---|
| 7343 | _ACEOF
|
---|
| 7344 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
| 7345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7346 | (eval $ac_link) 2>conftest.er1
|
---|
| 7347 | ac_status=$?
|
---|
| 7348 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7349 | rm -f conftest.er1
|
---|
| 7350 | cat conftest.err >&5
|
---|
| 7351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7352 | (exit $ac_status); } &&
|
---|
| 7353 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
| 7354 | || test ! -s conftest.err'
|
---|
| 7355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7356 | (eval $ac_try) 2>&5
|
---|
| 7357 | ac_status=$?
|
---|
| 7358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7359 | (exit $ac_status); }; } &&
|
---|
| 7360 | { ac_try='test -s conftest$ac_exeext'
|
---|
| 7361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7362 | (eval $ac_try) 2>&5
|
---|
| 7363 | ac_status=$?
|
---|
| 7364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7365 | (exit $ac_status); }; }; then
|
---|
| 7366 | ac_cv_func_re_rx_search=yes
|
---|
[16568] | 7367 | else
|
---|
[24901] | 7368 | echo "$as_me: failed program was:" >&5
|
---|
| 7369 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7370 |
|
---|
| 7371 | ac_cv_func_re_rx_search=no
|
---|
| 7372 | fi
|
---|
| 7373 | rm -f conftest.err conftest.$ac_objext \
|
---|
| 7374 | conftest$ac_exeext conftest.$ac_ext
|
---|
| 7375 | fi
|
---|
| 7376 | echo "$as_me:$LINENO: result: $ac_cv_func_re_rx_search" >&5
|
---|
| 7377 | echo "${ECHO_T}$ac_cv_func_re_rx_search" >&6
|
---|
| 7378 | if test $ac_cv_func_re_rx_search = yes; then
|
---|
| 7379 | :
|
---|
| 7380 | else
|
---|
| 7381 | case $LIBOBJS in
|
---|
| 7382 | "rx.$ac_objext" | \
|
---|
| 7383 | *" rx.$ac_objext" | \
|
---|
| 7384 | "rx.$ac_objext "* | \
|
---|
[16568] | 7385 | *" rx.$ac_objext "* ) ;;
|
---|
[24901] | 7386 | *) LIBOBJS="$LIBOBJS rx.$ac_objext" ;;
|
---|
[16568] | 7387 | esac
|
---|
| 7388 |
|
---|
| 7389 | fi
|
---|
| 7390 |
|
---|
| 7391 | fi
|
---|
| 7392 |
|
---|
| 7393 |
|
---|
| 7394 | # ---------------------------------------------------------------------------
|
---|
| 7395 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[24901] | 7396 | case $LIBOBJS in
|
---|
| 7397 | "xmalloc.$ac_objext" | \
|
---|
| 7398 | *" xmalloc.$ac_objext" | \
|
---|
| 7399 | "xmalloc.$ac_objext "* | \
|
---|
[16568] | 7400 | *" xmalloc.$ac_objext "* ) ;;
|
---|
[24901] | 7401 | *) LIBOBJS="$LIBOBJS xmalloc.$ac_objext" ;;
|
---|
[16568] | 7402 | esac
|
---|
| 7403 |
|
---|
[24901] | 7404 | case $LIBOBJS in
|
---|
| 7405 | "error.$ac_objext" | \
|
---|
| 7406 | *" error.$ac_objext" | \
|
---|
| 7407 | "error.$ac_objext "* | \
|
---|
[16568] | 7408 | *" error.$ac_objext "* ) ;;
|
---|
[24901] | 7409 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
[16568] | 7410 | esac
|
---|
| 7411 |
|
---|
| 7412 | fi
|
---|
| 7413 |
|
---|
| 7414 |
|
---|
| 7415 | # ---------------------------------------------------------------------------
|
---|
| 7416 |
|
---|
[24901] | 7417 | ac_ext=cc
|
---|
[16568] | 7418 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
| 7419 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
| 7420 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
| 7421 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
| 7422 |
|
---|
| 7423 |
|
---|
[24901] | 7424 | echo "$as_me:$LINENO: checking that Perl 5 is available" >&5
|
---|
| 7425 | echo $ECHO_N "checking that Perl 5 is available... $ECHO_C" >&6
|
---|
[16568] | 7426 | success="no"
|
---|
| 7427 | pl_path="$PATH"
|
---|
| 7428 | IFS="${IFS= }"; pl_save_ifs="$IFS"; IFS=":"
|
---|
| 7429 | for pl_dir in $pl_path; do
|
---|
| 7430 | test -z "$pl_dir" && pl_dir=.
|
---|
| 7431 | if test -x $pl_dir/perl; then
|
---|
| 7432 | success="yes"
|
---|
| 7433 | break
|
---|
| 7434 | fi
|
---|
| 7435 | done
|
---|
| 7436 | IFS="$pl_save_ifs"
|
---|
| 7437 |
|
---|
| 7438 | success=no
|
---|
[24901] | 7439 | echo "$as_me:$LINENO: checking \"whether STL library has known faults\"" >&5
|
---|
| 7440 | echo $ECHO_N "checking \"whether STL library has known faults\"... $ECHO_C" >&6
|
---|
[16568] | 7441 |
|
---|
[18214] | 7442 |
|
---|
[24901] | 7443 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7444 | /* confdefs.h. */
|
---|
| 7445 | _ACEOF
|
---|
| 7446 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7447 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 7448 | /* end confdefs.h. */
|
---|
| 7449 | #include <vector>
|
---|
| 7450 |
|
---|
| 7451 | int
|
---|
| 7452 | main ()
|
---|
| 7453 | {
|
---|
| 7454 |
|
---|
| 7455 | ;
|
---|
| 7456 | return 0;
|
---|
| 7457 | }
|
---|
| 7458 | _ACEOF
|
---|
[24901] | 7459 | rm -f conftest.$ac_objext
|
---|
| 7460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7461 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7462 | ac_status=$?
|
---|
| 7463 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7464 | rm -f conftest.er1
|
---|
| 7465 | cat conftest.err >&5
|
---|
| 7466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7467 | (exit $ac_status); } &&
|
---|
| 7468 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7469 | || test ! -s conftest.err'
|
---|
| 7470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7471 | (eval $ac_try) 2>&5
|
---|
| 7472 | ac_status=$?
|
---|
| 7473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7474 | (exit $ac_status); }; } &&
|
---|
| 7475 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7477 | (eval $ac_try) 2>&5
|
---|
| 7478 | ac_status=$?
|
---|
| 7479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7480 | (exit $ac_status); }; }; then
|
---|
[16568] | 7481 | success=yes
|
---|
[24901] | 7482 | else
|
---|
| 7483 | echo "$as_me: failed program was:" >&5
|
---|
| 7484 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7485 |
|
---|
[16568] | 7486 | fi
|
---|
[24901] | 7487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 7488 |
|
---|
| 7489 | if test $success = "no"; then
|
---|
[24901] | 7490 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7491 | /* confdefs.h. */
|
---|
| 7492 | _ACEOF
|
---|
| 7493 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7494 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 7495 | /* end confdefs.h. */
|
---|
| 7496 | #include <vector.h>
|
---|
| 7497 |
|
---|
| 7498 | int
|
---|
| 7499 | main ()
|
---|
| 7500 | {
|
---|
| 7501 |
|
---|
| 7502 | ;
|
---|
| 7503 | return 0;
|
---|
| 7504 | }
|
---|
| 7505 | _ACEOF
|
---|
[24901] | 7506 | rm -f conftest.$ac_objext
|
---|
| 7507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7508 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7509 | ac_status=$?
|
---|
| 7510 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7511 | rm -f conftest.er1
|
---|
| 7512 | cat conftest.err >&5
|
---|
| 7513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7514 | (exit $ac_status); } &&
|
---|
| 7515 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7516 | || test ! -s conftest.err'
|
---|
| 7517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7518 | (eval $ac_try) 2>&5
|
---|
| 7519 | ac_status=$?
|
---|
| 7520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7521 | (exit $ac_status); }; } &&
|
---|
| 7522 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7524 | (eval $ac_try) 2>&5
|
---|
| 7525 | ac_status=$?
|
---|
| 7526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7527 | (exit $ac_status); }; }; then
|
---|
[16568] | 7528 | success="yes"
|
---|
[24901] | 7529 | else
|
---|
| 7530 | echo "$as_me: failed program was:" >&5
|
---|
| 7531 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7532 |
|
---|
[16568] | 7533 | fi
|
---|
[24901] | 7534 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 7535 | fi
|
---|
| 7536 |
|
---|
| 7537 | if test $success = "no"; then
|
---|
[24901] | 7538 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7539 | /* confdefs.h. */
|
---|
| 7540 | _ACEOF
|
---|
| 7541 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7542 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 7543 | /* end confdefs.h. */
|
---|
| 7544 | #include <ospace\\std\\vector>
|
---|
| 7545 |
|
---|
| 7546 | int
|
---|
| 7547 | main ()
|
---|
| 7548 | {
|
---|
| 7549 |
|
---|
| 7550 | ;
|
---|
| 7551 | return 0;
|
---|
| 7552 | }
|
---|
| 7553 | _ACEOF
|
---|
[24901] | 7554 | rm -f conftest.$ac_objext
|
---|
| 7555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7556 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7557 | ac_status=$?
|
---|
| 7558 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7559 | rm -f conftest.er1
|
---|
| 7560 | cat conftest.err >&5
|
---|
| 7561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7562 | (exit $ac_status); } &&
|
---|
| 7563 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7564 | || test ! -s conftest.err'
|
---|
| 7565 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7566 | (eval $ac_try) 2>&5
|
---|
| 7567 | ac_status=$?
|
---|
| 7568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7569 | (exit $ac_status); }; } &&
|
---|
| 7570 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7572 | (eval $ac_try) 2>&5
|
---|
| 7573 | ac_status=$?
|
---|
| 7574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7575 | (exit $ac_status); }; }; then
|
---|
[16568] | 7576 | success="yes"
|
---|
[24901] | 7577 | else
|
---|
| 7578 | echo "$as_me: failed program was:" >&5
|
---|
| 7579 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7580 |
|
---|
[16568] | 7581 | fi
|
---|
[24901] | 7582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 7583 | fi
|
---|
| 7584 |
|
---|
| 7585 | if test $success = yes; then
|
---|
[24901] | 7586 | echo "$as_me:$LINENO: result: \"no\"" >&5
|
---|
| 7587 | echo "${ECHO_T}\"no\"" >&6
|
---|
[16568] | 7588 | else
|
---|
[24901] | 7589 | echo "$as_me:$LINENO: result: \"yes\"" >&5
|
---|
| 7590 | echo "${ECHO_T}\"yes\"" >&6
|
---|
| 7591 | { { echo "$as_me:$LINENO: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&5
|
---|
| 7592 | echo "$as_me: error: \"STL Broken - Obtain newer version of GNU C Compiler\"" >&2;}
|
---|
| 7593 | { (exit 1); exit 1; }; }
|
---|
[16568] | 7594 | fi
|
---|
| 7595 |
|
---|
| 7596 | gsdlos=`uname | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
|
---|
| 7597 | # check for running bash under cygwin
|
---|
| 7598 | if test "`echo $gsdlos | sed 's/cygwin//'`" != "$gsdlos" ;
|
---|
| 7599 | then
|
---|
| 7600 | gsdlos=windows
|
---|
| 7601 | fi
|
---|
| 7602 |
|
---|
| 7603 |
|
---|
[24901] | 7604 | # Make gsdlarch empty if the OS bit value (32 or 64) is not used in naming
|
---|
| 7605 | # directories already or if runtime-src is compiled up on its own.
|
---|
| 7606 | # E.g. 32/64 bit won't be used in the SVN version if only bin/linux exists.
|
---|
| 7607 | if test -d "../bin/$gsdlos" -o ! -f "../setup.bash" ; then
|
---|
| 7608 | gsdlarch=""
|
---|
| 7609 | fi
|
---|
| 7610 |
|
---|
| 7611 |
|
---|
[16568] | 7612 | # check for endianness
|
---|
[24901] | 7613 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
| 7614 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
| 7615 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
| 7616 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
[16568] | 7617 | else
|
---|
[24901] | 7618 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
| 7619 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7620 | /* confdefs.h. */
|
---|
[16568] | 7621 | _ACEOF
|
---|
[24901] | 7622 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7623 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 7624 | /* end confdefs.h. */
|
---|
| 7625 | #include <sys/types.h>
|
---|
[24901] | 7626 | #include <sys/param.h>
|
---|
[16568] | 7627 |
|
---|
| 7628 | int
|
---|
| 7629 | main ()
|
---|
| 7630 | {
|
---|
[24901] | 7631 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
| 7632 | bogus endian macros
|
---|
| 7633 | #endif
|
---|
[16568] | 7634 |
|
---|
| 7635 | ;
|
---|
| 7636 | return 0;
|
---|
| 7637 | }
|
---|
| 7638 | _ACEOF
|
---|
[24901] | 7639 | rm -f conftest.$ac_objext
|
---|
| 7640 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7641 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7642 | ac_status=$?
|
---|
| 7643 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7644 | rm -f conftest.er1
|
---|
| 7645 | cat conftest.err >&5
|
---|
| 7646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7647 | (exit $ac_status); } &&
|
---|
| 7648 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7649 | || test ! -s conftest.err'
|
---|
| 7650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7651 | (eval $ac_try) 2>&5
|
---|
| 7652 | ac_status=$?
|
---|
| 7653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7654 | (exit $ac_status); }; } &&
|
---|
| 7655 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7657 | (eval $ac_try) 2>&5
|
---|
| 7658 | ac_status=$?
|
---|
| 7659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7660 | (exit $ac_status); }; }; then
|
---|
[16568] | 7661 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
[24901] | 7662 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7663 | /* confdefs.h. */
|
---|
| 7664 | _ACEOF
|
---|
| 7665 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7666 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 7667 | /* end confdefs.h. */
|
---|
| 7668 | #include <sys/types.h>
|
---|
[24901] | 7669 | #include <sys/param.h>
|
---|
[16568] | 7670 |
|
---|
| 7671 | int
|
---|
| 7672 | main ()
|
---|
| 7673 | {
|
---|
| 7674 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
[24901] | 7675 | not big endian
|
---|
| 7676 | #endif
|
---|
[16568] | 7677 |
|
---|
| 7678 | ;
|
---|
| 7679 | return 0;
|
---|
| 7680 | }
|
---|
| 7681 | _ACEOF
|
---|
[24901] | 7682 | rm -f conftest.$ac_objext
|
---|
| 7683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7684 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7685 | ac_status=$?
|
---|
| 7686 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7687 | rm -f conftest.er1
|
---|
| 7688 | cat conftest.err >&5
|
---|
| 7689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7690 | (exit $ac_status); } &&
|
---|
| 7691 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7692 | || test ! -s conftest.err'
|
---|
| 7693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7694 | (eval $ac_try) 2>&5
|
---|
| 7695 | ac_status=$?
|
---|
| 7696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7697 | (exit $ac_status); }; } &&
|
---|
| 7698 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7700 | (eval $ac_try) 2>&5
|
---|
| 7701 | ac_status=$?
|
---|
| 7702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7703 | (exit $ac_status); }; }; then
|
---|
[16568] | 7704 | ac_cv_c_bigendian=yes
|
---|
| 7705 | else
|
---|
[24901] | 7706 | echo "$as_me: failed program was:" >&5
|
---|
| 7707 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7708 |
|
---|
| 7709 | ac_cv_c_bigendian=no
|
---|
[16568] | 7710 | fi
|
---|
[24901] | 7711 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7712 | else
|
---|
| 7713 | echo "$as_me: failed program was:" >&5
|
---|
| 7714 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[16568] | 7715 |
|
---|
[24901] | 7716 | # It does not; compile a test program.
|
---|
| 7717 | if test "$cross_compiling" = yes; then
|
---|
| 7718 | # try to guess the endianness by grepping values into an object file
|
---|
| 7719 | ac_cv_c_bigendian=unknown
|
---|
| 7720 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7721 | /* confdefs.h. */
|
---|
[16568] | 7722 | _ACEOF
|
---|
[24901] | 7723 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7724 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 7725 | /* end confdefs.h. */
|
---|
[24901] | 7726 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
| 7727 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
| 7728 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
| 7729 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
| 7730 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
| 7731 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
[16568] | 7732 | int
|
---|
| 7733 | main ()
|
---|
| 7734 | {
|
---|
[24901] | 7735 | _ascii (); _ebcdic ();
|
---|
[16568] | 7736 | ;
|
---|
| 7737 | return 0;
|
---|
| 7738 | }
|
---|
| 7739 | _ACEOF
|
---|
[24901] | 7740 | rm -f conftest.$ac_objext
|
---|
| 7741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
| 7742 | (eval $ac_compile) 2>conftest.er1
|
---|
| 7743 | ac_status=$?
|
---|
| 7744 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
| 7745 | rm -f conftest.er1
|
---|
| 7746 | cat conftest.err >&5
|
---|
| 7747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7748 | (exit $ac_status); } &&
|
---|
| 7749 | { ac_try='test -z "$ac_cxx_werror_flag"
|
---|
| 7750 | || test ! -s conftest.err'
|
---|
| 7751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7752 | (eval $ac_try) 2>&5
|
---|
| 7753 | ac_status=$?
|
---|
| 7754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7755 | (exit $ac_status); }; } &&
|
---|
| 7756 | { ac_try='test -s conftest.$ac_objext'
|
---|
| 7757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7758 | (eval $ac_try) 2>&5
|
---|
| 7759 | ac_status=$?
|
---|
| 7760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7761 | (exit $ac_status); }; }; then
|
---|
| 7762 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
[16568] | 7763 | ac_cv_c_bigendian=yes
|
---|
| 7764 | fi
|
---|
[24901] | 7765 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
| 7766 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
| 7767 | ac_cv_c_bigendian=no
|
---|
| 7768 | else
|
---|
| 7769 | # finding both strings is unlikely to happen, but who knows?
|
---|
| 7770 | ac_cv_c_bigendian=unknown
|
---|
| 7771 | fi
|
---|
[16568] | 7772 | fi
|
---|
[24901] | 7773 | else
|
---|
| 7774 | echo "$as_me: failed program was:" >&5
|
---|
| 7775 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
[16568] | 7776 |
|
---|
| 7777 | fi
|
---|
[24901] | 7778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 7779 | else
|
---|
[24901] | 7780 | cat >conftest.$ac_ext <<_ACEOF
|
---|
| 7781 | /* confdefs.h. */
|
---|
| 7782 | _ACEOF
|
---|
| 7783 | cat confdefs.h >>conftest.$ac_ext
|
---|
| 7784 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
[16568] | 7785 | /* end confdefs.h. */
|
---|
| 7786 | int
|
---|
| 7787 | main ()
|
---|
| 7788 | {
|
---|
[24901] | 7789 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
| 7790 | union
|
---|
| 7791 | {
|
---|
| 7792 | long l;
|
---|
| 7793 | char c[sizeof (long)];
|
---|
| 7794 | } u;
|
---|
| 7795 | u.l = 1;
|
---|
| 7796 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
[16568] | 7797 | }
|
---|
| 7798 | _ACEOF
|
---|
[24901] | 7799 | rm -f conftest$ac_exeext
|
---|
| 7800 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
| 7801 | (eval $ac_link) 2>&5
|
---|
| 7802 | ac_status=$?
|
---|
| 7803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7804 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
| 7805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
| 7806 | (eval $ac_try) 2>&5
|
---|
| 7807 | ac_status=$?
|
---|
| 7808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
| 7809 | (exit $ac_status); }; }; then
|
---|
[16568] | 7810 | ac_cv_c_bigendian=no
|
---|
| 7811 | else
|
---|
[24901] | 7812 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
| 7813 | echo "$as_me: failed program was:" >&5
|
---|
| 7814 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
| 7815 |
|
---|
| 7816 | ( exit $ac_status )
|
---|
| 7817 | ac_cv_c_bigendian=yes
|
---|
[16568] | 7818 | fi
|
---|
[24901] | 7819 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
[16568] | 7820 | fi
|
---|
| 7821 | fi
|
---|
[24901] | 7822 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
| 7823 | fi
|
---|
| 7824 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
| 7825 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
| 7826 | case $ac_cv_c_bigendian in
|
---|
| 7827 | yes)
|
---|
[16568] | 7828 |
|
---|
[24901] | 7829 | cat >>confdefs.h <<\_ACEOF
|
---|
| 7830 | #define WORDS_BIGENDIAN 1
|
---|
| 7831 | _ACEOF
|
---|
| 7832 | ;;
|
---|
| 7833 | no)
|
---|
| 7834 | ;;
|
---|
| 7835 | *)
|
---|
| 7836 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
| 7837 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
| 7838 | echo "$as_me: error: unknown endianness
|
---|
| 7839 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
| 7840 | { (exit 1); exit 1; }; } ;;
|
---|
| 7841 | esac
|
---|
[16568] | 7842 |
|
---|
| 7843 | # ---------------------------------------------------------------------------
|
---|
| 7844 | if test "$ac_cv_func_alloca" = 'no'; then
|
---|
[24901] | 7845 | case $LIBOBJS in
|
---|
| 7846 | "xmalloc.o.$ac_objext" | \
|
---|
| 7847 | *" xmalloc.o.$ac_objext" | \
|
---|
| 7848 | "xmalloc.o.$ac_objext "* | \
|
---|
[16568] | 7849 | *" xmalloc.o.$ac_objext "* ) ;;
|
---|
[24901] | 7850 | *) LIBOBJS="$LIBOBJS xmalloc.o.$ac_objext" ;;
|
---|
[16568] | 7851 | esac
|
---|
| 7852 |
|
---|
[24901] | 7853 | case $LIBOBJS in
|
---|
| 7854 | "error.$ac_objext" | \
|
---|
| 7855 | *" error.$ac_objext" | \
|
---|
| 7856 | "error.$ac_objext "* | \
|
---|
[16568] | 7857 | *" error.$ac_objext "* ) ;;
|
---|
[24901] | 7858 | *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
|
---|
[16568] | 7859 | esac
|
---|
| 7860 |
|
---|
| 7861 | fi
|
---|
| 7862 |
|
---|
| 7863 | # ---------------------------------------------------------------------------
|
---|
| 7864 |
|
---|
| 7865 |
|
---|
| 7866 | moduleDirs=""
|
---|
| 7867 | MODULEDIRS=""
|
---|
[19825] | 7868 | if test -d modules ; then
|
---|
[16568] | 7869 | for x in `find modules -mindepth 1 -maxdepth 2`; do
|
---|
| 7870 | if test -d "$x"; then
|
---|
| 7871 | d="$x/Makefile.in"
|
---|
| 7872 | if test -e "$d"; then
|
---|
| 7873 | moduleDirs="$moduleDirs $x/Makefile"
|
---|
| 7874 | MODULEDIRS="$MODULEDIRS $x"
|
---|
| 7875 | fi
|
---|
| 7876 | fi
|
---|
| 7877 | done
|
---|
| 7878 | echo "Making $moduleDirs in modules directory"
|
---|
| 7879 |
|
---|
| 7880 | fi
|
---|
| 7881 |
|
---|
| 7882 |
|
---|
[20854] | 7883 |
|
---|
| 7884 |
|
---|
[16568] | 7885 | subdirs="$subdirs packages"
|
---|
| 7886 |
|
---|
| 7887 |
|
---|
| 7888 | # the list of folders in the src folder
|
---|
| 7889 | srclist="src/colservr/Makefile \
|
---|
| 7890 | src/corba/Makefile \
|
---|
| 7891 | src/protocol/Makefile \
|
---|
| 7892 | src/recpt/Makefile \
|
---|
| 7893 | src/oaiservr/Makefile \
|
---|
[23356] | 7894 | src/z3950/Makefile \
|
---|
[24901] | 7895 | src/java/org/nzdl/gsdl/GsdlCollageApplet/Makefile \
|
---|
| 7896 | src/java/org/nzdl/gsdl/Phind/Makefile"
|
---|
[16568] | 7897 |
|
---|
[24901] | 7898 | ac_config_files="$ac_config_files packages/Makefile Makefile $srclist $moduleDirs"
|
---|
[16568] | 7899 | cat >confcache <<\_ACEOF
|
---|
| 7900 | # This file is a shell script that caches the results of configure
|
---|
| 7901 | # tests run on this system so they can be shared between configure
|
---|
| 7902 | # scripts and configure runs, see configure's option --config-cache.
|
---|
| 7903 | # It is not useful on other systems. If it contains results you don't
|
---|
| 7904 | # want to keep, you may remove or edit it.
|
---|
| 7905 | #
|
---|
| 7906 | # config.status only pays attention to the cache file if you give it
|
---|
| 7907 | # the --recheck option to rerun configure.
|
---|
| 7908 | #
|
---|
| 7909 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
| 7910 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
| 7911 | # following values.
|
---|
| 7912 |
|
---|
| 7913 | _ACEOF
|
---|
| 7914 |
|
---|
| 7915 | # The following way of writing the cache mishandles newlines in values,
|
---|
| 7916 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
[24901] | 7917 | # So, don't put newlines in cache variables' values.
|
---|
[16568] | 7918 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
| 7919 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
[24901] | 7920 | {
|
---|
[16568] | 7921 | (set) 2>&1 |
|
---|
[24901] | 7922 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
| 7923 | *ac_space=\ *)
|
---|
| 7924 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
| 7925 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
[16568] | 7926 | sed -n \
|
---|
| 7927 | "s/'/'\\\\''/g;
|
---|
| 7928 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
[24901] | 7929 | ;;
|
---|
[16568] | 7930 | *)
|
---|
| 7931 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
[24901] | 7932 | sed -n \
|
---|
| 7933 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
[16568] | 7934 | ;;
|
---|
[24901] | 7935 | esac;
|
---|
| 7936 | } |
|
---|
[16568] | 7937 | sed '
|
---|
| 7938 | t clear
|
---|
[24901] | 7939 | : clear
|
---|
[16568] | 7940 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
| 7941 | t end
|
---|
[24901] | 7942 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
| 7943 | : end' >>confcache
|
---|
| 7944 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
| 7945 | if test -w $cache_file; then
|
---|
| 7946 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
[16568] | 7947 | cat confcache >$cache_file
|
---|
| 7948 | else
|
---|
[24901] | 7949 | echo "not updating unwritable cache $cache_file"
|
---|
[16568] | 7950 | fi
|
---|
| 7951 | fi
|
---|
| 7952 | rm -f confcache
|
---|
| 7953 |
|
---|
| 7954 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
| 7955 | # Let make expand exec_prefix.
|
---|
| 7956 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
| 7957 |
|
---|
[24901] | 7958 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
| 7959 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
| 7960 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
| 7961 | # (actually we leave an empty line to preserve line numbers).
|
---|
| 7962 | if test "x$srcdir" = x.; then
|
---|
| 7963 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
| 7964 | s/:*\$(srcdir):*/:/;
|
---|
| 7965 | s/:*\${srcdir}:*/:/;
|
---|
| 7966 | s/:*@srcdir@:*/:/;
|
---|
| 7967 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
| 7968 | s/:*$//;
|
---|
| 7969 | s/^[^=]*=[ ]*$//;
|
---|
| 7970 | }'
|
---|
| 7971 | fi
|
---|
| 7972 |
|
---|
[16568] | 7973 | DEFS=-DHAVE_CONFIG_H
|
---|
| 7974 |
|
---|
| 7975 | ac_libobjs=
|
---|
| 7976 | ac_ltlibobjs=
|
---|
| 7977 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
| 7978 | # 1. Remove the extension, and $U if already installed.
|
---|
[24901] | 7979 | ac_i=`echo "$ac_i" |
|
---|
| 7980 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
| 7981 | # 2. Add them.
|
---|
| 7982 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
| 7983 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
[16568] | 7984 | done
|
---|
| 7985 | LIBOBJS=$ac_libobjs
|
---|
| 7986 |
|
---|
| 7987 | LTLIBOBJS=$ac_ltlibobjs
|
---|
| 7988 |
|
---|
| 7989 |
|
---|
| 7990 |
|
---|
| 7991 | : ${CONFIG_STATUS=./config.status}
|
---|
| 7992 | ac_clean_files_save=$ac_clean_files
|
---|
| 7993 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
[24901] | 7994 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
| 7995 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
| 7996 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
[16568] | 7997 | #! $SHELL
|
---|
| 7998 | # Generated by $as_me.
|
---|
| 7999 | # Run this file to recreate the current configuration.
|
---|
| 8000 | # Compiler output produced by configure, useful for debugging
|
---|
| 8001 | # configure, is in config.log if it exists.
|
---|
| 8002 |
|
---|
| 8003 | debug=false
|
---|
| 8004 | ac_cs_recheck=false
|
---|
| 8005 | ac_cs_silent=false
|
---|
| 8006 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
[24901] | 8007 | _ACEOF
|
---|
[16568] | 8008 |
|
---|
[24901] | 8009 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8010 | ## --------------------- ##
|
---|
| 8011 | ## M4sh Initialization. ##
|
---|
| 8012 | ## --------------------- ##
|
---|
| 8013 |
|
---|
| 8014 | # Be Bourne compatible
|
---|
| 8015 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
[16568] | 8016 | emulate sh
|
---|
| 8017 | NULLCMD=:
|
---|
[24901] | 8018 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
[16568] | 8019 | # is contrary to our usage. Disable this feature.
|
---|
| 8020 | alias -g '${1+"$@"}'='"$@"'
|
---|
[24901] | 8021 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
| 8022 | set -o posix
|
---|
[16568] | 8023 | fi
|
---|
[24901] | 8024 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
[16568] | 8025 |
|
---|
[24901] | 8026 | # Support unset when possible.
|
---|
| 8027 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
| 8028 | as_unset=unset
|
---|
[16568] | 8029 | else
|
---|
[24901] | 8030 | as_unset=false
|
---|
[16568] | 8031 | fi
|
---|
| 8032 |
|
---|
| 8033 |
|
---|
[24901] | 8034 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
| 8035 | $as_unset ENV MAIL MAILPATH
|
---|
[16568] | 8036 | PS1='$ '
|
---|
| 8037 | PS2='> '
|
---|
| 8038 | PS4='+ '
|
---|
| 8039 |
|
---|
| 8040 | # NLS nuisances.
|
---|
[24901] | 8041 | for as_var in \
|
---|
| 8042 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
| 8043 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
| 8044 | LC_TELEPHONE LC_TIME
|
---|
| 8045 | do
|
---|
| 8046 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
| 8047 | eval $as_var=C; export $as_var
|
---|
| 8048 | else
|
---|
| 8049 | $as_unset $as_var
|
---|
[16568] | 8050 | fi
|
---|
[24901] | 8051 | done
|
---|
[16568] | 8052 |
|
---|
[24901] | 8053 | # Required to use basename.
|
---|
| 8054 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
[16568] | 8055 | as_expr=expr
|
---|
| 8056 | else
|
---|
| 8057 | as_expr=false
|
---|
| 8058 | fi
|
---|
| 8059 |
|
---|
[24901] | 8060 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
[16568] | 8061 | as_basename=basename
|
---|
| 8062 | else
|
---|
| 8063 | as_basename=false
|
---|
| 8064 | fi
|
---|
| 8065 |
|
---|
| 8066 |
|
---|
[24901] | 8067 | # Name of the executable.
|
---|
| 8068 | as_me=`$as_basename "$0" ||
|
---|
[16568] | 8069 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
| 8070 | X"$0" : 'X\(//\)$' \| \
|
---|
[24901] | 8071 | X"$0" : 'X\(/\)$' \| \
|
---|
| 8072 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8073 | echo X/"$0" |
|
---|
| 8074 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
| 8075 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8076 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
| 8077 | s/.*/./; q'`
|
---|
[16568] | 8078 |
|
---|
[24901] | 8079 |
|
---|
| 8080 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
[20854] | 8081 | # Avoid depending upon Character Ranges.
|
---|
| 8082 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
| 8083 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
| 8084 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
| 8085 | as_cr_digits='0123456789'
|
---|
| 8086 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
[16568] | 8087 |
|
---|
[24901] | 8088 | # The user is always right.
|
---|
| 8089 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
| 8090 | echo "#! /bin/sh" >conf$$.sh
|
---|
| 8091 | echo "exit 0" >>conf$$.sh
|
---|
| 8092 | chmod +x conf$$.sh
|
---|
| 8093 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
| 8094 | PATH_SEPARATOR=';'
|
---|
| 8095 | else
|
---|
| 8096 | PATH_SEPARATOR=:
|
---|
| 8097 | fi
|
---|
| 8098 | rm -f conf$$.sh
|
---|
| 8099 | fi
|
---|
| 8100 |
|
---|
| 8101 |
|
---|
| 8102 | as_lineno_1=$LINENO
|
---|
| 8103 | as_lineno_2=$LINENO
|
---|
| 8104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 8105 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 8106 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
| 8107 | # Find who we are. Look in the path if we contain no path at all
|
---|
| 8108 | # relative or not.
|
---|
| 8109 | case $0 in
|
---|
| 8110 | *[\\/]* ) as_myself=$0 ;;
|
---|
| 8111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 8112 | for as_dir in $PATH
|
---|
| 8113 | do
|
---|
| 8114 | IFS=$as_save_IFS
|
---|
| 8115 | test -z "$as_dir" && as_dir=.
|
---|
| 8116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
| 8117 | done
|
---|
| 8118 |
|
---|
| 8119 | ;;
|
---|
| 8120 | esac
|
---|
| 8121 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
| 8122 | # in which case we are not to be found in the path.
|
---|
| 8123 | if test "x$as_myself" = x; then
|
---|
| 8124 | as_myself=$0
|
---|
| 8125 | fi
|
---|
| 8126 | if test ! -f "$as_myself"; then
|
---|
| 8127 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
| 8128 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
| 8129 | { (exit 1); exit 1; }; }
|
---|
| 8130 | fi
|
---|
| 8131 | case $CONFIG_SHELL in
|
---|
| 8132 | '')
|
---|
| 8133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
| 8134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
| 8135 | do
|
---|
| 8136 | IFS=$as_save_IFS
|
---|
| 8137 | test -z "$as_dir" && as_dir=.
|
---|
| 8138 | for as_base in sh bash ksh sh5; do
|
---|
| 8139 | case $as_dir in
|
---|
| 8140 | /*)
|
---|
| 8141 | if ("$as_dir/$as_base" -c '
|
---|
| 8142 | as_lineno_1=$LINENO
|
---|
| 8143 | as_lineno_2=$LINENO
|
---|
| 8144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
| 8145 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
| 8146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
| 8147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
| 8148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
| 8149 | CONFIG_SHELL=$as_dir/$as_base
|
---|
| 8150 | export CONFIG_SHELL
|
---|
| 8151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
| 8152 | fi;;
|
---|
| 8153 | esac
|
---|
| 8154 | done
|
---|
| 8155 | done
|
---|
| 8156 | ;;
|
---|
| 8157 | esac
|
---|
| 8158 |
|
---|
| 8159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
| 8160 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
| 8161 | # line-number line before each line; the second 'sed' does the real
|
---|
| 8162 | # work. The second script uses 'N' to pair each line-number line
|
---|
| 8163 | # with the numbered line, and appends trailing '-' during
|
---|
| 8164 | # substitution so that $LINENO is not a special case at line end.
|
---|
| 8165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
| 8166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
| 8167 | sed '=' <$as_myself |
|
---|
| 8168 | sed '
|
---|
| 8169 | N
|
---|
| 8170 | s,$,-,
|
---|
| 8171 | : loop
|
---|
| 8172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
| 8173 | t loop
|
---|
| 8174 | s,-$,,
|
---|
| 8175 | s,^['$as_cr_digits']*\n,,
|
---|
| 8176 | ' >$as_me.lineno &&
|
---|
| 8177 | chmod +x $as_me.lineno ||
|
---|
| 8178 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
| 8179 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
| 8180 | { (exit 1); exit 1; }; }
|
---|
| 8181 |
|
---|
| 8182 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
| 8183 | # (the dirname of $[0] is not the place where we might find the
|
---|
| 8184 | # original and so on. Autoconf is especially sensible to this).
|
---|
| 8185 | . ./$as_me.lineno
|
---|
| 8186 | # Exit status is that of the last command.
|
---|
| 8187 | exit
|
---|
| 8188 | }
|
---|
| 8189 |
|
---|
| 8190 |
|
---|
| 8191 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
| 8192 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
| 8193 | ' ECHO_T=' ' ;;
|
---|
| 8194 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
| 8195 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
[16568] | 8196 | esac
|
---|
| 8197 |
|
---|
[24901] | 8198 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
| 8199 | as_expr=expr
|
---|
[16568] | 8200 | else
|
---|
[24901] | 8201 | as_expr=false
|
---|
[16568] | 8202 | fi
|
---|
[24901] | 8203 |
|
---|
| 8204 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
| 8205 | echo >conf$$.file
|
---|
| 8206 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
| 8207 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
| 8208 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
| 8209 | if test -f conf$$.exe; then
|
---|
| 8210 | # Don't use ln at all; we don't have any links
|
---|
| 8211 | as_ln_s='cp -p'
|
---|
| 8212 | else
|
---|
[23356] | 8213 | as_ln_s='ln -s'
|
---|
[20854] | 8214 | fi
|
---|
[24901] | 8215 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
| 8216 | as_ln_s=ln
|
---|
[16568] | 8217 | else
|
---|
| 8218 | as_ln_s='cp -p'
|
---|
| 8219 | fi
|
---|
[24901] | 8220 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
[16568] | 8221 |
|
---|
| 8222 | if mkdir -p . 2>/dev/null; then
|
---|
[24901] | 8223 | as_mkdir_p=:
|
---|
[16568] | 8224 | else
|
---|
| 8225 | test -d ./-p && rmdir ./-p
|
---|
| 8226 | as_mkdir_p=false
|
---|
| 8227 | fi
|
---|
| 8228 |
|
---|
[24901] | 8229 | as_executable_p="test -f"
|
---|
[16568] | 8230 |
|
---|
| 8231 | # Sed expression to map a string onto a valid CPP name.
|
---|
| 8232 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 8233 |
|
---|
| 8234 | # Sed expression to map a string onto a valid variable name.
|
---|
| 8235 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
| 8236 |
|
---|
| 8237 |
|
---|
[24901] | 8238 | # IFS
|
---|
| 8239 | # We need space, tab and new line, in precisely that order.
|
---|
| 8240 | as_nl='
|
---|
| 8241 | '
|
---|
| 8242 | IFS=" $as_nl"
|
---|
| 8243 |
|
---|
| 8244 | # CDPATH.
|
---|
| 8245 | $as_unset CDPATH
|
---|
| 8246 |
|
---|
[16568] | 8247 | exec 6>&1
|
---|
| 8248 |
|
---|
[24901] | 8249 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
[16568] | 8250 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
[24901] | 8251 | # values after options handling. Logging --version etc. is OK.
|
---|
| 8252 | exec 5>>config.log
|
---|
| 8253 | {
|
---|
| 8254 | echo
|
---|
| 8255 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
| 8256 | ## Running $as_me. ##
|
---|
| 8257 | _ASBOX
|
---|
| 8258 | } >&5
|
---|
| 8259 | cat >&5 <<_CSEOF
|
---|
| 8260 |
|
---|
[16568] | 8261 | This file was extended by $as_me, which was
|
---|
[24901] | 8262 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
[16568] | 8263 |
|
---|
| 8264 | CONFIG_FILES = $CONFIG_FILES
|
---|
| 8265 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
| 8266 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
| 8267 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
| 8268 | $ $0 $@
|
---|
| 8269 |
|
---|
[24901] | 8270 | _CSEOF
|
---|
| 8271 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
| 8272 | echo >&5
|
---|
[16568] | 8273 | _ACEOF
|
---|
| 8274 |
|
---|
[24901] | 8275 | # Files that config.status was made for.
|
---|
| 8276 | if test -n "$ac_config_files"; then
|
---|
| 8277 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
| 8278 | fi
|
---|
[16568] | 8279 |
|
---|
[24901] | 8280 | if test -n "$ac_config_headers"; then
|
---|
| 8281 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
| 8282 | fi
|
---|
[16568] | 8283 |
|
---|
[24901] | 8284 | if test -n "$ac_config_links"; then
|
---|
| 8285 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
| 8286 | fi
|
---|
[20854] | 8287 |
|
---|
[24901] | 8288 | if test -n "$ac_config_commands"; then
|
---|
| 8289 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
| 8290 | fi
|
---|
[20854] | 8291 |
|
---|
[24901] | 8292 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[20854] | 8293 |
|
---|
[16568] | 8294 | ac_cs_usage="\
|
---|
[24901] | 8295 | \`$as_me' instantiates files from templates according to the
|
---|
| 8296 | current configuration.
|
---|
[16568] | 8297 |
|
---|
[24901] | 8298 | Usage: $0 [OPTIONS] [FILE]...
|
---|
[16568] | 8299 |
|
---|
| 8300 | -h, --help print this help, then exit
|
---|
[24901] | 8301 | -V, --version print version number, then exit
|
---|
| 8302 | -q, --quiet do not print progress messages
|
---|
[16568] | 8303 | -d, --debug don't remove temporary files
|
---|
| 8304 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
[24901] | 8305 | --file=FILE[:TEMPLATE]
|
---|
| 8306 | instantiate the configuration file FILE
|
---|
| 8307 | --header=FILE[:TEMPLATE]
|
---|
| 8308 | instantiate the configuration header FILE
|
---|
[16568] | 8309 |
|
---|
| 8310 | Configuration files:
|
---|
| 8311 | $config_files
|
---|
| 8312 |
|
---|
| 8313 | Configuration headers:
|
---|
| 8314 | $config_headers
|
---|
| 8315 |
|
---|
[24901] | 8316 | Report bugs to <[email protected]>."
|
---|
| 8317 | _ACEOF
|
---|
[23356] | 8318 |
|
---|
[24901] | 8319 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[16568] | 8320 | ac_cs_version="\\
|
---|
| 8321 | config.status
|
---|
[24901] | 8322 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
| 8323 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
[16568] | 8324 |
|
---|
[24901] | 8325 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
[16568] | 8326 | This config.status script is free software; the Free Software Foundation
|
---|
| 8327 | gives unlimited permission to copy, distribute and modify it."
|
---|
[24901] | 8328 | srcdir=$srcdir
|
---|
| 8329 | INSTALL="$INSTALL"
|
---|
[16568] | 8330 | _ACEOF
|
---|
| 8331 |
|
---|
[24901] | 8332 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8333 | # If no file are specified by the user, then we need to provide default
|
---|
| 8334 | # value. By we need to know if files were specified by the user.
|
---|
[16568] | 8335 | ac_need_defaults=:
|
---|
| 8336 | while test $# != 0
|
---|
| 8337 | do
|
---|
| 8338 | case $1 in
|
---|
[24901] | 8339 | --*=*)
|
---|
| 8340 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
| 8341 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
[16568] | 8342 | ac_shift=:
|
---|
| 8343 | ;;
|
---|
[24901] | 8344 | -*)
|
---|
[16568] | 8345 | ac_option=$1
|
---|
| 8346 | ac_optarg=$2
|
---|
| 8347 | ac_shift=shift
|
---|
| 8348 | ;;
|
---|
[24901] | 8349 | *) # This is not an option, so the user has probably given explicit
|
---|
| 8350 | # arguments.
|
---|
| 8351 | ac_option=$1
|
---|
| 8352 | ac_need_defaults=false;;
|
---|
[16568] | 8353 | esac
|
---|
| 8354 |
|
---|
| 8355 | case $ac_option in
|
---|
| 8356 | # Handling of the options.
|
---|
[24901] | 8357 | _ACEOF
|
---|
| 8358 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16568] | 8359 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
| 8360 | ac_cs_recheck=: ;;
|
---|
[24901] | 8361 | --version | --vers* | -V )
|
---|
| 8362 | echo "$ac_cs_version"; exit 0 ;;
|
---|
| 8363 | --he | --h)
|
---|
| 8364 | # Conflict between --help and --header
|
---|
| 8365 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
| 8366 | Try \`$0 --help' for more information." >&5
|
---|
| 8367 | echo "$as_me: error: ambiguous option: $1
|
---|
| 8368 | Try \`$0 --help' for more information." >&2;}
|
---|
| 8369 | { (exit 1); exit 1; }; };;
|
---|
| 8370 | --help | --hel | -h )
|
---|
| 8371 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
| 8372 | --debug | --d* | -d )
|
---|
[16568] | 8373 | debug=: ;;
|
---|
| 8374 | --file | --fil | --fi | --f )
|
---|
| 8375 | $ac_shift
|
---|
[24901] | 8376 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
[16568] | 8377 | ac_need_defaults=false;;
|
---|
| 8378 | --header | --heade | --head | --hea )
|
---|
| 8379 | $ac_shift
|
---|
[24901] | 8380 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
[16568] | 8381 | ac_need_defaults=false;;
|
---|
| 8382 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
| 8383 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
| 8384 | ac_cs_silent=: ;;
|
---|
| 8385 |
|
---|
| 8386 | # This is an error.
|
---|
[24901] | 8387 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
| 8388 | Try \`$0 --help' for more information." >&5
|
---|
| 8389 | echo "$as_me: error: unrecognized option: $1
|
---|
| 8390 | Try \`$0 --help' for more information." >&2;}
|
---|
| 8391 | { (exit 1); exit 1; }; } ;;
|
---|
[16568] | 8392 |
|
---|
[24901] | 8393 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
[16568] | 8394 |
|
---|
| 8395 | esac
|
---|
| 8396 | shift
|
---|
| 8397 | done
|
---|
| 8398 |
|
---|
| 8399 | ac_configure_extra_args=
|
---|
| 8400 |
|
---|
| 8401 | if $ac_cs_silent; then
|
---|
| 8402 | exec 6>/dev/null
|
---|
| 8403 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
| 8404 | fi
|
---|
| 8405 |
|
---|
| 8406 | _ACEOF
|
---|
[24901] | 8407 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[16568] | 8408 | if \$ac_cs_recheck; then
|
---|
[24901] | 8409 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
| 8410 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
[16568] | 8411 | fi
|
---|
| 8412 |
|
---|
| 8413 | _ACEOF
|
---|
| 8414 |
|
---|
| 8415 |
|
---|
[20854] | 8416 |
|
---|
[24901] | 8417 |
|
---|
| 8418 |
|
---|
| 8419 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16568] | 8420 | for ac_config_target in $ac_config_targets
|
---|
| 8421 | do
|
---|
[24901] | 8422 | case "$ac_config_target" in
|
---|
| 8423 | # Handling of arguments.
|
---|
| 8424 | "packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
|
---|
| 8425 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
| 8426 | "$srclist" ) CONFIG_FILES="$CONFIG_FILES $srclist" ;;
|
---|
| 8427 | "$moduleDirs" ) CONFIG_FILES="$CONFIG_FILES $moduleDirs" ;;
|
---|
| 8428 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
|
---|
| 8429 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
| 8430 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
| 8431 | { (exit 1); exit 1; }; };;
|
---|
[16568] | 8432 | esac
|
---|
| 8433 | done
|
---|
| 8434 |
|
---|
| 8435 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
| 8436 | # then the envvar interface is used. Set only those that are not.
|
---|
| 8437 | # We use the long form for the default assignment because of an extremely
|
---|
| 8438 | # bizarre bug on SunOS 4.1.3.
|
---|
| 8439 | if $ac_need_defaults; then
|
---|
| 8440 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
| 8441 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
| 8442 | fi
|
---|
| 8443 |
|
---|
| 8444 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
[24901] | 8445 | # simply because there is no reason to put it here, and in addition,
|
---|
[16568] | 8446 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
[24901] | 8447 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
[16568] | 8448 | $debug ||
|
---|
| 8449 | {
|
---|
[24901] | 8450 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
| 8451 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
[16568] | 8452 | }
|
---|
[24901] | 8453 |
|
---|
[16568] | 8454 | # Create a (secure) tmp directory for tmp files.
|
---|
| 8455 |
|
---|
| 8456 | {
|
---|
[24901] | 8457 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
[16568] | 8458 | test -n "$tmp" && test -d "$tmp"
|
---|
| 8459 | } ||
|
---|
| 8460 | {
|
---|
[24901] | 8461 | tmp=./confstat$$-$RANDOM
|
---|
| 8462 | (umask 077 && mkdir $tmp)
|
---|
| 8463 | } ||
|
---|
[16568] | 8464 | {
|
---|
[24901] | 8465 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
| 8466 | { (exit 1); exit 1; }
|
---|
| 8467 | }
|
---|
[23356] | 8468 |
|
---|
| 8469 | _ACEOF
|
---|
[16568] | 8470 |
|
---|
[24901] | 8471 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
[23356] | 8472 |
|
---|
[24901] | 8473 | #
|
---|
| 8474 | # CONFIG_FILES section.
|
---|
| 8475 | #
|
---|
[23356] | 8476 |
|
---|
[24901] | 8477 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
| 8478 | # This happens for instance when ./config.status config.h
|
---|
| 8479 | if test -n "\$CONFIG_FILES"; then
|
---|
| 8480 | # Protect against being on the right side of a sed subst in config.status.
|
---|
| 8481 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
| 8482 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
| 8483 | s,@SHELL@,$SHELL,;t t
|
---|
| 8484 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
| 8485 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
| 8486 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
| 8487 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
| 8488 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
| 8489 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
| 8490 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
| 8491 | s,@prefix@,$prefix,;t t
|
---|
| 8492 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
| 8493 | s,@bindir@,$bindir,;t t
|
---|
| 8494 | s,@sbindir@,$sbindir,;t t
|
---|
| 8495 | s,@libexecdir@,$libexecdir,;t t
|
---|
| 8496 | s,@datadir@,$datadir,;t t
|
---|
| 8497 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
| 8498 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
| 8499 | s,@localstatedir@,$localstatedir,;t t
|
---|
| 8500 | s,@libdir@,$libdir,;t t
|
---|
| 8501 | s,@includedir@,$includedir,;t t
|
---|
| 8502 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
| 8503 | s,@infodir@,$infodir,;t t
|
---|
| 8504 | s,@mandir@,$mandir,;t t
|
---|
| 8505 | s,@build_alias@,$build_alias,;t t
|
---|
| 8506 | s,@host_alias@,$host_alias,;t t
|
---|
| 8507 | s,@target_alias@,$target_alias,;t t
|
---|
| 8508 | s,@DEFS@,$DEFS,;t t
|
---|
| 8509 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
| 8510 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
| 8511 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
| 8512 | s,@LIBS@,$LIBS,;t t
|
---|
| 8513 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
| 8514 | s,@VERSION@,$VERSION,;t t
|
---|
| 8515 | s,@USE_FASTCGI@,$USE_FASTCGI,;t t
|
---|
| 8516 | s,@USE_LANGACTION@,$USE_LANGACTION,;t t
|
---|
| 8517 | s,@USE_CORBA@,$USE_CORBA,;t t
|
---|
| 8518 | s,@MICO_DIR@,$MICO_DIR,;t t
|
---|
| 8519 | s,@USE_Z3950@,$USE_Z3950,;t t
|
---|
| 8520 | s,@USE_YAZ@,$USE_YAZ,;t t
|
---|
| 8521 | s,@ENABLE_JAVA@,$ENABLE_JAVA,;t t
|
---|
| 8522 | s,@USE_JDBM@,$USE_JDBM,;t t
|
---|
| 8523 | s,@USE_GDBM@,$USE_GDBM,;t t
|
---|
| 8524 | s,@ENABLE_ACCENTFOLD@,$ENABLE_ACCENTFOLD,;t t
|
---|
| 8525 | s,@USE_SQLITE@,$USE_SQLITE,;t t
|
---|
[24958] | 8526 | s,@USE_RSS@,$USE_RSS,;t t
|
---|
[24901] | 8527 | s,@USE_APACHE_HTTPD@,$USE_APACHE_HTTPD,;t t
|
---|
| 8528 | s,@ENABLE_MG@,$ENABLE_MG,;t t
|
---|
| 8529 | s,@ENABLE_MGPP@,$ENABLE_MGPP,;t t
|
---|
| 8530 | s,@ENABLE_LUCENE@,$ENABLE_LUCENE,;t t
|
---|
| 8531 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
| 8532 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
| 8533 | s,@CC@,$CC,;t t
|
---|
| 8534 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
| 8535 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
| 8536 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
| 8537 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
| 8538 | s,@CXX@,$CXX,;t t
|
---|
| 8539 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
| 8540 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
| 8541 | s,@JAVAC@,$JAVAC,;t t
|
---|
| 8542 | s,@JAVACFLAGS@,$JAVACFLAGS,;t t
|
---|
| 8543 | s,@JAVA@,$JAVA,;t t
|
---|
| 8544 | s,@uudecode@,$uudecode,;t t
|
---|
| 8545 | s,@AWK@,$AWK,;t t
|
---|
| 8546 | s,@YACC@,$YACC,;t t
|
---|
| 8547 | s,@build@,$build,;t t
|
---|
| 8548 | s,@build_cpu@,$build_cpu,;t t
|
---|
| 8549 | s,@build_vendor@,$build_vendor,;t t
|
---|
| 8550 | s,@build_os@,$build_os,;t t
|
---|
| 8551 | s,@host@,$host,;t t
|
---|
| 8552 | s,@host_cpu@,$host_cpu,;t t
|
---|
| 8553 | s,@host_vendor@,$host_vendor,;t t
|
---|
| 8554 | s,@host_os@,$host_os,;t t
|
---|
| 8555 | s,@target@,$target,;t t
|
---|
| 8556 | s,@target_cpu@,$target_cpu,;t t
|
---|
| 8557 | s,@target_vendor@,$target_vendor,;t t
|
---|
| 8558 | s,@target_os@,$target_os,;t t
|
---|
| 8559 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
| 8560 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
| 8561 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
| 8562 | s,@LN_S@,$LN_S,;t t
|
---|
| 8563 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
| 8564 | s,@RANLIB@,$RANLIB,;t t
|
---|
| 8565 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
|
---|
| 8566 | s,@COMPAT32BITFLAGS@,$COMPAT32BITFLAGS,;t t
|
---|
| 8567 | s,@MICO_VER@,$MICO_VER,;t t
|
---|
| 8568 | s,@CPP@,$CPP,;t t
|
---|
| 8569 | s,@EGREP@,$EGREP,;t t
|
---|
| 8570 | s,@U@,$U,;t t
|
---|
| 8571 | s,@ANSI2KNR@,$ANSI2KNR,;t t
|
---|
| 8572 | s,@ALLOCA@,$ALLOCA,;t t
|
---|
| 8573 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
| 8574 | s,@STATIC@,$STATIC,;t t
|
---|
| 8575 | s,@gsdlos@,$gsdlos,;t t
|
---|
| 8576 | s,@gsdlarch@,$gsdlarch,;t t
|
---|
| 8577 | s,@MODULEDIRS@,$MODULEDIRS,;t t
|
---|
| 8578 | s,@subdirs@,$subdirs,;t t
|
---|
| 8579 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
| 8580 | CEOF
|
---|
[20854] | 8581 |
|
---|
[16568] | 8582 | _ACEOF
|
---|
| 8583 |
|
---|
[24901] | 8584 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8585 | # Split the substitutions into bite-sized pieces for seds with
|
---|
| 8586 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
| 8587 | ac_max_sed_lines=48
|
---|
| 8588 | ac_sed_frag=1 # Number of current file.
|
---|
| 8589 | ac_beg=1 # First line for current file.
|
---|
| 8590 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
| 8591 | ac_more_lines=:
|
---|
| 8592 | ac_sed_cmds=
|
---|
| 8593 | while $ac_more_lines; do
|
---|
| 8594 | if test $ac_beg -gt 1; then
|
---|
| 8595 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 8596 | else
|
---|
| 8597 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
| 8598 | fi
|
---|
| 8599 | if test ! -s $tmp/subs.frag; then
|
---|
| 8600 | ac_more_lines=false
|
---|
| 8601 | else
|
---|
| 8602 | # The purpose of the label and of the branching condition is to
|
---|
| 8603 | # speed up the sed processing (if there are no `@' at all, there
|
---|
| 8604 | # is no need to browse any of the substitutions).
|
---|
| 8605 | # These are the two extra sed commands mentioned above.
|
---|
| 8606 | (echo ':t
|
---|
| 8607 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
| 8608 | if test -z "$ac_sed_cmds"; then
|
---|
| 8609 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 8610 | else
|
---|
| 8611 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
| 8612 | fi
|
---|
| 8613 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
| 8614 | ac_beg=$ac_end
|
---|
| 8615 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
| 8616 | fi
|
---|
| 8617 | done
|
---|
| 8618 | if test -z "$ac_sed_cmds"; then
|
---|
| 8619 | ac_sed_cmds=cat
|
---|
[16568] | 8620 | fi
|
---|
[24901] | 8621 | fi # test -n "$CONFIG_FILES"
|
---|
[16568] | 8622 |
|
---|
| 8623 | _ACEOF
|
---|
[24901] | 8624 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8625 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
| 8626 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
| 8627 | case $ac_file in
|
---|
| 8628 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8629 | cat >$tmp/stdin
|
---|
| 8630 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8631 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8632 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8633 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8634 | * ) ac_file_in=$ac_file.in ;;
|
---|
[16568] | 8635 | esac
|
---|
| 8636 |
|
---|
[24901] | 8637 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
| 8638 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
[16568] | 8639 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8640 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8641 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
[24901] | 8642 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 8643 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8644 | echo X"$ac_file" |
|
---|
| 8645 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8646 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8647 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8648 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8649 | s/.*/./; q'`
|
---|
| 8650 | { if $as_mkdir_p; then
|
---|
| 8651 | mkdir -p "$ac_dir"
|
---|
| 8652 | else
|
---|
| 8653 | as_dir="$ac_dir"
|
---|
| 8654 | as_dirs=
|
---|
| 8655 | while test ! -d "$as_dir"; do
|
---|
| 8656 | as_dirs="$as_dir $as_dirs"
|
---|
| 8657 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 8658 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8659 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 8660 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 8661 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 8662 | . : '\(.\)' 2>/dev/null ||
|
---|
| 8663 | echo X"$as_dir" |
|
---|
| 8664 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 8665 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 8666 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 8667 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 8668 | s/.*/./; q'`
|
---|
| 8669 | done
|
---|
| 8670 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 8671 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 8672 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 8673 | { (exit 1); exit 1; }; }; }
|
---|
| 8674 |
|
---|
[16568] | 8675 | ac_builddir=.
|
---|
| 8676 |
|
---|
[24901] | 8677 | if test "$ac_dir" != .; then
|
---|
| 8678 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 8679 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 8680 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 8681 | else
|
---|
| 8682 | ac_dir_suffix= ac_top_builddir=
|
---|
| 8683 | fi
|
---|
[16568] | 8684 |
|
---|
| 8685 | case $srcdir in
|
---|
[24901] | 8686 | .) # No --srcdir option. We are building in place.
|
---|
[16568] | 8687 | ac_srcdir=.
|
---|
[24901] | 8688 | if test -z "$ac_top_builddir"; then
|
---|
| 8689 | ac_top_srcdir=.
|
---|
| 8690 | else
|
---|
| 8691 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 8692 | fi ;;
|
---|
| 8693 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
[16568] | 8694 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[24901] | 8695 | ac_top_srcdir=$srcdir ;;
|
---|
| 8696 | *) # Relative path.
|
---|
| 8697 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 8698 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
[16568] | 8699 | esac
|
---|
| 8700 |
|
---|
[24901] | 8701 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 8702 | # the directories may not exist.
|
---|
| 8703 | case `pwd` in
|
---|
| 8704 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 8705 | *)
|
---|
| 8706 | case "$ac_dir" in
|
---|
| 8707 | .) ac_abs_builddir=`pwd`;;
|
---|
| 8708 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 8709 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 8710 | esac;;
|
---|
| 8711 | esac
|
---|
| 8712 | case $ac_abs_builddir in
|
---|
| 8713 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8714 | *)
|
---|
| 8715 | case ${ac_top_builddir}. in
|
---|
| 8716 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 8717 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 8718 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 8719 | esac;;
|
---|
| 8720 | esac
|
---|
| 8721 | case $ac_abs_builddir in
|
---|
| 8722 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8723 | *)
|
---|
| 8724 | case $ac_srcdir in
|
---|
| 8725 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 8726 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 8727 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 8728 | esac;;
|
---|
| 8729 | esac
|
---|
| 8730 | case $ac_abs_builddir in
|
---|
| 8731 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8732 | *)
|
---|
| 8733 | case $ac_top_srcdir in
|
---|
| 8734 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 8735 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 8736 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 8737 | esac;;
|
---|
| 8738 | esac
|
---|
[16568] | 8739 |
|
---|
| 8740 |
|
---|
| 8741 | case $INSTALL in
|
---|
| 8742 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
[24901] | 8743 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
[16568] | 8744 | esac
|
---|
| 8745 |
|
---|
[24901] | 8746 | if test x"$ac_file" != x-; then
|
---|
| 8747 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8748 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8749 | rm -f "$ac_file"
|
---|
| 8750 | fi
|
---|
| 8751 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8752 | # use $as_me), people would be surprised to read:
|
---|
| 8753 | # /* config.h. Generated by config.status. */
|
---|
| 8754 | if test x"$ac_file" = x-; then
|
---|
| 8755 | configure_input=
|
---|
| 8756 | else
|
---|
| 8757 | configure_input="$ac_file. "
|
---|
| 8758 | fi
|
---|
| 8759 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
| 8760 | sed 's,.*/,,'` by configure."
|
---|
| 8761 |
|
---|
| 8762 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8763 | # src tree.
|
---|
| 8764 | ac_file_inputs=`IFS=:
|
---|
| 8765 | for f in $ac_file_in; do
|
---|
| 8766 | case $f in
|
---|
| 8767 | -) echo $tmp/stdin ;;
|
---|
| 8768 | [\\/$]*)
|
---|
| 8769 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8770 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8771 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8772 | { (exit 1); exit 1; }; }
|
---|
| 8773 | echo "$f";;
|
---|
| 8774 | *) # Relative
|
---|
| 8775 | if test -f "$f"; then
|
---|
| 8776 | # Build tree
|
---|
| 8777 | echo "$f"
|
---|
| 8778 | elif test -f "$srcdir/$f"; then
|
---|
| 8779 | # Source tree
|
---|
| 8780 | echo "$srcdir/$f"
|
---|
| 8781 | else
|
---|
| 8782 | # /dev/null tree
|
---|
| 8783 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8784 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8785 | { (exit 1); exit 1; }; }
|
---|
| 8786 | fi;;
|
---|
| 8787 | esac
|
---|
| 8788 | done` || { (exit 1); exit 1; }
|
---|
[23356] | 8789 | _ACEOF
|
---|
[24901] | 8790 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
| 8791 | sed "$ac_vpsub
|
---|
[16568] | 8792 | $extrasub
|
---|
| 8793 | _ACEOF
|
---|
[24901] | 8794 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16568] | 8795 | :t
|
---|
| 8796 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
[24901] | 8797 | s,@configure_input@,$configure_input,;t t
|
---|
| 8798 | s,@srcdir@,$ac_srcdir,;t t
|
---|
| 8799 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
| 8800 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
| 8801 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
| 8802 | s,@builddir@,$ac_builddir,;t t
|
---|
| 8803 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
| 8804 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
| 8805 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
| 8806 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
| 8807 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
| 8808 | rm -f $tmp/stdin
|
---|
| 8809 | if test x"$ac_file" != x-; then
|
---|
| 8810 | mv $tmp/out $ac_file
|
---|
| 8811 | else
|
---|
| 8812 | cat $tmp/out
|
---|
| 8813 | rm -f $tmp/out
|
---|
| 8814 | fi
|
---|
[16568] | 8815 |
|
---|
[24901] | 8816 | done
|
---|
| 8817 | _ACEOF
|
---|
| 8818 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16568] | 8819 |
|
---|
[24901] | 8820 | #
|
---|
| 8821 | # CONFIG_HEADER section.
|
---|
| 8822 | #
|
---|
| 8823 |
|
---|
| 8824 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
| 8825 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
| 8826 | #
|
---|
| 8827 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
| 8828 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
| 8829 | ac_dB='[ ].*$,\1#\2'
|
---|
| 8830 | ac_dC=' '
|
---|
| 8831 | ac_dD=',;t'
|
---|
| 8832 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
| 8833 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
| 8834 | ac_uB='$,\1#\2define\3'
|
---|
| 8835 | ac_uC=' '
|
---|
| 8836 | ac_uD=',;t'
|
---|
| 8837 |
|
---|
| 8838 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
| 8839 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
[16568] | 8840 | case $ac_file in
|
---|
[24901] | 8841 | - | *:- | *:-:* ) # input from stdin
|
---|
| 8842 | cat >$tmp/stdin
|
---|
| 8843 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8844 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8845 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
| 8846 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
| 8847 | * ) ac_file_in=$ac_file.in ;;
|
---|
| 8848 | esac
|
---|
| 8849 |
|
---|
| 8850 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
| 8851 | echo "$as_me: creating $ac_file" >&6;}
|
---|
| 8852 |
|
---|
| 8853 | # First look for the input files in the build tree, otherwise in the
|
---|
| 8854 | # src tree.
|
---|
| 8855 | ac_file_inputs=`IFS=:
|
---|
| 8856 | for f in $ac_file_in; do
|
---|
| 8857 | case $f in
|
---|
| 8858 | -) echo $tmp/stdin ;;
|
---|
| 8859 | [\\/$]*)
|
---|
| 8860 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
| 8861 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8862 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8863 | { (exit 1); exit 1; }; }
|
---|
| 8864 | # Do quote $f, to prevent DOS paths from being IFS'd.
|
---|
| 8865 | echo "$f";;
|
---|
| 8866 | *) # Relative
|
---|
| 8867 | if test -f "$f"; then
|
---|
| 8868 | # Build tree
|
---|
| 8869 | echo "$f"
|
---|
| 8870 | elif test -f "$srcdir/$f"; then
|
---|
| 8871 | # Source tree
|
---|
| 8872 | echo "$srcdir/$f"
|
---|
| 8873 | else
|
---|
| 8874 | # /dev/null tree
|
---|
| 8875 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
| 8876 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
| 8877 | { (exit 1); exit 1; }; }
|
---|
| 8878 | fi;;
|
---|
| 8879 | esac
|
---|
| 8880 | done` || { (exit 1); exit 1; }
|
---|
| 8881 | # Remove the trailing spaces.
|
---|
| 8882 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
| 8883 |
|
---|
| 8884 | _ACEOF
|
---|
| 8885 |
|
---|
| 8886 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
| 8887 | # `conftest.undefs', that substitutes the proper values into
|
---|
| 8888 | # config.h.in to produce config.h. The first handles `#define'
|
---|
| 8889 | # templates, and the second `#undef' templates.
|
---|
| 8890 | # And first: Protect against being on the right side of a sed subst in
|
---|
| 8891 | # config.status. Protect against being in an unquoted here document
|
---|
| 8892 | # in config.status.
|
---|
| 8893 | rm -f conftest.defines conftest.undefs
|
---|
| 8894 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
| 8895 | # Putting comments in sed scripts is not portable.
|
---|
| 8896 | #
|
---|
| 8897 | # `end' is used to avoid that the second main sed command (meant for
|
---|
| 8898 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
| 8899 | # See the Autoconf documentation for `clear'.
|
---|
| 8900 | cat >confdef2sed.sed <<\_ACEOF
|
---|
| 8901 | s/[\\&,]/\\&/g
|
---|
| 8902 | s,[\\$`],\\&,g
|
---|
| 8903 | t clear
|
---|
| 8904 | : clear
|
---|
| 8905 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
| 8906 | t end
|
---|
| 8907 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
| 8908 | : end
|
---|
| 8909 | _ACEOF
|
---|
| 8910 | # If some macros were called several times there might be several times
|
---|
| 8911 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
| 8912 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
| 8913 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
| 8914 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
| 8915 | rm -f confdef2sed.sed
|
---|
| 8916 |
|
---|
| 8917 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
| 8918 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
| 8919 | # on some systems where configure will not decide to define it.
|
---|
| 8920 | cat >>conftest.undefs <<\_ACEOF
|
---|
| 8921 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
| 8922 | _ACEOF
|
---|
| 8923 |
|
---|
| 8924 | # Break up conftest.defines because some shells have a limit on the size
|
---|
| 8925 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8926 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
| 8927 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
| 8928 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
| 8929 | echo ' :' >>$CONFIG_STATUS
|
---|
| 8930 | rm -f conftest.tail
|
---|
| 8931 | while grep . conftest.defines >/dev/null
|
---|
| 8932 | do
|
---|
| 8933 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
| 8934 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8935 | # Speed up: don't consider the non `#define' lines.
|
---|
| 8936 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
| 8937 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8938 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8939 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8940 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
| 8941 | echo 'CEOF
|
---|
| 8942 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
| 8943 | rm -f $tmp/in
|
---|
| 8944 | mv $tmp/out $tmp/in
|
---|
| 8945 | ' >>$CONFIG_STATUS
|
---|
| 8946 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
| 8947 | rm -f conftest.defines
|
---|
| 8948 | mv conftest.tail conftest.defines
|
---|
| 8949 | done
|
---|
| 8950 | rm -f conftest.defines
|
---|
| 8951 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
| 8952 | echo >>$CONFIG_STATUS
|
---|
| 8953 |
|
---|
| 8954 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
| 8955 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
| 8956 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
| 8957 | rm -f conftest.tail
|
---|
| 8958 | while grep . conftest.undefs >/dev/null
|
---|
| 8959 | do
|
---|
| 8960 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
| 8961 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
| 8962 | # Speed up: don't consider the non `#undef'
|
---|
| 8963 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
| 8964 | # Work around the forget-to-reset-the-flag bug.
|
---|
| 8965 | echo 't clr' >>$CONFIG_STATUS
|
---|
| 8966 | echo ': clr' >>$CONFIG_STATUS
|
---|
| 8967 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
| 8968 | echo 'CEOF
|
---|
| 8969 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
| 8970 | rm -f $tmp/in
|
---|
| 8971 | mv $tmp/out $tmp/in
|
---|
| 8972 | ' >>$CONFIG_STATUS
|
---|
| 8973 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
| 8974 | rm -f conftest.undefs
|
---|
| 8975 | mv conftest.tail conftest.undefs
|
---|
| 8976 | done
|
---|
| 8977 | rm -f conftest.undefs
|
---|
| 8978 |
|
---|
| 8979 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
| 8980 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
| 8981 | # use $as_me), people would be surprised to read:
|
---|
| 8982 | # /* config.h. Generated by config.status. */
|
---|
| 8983 | if test x"$ac_file" = x-; then
|
---|
| 8984 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
| 8985 | else
|
---|
| 8986 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
| 8987 | fi
|
---|
| 8988 | cat $tmp/in >>$tmp/config.h
|
---|
| 8989 | rm -f $tmp/in
|
---|
[16568] | 8990 | if test x"$ac_file" != x-; then
|
---|
[24901] | 8991 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
| 8992 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
| 8993 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
[16568] | 8994 | else
|
---|
[24901] | 8995 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
| 8996 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 8997 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
| 8998 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
| 8999 | X"$ac_file" : 'X\(/\)' \| \
|
---|
| 9000 | . : '\(.\)' 2>/dev/null ||
|
---|
| 9001 | echo X"$ac_file" |
|
---|
| 9002 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 9003 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 9004 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 9005 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 9006 | s/.*/./; q'`
|
---|
| 9007 | { if $as_mkdir_p; then
|
---|
| 9008 | mkdir -p "$ac_dir"
|
---|
| 9009 | else
|
---|
| 9010 | as_dir="$ac_dir"
|
---|
| 9011 | as_dirs=
|
---|
| 9012 | while test ! -d "$as_dir"; do
|
---|
| 9013 | as_dirs="$as_dir $as_dirs"
|
---|
| 9014 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 9015 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 9016 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 9017 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 9018 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 9019 | . : '\(.\)' 2>/dev/null ||
|
---|
| 9020 | echo X"$as_dir" |
|
---|
| 9021 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 9022 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 9023 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 9024 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 9025 | s/.*/./; q'`
|
---|
| 9026 | done
|
---|
| 9027 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 9028 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 9029 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 9030 | { (exit 1); exit 1; }; }; }
|
---|
| 9031 |
|
---|
| 9032 | rm -f $ac_file
|
---|
| 9033 | mv $tmp/config.h $ac_file
|
---|
[16568] | 9034 | fi
|
---|
| 9035 | else
|
---|
[24901] | 9036 | cat $tmp/config.h
|
---|
| 9037 | rm -f $tmp/config.h
|
---|
[16568] | 9038 | fi
|
---|
[24901] | 9039 | done
|
---|
| 9040 | _ACEOF
|
---|
[16568] | 9041 |
|
---|
[24901] | 9042 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
[16568] | 9043 |
|
---|
[24901] | 9044 | { (exit 0); exit 0; }
|
---|
[16568] | 9045 | _ACEOF
|
---|
[24901] | 9046 | chmod +x $CONFIG_STATUS
|
---|
[16568] | 9047 | ac_clean_files=$ac_clean_files_save
|
---|
| 9048 |
|
---|
| 9049 |
|
---|
| 9050 | # configure is writing to config.log, and then calls config.status.
|
---|
| 9051 | # config.status does its own redirection, appending to config.log.
|
---|
| 9052 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
| 9053 | # by configure, so config.status won't be able to write to it; its
|
---|
| 9054 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
| 9055 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
| 9056 | # appended to by config.status. When coming back to configure, we
|
---|
| 9057 | # need to make the FD available again.
|
---|
| 9058 | if test "$no_create" != yes; then
|
---|
| 9059 | ac_cs_success=:
|
---|
| 9060 | ac_config_status_args=
|
---|
| 9061 | test "$silent" = yes &&
|
---|
| 9062 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
| 9063 | exec 5>/dev/null
|
---|
| 9064 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
| 9065 | exec 5>>config.log
|
---|
| 9066 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
| 9067 | # would make configure fail if this is the last instruction.
|
---|
[24901] | 9068 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
[16568] | 9069 | fi
|
---|
| 9070 |
|
---|
| 9071 | #
|
---|
| 9072 | # CONFIG_SUBDIRS section.
|
---|
| 9073 | #
|
---|
| 9074 | if test "$no_recursion" != yes; then
|
---|
| 9075 |
|
---|
[24901] | 9076 | # Remove --cache-file and --srcdir arguments so they do not pile up.
|
---|
[16568] | 9077 | ac_sub_configure_args=
|
---|
| 9078 | ac_prev=
|
---|
[24901] | 9079 | for ac_arg in $ac_configure_args; do
|
---|
[16568] | 9080 | if test -n "$ac_prev"; then
|
---|
| 9081 | ac_prev=
|
---|
| 9082 | continue
|
---|
| 9083 | fi
|
---|
| 9084 | case $ac_arg in
|
---|
| 9085 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
| 9086 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
| 9087 | ac_prev=cache_file ;;
|
---|
| 9088 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
| 9089 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
|
---|
| 9090 | | --c=*)
|
---|
| 9091 | ;;
|
---|
| 9092 | --config-cache | -C)
|
---|
| 9093 | ;;
|
---|
| 9094 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
| 9095 | ac_prev=srcdir ;;
|
---|
| 9096 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
| 9097 | ;;
|
---|
| 9098 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
| 9099 | ac_prev=prefix ;;
|
---|
| 9100 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
| 9101 | ;;
|
---|
[24901] | 9102 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
|
---|
[16568] | 9103 | esac
|
---|
| 9104 | done
|
---|
| 9105 |
|
---|
| 9106 | # Always prepend --prefix to ensure using the same prefix
|
---|
| 9107 | # in subdir configurations.
|
---|
[24901] | 9108 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
|
---|
[16568] | 9109 |
|
---|
| 9110 | ac_popdir=`pwd`
|
---|
| 9111 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
|
---|
| 9112 |
|
---|
| 9113 | # Do not complain, so a configure script can configure whichever
|
---|
| 9114 | # parts of a large source tree are present.
|
---|
[24901] | 9115 | test -d $srcdir/$ac_dir || continue
|
---|
[16568] | 9116 |
|
---|
[24901] | 9117 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
|
---|
| 9118 | echo "$as_me: configuring in $ac_dir" >&6;}
|
---|
| 9119 | { if $as_mkdir_p; then
|
---|
| 9120 | mkdir -p "$ac_dir"
|
---|
| 9121 | else
|
---|
| 9122 | as_dir="$ac_dir"
|
---|
| 9123 | as_dirs=
|
---|
| 9124 | while test ! -d "$as_dir"; do
|
---|
| 9125 | as_dirs="$as_dir $as_dirs"
|
---|
| 9126 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
| 9127 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
| 9128 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
| 9129 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
| 9130 | X"$as_dir" : 'X\(/\)' \| \
|
---|
| 9131 | . : '\(.\)' 2>/dev/null ||
|
---|
| 9132 | echo X"$as_dir" |
|
---|
| 9133 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
| 9134 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
| 9135 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
| 9136 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
| 9137 | s/.*/./; q'`
|
---|
| 9138 | done
|
---|
| 9139 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
| 9140 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
| 9141 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
| 9142 | { (exit 1); exit 1; }; }; }
|
---|
| 9143 |
|
---|
[16568] | 9144 | ac_builddir=.
|
---|
| 9145 |
|
---|
[24901] | 9146 | if test "$ac_dir" != .; then
|
---|
| 9147 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
| 9148 | # A "../" for each directory in $ac_dir_suffix.
|
---|
| 9149 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
| 9150 | else
|
---|
| 9151 | ac_dir_suffix= ac_top_builddir=
|
---|
| 9152 | fi
|
---|
[16568] | 9153 |
|
---|
| 9154 | case $srcdir in
|
---|
[24901] | 9155 | .) # No --srcdir option. We are building in place.
|
---|
[16568] | 9156 | ac_srcdir=.
|
---|
[24901] | 9157 | if test -z "$ac_top_builddir"; then
|
---|
| 9158 | ac_top_srcdir=.
|
---|
| 9159 | else
|
---|
| 9160 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
| 9161 | fi ;;
|
---|
| 9162 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
[16568] | 9163 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
[24901] | 9164 | ac_top_srcdir=$srcdir ;;
|
---|
| 9165 | *) # Relative path.
|
---|
| 9166 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
| 9167 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
[16568] | 9168 | esac
|
---|
| 9169 |
|
---|
[24901] | 9170 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
| 9171 | # the directories may not exist.
|
---|
| 9172 | case `pwd` in
|
---|
| 9173 | .) ac_abs_builddir="$ac_dir";;
|
---|
| 9174 | *)
|
---|
| 9175 | case "$ac_dir" in
|
---|
| 9176 | .) ac_abs_builddir=`pwd`;;
|
---|
| 9177 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
| 9178 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
| 9179 | esac;;
|
---|
| 9180 | esac
|
---|
| 9181 | case $ac_abs_builddir in
|
---|
| 9182 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 9183 | *)
|
---|
| 9184 | case ${ac_top_builddir}. in
|
---|
| 9185 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
| 9186 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
| 9187 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
| 9188 | esac;;
|
---|
| 9189 | esac
|
---|
| 9190 | case $ac_abs_builddir in
|
---|
| 9191 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 9192 | *)
|
---|
| 9193 | case $ac_srcdir in
|
---|
| 9194 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
| 9195 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
| 9196 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
| 9197 | esac;;
|
---|
| 9198 | esac
|
---|
| 9199 | case $ac_abs_builddir in
|
---|
| 9200 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 9201 | *)
|
---|
| 9202 | case $ac_top_srcdir in
|
---|
| 9203 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
| 9204 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
| 9205 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
| 9206 | esac;;
|
---|
| 9207 | esac
|
---|
[16568] | 9208 |
|
---|
| 9209 |
|
---|
[24901] | 9210 | cd $ac_dir
|
---|
| 9211 |
|
---|
[16568] | 9212 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
[24901] | 9213 | if test -f $ac_srcdir/configure.gnu; then
|
---|
| 9214 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
|
---|
| 9215 | elif test -f $ac_srcdir/configure; then
|
---|
| 9216 | ac_sub_configure="$SHELL '$ac_srcdir/configure'"
|
---|
| 9217 | elif test -f $ac_srcdir/configure.in; then
|
---|
| 9218 | ac_sub_configure=$ac_configure
|
---|
[16568] | 9219 | else
|
---|
[24901] | 9220 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
|
---|
| 9221 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
|
---|
[16568] | 9222 | ac_sub_configure=
|
---|
| 9223 | fi
|
---|
| 9224 |
|
---|
| 9225 | # The recursion is here.
|
---|
| 9226 | if test -n "$ac_sub_configure"; then
|
---|
| 9227 | # Make the cache file name correct relative to the subdirectory.
|
---|
| 9228 | case $cache_file in
|
---|
| 9229 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
|
---|
[24901] | 9230 | *) # Relative path.
|
---|
| 9231 | ac_sub_cache_file=$ac_top_builddir$cache_file ;;
|
---|
[16568] | 9232 | esac
|
---|
| 9233 |
|
---|
[24901] | 9234 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
|
---|
| 9235 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
|
---|
[16568] | 9236 | # The eval makes quoting arguments work.
|
---|
[24901] | 9237 | eval $ac_sub_configure $ac_sub_configure_args \
|
---|
| 9238 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
|
---|
| 9239 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
|
---|
| 9240 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
|
---|
| 9241 | { (exit 1); exit 1; }; }
|
---|
[16568] | 9242 | fi
|
---|
| 9243 |
|
---|
[24901] | 9244 | cd $ac_popdir
|
---|
[16568] | 9245 | done
|
---|
| 9246 | fi
|
---|
| 9247 |
|
---|
| 9248 |
|
---|
| 9249 |
|
---|