[13] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
| 3 | # Generated by GNU Autoconf 2.57. |
---|
| 4 | # |
---|
| 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
---|
| 6 | # Free Software Foundation, Inc. |
---|
| 7 | # This configure script is free software; the Free Software Foundation |
---|
| 8 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 9 | ## --------------------- ## |
---|
| 10 | ## M4sh Initialization. ## |
---|
| 11 | ## --------------------- ## |
---|
| 12 | |
---|
| 13 | # Be Bourne compatible |
---|
| 14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 15 | emulate sh |
---|
| 16 | NULLCMD=: |
---|
| 17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 18 | # is contrary to our usage. Disable this feature. |
---|
| 19 | alias -g '${1+"$@"}'='"$@"' |
---|
| 20 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 21 | set -o posix |
---|
| 22 | fi |
---|
| 23 | |
---|
| 24 | # Support unset when possible. |
---|
| 25 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
---|
| 26 | as_unset=unset |
---|
| 27 | else |
---|
| 28 | as_unset=false |
---|
| 29 | fi |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 33 | $as_unset ENV MAIL MAILPATH |
---|
| 34 | PS1='$ ' |
---|
| 35 | PS2='> ' |
---|
| 36 | PS4='+ ' |
---|
| 37 | |
---|
| 38 | # NLS nuisances. |
---|
| 39 | for as_var in \ |
---|
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 42 | LC_TELEPHONE LC_TIME |
---|
| 43 | do |
---|
| 44 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 45 | eval $as_var=C; export $as_var |
---|
| 46 | else |
---|
| 47 | $as_unset $as_var |
---|
| 48 | fi |
---|
| 49 | done |
---|
| 50 | |
---|
| 51 | # Required to use basename. |
---|
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 53 | as_expr=expr |
---|
| 54 | else |
---|
| 55 | as_expr=false |
---|
| 56 | fi |
---|
| 57 | |
---|
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 59 | as_basename=basename |
---|
| 60 | else |
---|
| 61 | as_basename=false |
---|
| 62 | fi |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | # Name of the executable. |
---|
| 66 | as_me=`$as_basename "$0" || |
---|
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 68 | X"$0" : 'X\(//\)$' \| \ |
---|
| 69 | X"$0" : 'X\(/\)$' \| \ |
---|
| 70 | . : '\(.\)' 2>/dev/null || |
---|
| 71 | echo X/"$0" | |
---|
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 75 | s/.*/./; q'` |
---|
| 76 | |
---|
| 77 | |
---|
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 79 | # Avoid depending upon Character Ranges. |
---|
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 83 | as_cr_digits='0123456789' |
---|
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 85 | |
---|
| 86 | # The user is always right. |
---|
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 88 | echo "#! /bin/sh" >conf$$.sh |
---|
| 89 | echo "exit 0" >>conf$$.sh |
---|
| 90 | chmod +x conf$$.sh |
---|
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 92 | PATH_SEPARATOR=';' |
---|
| 93 | else |
---|
| 94 | PATH_SEPARATOR=: |
---|
| 95 | fi |
---|
| 96 | rm -f conf$$.sh |
---|
| 97 | fi |
---|
| 98 | |
---|
| 99 | |
---|
| 100 | as_lineno_1=$LINENO |
---|
| 101 | as_lineno_2=$LINENO |
---|
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 105 | # Find who we are. Look in the path if we contain no path at all |
---|
| 106 | # relative or not. |
---|
| 107 | case $0 in |
---|
| 108 | *[\\/]* ) as_myself=$0 ;; |
---|
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 110 | for as_dir in $PATH |
---|
| 111 | do |
---|
| 112 | IFS=$as_save_IFS |
---|
| 113 | test -z "$as_dir" && as_dir=. |
---|
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 115 | done |
---|
| 116 | |
---|
| 117 | ;; |
---|
| 118 | esac |
---|
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 120 | # in which case we are not to be found in the path. |
---|
| 121 | if test "x$as_myself" = x; then |
---|
| 122 | as_myself=$0 |
---|
| 123 | fi |
---|
| 124 | if test ! -f "$as_myself"; then |
---|
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
| 126 | { (exit 1); exit 1; }; } |
---|
| 127 | fi |
---|
| 128 | case $CONFIG_SHELL in |
---|
| 129 | '') |
---|
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 132 | do |
---|
| 133 | IFS=$as_save_IFS |
---|
| 134 | test -z "$as_dir" && as_dir=. |
---|
| 135 | for as_base in sh bash ksh sh5; do |
---|
| 136 | case $as_dir in |
---|
| 137 | /*) |
---|
| 138 | if ("$as_dir/$as_base" -c ' |
---|
| 139 | as_lineno_1=$LINENO |
---|
| 140 | as_lineno_2=$LINENO |
---|
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 146 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 147 | export CONFIG_SHELL |
---|
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 149 | fi;; |
---|
| 150 | esac |
---|
| 151 | done |
---|
| 152 | done |
---|
| 153 | ;; |
---|
| 154 | esac |
---|
| 155 | |
---|
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 158 | # line-number line before each line; the second 'sed' does the real |
---|
| 159 | # work. The second script uses 'N' to pair each line-number line |
---|
| 160 | # with the numbered line, and appends trailing '-' during |
---|
| 161 | # substitution so that $LINENO is not a special case at line end. |
---|
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 164 | sed '=' <$as_myself | |
---|
| 165 | sed ' |
---|
| 166 | N |
---|
| 167 | s,$,-, |
---|
| 168 | : loop |
---|
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 170 | t loop |
---|
| 171 | s,-$,, |
---|
| 172 | s,^['$as_cr_digits']*\n,, |
---|
| 173 | ' >$as_me.lineno && |
---|
| 174 | chmod +x $as_me.lineno || |
---|
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
| 176 | { (exit 1); exit 1; }; } |
---|
| 177 | |
---|
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 179 | # (the dirname of $[0] is not the place where we might find the |
---|
| 180 | # original and so on. Autoconf is especially sensible to this). |
---|
| 181 | . ./$as_me.lineno |
---|
| 182 | # Exit status is that of the last command. |
---|
| 183 | exit |
---|
| 184 | } |
---|
| 185 | |
---|
| 186 | |
---|
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 189 | ' ECHO_T=' ' ;; |
---|
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 192 | esac |
---|
| 193 | |
---|
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 195 | as_expr=expr |
---|
| 196 | else |
---|
| 197 | as_expr=false |
---|
| 198 | fi |
---|
| 199 | |
---|
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 201 | echo >conf$$.file |
---|
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 205 | if test -f conf$$.exe; then |
---|
| 206 | # Don't use ln at all; we don't have any links |
---|
| 207 | as_ln_s='cp -p' |
---|
| 208 | else |
---|
| 209 | as_ln_s='ln -s' |
---|
| 210 | fi |
---|
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 212 | as_ln_s=ln |
---|
| 213 | else |
---|
| 214 | as_ln_s='cp -p' |
---|
| 215 | fi |
---|
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 217 | |
---|
| 218 | if mkdir -p . 2>/dev/null; then |
---|
| 219 | as_mkdir_p=: |
---|
| 220 | else |
---|
| 221 | as_mkdir_p=false |
---|
| 222 | fi |
---|
| 223 | |
---|
| 224 | as_executable_p="test -f" |
---|
| 225 | |
---|
| 226 | # Sed expression to map a string onto a valid CPP name. |
---|
| 227 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
| 228 | |
---|
| 229 | # Sed expression to map a string onto a valid variable name. |
---|
| 230 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
| 231 | |
---|
| 232 | |
---|
| 233 | # IFS |
---|
| 234 | # We need space, tab and new line, in precisely that order. |
---|
| 235 | as_nl=' |
---|
| 236 | ' |
---|
| 237 | IFS=" $as_nl" |
---|
| 238 | |
---|
| 239 | # CDPATH. |
---|
| 240 | $as_unset CDPATH |
---|
| 241 | |
---|
| 242 | |
---|
| 243 | # Name of the host. |
---|
| 244 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
| 245 | # so uname gets run too. |
---|
| 246 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 247 | |
---|
| 248 | exec 6>&1 |
---|
| 249 | |
---|
| 250 | # |
---|
| 251 | # Initializations. |
---|
| 252 | # |
---|
| 253 | ac_default_prefix=/usr/local |
---|
| 254 | ac_config_libobj_dir=. |
---|
| 255 | cross_compiling=no |
---|
| 256 | subdirs= |
---|
| 257 | MFLAGS= |
---|
| 258 | MAKEFLAGS= |
---|
| 259 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 260 | |
---|
| 261 | # Maximum number of lines to put in a shell here document. |
---|
| 262 | # This variable seems obsolete. It should probably be removed, and |
---|
| 263 | # only ac_max_sed_lines should be used. |
---|
| 264 | : ${ac_max_here_lines=38} |
---|
| 265 | |
---|
| 266 | # Identity of this package. |
---|
| 267 | PACKAGE_NAME= |
---|
| 268 | PACKAGE_TARNAME= |
---|
| 269 | PACKAGE_VERSION= |
---|
| 270 | PACKAGE_STRING= |
---|
| 271 | PACKAGE_BUGREPORT= |
---|
| 272 | |
---|
| 273 | ac_unique_file="src/array/array.c" |
---|
| 274 | # Factoring default headers for most tests. |
---|
| 275 | ac_includes_default="\ |
---|
| 276 | #include <stdio.h> |
---|
| 277 | #if HAVE_SYS_TYPES_H |
---|
| 278 | # include <sys/types.h> |
---|
| 279 | #endif |
---|
| 280 | #if HAVE_SYS_STAT_H |
---|
| 281 | # include <sys/stat.h> |
---|
| 282 | #endif |
---|
| 283 | #if STDC_HEADERS |
---|
| 284 | # include <stdlib.h> |
---|
| 285 | # include <stddef.h> |
---|
| 286 | #else |
---|
| 287 | # if HAVE_STDLIB_H |
---|
| 288 | # include <stdlib.h> |
---|
| 289 | # endif |
---|
| 290 | #endif |
---|
| 291 | #if HAVE_STRING_H |
---|
| 292 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
| 293 | # include <memory.h> |
---|
| 294 | # endif |
---|
| 295 | # include <string.h> |
---|
| 296 | #endif |
---|
| 297 | #if HAVE_STRINGS_H |
---|
| 298 | # include <strings.h> |
---|
| 299 | #endif |
---|
| 300 | #if HAVE_INTTYPES_H |
---|
| 301 | # include <inttypes.h> |
---|
| 302 | #else |
---|
| 303 | # if HAVE_STDINT_H |
---|
| 304 | # include <stdint.h> |
---|
| 305 | # endif |
---|
| 306 | #endif |
---|
| 307 | #if HAVE_UNISTD_H |
---|
| 308 | # include <unistd.h> |
---|
| 309 | #endif" |
---|
| 310 | |
---|
| 311 | 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 local_srcdir AR RANLIB ac_ct_RANLIB build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINKER PLINKER CPP EGREP LIBOBJS LTLIBOBJS' |
---|
| 312 | ac_subst_files='' |
---|
| 313 | |
---|
| 314 | # Initialize some variables set by options. |
---|
| 315 | ac_init_help= |
---|
| 316 | ac_init_version=false |
---|
| 317 | # The variables have the same names as the options, with |
---|
| 318 | # dashes changed to underlines. |
---|
| 319 | cache_file=/dev/null |
---|
| 320 | exec_prefix=NONE |
---|
| 321 | no_create= |
---|
| 322 | no_recursion= |
---|
| 323 | prefix=NONE |
---|
| 324 | program_prefix=NONE |
---|
| 325 | program_suffix=NONE |
---|
| 326 | program_transform_name=s,x,x, |
---|
| 327 | silent= |
---|
| 328 | site= |
---|
| 329 | srcdir= |
---|
| 330 | verbose= |
---|
| 331 | x_includes=NONE |
---|
| 332 | x_libraries=NONE |
---|
| 333 | |
---|
| 334 | # Installation directory options. |
---|
| 335 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 336 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 337 | # by default will actually change. |
---|
| 338 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
| 339 | bindir='${exec_prefix}/bin' |
---|
| 340 | sbindir='${exec_prefix}/sbin' |
---|
| 341 | libexecdir='${exec_prefix}/libexec' |
---|
| 342 | datadir='${prefix}/share' |
---|
| 343 | sysconfdir='${prefix}/etc' |
---|
| 344 | sharedstatedir='${prefix}/com' |
---|
| 345 | localstatedir='${prefix}/var' |
---|
| 346 | libdir='${exec_prefix}/lib' |
---|
| 347 | includedir='${prefix}/include' |
---|
| 348 | oldincludedir='/usr/include' |
---|
| 349 | infodir='${prefix}/info' |
---|
| 350 | mandir='${prefix}/man' |
---|
| 351 | |
---|
| 352 | ac_prev= |
---|
| 353 | for ac_option |
---|
| 354 | do |
---|
| 355 | # If the previous option needs an argument, assign it. |
---|
| 356 | if test -n "$ac_prev"; then |
---|
| 357 | eval "$ac_prev=\$ac_option" |
---|
| 358 | ac_prev= |
---|
| 359 | continue |
---|
| 360 | fi |
---|
| 361 | |
---|
| 362 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
| 363 | |
---|
| 364 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 365 | |
---|
| 366 | case $ac_option in |
---|
| 367 | |
---|
| 368 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 369 | ac_prev=bindir ;; |
---|
| 370 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 371 | bindir=$ac_optarg ;; |
---|
| 372 | |
---|
| 373 | -build | --build | --buil | --bui | --bu) |
---|
| 374 | ac_prev=build_alias ;; |
---|
| 375 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 376 | build_alias=$ac_optarg ;; |
---|
| 377 | |
---|
| 378 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 379 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 380 | ac_prev=cache_file ;; |
---|
| 381 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 382 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 383 | cache_file=$ac_optarg ;; |
---|
| 384 | |
---|
| 385 | --config-cache | -C) |
---|
| 386 | cache_file=config.cache ;; |
---|
| 387 | |
---|
| 388 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 389 | ac_prev=datadir ;; |
---|
| 390 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 391 | | --da=*) |
---|
| 392 | datadir=$ac_optarg ;; |
---|
| 393 | |
---|
| 394 | -disable-* | --disable-*) |
---|
| 395 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
| 396 | # Reject names that are not valid shell variable names. |
---|
| 397 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 398 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 399 | { (exit 1); exit 1; }; } |
---|
| 400 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 401 | eval "enable_$ac_feature=no" ;; |
---|
| 402 | |
---|
| 403 | -enable-* | --enable-*) |
---|
| 404 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
| 405 | # Reject names that are not valid shell variable names. |
---|
| 406 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 407 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 408 | { (exit 1); exit 1; }; } |
---|
| 409 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 410 | case $ac_option in |
---|
| 411 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 412 | *) ac_optarg=yes ;; |
---|
| 413 | esac |
---|
| 414 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
| 415 | |
---|
| 416 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 417 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 418 | | --exec | --exe | --ex) |
---|
| 419 | ac_prev=exec_prefix ;; |
---|
| 420 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 421 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 422 | | --exec=* | --exe=* | --ex=*) |
---|
| 423 | exec_prefix=$ac_optarg ;; |
---|
| 424 | |
---|
| 425 | -gas | --gas | --ga | --g) |
---|
| 426 | # Obsolete; use --with-gas. |
---|
| 427 | with_gas=yes ;; |
---|
| 428 | |
---|
| 429 | -help | --help | --hel | --he | -h) |
---|
| 430 | ac_init_help=long ;; |
---|
| 431 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 432 | ac_init_help=recursive ;; |
---|
| 433 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 434 | ac_init_help=short ;; |
---|
| 435 | |
---|
| 436 | -host | --host | --hos | --ho) |
---|
| 437 | ac_prev=host_alias ;; |
---|
| 438 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 439 | host_alias=$ac_optarg ;; |
---|
| 440 | |
---|
| 441 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 442 | | --includ | --inclu | --incl | --inc) |
---|
| 443 | ac_prev=includedir ;; |
---|
| 444 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 445 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 446 | includedir=$ac_optarg ;; |
---|
| 447 | |
---|
| 448 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 449 | ac_prev=infodir ;; |
---|
| 450 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 451 | infodir=$ac_optarg ;; |
---|
| 452 | |
---|
| 453 | -libdir | --libdir | --libdi | --libd) |
---|
| 454 | ac_prev=libdir ;; |
---|
| 455 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 456 | libdir=$ac_optarg ;; |
---|
| 457 | |
---|
| 458 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 459 | | --libexe | --libex | --libe) |
---|
| 460 | ac_prev=libexecdir ;; |
---|
| 461 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 462 | | --libexe=* | --libex=* | --libe=*) |
---|
| 463 | libexecdir=$ac_optarg ;; |
---|
| 464 | |
---|
| 465 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 466 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 467 | | --locals | --local | --loca | --loc | --lo) |
---|
| 468 | ac_prev=localstatedir ;; |
---|
| 469 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 470 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 471 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 472 | localstatedir=$ac_optarg ;; |
---|
| 473 | |
---|
| 474 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 475 | ac_prev=mandir ;; |
---|
| 476 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 477 | mandir=$ac_optarg ;; |
---|
| 478 | |
---|
| 479 | -nfp | --nfp | --nf) |
---|
| 480 | # Obsolete; use --without-fp. |
---|
| 481 | with_fp=no ;; |
---|
| 482 | |
---|
| 483 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 484 | | --no-cr | --no-c | -n) |
---|
| 485 | no_create=yes ;; |
---|
| 486 | |
---|
| 487 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 488 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 489 | no_recursion=yes ;; |
---|
| 490 | |
---|
| 491 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 492 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 493 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 494 | ac_prev=oldincludedir ;; |
---|
| 495 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 496 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 497 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 498 | oldincludedir=$ac_optarg ;; |
---|
| 499 | |
---|
| 500 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 501 | ac_prev=prefix ;; |
---|
| 502 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 503 | prefix=$ac_optarg ;; |
---|
| 504 | |
---|
| 505 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 506 | | --program-pre | --program-pr | --program-p) |
---|
| 507 | ac_prev=program_prefix ;; |
---|
| 508 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 509 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 510 | program_prefix=$ac_optarg ;; |
---|
| 511 | |
---|
| 512 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 513 | | --program-suf | --program-su | --program-s) |
---|
| 514 | ac_prev=program_suffix ;; |
---|
| 515 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 516 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 517 | program_suffix=$ac_optarg ;; |
---|
| 518 | |
---|
| 519 | -program-transform-name | --program-transform-name \ |
---|
| 520 | | --program-transform-nam | --program-transform-na \ |
---|
| 521 | | --program-transform-n | --program-transform- \ |
---|
| 522 | | --program-transform | --program-transfor \ |
---|
| 523 | | --program-transfo | --program-transf \ |
---|
| 524 | | --program-trans | --program-tran \ |
---|
| 525 | | --progr-tra | --program-tr | --program-t) |
---|
| 526 | ac_prev=program_transform_name ;; |
---|
| 527 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 528 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 529 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 530 | | --program-transform=* | --program-transfor=* \ |
---|
| 531 | | --program-transfo=* | --program-transf=* \ |
---|
| 532 | | --program-trans=* | --program-tran=* \ |
---|
| 533 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 534 | program_transform_name=$ac_optarg ;; |
---|
| 535 | |
---|
| 536 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 537 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 538 | silent=yes ;; |
---|
| 539 | |
---|
| 540 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 541 | ac_prev=sbindir ;; |
---|
| 542 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 543 | | --sbi=* | --sb=*) |
---|
| 544 | sbindir=$ac_optarg ;; |
---|
| 545 | |
---|
| 546 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 547 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 548 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 549 | | --sha | --sh) |
---|
| 550 | ac_prev=sharedstatedir ;; |
---|
| 551 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 552 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 553 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 554 | | --sha=* | --sh=*) |
---|
| 555 | sharedstatedir=$ac_optarg ;; |
---|
| 556 | |
---|
| 557 | -site | --site | --sit) |
---|
| 558 | ac_prev=site ;; |
---|
| 559 | -site=* | --site=* | --sit=*) |
---|
| 560 | site=$ac_optarg ;; |
---|
| 561 | |
---|
| 562 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 563 | ac_prev=srcdir ;; |
---|
| 564 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 565 | srcdir=$ac_optarg ;; |
---|
| 566 | |
---|
| 567 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 568 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 569 | ac_prev=sysconfdir ;; |
---|
| 570 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 571 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 572 | sysconfdir=$ac_optarg ;; |
---|
| 573 | |
---|
| 574 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 575 | ac_prev=target_alias ;; |
---|
| 576 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 577 | target_alias=$ac_optarg ;; |
---|
| 578 | |
---|
| 579 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 580 | verbose=yes ;; |
---|
| 581 | |
---|
| 582 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 583 | ac_init_version=: ;; |
---|
| 584 | |
---|
| 585 | -with-* | --with-*) |
---|
| 586 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
| 587 | # Reject names that are not valid shell variable names. |
---|
| 588 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 589 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 590 | { (exit 1); exit 1; }; } |
---|
| 591 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 592 | case $ac_option in |
---|
| 593 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 594 | *) ac_optarg=yes ;; |
---|
| 595 | esac |
---|
| 596 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
| 597 | |
---|
| 598 | -without-* | --without-*) |
---|
| 599 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
| 600 | # Reject names that are not valid shell variable names. |
---|
| 601 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 602 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 603 | { (exit 1); exit 1; }; } |
---|
| 604 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
| 605 | eval "with_$ac_package=no" ;; |
---|
| 606 | |
---|
| 607 | --x) |
---|
| 608 | # Obsolete; use --with-x. |
---|
| 609 | with_x=yes ;; |
---|
| 610 | |
---|
| 611 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 612 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 613 | ac_prev=x_includes ;; |
---|
| 614 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 615 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 616 | x_includes=$ac_optarg ;; |
---|
| 617 | |
---|
| 618 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 619 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 620 | ac_prev=x_libraries ;; |
---|
| 621 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 622 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 623 | x_libraries=$ac_optarg ;; |
---|
| 624 | |
---|
| 625 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
| 626 | Try \`$0 --help' for more information." >&2 |
---|
| 627 | { (exit 1); exit 1; }; } |
---|
| 628 | ;; |
---|
| 629 | |
---|
| 630 | *=*) |
---|
| 631 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 632 | # Reject names that are not valid shell variable names. |
---|
| 633 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
| 634 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
| 635 | { (exit 1); exit 1; }; } |
---|
| 636 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
| 637 | eval "$ac_envvar='$ac_optarg'" |
---|
| 638 | export $ac_envvar ;; |
---|
| 639 | |
---|
| 640 | *) |
---|
| 641 | # FIXME: should be removed in autoconf 3.0. |
---|
| 642 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
| 643 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 644 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 645 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
| 646 | ;; |
---|
| 647 | |
---|
| 648 | esac |
---|
| 649 | done |
---|
| 650 | |
---|
| 651 | if test -n "$ac_prev"; then |
---|
| 652 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
| 653 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
| 654 | { (exit 1); exit 1; }; } |
---|
| 655 | fi |
---|
| 656 | |
---|
| 657 | # Be sure to have absolute paths. |
---|
| 658 | for ac_var in exec_prefix prefix |
---|
| 659 | do |
---|
| 660 | eval ac_val=$`echo $ac_var` |
---|
| 661 | case $ac_val in |
---|
| 662 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
| 663 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 664 | { (exit 1); exit 1; }; };; |
---|
| 665 | esac |
---|
| 666 | done |
---|
| 667 | |
---|
| 668 | # Be sure to have absolute paths. |
---|
| 669 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
| 670 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
| 671 | do |
---|
| 672 | eval ac_val=$`echo $ac_var` |
---|
| 673 | case $ac_val in |
---|
| 674 | [\\/$]* | ?:[\\/]* ) ;; |
---|
| 675 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 676 | { (exit 1); exit 1; }; };; |
---|
| 677 | esac |
---|
| 678 | done |
---|
| 679 | |
---|
| 680 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 681 | # used to hold the argument of --host etc. |
---|
| 682 | # FIXME: To remove some day. |
---|
| 683 | build=$build_alias |
---|
| 684 | host=$host_alias |
---|
| 685 | target=$target_alias |
---|
| 686 | |
---|
| 687 | # FIXME: To remove some day. |
---|
| 688 | if test "x$host_alias" != x; then |
---|
| 689 | if test "x$build_alias" = x; then |
---|
| 690 | cross_compiling=maybe |
---|
| 691 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
| 692 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
| 693 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 694 | cross_compiling=yes |
---|
| 695 | fi |
---|
| 696 | fi |
---|
| 697 | |
---|
| 698 | ac_tool_prefix= |
---|
| 699 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 700 | |
---|
| 701 | test "$silent" = yes && exec 6>/dev/null |
---|
| 702 | |
---|
| 703 | |
---|
| 704 | # Find the source files, if location was not specified. |
---|
| 705 | if test -z "$srcdir"; then |
---|
| 706 | ac_srcdir_defaulted=yes |
---|
| 707 | # Try the directory containing this script, then its parent. |
---|
| 708 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
| 709 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 710 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
| 711 | X"$0" : 'X\(//\)$' \| \ |
---|
| 712 | X"$0" : 'X\(/\)' \| \ |
---|
| 713 | . : '\(.\)' 2>/dev/null || |
---|
| 714 | echo X"$0" | |
---|
| 715 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 716 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 717 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 718 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 719 | s/.*/./; q'` |
---|
| 720 | srcdir=$ac_confdir |
---|
| 721 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 722 | srcdir=.. |
---|
| 723 | fi |
---|
| 724 | else |
---|
| 725 | ac_srcdir_defaulted=no |
---|
| 726 | fi |
---|
| 727 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 728 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 729 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
| 730 | { (exit 1); exit 1; }; } |
---|
| 731 | else |
---|
| 732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
| 733 | { (exit 1); exit 1; }; } |
---|
| 734 | fi |
---|
| 735 | fi |
---|
| 736 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
| 737 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
| 738 | { (exit 1); exit 1; }; } |
---|
| 739 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
| 740 | ac_env_build_alias_set=${build_alias+set} |
---|
| 741 | ac_env_build_alias_value=$build_alias |
---|
| 742 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
| 743 | ac_cv_env_build_alias_value=$build_alias |
---|
| 744 | ac_env_host_alias_set=${host_alias+set} |
---|
| 745 | ac_env_host_alias_value=$host_alias |
---|
| 746 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
| 747 | ac_cv_env_host_alias_value=$host_alias |
---|
| 748 | ac_env_target_alias_set=${target_alias+set} |
---|
| 749 | ac_env_target_alias_value=$target_alias |
---|
| 750 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
| 751 | ac_cv_env_target_alias_value=$target_alias |
---|
| 752 | ac_env_CC_set=${CC+set} |
---|
| 753 | ac_env_CC_value=$CC |
---|
| 754 | ac_cv_env_CC_set=${CC+set} |
---|
| 755 | ac_cv_env_CC_value=$CC |
---|
| 756 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
| 757 | ac_env_CFLAGS_value=$CFLAGS |
---|
| 758 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
| 759 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
| 760 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 761 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
| 762 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 763 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
| 764 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 765 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 766 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 767 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 768 | ac_env_CPP_set=${CPP+set} |
---|
| 769 | ac_env_CPP_value=$CPP |
---|
| 770 | ac_cv_env_CPP_set=${CPP+set} |
---|
| 771 | ac_cv_env_CPP_value=$CPP |
---|
| 772 | |
---|
| 773 | # |
---|
| 774 | # Report the --help message. |
---|
| 775 | # |
---|
| 776 | if test "$ac_init_help" = "long"; then |
---|
| 777 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 778 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 779 | cat <<_ACEOF |
---|
| 780 | \`configure' configures this package to adapt to many kinds of systems. |
---|
| 781 | |
---|
| 782 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 783 | |
---|
| 784 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 785 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 786 | |
---|
| 787 | Defaults for the options are specified in brackets. |
---|
| 788 | |
---|
| 789 | Configuration: |
---|
| 790 | -h, --help display this help and exit |
---|
| 791 | --help=short display options specific to this package |
---|
| 792 | --help=recursive display the short help of all the included packages |
---|
| 793 | -V, --version display version information and exit |
---|
| 794 | -q, --quiet, --silent do not print \`checking...' messages |
---|
| 795 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 796 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 797 | -n, --no-create do not create output files |
---|
| 798 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 799 | |
---|
| 800 | _ACEOF |
---|
| 801 | |
---|
| 802 | cat <<_ACEOF |
---|
| 803 | Installation directories: |
---|
| 804 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 805 | [$ac_default_prefix] |
---|
| 806 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 807 | [PREFIX] |
---|
| 808 | |
---|
| 809 | By default, \`make install' will install all the files in |
---|
| 810 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 811 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 812 | for instance \`--prefix=\$HOME'. |
---|
| 813 | |
---|
| 814 | For better control, use the options below. |
---|
| 815 | |
---|
| 816 | Fine tuning of the installation directories: |
---|
| 817 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 818 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 819 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 820 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
| 821 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 822 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 823 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 824 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 825 | --includedir=DIR C header files [PREFIX/include] |
---|
| 826 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 827 | --infodir=DIR info documentation [PREFIX/info] |
---|
| 828 | --mandir=DIR man documentation [PREFIX/man] |
---|
| 829 | _ACEOF |
---|
| 830 | |
---|
| 831 | cat <<\_ACEOF |
---|
| 832 | |
---|
| 833 | System types: |
---|
| 834 | --build=BUILD configure for building on BUILD [guessed] |
---|
| 835 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
| 836 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
| 837 | _ACEOF |
---|
| 838 | fi |
---|
| 839 | |
---|
| 840 | if test -n "$ac_init_help"; then |
---|
| 841 | |
---|
| 842 | cat <<\_ACEOF |
---|
| 843 | |
---|
| 844 | Optional Features: |
---|
| 845 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 846 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 847 | --enable-times-resolution=<hertz> |
---|
| 848 | Set the resolution of the times() function (only |
---|
| 849 | necessary for non-POSIX systems). |
---|
| 850 | --enable-gcc Allow use of gcc if available |
---|
| 851 | --enable-64 Use 64-bit pointers on 64-bit Alpha machines |
---|
| 852 | |
---|
| 853 | Optional Packages: |
---|
| 854 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 855 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 856 | --with-local-srcdir=<srcdir> Specify the root directory to search for |
---|
| 857 | source for packages (the PKGS list). |
---|
| 858 | Expects to find, e.g., <srcdir>/array/array.c |
---|
| 859 | --with-datasize=<size> (Default: 67108864.) Specify maximum datasize in |
---|
| 860 | bytes for systems without working getrlimit. |
---|
| 861 | The application may use this value to size some |
---|
| 862 | data structures, but may still try to exceed it. |
---|
| 863 | --with-comp-mode=<mode> Specify a special compilation mode: |
---|
| 864 | optimize (the default): Produce optimized |
---|
| 865 | code, with symbol table information |
---|
| 866 | if supported on the platform/compiler, |
---|
| 867 | and without asserts. |
---|
| 868 | debug: Produce unoptimized code with symbol table |
---|
| 869 | information and asserts enabled |
---|
| 870 | purify: Unoptimized code linked with purify |
---|
| 871 | quantify: Optimized code without asserts |
---|
| 872 | linked with quantify |
---|
| 873 | |
---|
| 874 | Some influential environment variables: |
---|
| 875 | CC C compiler command |
---|
| 876 | CFLAGS C compiler flags |
---|
| 877 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 878 | nonstandard directory <lib dir> |
---|
| 879 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 880 | headers in a nonstandard directory <include dir> |
---|
| 881 | CPP C preprocessor |
---|
| 882 | |
---|
| 883 | Use these variables to override the choices made by `configure' or to help |
---|
| 884 | it to find libraries and programs with nonstandard names/locations. |
---|
| 885 | |
---|
| 886 | _ACEOF |
---|
| 887 | fi |
---|
| 888 | |
---|
| 889 | if test "$ac_init_help" = "recursive"; then |
---|
| 890 | # If there are subdirs, report their specific --help. |
---|
| 891 | ac_popdir=`pwd` |
---|
| 892 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 893 | test -d $ac_dir || continue |
---|
| 894 | ac_builddir=. |
---|
| 895 | |
---|
| 896 | if test "$ac_dir" != .; then |
---|
| 897 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 898 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 899 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 900 | else |
---|
| 901 | ac_dir_suffix= ac_top_builddir= |
---|
| 902 | fi |
---|
| 903 | |
---|
| 904 | case $srcdir in |
---|
| 905 | .) # No --srcdir option. We are building in place. |
---|
| 906 | ac_srcdir=. |
---|
| 907 | if test -z "$ac_top_builddir"; then |
---|
| 908 | ac_top_srcdir=. |
---|
| 909 | else |
---|
| 910 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 911 | fi ;; |
---|
| 912 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 913 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 914 | ac_top_srcdir=$srcdir ;; |
---|
| 915 | *) # Relative path. |
---|
| 916 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 917 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 918 | esac |
---|
| 919 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
| 920 | # absolute. |
---|
| 921 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
| 922 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
| 923 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
| 924 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
| 925 | |
---|
| 926 | cd $ac_dir |
---|
| 927 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 928 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 929 | echo |
---|
| 930 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 931 | elif test -f $ac_srcdir/configure; then |
---|
| 932 | echo |
---|
| 933 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 934 | elif test -f $ac_srcdir/configure.ac || |
---|
| 935 | test -f $ac_srcdir/configure.in; then |
---|
| 936 | echo |
---|
| 937 | $ac_configure --help |
---|
| 938 | else |
---|
| 939 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 940 | fi |
---|
| 941 | cd $ac_popdir |
---|
| 942 | done |
---|
| 943 | fi |
---|
| 944 | |
---|
| 945 | test -n "$ac_init_help" && exit 0 |
---|
| 946 | if $ac_init_version; then |
---|
| 947 | cat <<\_ACEOF |
---|
| 948 | |
---|
| 949 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
---|
| 950 | Free Software Foundation, Inc. |
---|
| 951 | This configure script is free software; the Free Software Foundation |
---|
| 952 | gives unlimited permission to copy, distribute and modify it. |
---|
| 953 | _ACEOF |
---|
| 954 | exit 0 |
---|
| 955 | fi |
---|
| 956 | exec 5>config.log |
---|
| 957 | cat >&5 <<_ACEOF |
---|
| 958 | This file contains any messages produced by compilers while |
---|
| 959 | running configure, to aid debugging if configure makes a mistake. |
---|
| 960 | |
---|
| 961 | It was created by $as_me, which was |
---|
| 962 | generated by GNU Autoconf 2.57. Invocation command line was |
---|
| 963 | |
---|
| 964 | $ $0 $@ |
---|
| 965 | |
---|
| 966 | _ACEOF |
---|
| 967 | { |
---|
| 968 | cat <<_ASUNAME |
---|
| 969 | ## --------- ## |
---|
| 970 | ## Platform. ## |
---|
| 971 | ## --------- ## |
---|
| 972 | |
---|
| 973 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 974 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 975 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 976 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 977 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 978 | |
---|
| 979 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 980 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 981 | |
---|
| 982 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 983 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 984 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 985 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 986 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 987 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 988 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 989 | |
---|
| 990 | _ASUNAME |
---|
| 991 | |
---|
| 992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 993 | for as_dir in $PATH |
---|
| 994 | do |
---|
| 995 | IFS=$as_save_IFS |
---|
| 996 | test -z "$as_dir" && as_dir=. |
---|
| 997 | echo "PATH: $as_dir" |
---|
| 998 | done |
---|
| 999 | |
---|
| 1000 | } >&5 |
---|
| 1001 | |
---|
| 1002 | cat >&5 <<_ACEOF |
---|
| 1003 | |
---|
| 1004 | |
---|
| 1005 | ## ----------- ## |
---|
| 1006 | ## Core tests. ## |
---|
| 1007 | ## ----------- ## |
---|
| 1008 | |
---|
| 1009 | _ACEOF |
---|
| 1010 | |
---|
| 1011 | |
---|
| 1012 | # Keep a trace of the command line. |
---|
| 1013 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1014 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1015 | # Also quote any args containing shell meta-characters. |
---|
| 1016 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1017 | ac_configure_args= |
---|
| 1018 | ac_configure_args0= |
---|
| 1019 | ac_configure_args1= |
---|
| 1020 | ac_sep= |
---|
| 1021 | ac_must_keep_next=false |
---|
| 1022 | for ac_pass in 1 2 |
---|
| 1023 | do |
---|
| 1024 | for ac_arg |
---|
| 1025 | do |
---|
| 1026 | case $ac_arg in |
---|
| 1027 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1028 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1029 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1030 | continue ;; |
---|
| 1031 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1032 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1033 | esac |
---|
| 1034 | case $ac_pass in |
---|
| 1035 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1036 | 2) |
---|
| 1037 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1038 | if test $ac_must_keep_next = true; then |
---|
| 1039 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1040 | else |
---|
| 1041 | case $ac_arg in |
---|
| 1042 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1043 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1044 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1045 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1046 | case "$ac_configure_args0 " in |
---|
| 1047 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1048 | esac |
---|
| 1049 | ;; |
---|
| 1050 | -* ) ac_must_keep_next=true ;; |
---|
| 1051 | esac |
---|
| 1052 | fi |
---|
| 1053 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1054 | # Get rid of the leading space. |
---|
| 1055 | ac_sep=" " |
---|
| 1056 | ;; |
---|
| 1057 | esac |
---|
| 1058 | done |
---|
| 1059 | done |
---|
| 1060 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1061 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1062 | |
---|
| 1063 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1064 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1065 | # would cause problems or look ugly. |
---|
| 1066 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1067 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1068 | trap 'exit_status=$? |
---|
| 1069 | # Save into config.log some information that might help in debugging. |
---|
| 1070 | { |
---|
| 1071 | echo |
---|
| 1072 | |
---|
| 1073 | cat <<\_ASBOX |
---|
| 1074 | ## ---------------- ## |
---|
| 1075 | ## Cache variables. ## |
---|
| 1076 | ## ---------------- ## |
---|
| 1077 | _ASBOX |
---|
| 1078 | echo |
---|
| 1079 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1080 | { |
---|
| 1081 | (set) 2>&1 | |
---|
| 1082 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1083 | *ac_space=\ *) |
---|
| 1084 | sed -n \ |
---|
| 1085 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1086 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
| 1087 | ;; |
---|
| 1088 | *) |
---|
| 1089 | sed -n \ |
---|
| 1090 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 1091 | ;; |
---|
| 1092 | esac; |
---|
| 1093 | } |
---|
| 1094 | echo |
---|
| 1095 | |
---|
| 1096 | cat <<\_ASBOX |
---|
| 1097 | ## ----------------- ## |
---|
| 1098 | ## Output variables. ## |
---|
| 1099 | ## ----------------- ## |
---|
| 1100 | _ASBOX |
---|
| 1101 | echo |
---|
| 1102 | for ac_var in $ac_subst_vars |
---|
| 1103 | do |
---|
| 1104 | eval ac_val=$`echo $ac_var` |
---|
| 1105 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1106 | done | sort |
---|
| 1107 | echo |
---|
| 1108 | |
---|
| 1109 | if test -n "$ac_subst_files"; then |
---|
| 1110 | cat <<\_ASBOX |
---|
| 1111 | ## ------------- ## |
---|
| 1112 | ## Output files. ## |
---|
| 1113 | ## ------------- ## |
---|
| 1114 | _ASBOX |
---|
| 1115 | echo |
---|
| 1116 | for ac_var in $ac_subst_files |
---|
| 1117 | do |
---|
| 1118 | eval ac_val=$`echo $ac_var` |
---|
| 1119 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1120 | done | sort |
---|
| 1121 | echo |
---|
| 1122 | fi |
---|
| 1123 | |
---|
| 1124 | if test -s confdefs.h; then |
---|
| 1125 | cat <<\_ASBOX |
---|
| 1126 | ## ----------- ## |
---|
| 1127 | ## confdefs.h. ## |
---|
| 1128 | ## ----------- ## |
---|
| 1129 | _ASBOX |
---|
| 1130 | echo |
---|
| 1131 | sed "/^$/d" confdefs.h | sort |
---|
| 1132 | echo |
---|
| 1133 | fi |
---|
| 1134 | test "$ac_signal" != 0 && |
---|
| 1135 | echo "$as_me: caught signal $ac_signal" |
---|
| 1136 | echo "$as_me: exit $exit_status" |
---|
| 1137 | } >&5 |
---|
| 1138 | rm -f core core.* *.core && |
---|
| 1139 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1140 | exit $exit_status |
---|
| 1141 | ' 0 |
---|
| 1142 | for ac_signal in 1 2 13 15; do |
---|
| 1143 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1144 | done |
---|
| 1145 | ac_signal=0 |
---|
| 1146 | |
---|
| 1147 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1148 | rm -rf conftest* confdefs.h |
---|
| 1149 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1150 | echo >confdefs.h |
---|
| 1151 | |
---|
| 1152 | # Predefined preprocessor variables. |
---|
| 1153 | |
---|
| 1154 | cat >>confdefs.h <<_ACEOF |
---|
| 1155 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1156 | _ACEOF |
---|
| 1157 | |
---|
| 1158 | |
---|
| 1159 | cat >>confdefs.h <<_ACEOF |
---|
| 1160 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1161 | _ACEOF |
---|
| 1162 | |
---|
| 1163 | |
---|
| 1164 | cat >>confdefs.h <<_ACEOF |
---|
| 1165 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1166 | _ACEOF |
---|
| 1167 | |
---|
| 1168 | |
---|
| 1169 | cat >>confdefs.h <<_ACEOF |
---|
| 1170 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1171 | _ACEOF |
---|
| 1172 | |
---|
| 1173 | |
---|
| 1174 | cat >>confdefs.h <<_ACEOF |
---|
| 1175 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1176 | _ACEOF |
---|
| 1177 | |
---|
| 1178 | |
---|
| 1179 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1180 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1181 | if test -z "$CONFIG_SITE"; then |
---|
| 1182 | if test "x$prefix" != xNONE; then |
---|
| 1183 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1184 | else |
---|
| 1185 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1186 | fi |
---|
| 1187 | fi |
---|
| 1188 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1189 | if test -r "$ac_site_file"; then |
---|
| 1190 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1191 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1192 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1193 | . "$ac_site_file" |
---|
| 1194 | fi |
---|
| 1195 | done |
---|
| 1196 | |
---|
| 1197 | if test -r "$cache_file"; then |
---|
| 1198 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1199 | # files actually), so we avoid doing that. |
---|
| 1200 | if test -f "$cache_file"; then |
---|
| 1201 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1202 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1203 | case $cache_file in |
---|
| 1204 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1205 | *) . ./$cache_file;; |
---|
| 1206 | esac |
---|
| 1207 | fi |
---|
| 1208 | else |
---|
| 1209 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1210 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1211 | >$cache_file |
---|
| 1212 | fi |
---|
| 1213 | |
---|
| 1214 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1215 | # value. |
---|
| 1216 | ac_cache_corrupted=false |
---|
| 1217 | for ac_var in `(set) 2>&1 | |
---|
| 1218 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
| 1219 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1220 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1221 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1222 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1223 | case $ac_old_set,$ac_new_set in |
---|
| 1224 | set,) |
---|
| 1225 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1226 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1227 | ac_cache_corrupted=: ;; |
---|
| 1228 | ,set) |
---|
| 1229 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1230 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1231 | ac_cache_corrupted=: ;; |
---|
| 1232 | ,);; |
---|
| 1233 | *) |
---|
| 1234 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1235 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1236 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1237 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1238 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1239 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1240 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1241 | ac_cache_corrupted=: |
---|
| 1242 | fi;; |
---|
| 1243 | esac |
---|
| 1244 | # Pass precious variables to config.status. |
---|
| 1245 | if test "$ac_new_set" = set; then |
---|
| 1246 | case $ac_new_val in |
---|
| 1247 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1248 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1249 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1250 | esac |
---|
| 1251 | case " $ac_configure_args " in |
---|
| 1252 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1253 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1254 | esac |
---|
| 1255 | fi |
---|
| 1256 | done |
---|
| 1257 | if $ac_cache_corrupted; then |
---|
| 1258 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1259 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1260 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1261 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1262 | { (exit 1); exit 1; }; } |
---|
| 1263 | fi |
---|
| 1264 | |
---|
| 1265 | ac_ext=c |
---|
| 1266 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1267 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1268 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1269 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1270 | |
---|
| 1271 | |
---|
| 1272 | |
---|
| 1273 | |
---|
| 1274 | |
---|
| 1275 | |
---|
| 1276 | |
---|
| 1277 | |
---|
| 1278 | |
---|
| 1279 | |
---|
| 1280 | |
---|
| 1281 | |
---|
| 1282 | |
---|
| 1283 | |
---|
| 1284 | |
---|
| 1285 | |
---|
| 1286 | |
---|
| 1287 | |
---|
| 1288 | |
---|
| 1289 | |
---|
| 1290 | # Look for install.sh, config.guess, and config.sub in the "helpers" dir |
---|
| 1291 | ac_aux_dir= |
---|
| 1292 | for ac_dir in helpers $srcdir/helpers; do |
---|
| 1293 | if test -f $ac_dir/install-sh; then |
---|
| 1294 | ac_aux_dir=$ac_dir |
---|
| 1295 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1296 | break |
---|
| 1297 | elif test -f $ac_dir/install.sh; then |
---|
| 1298 | ac_aux_dir=$ac_dir |
---|
| 1299 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1300 | break |
---|
| 1301 | elif test -f $ac_dir/shtool; then |
---|
| 1302 | ac_aux_dir=$ac_dir |
---|
| 1303 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1304 | break |
---|
| 1305 | fi |
---|
| 1306 | done |
---|
| 1307 | if test -z "$ac_aux_dir"; then |
---|
| 1308 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in helpers $srcdir/helpers" >&5 |
---|
| 1309 | echo "$as_me: error: cannot find install-sh or install.sh in helpers $srcdir/helpers" >&2;} |
---|
| 1310 | { (exit 1); exit 1; }; } |
---|
| 1311 | fi |
---|
| 1312 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
| 1313 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
| 1314 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
| 1315 | |
---|
| 1316 | |
---|
| 1317 | # Check whether --enable-times-resolution or --disable-times-resolution was given. |
---|
| 1318 | if test "${enable_times_resolution+set}" = set; then |
---|
| 1319 | enableval="$enable_times_resolution" |
---|
| 1320 | cat >>confdefs.h <<_ACEOF |
---|
| 1321 | #define CLOCK_RESOLUTION $enableval |
---|
| 1322 | _ACEOF |
---|
| 1323 | |
---|
| 1324 | else |
---|
| 1325 | cat >>confdefs.h <<_ACEOF |
---|
| 1326 | #define CLOCK_RESOLUTION 60 |
---|
| 1327 | _ACEOF |
---|
| 1328 | |
---|
| 1329 | fi; |
---|
| 1330 | |
---|
| 1331 | #---------------------------------------------------------------------- |
---|
| 1332 | # Set local_srcdir |
---|
| 1333 | #---------------------------------------------------------------------- |
---|
| 1334 | # Give the configurer a chance to set a different location for the GLU |
---|
| 1335 | # source. When specified, "srcdir" points to "master" source, and |
---|
| 1336 | # "local_srcdir" points to the source under local development. |
---|
| 1337 | |
---|
| 1338 | |
---|
| 1339 | |
---|
| 1340 | # Check whether --with-local-srcdir or --without-local-srcdir was given. |
---|
| 1341 | if test "${with_local_srcdir+set}" = set; then |
---|
| 1342 | withval="$with_local_srcdir" |
---|
| 1343 | local_srcdir=$withval |
---|
| 1344 | else |
---|
| 1345 | local_srcdir=$srcdir |
---|
| 1346 | fi; |
---|
| 1347 | |
---|
| 1348 | |
---|
| 1349 | # Check whether --with-datasize or --without-datasize was given. |
---|
| 1350 | if test "${with_datasize+set}" = set; then |
---|
| 1351 | withval="$with_datasize" |
---|
| 1352 | datasize=$withval |
---|
| 1353 | else |
---|
| 1354 | datasize=67108864 |
---|
| 1355 | fi; |
---|
| 1356 | cat >>confdefs.h <<_ACEOF |
---|
| 1357 | #define RLIMIT_DATA_DEFAULT $datasize |
---|
| 1358 | _ACEOF |
---|
| 1359 | |
---|
| 1360 | |
---|
| 1361 | #---------------------------------------------------------------------- |
---|
| 1362 | # Checks for programs we need |
---|
| 1363 | #---------------------------------------------------------------------- |
---|
| 1364 | |
---|
| 1365 | # Extract the first word of "ar", so it can be a program name with args. |
---|
| 1366 | set dummy ar; ac_word=$2 |
---|
| 1367 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1368 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1369 | if test "${ac_cv_path_AR+set}" = set; then |
---|
| 1370 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1371 | else |
---|
| 1372 | case $AR in |
---|
| 1373 | [\\/]* | ?:[\\/]*) |
---|
| 1374 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
---|
| 1375 | ;; |
---|
| 1376 | *) |
---|
| 1377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1378 | for as_dir in $PATH |
---|
| 1379 | do |
---|
| 1380 | IFS=$as_save_IFS |
---|
| 1381 | test -z "$as_dir" && as_dir=. |
---|
| 1382 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1383 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1384 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
---|
| 1385 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1386 | break 2 |
---|
| 1387 | fi |
---|
| 1388 | done |
---|
| 1389 | done |
---|
| 1390 | |
---|
| 1391 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" |
---|
| 1392 | ;; |
---|
| 1393 | esac |
---|
| 1394 | fi |
---|
| 1395 | AR=$ac_cv_path_AR |
---|
| 1396 | |
---|
| 1397 | if test -n "$AR"; then |
---|
| 1398 | echo "$as_me:$LINENO: result: $AR" >&5 |
---|
| 1399 | echo "${ECHO_T}$AR" >&6 |
---|
| 1400 | else |
---|
| 1401 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1402 | echo "${ECHO_T}no" >&6 |
---|
| 1403 | fi |
---|
| 1404 | |
---|
| 1405 | if test -n "$ac_tool_prefix"; then |
---|
| 1406 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
| 1407 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
| 1408 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1409 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1410 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
| 1411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1412 | else |
---|
| 1413 | if test -n "$RANLIB"; then |
---|
| 1414 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 1415 | else |
---|
| 1416 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1417 | for as_dir in $PATH |
---|
| 1418 | do |
---|
| 1419 | IFS=$as_save_IFS |
---|
| 1420 | test -z "$as_dir" && as_dir=. |
---|
| 1421 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1422 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1423 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
| 1424 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1425 | break 2 |
---|
| 1426 | fi |
---|
| 1427 | done |
---|
| 1428 | done |
---|
| 1429 | |
---|
| 1430 | fi |
---|
| 1431 | fi |
---|
| 1432 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 1433 | if test -n "$RANLIB"; then |
---|
| 1434 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
| 1435 | echo "${ECHO_T}$RANLIB" >&6 |
---|
| 1436 | else |
---|
| 1437 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1438 | echo "${ECHO_T}no" >&6 |
---|
| 1439 | fi |
---|
| 1440 | |
---|
| 1441 | fi |
---|
| 1442 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
| 1443 | ac_ct_RANLIB=$RANLIB |
---|
| 1444 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 1445 | set dummy ranlib; ac_word=$2 |
---|
| 1446 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1447 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1448 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
| 1449 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1450 | else |
---|
| 1451 | if test -n "$ac_ct_RANLIB"; then |
---|
| 1452 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
| 1453 | else |
---|
| 1454 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1455 | for as_dir in $PATH |
---|
| 1456 | do |
---|
| 1457 | IFS=$as_save_IFS |
---|
| 1458 | test -z "$as_dir" && as_dir=. |
---|
| 1459 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1460 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1461 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
| 1462 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1463 | break 2 |
---|
| 1464 | fi |
---|
| 1465 | done |
---|
| 1466 | done |
---|
| 1467 | |
---|
| 1468 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
| 1469 | fi |
---|
| 1470 | fi |
---|
| 1471 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
| 1472 | if test -n "$ac_ct_RANLIB"; then |
---|
| 1473 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
| 1474 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
| 1475 | else |
---|
| 1476 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1477 | echo "${ECHO_T}no" >&6 |
---|
| 1478 | fi |
---|
| 1479 | |
---|
| 1480 | RANLIB=$ac_ct_RANLIB |
---|
| 1481 | else |
---|
| 1482 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 1483 | fi |
---|
| 1484 | |
---|
| 1485 | |
---|
| 1486 | # Make sure we can run config.sub. |
---|
| 1487 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
| 1488 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
| 1489 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
| 1490 | { (exit 1); exit 1; }; } |
---|
| 1491 | |
---|
| 1492 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
| 1493 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
| 1494 | if test "${ac_cv_build+set}" = set; then |
---|
| 1495 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1496 | else |
---|
| 1497 | ac_cv_build_alias=$build_alias |
---|
| 1498 | test -z "$ac_cv_build_alias" && |
---|
| 1499 | ac_cv_build_alias=`$ac_config_guess` |
---|
| 1500 | test -z "$ac_cv_build_alias" && |
---|
| 1501 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
| 1502 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
| 1503 | { (exit 1); exit 1; }; } |
---|
| 1504 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
| 1505 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
| 1506 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
| 1507 | { (exit 1); exit 1; }; } |
---|
| 1508 | |
---|
| 1509 | fi |
---|
| 1510 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
| 1511 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
| 1512 | build=$ac_cv_build |
---|
| 1513 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1514 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1515 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1516 | |
---|
| 1517 | |
---|
| 1518 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
| 1519 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
| 1520 | if test "${ac_cv_host+set}" = set; then |
---|
| 1521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1522 | else |
---|
| 1523 | ac_cv_host_alias=$host_alias |
---|
| 1524 | test -z "$ac_cv_host_alias" && |
---|
| 1525 | ac_cv_host_alias=$ac_cv_build_alias |
---|
| 1526 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
| 1527 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
| 1528 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
| 1529 | { (exit 1); exit 1; }; } |
---|
| 1530 | |
---|
| 1531 | fi |
---|
| 1532 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
| 1533 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
| 1534 | host=$ac_cv_host |
---|
| 1535 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1536 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1537 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1538 | |
---|
| 1539 | |
---|
| 1540 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
| 1541 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
| 1542 | if test "${ac_cv_target+set}" = set; then |
---|
| 1543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1544 | else |
---|
| 1545 | ac_cv_target_alias=$target_alias |
---|
| 1546 | test "x$ac_cv_target_alias" = "x" && |
---|
| 1547 | ac_cv_target_alias=$ac_cv_host_alias |
---|
| 1548 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
| 1549 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
| 1550 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
| 1551 | { (exit 1); exit 1; }; } |
---|
| 1552 | |
---|
| 1553 | fi |
---|
| 1554 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
| 1555 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
| 1556 | target=$ac_cv_target |
---|
| 1557 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1558 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1559 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1560 | |
---|
| 1561 | |
---|
| 1562 | # The aliases save the names the user supplied, while $host etc. |
---|
| 1563 | # will get canonicalized. |
---|
| 1564 | test -n "$target_alias" && |
---|
| 1565 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 1566 | NONENONEs,x,x, && |
---|
| 1567 | program_prefix=${target_alias}- |
---|
| 1568 | |
---|
| 1569 | |
---|
| 1570 | # Determine the name of the C compiler we're going to use |
---|
| 1571 | |
---|
| 1572 | # Check whether --enable-gcc or --disable-gcc was given. |
---|
| 1573 | if test "${enable_gcc+set}" = set; then |
---|
| 1574 | enableval="$enable_gcc" |
---|
| 1575 | gcc_ok=$enableval |
---|
| 1576 | else |
---|
| 1577 | gcc_ok=no |
---|
| 1578 | fi; |
---|
| 1579 | |
---|
| 1580 | # We cannot set CC=g++ directly because many configuration test programs |
---|
| 1581 | # do not compile with g++. Hence, when the user specifies --enable-gcc=g++, |
---|
| 1582 | # we set CC=gcc during configuration, and then CC=g++ at the end. |
---|
| 1583 | # The same applies to icpc and icc. |
---|
| 1584 | if test "$gcc_ok" != no; then |
---|
| 1585 | case "$gcc_ok" in |
---|
| 1586 | yes | g++) |
---|
| 1587 | CC=gcc ;; |
---|
| 1588 | icpc) |
---|
| 1589 | CC=icc ;; |
---|
| 1590 | *) |
---|
| 1591 | CC=$gcc_ok |
---|
| 1592 | esac |
---|
| 1593 | else |
---|
| 1594 | if test -z "$CC" ; then |
---|
| 1595 | # Balakrishna Kumthekar <kumtheka@colorado.edu> |
---|
| 1596 | # As we do not support cc on RS6000, Cygwin and SunOS. |
---|
| 1597 | case "$target" in |
---|
| 1598 | rs6000-ibm-aix* | *-pc-cygwin32 | sparc-sun-sunos*) |
---|
| 1599 | CC=gcc ;; |
---|
| 1600 | *) |
---|
| 1601 | CC=cc ;; |
---|
| 1602 | esac |
---|
| 1603 | fi |
---|
| 1604 | fi |
---|
| 1605 | ac_ext=c |
---|
| 1606 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1607 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1608 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1609 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1610 | if test -n "$ac_tool_prefix"; then |
---|
| 1611 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 1612 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 1613 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1614 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1615 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1617 | else |
---|
| 1618 | if test -n "$CC"; then |
---|
| 1619 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1620 | else |
---|
| 1621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1622 | for as_dir in $PATH |
---|
| 1623 | do |
---|
| 1624 | IFS=$as_save_IFS |
---|
| 1625 | test -z "$as_dir" && as_dir=. |
---|
| 1626 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1627 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1628 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 1629 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1630 | break 2 |
---|
| 1631 | fi |
---|
| 1632 | done |
---|
| 1633 | done |
---|
| 1634 | |
---|
| 1635 | fi |
---|
| 1636 | fi |
---|
| 1637 | CC=$ac_cv_prog_CC |
---|
| 1638 | if test -n "$CC"; then |
---|
| 1639 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 1640 | echo "${ECHO_T}$CC" >&6 |
---|
| 1641 | else |
---|
| 1642 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1643 | echo "${ECHO_T}no" >&6 |
---|
| 1644 | fi |
---|
| 1645 | |
---|
| 1646 | fi |
---|
| 1647 | if test -z "$ac_cv_prog_CC"; then |
---|
| 1648 | ac_ct_CC=$CC |
---|
| 1649 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 1650 | set dummy gcc; ac_word=$2 |
---|
| 1651 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1652 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1653 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 1654 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1655 | else |
---|
| 1656 | if test -n "$ac_ct_CC"; then |
---|
| 1657 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 1658 | else |
---|
| 1659 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1660 | for as_dir in $PATH |
---|
| 1661 | do |
---|
| 1662 | IFS=$as_save_IFS |
---|
| 1663 | test -z "$as_dir" && as_dir=. |
---|
| 1664 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1665 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1666 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 1667 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1668 | break 2 |
---|
| 1669 | fi |
---|
| 1670 | done |
---|
| 1671 | done |
---|
| 1672 | |
---|
| 1673 | fi |
---|
| 1674 | fi |
---|
| 1675 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 1676 | if test -n "$ac_ct_CC"; then |
---|
| 1677 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 1678 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 1679 | else |
---|
| 1680 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1681 | echo "${ECHO_T}no" >&6 |
---|
| 1682 | fi |
---|
| 1683 | |
---|
| 1684 | CC=$ac_ct_CC |
---|
| 1685 | else |
---|
| 1686 | CC="$ac_cv_prog_CC" |
---|
| 1687 | fi |
---|
| 1688 | |
---|
| 1689 | if test -z "$CC"; then |
---|
| 1690 | if test -n "$ac_tool_prefix"; then |
---|
| 1691 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 1692 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 1693 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1694 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1695 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1696 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1697 | else |
---|
| 1698 | if test -n "$CC"; then |
---|
| 1699 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1700 | else |
---|
| 1701 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1702 | for as_dir in $PATH |
---|
| 1703 | do |
---|
| 1704 | IFS=$as_save_IFS |
---|
| 1705 | test -z "$as_dir" && as_dir=. |
---|
| 1706 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1707 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1708 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 1709 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1710 | break 2 |
---|
| 1711 | fi |
---|
| 1712 | done |
---|
| 1713 | done |
---|
| 1714 | |
---|
| 1715 | fi |
---|
| 1716 | fi |
---|
| 1717 | CC=$ac_cv_prog_CC |
---|
| 1718 | if test -n "$CC"; then |
---|
| 1719 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 1720 | echo "${ECHO_T}$CC" >&6 |
---|
| 1721 | else |
---|
| 1722 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1723 | echo "${ECHO_T}no" >&6 |
---|
| 1724 | fi |
---|
| 1725 | |
---|
| 1726 | fi |
---|
| 1727 | if test -z "$ac_cv_prog_CC"; then |
---|
| 1728 | ac_ct_CC=$CC |
---|
| 1729 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 1730 | set dummy cc; ac_word=$2 |
---|
| 1731 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1732 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1733 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 1734 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1735 | else |
---|
| 1736 | if test -n "$ac_ct_CC"; then |
---|
| 1737 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 1738 | else |
---|
| 1739 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1740 | for as_dir in $PATH |
---|
| 1741 | do |
---|
| 1742 | IFS=$as_save_IFS |
---|
| 1743 | test -z "$as_dir" && as_dir=. |
---|
| 1744 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1745 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1746 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 1747 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1748 | break 2 |
---|
| 1749 | fi |
---|
| 1750 | done |
---|
| 1751 | done |
---|
| 1752 | |
---|
| 1753 | fi |
---|
| 1754 | fi |
---|
| 1755 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 1756 | if test -n "$ac_ct_CC"; then |
---|
| 1757 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 1758 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 1759 | else |
---|
| 1760 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1761 | echo "${ECHO_T}no" >&6 |
---|
| 1762 | fi |
---|
| 1763 | |
---|
| 1764 | CC=$ac_ct_CC |
---|
| 1765 | else |
---|
| 1766 | CC="$ac_cv_prog_CC" |
---|
| 1767 | fi |
---|
| 1768 | |
---|
| 1769 | fi |
---|
| 1770 | if test -z "$CC"; then |
---|
| 1771 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 1772 | set dummy cc; ac_word=$2 |
---|
| 1773 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1774 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1775 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1777 | else |
---|
| 1778 | if test -n "$CC"; then |
---|
| 1779 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1780 | else |
---|
| 1781 | ac_prog_rejected=no |
---|
| 1782 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1783 | for as_dir in $PATH |
---|
| 1784 | do |
---|
| 1785 | IFS=$as_save_IFS |
---|
| 1786 | test -z "$as_dir" && as_dir=. |
---|
| 1787 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1788 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1789 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 1790 | ac_prog_rejected=yes |
---|
| 1791 | continue |
---|
| 1792 | fi |
---|
| 1793 | ac_cv_prog_CC="cc" |
---|
| 1794 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1795 | break 2 |
---|
| 1796 | fi |
---|
| 1797 | done |
---|
| 1798 | done |
---|
| 1799 | |
---|
| 1800 | if test $ac_prog_rejected = yes; then |
---|
| 1801 | # We found a bogon in the path, so make sure we never use it. |
---|
| 1802 | set dummy $ac_cv_prog_CC |
---|
| 1803 | shift |
---|
| 1804 | if test $# != 0; then |
---|
| 1805 | # We chose a different compiler from the bogus one. |
---|
| 1806 | # However, it has the same basename, so the bogon will be chosen |
---|
| 1807 | # first if we set CC to just the basename; use the full file name. |
---|
| 1808 | shift |
---|
| 1809 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 1810 | fi |
---|
| 1811 | fi |
---|
| 1812 | fi |
---|
| 1813 | fi |
---|
| 1814 | CC=$ac_cv_prog_CC |
---|
| 1815 | if test -n "$CC"; then |
---|
| 1816 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 1817 | echo "${ECHO_T}$CC" >&6 |
---|
| 1818 | else |
---|
| 1819 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1820 | echo "${ECHO_T}no" >&6 |
---|
| 1821 | fi |
---|
| 1822 | |
---|
| 1823 | fi |
---|
| 1824 | if test -z "$CC"; then |
---|
| 1825 | if test -n "$ac_tool_prefix"; then |
---|
| 1826 | for ac_prog in cl |
---|
| 1827 | do |
---|
| 1828 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 1829 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 1830 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1831 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1832 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1834 | else |
---|
| 1835 | if test -n "$CC"; then |
---|
| 1836 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1837 | else |
---|
| 1838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1839 | for as_dir in $PATH |
---|
| 1840 | do |
---|
| 1841 | IFS=$as_save_IFS |
---|
| 1842 | test -z "$as_dir" && as_dir=. |
---|
| 1843 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1844 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1845 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 1846 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1847 | break 2 |
---|
| 1848 | fi |
---|
| 1849 | done |
---|
| 1850 | done |
---|
| 1851 | |
---|
| 1852 | fi |
---|
| 1853 | fi |
---|
| 1854 | CC=$ac_cv_prog_CC |
---|
| 1855 | if test -n "$CC"; then |
---|
| 1856 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 1857 | echo "${ECHO_T}$CC" >&6 |
---|
| 1858 | else |
---|
| 1859 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1860 | echo "${ECHO_T}no" >&6 |
---|
| 1861 | fi |
---|
| 1862 | |
---|
| 1863 | test -n "$CC" && break |
---|
| 1864 | done |
---|
| 1865 | fi |
---|
| 1866 | if test -z "$CC"; then |
---|
| 1867 | ac_ct_CC=$CC |
---|
| 1868 | for ac_prog in cl |
---|
| 1869 | do |
---|
| 1870 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1871 | set dummy $ac_prog; ac_word=$2 |
---|
| 1872 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1874 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 1875 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1876 | else |
---|
| 1877 | if test -n "$ac_ct_CC"; then |
---|
| 1878 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 1879 | else |
---|
| 1880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1881 | for as_dir in $PATH |
---|
| 1882 | do |
---|
| 1883 | IFS=$as_save_IFS |
---|
| 1884 | test -z "$as_dir" && as_dir=. |
---|
| 1885 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1886 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1887 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 1888 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1889 | break 2 |
---|
| 1890 | fi |
---|
| 1891 | done |
---|
| 1892 | done |
---|
| 1893 | |
---|
| 1894 | fi |
---|
| 1895 | fi |
---|
| 1896 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 1897 | if test -n "$ac_ct_CC"; then |
---|
| 1898 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 1899 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 1900 | else |
---|
| 1901 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1902 | echo "${ECHO_T}no" >&6 |
---|
| 1903 | fi |
---|
| 1904 | |
---|
| 1905 | test -n "$ac_ct_CC" && break |
---|
| 1906 | done |
---|
| 1907 | |
---|
| 1908 | CC=$ac_ct_CC |
---|
| 1909 | fi |
---|
| 1910 | |
---|
| 1911 | fi |
---|
| 1912 | |
---|
| 1913 | |
---|
| 1914 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 1915 | See \`config.log' for more details." >&5 |
---|
| 1916 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 1917 | See \`config.log' for more details." >&2;} |
---|
| 1918 | { (exit 1); exit 1; }; } |
---|
| 1919 | |
---|
| 1920 | # Provide some information about the compiler. |
---|
| 1921 | echo "$as_me:$LINENO:" \ |
---|
| 1922 | "checking for C compiler version" >&5 |
---|
| 1923 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 1924 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 1925 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 1926 | ac_status=$? |
---|
| 1927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1928 | (exit $ac_status); } |
---|
| 1929 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 1930 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 1931 | ac_status=$? |
---|
| 1932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1933 | (exit $ac_status); } |
---|
| 1934 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 1935 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 1936 | ac_status=$? |
---|
| 1937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1938 | (exit $ac_status); } |
---|
| 1939 | |
---|
| 1940 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 1941 | #line $LINENO "configure" |
---|
| 1942 | /* confdefs.h. */ |
---|
| 1943 | _ACEOF |
---|
| 1944 | cat confdefs.h >>conftest.$ac_ext |
---|
| 1945 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 1946 | /* end confdefs.h. */ |
---|
| 1947 | |
---|
| 1948 | int |
---|
| 1949 | main () |
---|
| 1950 | { |
---|
| 1951 | |
---|
| 1952 | ; |
---|
| 1953 | return 0; |
---|
| 1954 | } |
---|
| 1955 | _ACEOF |
---|
| 1956 | ac_clean_files_save=$ac_clean_files |
---|
| 1957 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 1958 | # Try to create an executable without -o first, disregard a.out. |
---|
| 1959 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 1960 | # of exeext. |
---|
| 1961 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
---|
| 1962 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
---|
| 1963 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 1964 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 1965 | (eval $ac_link_default) 2>&5 |
---|
| 1966 | ac_status=$? |
---|
| 1967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 1968 | (exit $ac_status); }; then |
---|
| 1969 | # Find the output, starting from the most likely. This scheme is |
---|
| 1970 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 1971 | # resort. |
---|
| 1972 | |
---|
| 1973 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 1974 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 1975 | ac_cv_exeext= |
---|
| 1976 | # b.out is created by i960 compilers. |
---|
| 1977 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 1978 | do |
---|
| 1979 | test -f "$ac_file" || continue |
---|
| 1980 | case $ac_file in |
---|
| 1981 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 1982 | ;; |
---|
| 1983 | conftest.$ac_ext ) |
---|
| 1984 | # This is the source file. |
---|
| 1985 | ;; |
---|
| 1986 | [ab].out ) |
---|
| 1987 | # We found the default executable, but exeext='' is most |
---|
| 1988 | # certainly right. |
---|
| 1989 | break;; |
---|
| 1990 | *.* ) |
---|
| 1991 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 1992 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 1993 | # but it would be cool to find out if it's true. Does anybody |
---|
| 1994 | # maintain Libtool? --akim. |
---|
| 1995 | export ac_cv_exeext |
---|
| 1996 | break;; |
---|
| 1997 | * ) |
---|
| 1998 | break;; |
---|
| 1999 | esac |
---|
| 2000 | done |
---|
| 2001 | else |
---|
| 2002 | echo "$as_me: failed program was:" >&5 |
---|
| 2003 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2004 | |
---|
| 2005 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
| 2006 | See \`config.log' for more details." >&5 |
---|
| 2007 | echo "$as_me: error: C compiler cannot create executables |
---|
| 2008 | See \`config.log' for more details." >&2;} |
---|
| 2009 | { (exit 77); exit 77; }; } |
---|
| 2010 | fi |
---|
| 2011 | |
---|
| 2012 | ac_exeext=$ac_cv_exeext |
---|
| 2013 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 2014 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 2015 | |
---|
| 2016 | # Check the compiler produces executables we can run. If not, either |
---|
| 2017 | # the compiler is broken, or we cross compile. |
---|
| 2018 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
| 2019 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
| 2020 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 2021 | # If not cross compiling, check that we can run a simple program. |
---|
| 2022 | if test "$cross_compiling" != yes; then |
---|
| 2023 | if { ac_try='./$ac_file' |
---|
| 2024 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2025 | (eval $ac_try) 2>&5 |
---|
| 2026 | ac_status=$? |
---|
| 2027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2028 | (exit $ac_status); }; }; then |
---|
| 2029 | cross_compiling=no |
---|
| 2030 | else |
---|
| 2031 | if test "$cross_compiling" = maybe; then |
---|
| 2032 | cross_compiling=yes |
---|
| 2033 | else |
---|
| 2034 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
| 2035 | If you meant to cross compile, use \`--host'. |
---|
| 2036 | See \`config.log' for more details." >&5 |
---|
| 2037 | echo "$as_me: error: cannot run C compiled programs. |
---|
| 2038 | If you meant to cross compile, use \`--host'. |
---|
| 2039 | See \`config.log' for more details." >&2;} |
---|
| 2040 | { (exit 1); exit 1; }; } |
---|
| 2041 | fi |
---|
| 2042 | fi |
---|
| 2043 | fi |
---|
| 2044 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2045 | echo "${ECHO_T}yes" >&6 |
---|
| 2046 | |
---|
| 2047 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 2048 | ac_clean_files=$ac_clean_files_save |
---|
| 2049 | # Check the compiler produces executables we can run. If not, either |
---|
| 2050 | # the compiler is broken, or we cross compile. |
---|
| 2051 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 2052 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 2053 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 2054 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 2055 | |
---|
| 2056 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 2057 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 2058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2059 | (eval $ac_link) 2>&5 |
---|
| 2060 | ac_status=$? |
---|
| 2061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2062 | (exit $ac_status); }; then |
---|
| 2063 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2064 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2065 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2066 | # `rm'. |
---|
| 2067 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2068 | test -f "$ac_file" || continue |
---|
| 2069 | case $ac_file in |
---|
| 2070 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 2071 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2072 | export ac_cv_exeext |
---|
| 2073 | break;; |
---|
| 2074 | * ) break;; |
---|
| 2075 | esac |
---|
| 2076 | done |
---|
| 2077 | else |
---|
| 2078 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2079 | See \`config.log' for more details." >&5 |
---|
| 2080 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2081 | See \`config.log' for more details." >&2;} |
---|
| 2082 | { (exit 1); exit 1; }; } |
---|
| 2083 | fi |
---|
| 2084 | |
---|
| 2085 | rm -f conftest$ac_cv_exeext |
---|
| 2086 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2087 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 2088 | |
---|
| 2089 | rm -f conftest.$ac_ext |
---|
| 2090 | EXEEXT=$ac_cv_exeext |
---|
| 2091 | ac_exeext=$EXEEXT |
---|
| 2092 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2093 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 2094 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2095 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2096 | else |
---|
| 2097 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2098 | #line $LINENO "configure" |
---|
| 2099 | /* confdefs.h. */ |
---|
| 2100 | _ACEOF |
---|
| 2101 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2102 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2103 | /* end confdefs.h. */ |
---|
| 2104 | |
---|
| 2105 | int |
---|
| 2106 | main () |
---|
| 2107 | { |
---|
| 2108 | |
---|
| 2109 | ; |
---|
| 2110 | return 0; |
---|
| 2111 | } |
---|
| 2112 | _ACEOF |
---|
| 2113 | rm -f conftest.o conftest.obj |
---|
| 2114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2115 | (eval $ac_compile) 2>&5 |
---|
| 2116 | ac_status=$? |
---|
| 2117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2118 | (exit $ac_status); }; then |
---|
| 2119 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 2120 | case $ac_file in |
---|
| 2121 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 2122 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2123 | break;; |
---|
| 2124 | esac |
---|
| 2125 | done |
---|
| 2126 | else |
---|
| 2127 | echo "$as_me: failed program was:" >&5 |
---|
| 2128 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2129 | |
---|
| 2130 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2131 | See \`config.log' for more details." >&5 |
---|
| 2132 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2133 | See \`config.log' for more details." >&2;} |
---|
| 2134 | { (exit 1); exit 1; }; } |
---|
| 2135 | fi |
---|
| 2136 | |
---|
| 2137 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2138 | fi |
---|
| 2139 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2140 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 2141 | OBJEXT=$ac_cv_objext |
---|
| 2142 | ac_objext=$OBJEXT |
---|
| 2143 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2144 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 2145 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2146 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2147 | else |
---|
| 2148 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2149 | #line $LINENO "configure" |
---|
| 2150 | /* confdefs.h. */ |
---|
| 2151 | _ACEOF |
---|
| 2152 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2153 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2154 | /* end confdefs.h. */ |
---|
| 2155 | |
---|
| 2156 | int |
---|
| 2157 | main () |
---|
| 2158 | { |
---|
| 2159 | #ifndef __GNUC__ |
---|
| 2160 | choke me |
---|
| 2161 | #endif |
---|
| 2162 | |
---|
| 2163 | ; |
---|
| 2164 | return 0; |
---|
| 2165 | } |
---|
| 2166 | _ACEOF |
---|
| 2167 | rm -f conftest.$ac_objext |
---|
| 2168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2169 | (eval $ac_compile) 2>&5 |
---|
| 2170 | ac_status=$? |
---|
| 2171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2172 | (exit $ac_status); } && |
---|
| 2173 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2174 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2175 | (eval $ac_try) 2>&5 |
---|
| 2176 | ac_status=$? |
---|
| 2177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2178 | (exit $ac_status); }; }; then |
---|
| 2179 | ac_compiler_gnu=yes |
---|
| 2180 | else |
---|
| 2181 | echo "$as_me: failed program was:" >&5 |
---|
| 2182 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2183 | |
---|
| 2184 | ac_compiler_gnu=no |
---|
| 2185 | fi |
---|
| 2186 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 2187 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2188 | |
---|
| 2189 | fi |
---|
| 2190 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2191 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 2192 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2193 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2194 | ac_save_CFLAGS=$CFLAGS |
---|
| 2195 | CFLAGS="-g" |
---|
| 2196 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2197 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 2198 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2199 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2200 | else |
---|
| 2201 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2202 | #line $LINENO "configure" |
---|
| 2203 | /* confdefs.h. */ |
---|
| 2204 | _ACEOF |
---|
| 2205 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2206 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2207 | /* end confdefs.h. */ |
---|
| 2208 | |
---|
| 2209 | int |
---|
| 2210 | main () |
---|
| 2211 | { |
---|
| 2212 | |
---|
| 2213 | ; |
---|
| 2214 | return 0; |
---|
| 2215 | } |
---|
| 2216 | _ACEOF |
---|
| 2217 | rm -f conftest.$ac_objext |
---|
| 2218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2219 | (eval $ac_compile) 2>&5 |
---|
| 2220 | ac_status=$? |
---|
| 2221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2222 | (exit $ac_status); } && |
---|
| 2223 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2225 | (eval $ac_try) 2>&5 |
---|
| 2226 | ac_status=$? |
---|
| 2227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2228 | (exit $ac_status); }; }; then |
---|
| 2229 | ac_cv_prog_cc_g=yes |
---|
| 2230 | else |
---|
| 2231 | echo "$as_me: failed program was:" >&5 |
---|
| 2232 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2233 | |
---|
| 2234 | ac_cv_prog_cc_g=no |
---|
| 2235 | fi |
---|
| 2236 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 2237 | fi |
---|
| 2238 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 2239 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 2240 | if test "$ac_test_CFLAGS" = set; then |
---|
| 2241 | CFLAGS=$ac_save_CFLAGS |
---|
| 2242 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 2243 | if test "$GCC" = yes; then |
---|
| 2244 | CFLAGS="-g -O2" |
---|
| 2245 | else |
---|
| 2246 | CFLAGS="-g" |
---|
| 2247 | fi |
---|
| 2248 | else |
---|
| 2249 | if test "$GCC" = yes; then |
---|
| 2250 | CFLAGS="-O2" |
---|
| 2251 | else |
---|
| 2252 | CFLAGS= |
---|
| 2253 | fi |
---|
| 2254 | fi |
---|
| 2255 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 2256 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 2257 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 2258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2259 | else |
---|
| 2260 | ac_cv_prog_cc_stdc=no |
---|
| 2261 | ac_save_CC=$CC |
---|
| 2262 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2263 | #line $LINENO "configure" |
---|
| 2264 | /* confdefs.h. */ |
---|
| 2265 | _ACEOF |
---|
| 2266 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2267 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2268 | /* end confdefs.h. */ |
---|
| 2269 | #include <stdarg.h> |
---|
| 2270 | #include <stdio.h> |
---|
| 2271 | #include <sys/types.h> |
---|
| 2272 | #include <sys/stat.h> |
---|
| 2273 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 2274 | struct buf { int x; }; |
---|
| 2275 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 2276 | static char *e (p, i) |
---|
| 2277 | char **p; |
---|
| 2278 | int i; |
---|
| 2279 | { |
---|
| 2280 | return p[i]; |
---|
| 2281 | } |
---|
| 2282 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 2283 | { |
---|
| 2284 | char *s; |
---|
| 2285 | va_list v; |
---|
| 2286 | va_start (v,p); |
---|
| 2287 | s = g (p, va_arg (v,int)); |
---|
| 2288 | va_end (v); |
---|
| 2289 | return s; |
---|
| 2290 | } |
---|
| 2291 | int test (int i, double x); |
---|
| 2292 | struct s1 {int (*f) (int a);}; |
---|
| 2293 | struct s2 {int (*f) (double a);}; |
---|
| 2294 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 2295 | int argc; |
---|
| 2296 | char **argv; |
---|
| 2297 | int |
---|
| 2298 | main () |
---|
| 2299 | { |
---|
| 2300 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 2301 | ; |
---|
| 2302 | return 0; |
---|
| 2303 | } |
---|
| 2304 | _ACEOF |
---|
| 2305 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 2306 | # breaks some systems' header files. |
---|
| 2307 | # AIX -qlanglvl=ansi |
---|
| 2308 | # Ultrix and OSF/1 -std1 |
---|
| 2309 | # HP-UX 10.20 and later -Ae |
---|
| 2310 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 2311 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 2312 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 2313 | do |
---|
| 2314 | CC="$ac_save_CC $ac_arg" |
---|
| 2315 | rm -f conftest.$ac_objext |
---|
| 2316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2317 | (eval $ac_compile) 2>&5 |
---|
| 2318 | ac_status=$? |
---|
| 2319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2320 | (exit $ac_status); } && |
---|
| 2321 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2323 | (eval $ac_try) 2>&5 |
---|
| 2324 | ac_status=$? |
---|
| 2325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2326 | (exit $ac_status); }; }; then |
---|
| 2327 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 2328 | break |
---|
| 2329 | else |
---|
| 2330 | echo "$as_me: failed program was:" >&5 |
---|
| 2331 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2332 | |
---|
| 2333 | fi |
---|
| 2334 | rm -f conftest.$ac_objext |
---|
| 2335 | done |
---|
| 2336 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 2337 | CC=$ac_save_CC |
---|
| 2338 | |
---|
| 2339 | fi |
---|
| 2340 | |
---|
| 2341 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 2342 | x|xno) |
---|
| 2343 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 2344 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 2345 | *) |
---|
| 2346 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 2347 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 2348 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 2349 | esac |
---|
| 2350 | |
---|
| 2351 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 2352 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 2353 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 2354 | # the declaration of exit, since it's the most demanding environment. |
---|
| 2355 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2356 | #ifndef __cplusplus |
---|
| 2357 | choke me |
---|
| 2358 | #endif |
---|
| 2359 | _ACEOF |
---|
| 2360 | rm -f conftest.$ac_objext |
---|
| 2361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2362 | (eval $ac_compile) 2>&5 |
---|
| 2363 | ac_status=$? |
---|
| 2364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2365 | (exit $ac_status); } && |
---|
| 2366 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2368 | (eval $ac_try) 2>&5 |
---|
| 2369 | ac_status=$? |
---|
| 2370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2371 | (exit $ac_status); }; }; then |
---|
| 2372 | for ac_declaration in \ |
---|
| 2373 | ''\ |
---|
| 2374 | '#include <stdlib.h>' \ |
---|
| 2375 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2376 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2377 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2378 | 'extern "C" void exit (int);' \ |
---|
| 2379 | 'void exit (int);' |
---|
| 2380 | do |
---|
| 2381 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2382 | #line $LINENO "configure" |
---|
| 2383 | /* confdefs.h. */ |
---|
| 2384 | _ACEOF |
---|
| 2385 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2386 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2387 | /* end confdefs.h. */ |
---|
| 2388 | #include <stdlib.h> |
---|
| 2389 | $ac_declaration |
---|
| 2390 | int |
---|
| 2391 | main () |
---|
| 2392 | { |
---|
| 2393 | exit (42); |
---|
| 2394 | ; |
---|
| 2395 | return 0; |
---|
| 2396 | } |
---|
| 2397 | _ACEOF |
---|
| 2398 | rm -f conftest.$ac_objext |
---|
| 2399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2400 | (eval $ac_compile) 2>&5 |
---|
| 2401 | ac_status=$? |
---|
| 2402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2403 | (exit $ac_status); } && |
---|
| 2404 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2406 | (eval $ac_try) 2>&5 |
---|
| 2407 | ac_status=$? |
---|
| 2408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2409 | (exit $ac_status); }; }; then |
---|
| 2410 | : |
---|
| 2411 | else |
---|
| 2412 | echo "$as_me: failed program was:" >&5 |
---|
| 2413 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2414 | |
---|
| 2415 | continue |
---|
| 2416 | fi |
---|
| 2417 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 2418 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2419 | #line $LINENO "configure" |
---|
| 2420 | /* confdefs.h. */ |
---|
| 2421 | _ACEOF |
---|
| 2422 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2423 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2424 | /* end confdefs.h. */ |
---|
| 2425 | $ac_declaration |
---|
| 2426 | int |
---|
| 2427 | main () |
---|
| 2428 | { |
---|
| 2429 | exit (42); |
---|
| 2430 | ; |
---|
| 2431 | return 0; |
---|
| 2432 | } |
---|
| 2433 | _ACEOF |
---|
| 2434 | rm -f conftest.$ac_objext |
---|
| 2435 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2436 | (eval $ac_compile) 2>&5 |
---|
| 2437 | ac_status=$? |
---|
| 2438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2439 | (exit $ac_status); } && |
---|
| 2440 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2442 | (eval $ac_try) 2>&5 |
---|
| 2443 | ac_status=$? |
---|
| 2444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2445 | (exit $ac_status); }; }; then |
---|
| 2446 | break |
---|
| 2447 | else |
---|
| 2448 | echo "$as_me: failed program was:" >&5 |
---|
| 2449 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2450 | |
---|
| 2451 | fi |
---|
| 2452 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 2453 | done |
---|
| 2454 | rm -f conftest* |
---|
| 2455 | if test -n "$ac_declaration"; then |
---|
| 2456 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2457 | echo $ac_declaration >>confdefs.h |
---|
| 2458 | echo '#endif' >>confdefs.h |
---|
| 2459 | fi |
---|
| 2460 | |
---|
| 2461 | else |
---|
| 2462 | echo "$as_me: failed program was:" >&5 |
---|
| 2463 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2464 | |
---|
| 2465 | fi |
---|
| 2466 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 2467 | ac_ext=c |
---|
| 2468 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2470 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2471 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2472 | |
---|
| 2473 | |
---|
| 2474 | # Icc fools AC_PROG_CC into believing it is gcc because it defines __GNUC__. |
---|
| 2475 | # To avoid this confusion we add the following test. |
---|
| 2476 | if test "$CC" = icc; then |
---|
| 2477 | GCC= |
---|
| 2478 | fi |
---|
| 2479 | |
---|
| 2480 | # Check whether --enable-64 or --disable-64 was given. |
---|
| 2481 | if test "${enable_64+set}" = set; then |
---|
| 2482 | enableval="$enable_64" |
---|
| 2483 | use_sixty_four=$enableval |
---|
| 2484 | else |
---|
| 2485 | use_sixty_four=no |
---|
| 2486 | fi; |
---|
| 2487 | |
---|
| 2488 | # Gcc does not support 32-bit pointers on the Alphas. |
---|
| 2489 | if test "$gcc_ok" != no; then |
---|
| 2490 | use_sixty_four=yes |
---|
| 2491 | fi |
---|
| 2492 | |
---|
| 2493 | |
---|
| 2494 | # Balakrisha Kumthekar <kumtheka@colorado.edu>: making a special case |
---|
| 2495 | # for ultrix install, since it's annoying about setting groupids. |
---|
| 2496 | case "$target" in |
---|
| 2497 | mips-dec-ultrix*) |
---|
| 2498 | INSTALL="helpers/install-sh -c" |
---|
| 2499 | INSTALL_PROGRAM="\${INSTALL}" |
---|
| 2500 | INSTALL_DATA="\${INSTALL} -m 644";; |
---|
| 2501 | |
---|
| 2502 | *) |
---|
| 2503 | # Find a good install program. We prefer a C program (faster), |
---|
| 2504 | # so one script is as good as another. But avoid the broken or |
---|
| 2505 | # incompatible versions: |
---|
| 2506 | # SysV /etc/install, /usr/sbin/install |
---|
| 2507 | # SunOS /usr/etc/install |
---|
| 2508 | # IRIX /sbin/install |
---|
| 2509 | # AIX /bin/install |
---|
| 2510 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 2511 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 2512 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 2513 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 2514 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 2515 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 2516 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
| 2517 | if test -z "$INSTALL"; then |
---|
| 2518 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 2519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2520 | else |
---|
| 2521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2522 | for as_dir in $PATH |
---|
| 2523 | do |
---|
| 2524 | IFS=$as_save_IFS |
---|
| 2525 | test -z "$as_dir" && as_dir=. |
---|
| 2526 | # Account for people who put trailing slashes in PATH elements. |
---|
| 2527 | case $as_dir/ in |
---|
| 2528 | ./ | .// | /cC/* | \ |
---|
| 2529 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 2530 | /usr/ucb/* ) ;; |
---|
| 2531 | *) |
---|
| 2532 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 2533 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 2534 | # by default. |
---|
| 2535 | for ac_prog in ginstall scoinst install; do |
---|
| 2536 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2537 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 2538 | if test $ac_prog = install && |
---|
| 2539 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 2540 | # AIX install. It has an incompatible calling convention. |
---|
| 2541 | : |
---|
| 2542 | elif test $ac_prog = install && |
---|
| 2543 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 2544 | # program-specific install script used by HP pwplus--don't use. |
---|
| 2545 | : |
---|
| 2546 | else |
---|
| 2547 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 2548 | break 3 |
---|
| 2549 | fi |
---|
| 2550 | fi |
---|
| 2551 | done |
---|
| 2552 | done |
---|
| 2553 | ;; |
---|
| 2554 | esac |
---|
| 2555 | done |
---|
| 2556 | |
---|
| 2557 | |
---|
| 2558 | fi |
---|
| 2559 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 2560 | INSTALL=$ac_cv_path_install |
---|
| 2561 | else |
---|
| 2562 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 2563 | # path for INSTALL within a source directory, because that will |
---|
| 2564 | # break other packages using the cache if that directory is |
---|
| 2565 | # removed, or if the path is relative. |
---|
| 2566 | INSTALL=$ac_install_sh |
---|
| 2567 | fi |
---|
| 2568 | fi |
---|
| 2569 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 2570 | echo "${ECHO_T}$INSTALL" >&6 |
---|
| 2571 | |
---|
| 2572 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 2573 | # It thinks the first close brace ends the variable substitution. |
---|
| 2574 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 2575 | |
---|
| 2576 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 2577 | |
---|
| 2578 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 2579 | ;; |
---|
| 2580 | esac |
---|
| 2581 | |
---|
| 2582 | # Determine the compiler flags to use |
---|
| 2583 | |
---|
| 2584 | DEBUG_CFLAGS="-g" |
---|
| 2585 | DEBUG_LDFLAGS="" |
---|
| 2586 | |
---|
| 2587 | case "$target" in |
---|
| 2588 | |
---|
| 2589 | i686-pc-linux-gnu) |
---|
| 2590 | # Linux with Intel compiler |
---|
| 2591 | # -ansi: ANSI C conformance |
---|
| 2592 | # -ip: inter-procedural optimization |
---|
| 2593 | OPTIMIZE_CFLAGS="-g -O3 -ansi -ip" |
---|
| 2594 | ;; |
---|
| 2595 | |
---|
| 2596 | sparc-sun-solaris* | i386-pc-solaris*) |
---|
| 2597 | # Sparc and X86 Solaris: |
---|
| 2598 | # -xO3: Highest safe level of optimization |
---|
| 2599 | # -native: Optimize for the native processor (if supported) |
---|
| 2600 | # -dalign: Generate double-word load/store for performance |
---|
| 2601 | # (only for SPARC) |
---|
| 2602 | # and other arcane compilation flags. |
---|
| 2603 | if test "$GCC" = yes; then |
---|
| 2604 | OPTIMIZE_CFLAGS="-O" |
---|
| 2605 | else |
---|
| 2606 | case "$target" in |
---|
| 2607 | sparc-sun-solaris*) |
---|
| 2608 | ALIGN=" -dalign" ;; |
---|
| 2609 | *) |
---|
| 2610 | ALIGN="" ;; |
---|
| 2611 | esac |
---|
| 2612 | echo "$as_me:$LINENO: checking for -native" >&5 |
---|
| 2613 | echo $ECHO_N "checking for -native... $ECHO_C" >&6 |
---|
| 2614 | CFLAGS="-xO3 -native$ALIGN" |
---|
| 2615 | |
---|
| 2616 | if test "${ac_cv_have_native+set}" = set; then |
---|
| 2617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2618 | else |
---|
| 2619 | if test "$cross_compiling" = yes; then |
---|
| 2620 | ac_cv_have_native=no |
---|
| 2621 | else |
---|
| 2622 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2623 | #line $LINENO "configure" |
---|
| 2624 | /* confdefs.h. */ |
---|
| 2625 | _ACEOF |
---|
| 2626 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2627 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2628 | /* end confdefs.h. */ |
---|
| 2629 | |
---|
| 2630 | main(){exit(0);} |
---|
| 2631 | |
---|
| 2632 | _ACEOF |
---|
| 2633 | rm -f conftest$ac_exeext |
---|
| 2634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2635 | (eval $ac_link) 2>&5 |
---|
| 2636 | ac_status=$? |
---|
| 2637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2638 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 2639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2640 | (eval $ac_try) 2>&5 |
---|
| 2641 | ac_status=$? |
---|
| 2642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2643 | (exit $ac_status); }; }; then |
---|
| 2644 | ac_cv_have_native=yes |
---|
| 2645 | else |
---|
| 2646 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 2647 | echo "$as_me: failed program was:" >&5 |
---|
| 2648 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2649 | |
---|
| 2650 | ( exit $ac_status ) |
---|
| 2651 | ac_cv_have_native=no |
---|
| 2652 | fi |
---|
| 2653 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 2654 | fi |
---|
| 2655 | fi |
---|
| 2656 | |
---|
| 2657 | if test $ac_cv_have_native = yes ; then |
---|
| 2658 | echo "$as_me:$LINENO: result: working" >&5 |
---|
| 2659 | echo "${ECHO_T}working" >&6 |
---|
| 2660 | OPTIMIZE_CFLAGS="-xO3 -native$ALIGN" |
---|
| 2661 | else |
---|
| 2662 | echo "$as_me:$LINENO: result: broken" >&5 |
---|
| 2663 | echo "${ECHO_T}broken" >&6 |
---|
| 2664 | echo "$as_me:$LINENO: checking for fallback optimization flags" >&5 |
---|
| 2665 | echo $ECHO_N "checking for fallback optimization flags... $ECHO_C" >&6 |
---|
| 2666 | CFLAGS="-xO3 -fns -fsimple=2$ALIGN -ftrap=%none -xlibmil" |
---|
| 2667 | if test "${ac_cv_have_fallback+set}" = set; then |
---|
| 2668 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2669 | else |
---|
| 2670 | if test "$cross_compiling" = yes; then |
---|
| 2671 | ac_cv_have_fallback=no |
---|
| 2672 | else |
---|
| 2673 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2674 | #line $LINENO "configure" |
---|
| 2675 | /* confdefs.h. */ |
---|
| 2676 | _ACEOF |
---|
| 2677 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2678 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2679 | /* end confdefs.h. */ |
---|
| 2680 | |
---|
| 2681 | main(){exit(0);} |
---|
| 2682 | |
---|
| 2683 | _ACEOF |
---|
| 2684 | rm -f conftest$ac_exeext |
---|
| 2685 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2686 | (eval $ac_link) 2>&5 |
---|
| 2687 | ac_status=$? |
---|
| 2688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2689 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 2690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2691 | (eval $ac_try) 2>&5 |
---|
| 2692 | ac_status=$? |
---|
| 2693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2694 | (exit $ac_status); }; }; then |
---|
| 2695 | ac_cv_have_fallback=yes |
---|
| 2696 | else |
---|
| 2697 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 2698 | echo "$as_me: failed program was:" >&5 |
---|
| 2699 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2700 | |
---|
| 2701 | ( exit $ac_status ) |
---|
| 2702 | ac_cv_have_fallback=no |
---|
| 2703 | fi |
---|
| 2704 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 2705 | fi |
---|
| 2706 | fi |
---|
| 2707 | |
---|
| 2708 | if test $ac_cv_have_fallback = yes ; then |
---|
| 2709 | echo "$as_me:$LINENO: result: working" >&5 |
---|
| 2710 | echo "${ECHO_T}working" >&6 |
---|
| 2711 | OPTIMIZE_CFLAGS="-xO3 -fns -fsimple=2$ALIGN -ftrap=%none -xlibmil" |
---|
| 2712 | else |
---|
| 2713 | echo "$as_me:$LINENO: result: broken" >&5 |
---|
| 2714 | echo "${ECHO_T}broken" >&6 |
---|
| 2715 | OPTIMIZE_CFLAGS="-O" |
---|
| 2716 | fi |
---|
| 2717 | fi |
---|
| 2718 | fi |
---|
| 2719 | ;; |
---|
| 2720 | |
---|
| 2721 | mips-dec-ultrix*) |
---|
| 2722 | # MIPS-based DECstations running Ultrix: |
---|
| 2723 | # -std1: Produce non-ANSI code warnings, and define __STDC__ |
---|
| 2724 | # -O: Use the global "ucode" optimizer |
---|
| 2725 | # -Olimit 5000: Don't optimize routines bigger than 5000 basic blocks |
---|
| 2726 | OPTIMIZE_CFLAGS="-std1 -O -Olimit 5000" ;; |
---|
| 2727 | |
---|
| 2728 | alpha-dec-osf*) |
---|
| 2729 | # DEC Alpha running OSF: |
---|
| 2730 | |
---|
| 2731 | # 64-bit mode: |
---|
| 2732 | # -g3: Produce symbol table information for optimized code |
---|
| 2733 | # -O4: Enable every optimization |
---|
| 2734 | # -std: Enforce the ANSI standard with extensions, define __STDC__ |
---|
| 2735 | # -ieee_with_no_inexact: Disable (potentially slow) signaling |
---|
| 2736 | # for inexact floating-point results |
---|
| 2737 | # -tune host: Tune instructions for the compilation host machine |
---|
| 2738 | OPTIMIZE_CFLAGS="-g3 -O4 -std -ieee_with_no_inexact -tune host" |
---|
| 2739 | DEBUG_CFLAGS="-g -std -ieee_with_no_inexact" |
---|
| 2740 | |
---|
| 2741 | # -non_shared: Do not use shared libraries |
---|
| 2742 | # -om: Generate an OMAGIC file for the om optimizer |
---|
| 2743 | OPTIMIZE_LDFLAGS="-non_shared" |
---|
| 2744 | |
---|
| 2745 | if test "$use_sixty_four" = "no"; then |
---|
| 2746 | # 32-bit mode: |
---|
| 2747 | # -xtaso: Make the compiler respond to #pragma pointer_size directives |
---|
| 2748 | OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -xtaso" |
---|
| 2749 | DEBUG_CFLAGS="$DEBUG_CFLAGS -xtaso" |
---|
| 2750 | |
---|
| 2751 | # -taso: Load the executable into the lower 31-bit address space |
---|
| 2752 | OPTIMIZE_LDFLAGS="$OPTIMIZE_LDFLAGS -om -taso" |
---|
| 2753 | DEBUG_LDFLAGS="$DEBUG_LDFLAGS -taso" |
---|
| 2754 | |
---|
| 2755 | cat >>confdefs.h <<\_ACEOF |
---|
| 2756 | #define SIZEOF_VOID_P 4 |
---|
| 2757 | _ACEOF |
---|
| 2758 | |
---|
| 2759 | ac_sizeof_voidp=4 |
---|
| 2760 | fi |
---|
| 2761 | ;; |
---|
| 2762 | |
---|
| 2763 | hppa*-*-hpux*) |
---|
| 2764 | # HP running HPUX |
---|
| 2765 | # -Aa: Behave as an ANSI compiler |
---|
| 2766 | # -D_HPUX_SOURCE: Include "HP-specific" symbols in the header |
---|
| 2767 | # files (e.g., this means sys/resource.h has struct rusage) |
---|
| 2768 | OPTIMIZE_CFLAGS="-O -Aa -D_HPUX_SOURCE" |
---|
| 2769 | DEBUG_CFLAGS="-g -Aa -D_HPUX_SOURCE" ;; |
---|
| 2770 | |
---|
| 2771 | *) |
---|
| 2772 | # Other systems: |
---|
| 2773 | OPTIMIZE_CFLAGS="-O" ;; |
---|
| 2774 | |
---|
| 2775 | esac |
---|
| 2776 | |
---|
| 2777 | if test "$GCC" = yes; then |
---|
| 2778 | case "$target" in |
---|
| 2779 | i686-pc-linux-gnu | i386-pc-solaris* | i386-pc-cygwin32 | i386-*-freebsd*) |
---|
| 2780 | echo "$as_me:$LINENO: checking for -mcpu and -malign compiler options" >&5 |
---|
| 2781 | echo $ECHO_N "checking for -mcpu and -malign compiler options... $ECHO_C" >&6 |
---|
| 2782 | CFLAGS="-g -O6 -mcpu=pentiumpro -malign-double" |
---|
| 2783 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2784 | #line $LINENO "configure" |
---|
| 2785 | /* confdefs.h. */ |
---|
| 2786 | _ACEOF |
---|
| 2787 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2788 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2789 | /* end confdefs.h. */ |
---|
| 2790 | |
---|
| 2791 | int |
---|
| 2792 | main () |
---|
| 2793 | { |
---|
| 2794 | |
---|
| 2795 | ; |
---|
| 2796 | return 0; |
---|
| 2797 | } |
---|
| 2798 | _ACEOF |
---|
| 2799 | rm -f conftest.$ac_objext |
---|
| 2800 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2801 | (eval $ac_compile) 2>&5 |
---|
| 2802 | ac_status=$? |
---|
| 2803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2804 | (exit $ac_status); } && |
---|
| 2805 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2807 | (eval $ac_try) 2>&5 |
---|
| 2808 | ac_status=$? |
---|
| 2809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2810 | (exit $ac_status); }; }; then |
---|
| 2811 | ac_have_mcpu=yes |
---|
| 2812 | else |
---|
| 2813 | echo "$as_me: failed program was:" >&5 |
---|
| 2814 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2815 | |
---|
| 2816 | ac_have_mcpu=no |
---|
| 2817 | fi |
---|
| 2818 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 2819 | if test "$ac_have_mcpu" = yes; then |
---|
| 2820 | echo "$as_me:$LINENO: result: working" >&5 |
---|
| 2821 | echo "${ECHO_T}working" >&6 |
---|
| 2822 | OPTIMIZE_CFLAGS="-g -O6 -mcpu=pentiumpro -malign-double" |
---|
| 2823 | else |
---|
| 2824 | echo "$as_me:$LINENO: result: broken" >&5 |
---|
| 2825 | echo "${ECHO_T}broken" >&6 |
---|
| 2826 | OPTIMIZE_CFLAGS="-g -O3" |
---|
| 2827 | fi |
---|
| 2828 | ;; |
---|
| 2829 | sparc-sun-solaris*) |
---|
| 2830 | echo "$as_me:$LINENO: checking for -mtune compiler option" >&5 |
---|
| 2831 | echo $ECHO_N "checking for -mtune compiler option... $ECHO_C" >&6 |
---|
| 2832 | CFLAGS="-g -O6 -mtune=ultrasparc" |
---|
| 2833 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2834 | #line $LINENO "configure" |
---|
| 2835 | /* confdefs.h. */ |
---|
| 2836 | _ACEOF |
---|
| 2837 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2838 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2839 | /* end confdefs.h. */ |
---|
| 2840 | |
---|
| 2841 | int |
---|
| 2842 | main () |
---|
| 2843 | { |
---|
| 2844 | |
---|
| 2845 | ; |
---|
| 2846 | return 0; |
---|
| 2847 | } |
---|
| 2848 | _ACEOF |
---|
| 2849 | rm -f conftest.$ac_objext |
---|
| 2850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2851 | (eval $ac_compile) 2>&5 |
---|
| 2852 | ac_status=$? |
---|
| 2853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2854 | (exit $ac_status); } && |
---|
| 2855 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2857 | (eval $ac_try) 2>&5 |
---|
| 2858 | ac_status=$? |
---|
| 2859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2860 | (exit $ac_status); }; }; then |
---|
| 2861 | ac_have_mtune=yes |
---|
| 2862 | else |
---|
| 2863 | echo "$as_me: failed program was:" >&5 |
---|
| 2864 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2865 | |
---|
| 2866 | ac_have_mtune=no |
---|
| 2867 | fi |
---|
| 2868 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 2869 | if test "$ac_have_mtune" = yes; then |
---|
| 2870 | echo "$as_me:$LINENO: result: working" >&5 |
---|
| 2871 | echo "${ECHO_T}working" >&6 |
---|
| 2872 | OPTIMIZE_CFLAGS="-g -O6 -mtune=ultrasparc" |
---|
| 2873 | else |
---|
| 2874 | echo "$as_me:$LINENO: result: not working" >&5 |
---|
| 2875 | echo "${ECHO_T}not working" >&6 |
---|
| 2876 | OPTIMIZE_CFLAGS="-g -O3" |
---|
| 2877 | fi |
---|
| 2878 | ;; |
---|
| 2879 | *) |
---|
| 2880 | OPTIMIZE_CFLAGS="-g -O3" |
---|
| 2881 | ;; |
---|
| 2882 | esac |
---|
| 2883 | OPTIMIZE_LDFLAGS="" |
---|
| 2884 | DEBUG_CFLAGS="-g" |
---|
| 2885 | DEBUG_LDFLAGS="" |
---|
| 2886 | fi |
---|
| 2887 | |
---|
| 2888 | |
---|
| 2889 | # Check whether --with-comp-mode or --without-comp-mode was given. |
---|
| 2890 | if test "${with_comp_mode+set}" = set; then |
---|
| 2891 | withval="$with_comp_mode" |
---|
| 2892 | comp_mode=$withval |
---|
| 2893 | else |
---|
| 2894 | comp_mode=optimize |
---|
| 2895 | fi; |
---|
| 2896 | |
---|
| 2897 | |
---|
| 2898 | |
---|
| 2899 | LINKER="$CC" |
---|
| 2900 | |
---|
| 2901 | case "$comp_mode" in |
---|
| 2902 | debug) |
---|
| 2903 | CFLAGS="$DEBUG_CFLAGS" |
---|
| 2904 | LDFLAGS="$DEBUG_LDFLAGS" ;; |
---|
| 2905 | purify) |
---|
| 2906 | CFLAGS="$DEBUG_CFLAGS" |
---|
| 2907 | LDFLAGS="$DEBUG_LDFLAGS" |
---|
| 2908 | cat >>confdefs.h <<\_ACEOF |
---|
| 2909 | #define PURIFY 1 |
---|
| 2910 | _ACEOF |
---|
| 2911 | |
---|
| 2912 | LINKER="purify -cache-dir=/tmp $CC" |
---|
| 2913 | PLINKER="purify -log-file=./purify.log -cachedir=/tmp $CC" ;; |
---|
| 2914 | quantify) |
---|
| 2915 | CFLAGS="$OPTIMIZE_CFLAGS" |
---|
| 2916 | LDFLAGS="$OPTIMIZE_LDFLAGS" |
---|
| 2917 | cat >>confdefs.h <<\_ACEOF |
---|
| 2918 | #define QUANTIFY 1 |
---|
| 2919 | _ACEOF |
---|
| 2920 | |
---|
| 2921 | cat >>confdefs.h <<\_ACEOF |
---|
| 2922 | #define NDEBUG 1 |
---|
| 2923 | _ACEOF |
---|
| 2924 | |
---|
| 2925 | LINKER="quantify $CC" ;; |
---|
| 2926 | optimize | *) |
---|
| 2927 | CFLAGS="$OPTIMIZE_CFLAGS" |
---|
| 2928 | LDFLAGS="$OPTIMIZE_LDFLAGS" |
---|
| 2929 | cat >>confdefs.h <<\_ACEOF |
---|
| 2930 | #define NDEBUG 1 |
---|
| 2931 | _ACEOF |
---|
| 2932 | ;; |
---|
| 2933 | esac |
---|
| 2934 | |
---|
| 2935 | #---------------------------------------------------------------------- |
---|
| 2936 | # Checks for libraries |
---|
| 2937 | #---------------------------------------------------------------------- |
---|
| 2938 | |
---|
| 2939 | # Define STDC_HEADERS if the system has ANSI C header files |
---|
| 2940 | ac_ext=c |
---|
| 2941 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2942 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2943 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2944 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2945 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 2946 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 2947 | # On Suns, sometimes $CPP names a directory. |
---|
| 2948 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 2949 | CPP= |
---|
| 2950 | fi |
---|
| 2951 | if test -z "$CPP"; then |
---|
| 2952 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
| 2953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2954 | else |
---|
| 2955 | # Double quotes because CPP needs to be expanded |
---|
| 2956 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 2957 | do |
---|
| 2958 | ac_preproc_ok=false |
---|
| 2959 | for ac_c_preproc_warn_flag in '' yes |
---|
| 2960 | do |
---|
| 2961 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 2962 | # with a fresh cross-compiler works. |
---|
| 2963 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 2964 | # <limits.h> exists even on freestanding compilers. |
---|
| 2965 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 2966 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 2967 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2968 | #line $LINENO "configure" |
---|
| 2969 | /* confdefs.h. */ |
---|
| 2970 | _ACEOF |
---|
| 2971 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2972 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2973 | /* end confdefs.h. */ |
---|
| 2974 | #ifdef __STDC__ |
---|
| 2975 | # include <limits.h> |
---|
| 2976 | #else |
---|
| 2977 | # include <assert.h> |
---|
| 2978 | #endif |
---|
| 2979 | Syntax error |
---|
| 2980 | _ACEOF |
---|
| 2981 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 2982 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 2983 | ac_status=$? |
---|
| 2984 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2985 | rm -f conftest.er1 |
---|
| 2986 | cat conftest.err >&5 |
---|
| 2987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2988 | (exit $ac_status); } >/dev/null; then |
---|
| 2989 | if test -s conftest.err; then |
---|
| 2990 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 2991 | else |
---|
| 2992 | ac_cpp_err= |
---|
| 2993 | fi |
---|
| 2994 | else |
---|
| 2995 | ac_cpp_err=yes |
---|
| 2996 | fi |
---|
| 2997 | if test -z "$ac_cpp_err"; then |
---|
| 2998 | : |
---|
| 2999 | else |
---|
| 3000 | echo "$as_me: failed program was:" >&5 |
---|
| 3001 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3002 | |
---|
| 3003 | # Broken: fails on valid input. |
---|
| 3004 | continue |
---|
| 3005 | fi |
---|
| 3006 | rm -f conftest.err conftest.$ac_ext |
---|
| 3007 | |
---|
| 3008 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3009 | # can be detected and how. |
---|
| 3010 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3011 | #line $LINENO "configure" |
---|
| 3012 | /* confdefs.h. */ |
---|
| 3013 | _ACEOF |
---|
| 3014 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3015 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3016 | /* end confdefs.h. */ |
---|
| 3017 | #include <ac_nonexistent.h> |
---|
| 3018 | _ACEOF |
---|
| 3019 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3020 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3021 | ac_status=$? |
---|
| 3022 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3023 | rm -f conftest.er1 |
---|
| 3024 | cat conftest.err >&5 |
---|
| 3025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3026 | (exit $ac_status); } >/dev/null; then |
---|
| 3027 | if test -s conftest.err; then |
---|
| 3028 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3029 | else |
---|
| 3030 | ac_cpp_err= |
---|
| 3031 | fi |
---|
| 3032 | else |
---|
| 3033 | ac_cpp_err=yes |
---|
| 3034 | fi |
---|
| 3035 | if test -z "$ac_cpp_err"; then |
---|
| 3036 | # Broken: success on invalid input. |
---|
| 3037 | continue |
---|
| 3038 | else |
---|
| 3039 | echo "$as_me: failed program was:" >&5 |
---|
| 3040 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3041 | |
---|
| 3042 | # Passes both tests. |
---|
| 3043 | ac_preproc_ok=: |
---|
| 3044 | break |
---|
| 3045 | fi |
---|
| 3046 | rm -f conftest.err conftest.$ac_ext |
---|
| 3047 | |
---|
| 3048 | done |
---|
| 3049 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3050 | rm -f conftest.err conftest.$ac_ext |
---|
| 3051 | if $ac_preproc_ok; then |
---|
| 3052 | break |
---|
| 3053 | fi |
---|
| 3054 | |
---|
| 3055 | done |
---|
| 3056 | ac_cv_prog_CPP=$CPP |
---|
| 3057 | |
---|
| 3058 | fi |
---|
| 3059 | CPP=$ac_cv_prog_CPP |
---|
| 3060 | else |
---|
| 3061 | ac_cv_prog_CPP=$CPP |
---|
| 3062 | fi |
---|
| 3063 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 3064 | echo "${ECHO_T}$CPP" >&6 |
---|
| 3065 | ac_preproc_ok=false |
---|
| 3066 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3067 | do |
---|
| 3068 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3069 | # with a fresh cross-compiler works. |
---|
| 3070 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3071 | # <limits.h> exists even on freestanding compilers. |
---|
| 3072 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3073 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3074 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3075 | #line $LINENO "configure" |
---|
| 3076 | /* confdefs.h. */ |
---|
| 3077 | _ACEOF |
---|
| 3078 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3079 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3080 | /* end confdefs.h. */ |
---|
| 3081 | #ifdef __STDC__ |
---|
| 3082 | # include <limits.h> |
---|
| 3083 | #else |
---|
| 3084 | # include <assert.h> |
---|
| 3085 | #endif |
---|
| 3086 | Syntax error |
---|
| 3087 | _ACEOF |
---|
| 3088 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3089 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3090 | ac_status=$? |
---|
| 3091 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3092 | rm -f conftest.er1 |
---|
| 3093 | cat conftest.err >&5 |
---|
| 3094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3095 | (exit $ac_status); } >/dev/null; then |
---|
| 3096 | if test -s conftest.err; then |
---|
| 3097 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3098 | else |
---|
| 3099 | ac_cpp_err= |
---|
| 3100 | fi |
---|
| 3101 | else |
---|
| 3102 | ac_cpp_err=yes |
---|
| 3103 | fi |
---|
| 3104 | if test -z "$ac_cpp_err"; then |
---|
| 3105 | : |
---|
| 3106 | else |
---|
| 3107 | echo "$as_me: failed program was:" >&5 |
---|
| 3108 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3109 | |
---|
| 3110 | # Broken: fails on valid input. |
---|
| 3111 | continue |
---|
| 3112 | fi |
---|
| 3113 | rm -f conftest.err conftest.$ac_ext |
---|
| 3114 | |
---|
| 3115 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3116 | # can be detected and how. |
---|
| 3117 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3118 | #line $LINENO "configure" |
---|
| 3119 | /* confdefs.h. */ |
---|
| 3120 | _ACEOF |
---|
| 3121 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3122 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3123 | /* end confdefs.h. */ |
---|
| 3124 | #include <ac_nonexistent.h> |
---|
| 3125 | _ACEOF |
---|
| 3126 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3127 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3128 | ac_status=$? |
---|
| 3129 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3130 | rm -f conftest.er1 |
---|
| 3131 | cat conftest.err >&5 |
---|
| 3132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3133 | (exit $ac_status); } >/dev/null; then |
---|
| 3134 | if test -s conftest.err; then |
---|
| 3135 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3136 | else |
---|
| 3137 | ac_cpp_err= |
---|
| 3138 | fi |
---|
| 3139 | else |
---|
| 3140 | ac_cpp_err=yes |
---|
| 3141 | fi |
---|
| 3142 | if test -z "$ac_cpp_err"; then |
---|
| 3143 | # Broken: success on invalid input. |
---|
| 3144 | continue |
---|
| 3145 | else |
---|
| 3146 | echo "$as_me: failed program was:" >&5 |
---|
| 3147 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3148 | |
---|
| 3149 | # Passes both tests. |
---|
| 3150 | ac_preproc_ok=: |
---|
| 3151 | break |
---|
| 3152 | fi |
---|
| 3153 | rm -f conftest.err conftest.$ac_ext |
---|
| 3154 | |
---|
| 3155 | done |
---|
| 3156 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 3157 | rm -f conftest.err conftest.$ac_ext |
---|
| 3158 | if $ac_preproc_ok; then |
---|
| 3159 | : |
---|
| 3160 | else |
---|
| 3161 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3162 | See \`config.log' for more details." >&5 |
---|
| 3163 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 3164 | See \`config.log' for more details." >&2;} |
---|
| 3165 | { (exit 1); exit 1; }; } |
---|
| 3166 | fi |
---|
| 3167 | |
---|
| 3168 | ac_ext=c |
---|
| 3169 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3170 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3171 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3172 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3173 | |
---|
| 3174 | |
---|
| 3175 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 3176 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 3177 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 3178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3179 | else |
---|
| 3180 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 3181 | then ac_cv_prog_egrep='grep -E' |
---|
| 3182 | else ac_cv_prog_egrep='egrep' |
---|
| 3183 | fi |
---|
| 3184 | fi |
---|
| 3185 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 3186 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 3187 | EGREP=$ac_cv_prog_egrep |
---|
| 3188 | |
---|
| 3189 | |
---|
| 3190 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 3191 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 3192 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 3193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3194 | else |
---|
| 3195 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3196 | #line $LINENO "configure" |
---|
| 3197 | /* confdefs.h. */ |
---|
| 3198 | _ACEOF |
---|
| 3199 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3200 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3201 | /* end confdefs.h. */ |
---|
| 3202 | #include <stdlib.h> |
---|
| 3203 | #include <stdarg.h> |
---|
| 3204 | #include <string.h> |
---|
| 3205 | #include <float.h> |
---|
| 3206 | |
---|
| 3207 | int |
---|
| 3208 | main () |
---|
| 3209 | { |
---|
| 3210 | |
---|
| 3211 | ; |
---|
| 3212 | return 0; |
---|
| 3213 | } |
---|
| 3214 | _ACEOF |
---|
| 3215 | rm -f conftest.$ac_objext |
---|
| 3216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3217 | (eval $ac_compile) 2>&5 |
---|
| 3218 | ac_status=$? |
---|
| 3219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3220 | (exit $ac_status); } && |
---|
| 3221 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3223 | (eval $ac_try) 2>&5 |
---|
| 3224 | ac_status=$? |
---|
| 3225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3226 | (exit $ac_status); }; }; then |
---|
| 3227 | ac_cv_header_stdc=yes |
---|
| 3228 | else |
---|
| 3229 | echo "$as_me: failed program was:" >&5 |
---|
| 3230 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3231 | |
---|
| 3232 | ac_cv_header_stdc=no |
---|
| 3233 | fi |
---|
| 3234 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 3235 | |
---|
| 3236 | if test $ac_cv_header_stdc = yes; then |
---|
| 3237 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 3238 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3239 | #line $LINENO "configure" |
---|
| 3240 | /* confdefs.h. */ |
---|
| 3241 | _ACEOF |
---|
| 3242 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3243 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3244 | /* end confdefs.h. */ |
---|
| 3245 | #include <string.h> |
---|
| 3246 | |
---|
| 3247 | _ACEOF |
---|
| 3248 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3249 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 3250 | : |
---|
| 3251 | else |
---|
| 3252 | ac_cv_header_stdc=no |
---|
| 3253 | fi |
---|
| 3254 | rm -f conftest* |
---|
| 3255 | |
---|
| 3256 | fi |
---|
| 3257 | |
---|
| 3258 | if test $ac_cv_header_stdc = yes; then |
---|
| 3259 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 3260 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3261 | #line $LINENO "configure" |
---|
| 3262 | /* confdefs.h. */ |
---|
| 3263 | _ACEOF |
---|
| 3264 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3265 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3266 | /* end confdefs.h. */ |
---|
| 3267 | #include <stdlib.h> |
---|
| 3268 | |
---|
| 3269 | _ACEOF |
---|
| 3270 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 3271 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 3272 | : |
---|
| 3273 | else |
---|
| 3274 | ac_cv_header_stdc=no |
---|
| 3275 | fi |
---|
| 3276 | rm -f conftest* |
---|
| 3277 | |
---|
| 3278 | fi |
---|
| 3279 | |
---|
| 3280 | if test $ac_cv_header_stdc = yes; then |
---|
| 3281 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 3282 | if test "$cross_compiling" = yes; then |
---|
| 3283 | : |
---|
| 3284 | else |
---|
| 3285 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3286 | #line $LINENO "configure" |
---|
| 3287 | /* confdefs.h. */ |
---|
| 3288 | _ACEOF |
---|
| 3289 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3290 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3291 | /* end confdefs.h. */ |
---|
| 3292 | #include <ctype.h> |
---|
| 3293 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 3294 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 3295 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 3296 | #else |
---|
| 3297 | # define ISLOWER(c) \ |
---|
| 3298 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 3299 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 3300 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 3301 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 3302 | #endif |
---|
| 3303 | |
---|
| 3304 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 3305 | int |
---|
| 3306 | main () |
---|
| 3307 | { |
---|
| 3308 | int i; |
---|
| 3309 | for (i = 0; i < 256; i++) |
---|
| 3310 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 3311 | || toupper (i) != TOUPPER (i)) |
---|
| 3312 | exit(2); |
---|
| 3313 | exit (0); |
---|
| 3314 | } |
---|
| 3315 | _ACEOF |
---|
| 3316 | rm -f conftest$ac_exeext |
---|
| 3317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3318 | (eval $ac_link) 2>&5 |
---|
| 3319 | ac_status=$? |
---|
| 3320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3321 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 3322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3323 | (eval $ac_try) 2>&5 |
---|
| 3324 | ac_status=$? |
---|
| 3325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3326 | (exit $ac_status); }; }; then |
---|
| 3327 | : |
---|
| 3328 | else |
---|
| 3329 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 3330 | echo "$as_me: failed program was:" >&5 |
---|
| 3331 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3332 | |
---|
| 3333 | ( exit $ac_status ) |
---|
| 3334 | ac_cv_header_stdc=no |
---|
| 3335 | fi |
---|
| 3336 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 3337 | fi |
---|
| 3338 | fi |
---|
| 3339 | fi |
---|
| 3340 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 3341 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 3342 | if test $ac_cv_header_stdc = yes; then |
---|
| 3343 | |
---|
| 3344 | cat >>confdefs.h <<\_ACEOF |
---|
| 3345 | #define STDC_HEADERS 1 |
---|
| 3346 | _ACEOF |
---|
| 3347 | |
---|
| 3348 | fi |
---|
| 3349 | |
---|
| 3350 | |
---|
| 3351 | # Define HAVE_SYS_WAIT_H if sys/wait.h exists and is POSIX-compliant |
---|
| 3352 | echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
---|
| 3353 | echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 |
---|
| 3354 | if test "${ac_cv_header_sys_wait_h+set}" = set; then |
---|
| 3355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3356 | else |
---|
| 3357 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3358 | #line $LINENO "configure" |
---|
| 3359 | /* confdefs.h. */ |
---|
| 3360 | _ACEOF |
---|
| 3361 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3362 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3363 | /* end confdefs.h. */ |
---|
| 3364 | #include <sys/types.h> |
---|
| 3365 | #include <sys/wait.h> |
---|
| 3366 | #ifndef WEXITSTATUS |
---|
| 3367 | # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) |
---|
| 3368 | #endif |
---|
| 3369 | #ifndef WIFEXITED |
---|
| 3370 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
---|
| 3371 | #endif |
---|
| 3372 | |
---|
| 3373 | int |
---|
| 3374 | main () |
---|
| 3375 | { |
---|
| 3376 | int s; |
---|
| 3377 | wait (&s); |
---|
| 3378 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
---|
| 3379 | ; |
---|
| 3380 | return 0; |
---|
| 3381 | } |
---|
| 3382 | _ACEOF |
---|
| 3383 | rm -f conftest.$ac_objext |
---|
| 3384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3385 | (eval $ac_compile) 2>&5 |
---|
| 3386 | ac_status=$? |
---|
| 3387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3388 | (exit $ac_status); } && |
---|
| 3389 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3391 | (eval $ac_try) 2>&5 |
---|
| 3392 | ac_status=$? |
---|
| 3393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3394 | (exit $ac_status); }; }; then |
---|
| 3395 | ac_cv_header_sys_wait_h=yes |
---|
| 3396 | else |
---|
| 3397 | echo "$as_me: failed program was:" >&5 |
---|
| 3398 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3399 | |
---|
| 3400 | ac_cv_header_sys_wait_h=no |
---|
| 3401 | fi |
---|
| 3402 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 3403 | fi |
---|
| 3404 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 |
---|
| 3405 | echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 |
---|
| 3406 | if test $ac_cv_header_sys_wait_h = yes; then |
---|
| 3407 | |
---|
| 3408 | cat >>confdefs.h <<\_ACEOF |
---|
| 3409 | #define HAVE_SYS_WAIT_H 1 |
---|
| 3410 | _ACEOF |
---|
| 3411 | |
---|
| 3412 | fi |
---|
| 3413 | |
---|
| 3414 | |
---|
| 3415 | # Check for these system header files |
---|
| 3416 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
| 3417 | |
---|
| 3418 | |
---|
| 3419 | |
---|
| 3420 | |
---|
| 3421 | |
---|
| 3422 | |
---|
| 3423 | |
---|
| 3424 | |
---|
| 3425 | |
---|
| 3426 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 3427 | inttypes.h stdint.h unistd.h |
---|
| 3428 | do |
---|
| 3429 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3430 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3431 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3432 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3433 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3434 | else |
---|
| 3435 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3436 | #line $LINENO "configure" |
---|
| 3437 | /* confdefs.h. */ |
---|
| 3438 | _ACEOF |
---|
| 3439 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3440 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3441 | /* end confdefs.h. */ |
---|
| 3442 | $ac_includes_default |
---|
| 3443 | |
---|
| 3444 | #include <$ac_header> |
---|
| 3445 | _ACEOF |
---|
| 3446 | rm -f conftest.$ac_objext |
---|
| 3447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3448 | (eval $ac_compile) 2>&5 |
---|
| 3449 | ac_status=$? |
---|
| 3450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3451 | (exit $ac_status); } && |
---|
| 3452 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3454 | (eval $ac_try) 2>&5 |
---|
| 3455 | ac_status=$? |
---|
| 3456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3457 | (exit $ac_status); }; }; then |
---|
| 3458 | eval "$as_ac_Header=yes" |
---|
| 3459 | else |
---|
| 3460 | echo "$as_me: failed program was:" >&5 |
---|
| 3461 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3462 | |
---|
| 3463 | eval "$as_ac_Header=no" |
---|
| 3464 | fi |
---|
| 3465 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 3466 | fi |
---|
| 3467 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3468 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3469 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3470 | cat >>confdefs.h <<_ACEOF |
---|
| 3471 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3472 | _ACEOF |
---|
| 3473 | |
---|
| 3474 | fi |
---|
| 3475 | |
---|
| 3476 | done |
---|
| 3477 | |
---|
| 3478 | |
---|
| 3479 | |
---|
| 3480 | |
---|
| 3481 | |
---|
| 3482 | |
---|
| 3483 | |
---|
| 3484 | |
---|
| 3485 | |
---|
| 3486 | |
---|
| 3487 | |
---|
| 3488 | |
---|
| 3489 | |
---|
| 3490 | for ac_header in sys/file.h sys/stat.h unistd.h errno.h assert.h sys/wait.h pwd.h sys/types.h sys/times.h sys/time.h sys/resource.h |
---|
| 3491 | do |
---|
| 3492 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3493 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3494 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3495 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3496 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3498 | fi |
---|
| 3499 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3500 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3501 | else |
---|
| 3502 | # Is the header compilable? |
---|
| 3503 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 3504 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 3505 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3506 | #line $LINENO "configure" |
---|
| 3507 | /* confdefs.h. */ |
---|
| 3508 | _ACEOF |
---|
| 3509 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3510 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3511 | /* end confdefs.h. */ |
---|
| 3512 | $ac_includes_default |
---|
| 3513 | #include <$ac_header> |
---|
| 3514 | _ACEOF |
---|
| 3515 | rm -f conftest.$ac_objext |
---|
| 3516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3517 | (eval $ac_compile) 2>&5 |
---|
| 3518 | ac_status=$? |
---|
| 3519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3520 | (exit $ac_status); } && |
---|
| 3521 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3523 | (eval $ac_try) 2>&5 |
---|
| 3524 | ac_status=$? |
---|
| 3525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3526 | (exit $ac_status); }; }; then |
---|
| 3527 | ac_header_compiler=yes |
---|
| 3528 | else |
---|
| 3529 | echo "$as_me: failed program was:" >&5 |
---|
| 3530 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3531 | |
---|
| 3532 | ac_header_compiler=no |
---|
| 3533 | fi |
---|
| 3534 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 3535 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 3536 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 3537 | |
---|
| 3538 | # Is the header present? |
---|
| 3539 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 3540 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 3541 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3542 | #line $LINENO "configure" |
---|
| 3543 | /* confdefs.h. */ |
---|
| 3544 | _ACEOF |
---|
| 3545 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3546 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3547 | /* end confdefs.h. */ |
---|
| 3548 | #include <$ac_header> |
---|
| 3549 | _ACEOF |
---|
| 3550 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3551 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3552 | ac_status=$? |
---|
| 3553 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3554 | rm -f conftest.er1 |
---|
| 3555 | cat conftest.err >&5 |
---|
| 3556 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3557 | (exit $ac_status); } >/dev/null; then |
---|
| 3558 | if test -s conftest.err; then |
---|
| 3559 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3560 | else |
---|
| 3561 | ac_cpp_err= |
---|
| 3562 | fi |
---|
| 3563 | else |
---|
| 3564 | ac_cpp_err=yes |
---|
| 3565 | fi |
---|
| 3566 | if test -z "$ac_cpp_err"; then |
---|
| 3567 | ac_header_preproc=yes |
---|
| 3568 | else |
---|
| 3569 | echo "$as_me: failed program was:" >&5 |
---|
| 3570 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3571 | |
---|
| 3572 | ac_header_preproc=no |
---|
| 3573 | fi |
---|
| 3574 | rm -f conftest.err conftest.$ac_ext |
---|
| 3575 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 3576 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 3577 | |
---|
| 3578 | # So? What about this header? |
---|
| 3579 | case $ac_header_compiler:$ac_header_preproc in |
---|
| 3580 | yes:no ) |
---|
| 3581 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 3582 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 3583 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 3584 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 3585 | ( |
---|
| 3586 | cat <<\_ASBOX |
---|
| 3587 | ## ------------------------------------ ## |
---|
| 3588 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 3589 | ## ------------------------------------ ## |
---|
| 3590 | _ASBOX |
---|
| 3591 | ) | |
---|
| 3592 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 3593 | ;; |
---|
| 3594 | no:yes ) |
---|
| 3595 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 3596 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 3597 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 3598 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 3599 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 3600 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 3601 | ( |
---|
| 3602 | cat <<\_ASBOX |
---|
| 3603 | ## ------------------------------------ ## |
---|
| 3604 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 3605 | ## ------------------------------------ ## |
---|
| 3606 | _ASBOX |
---|
| 3607 | ) | |
---|
| 3608 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 3609 | ;; |
---|
| 3610 | esac |
---|
| 3611 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3612 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3613 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3614 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3615 | else |
---|
| 3616 | eval "$as_ac_Header=$ac_header_preproc" |
---|
| 3617 | fi |
---|
| 3618 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3619 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3620 | |
---|
| 3621 | fi |
---|
| 3622 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3623 | cat >>confdefs.h <<_ACEOF |
---|
| 3624 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3625 | _ACEOF |
---|
| 3626 | |
---|
| 3627 | fi |
---|
| 3628 | |
---|
| 3629 | done |
---|
| 3630 | |
---|
| 3631 | |
---|
| 3632 | # Check how the compiler handles functions with variable argument lists |
---|
| 3633 | # |
---|
| 3634 | # If there's a <stdarg.h>, this is probably an ANSI compiler and the "..." |
---|
| 3635 | # notation will probably work. If not, there may be another version |
---|
| 3636 | # called <varargs.h>, that uses an argument of the type "va_alist" |
---|
| 3637 | # (see, e.g., Ultrix, Digital Unix) |
---|
| 3638 | |
---|
| 3639 | |
---|
| 3640 | for ac_header in stdarg.h varargs.h |
---|
| 3641 | do |
---|
| 3642 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 3643 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3644 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3645 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3646 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3648 | fi |
---|
| 3649 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3650 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3651 | else |
---|
| 3652 | # Is the header compilable? |
---|
| 3653 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 3654 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 3655 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3656 | #line $LINENO "configure" |
---|
| 3657 | /* confdefs.h. */ |
---|
| 3658 | _ACEOF |
---|
| 3659 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3660 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3661 | /* end confdefs.h. */ |
---|
| 3662 | $ac_includes_default |
---|
| 3663 | #include <$ac_header> |
---|
| 3664 | _ACEOF |
---|
| 3665 | rm -f conftest.$ac_objext |
---|
| 3666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3667 | (eval $ac_compile) 2>&5 |
---|
| 3668 | ac_status=$? |
---|
| 3669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3670 | (exit $ac_status); } && |
---|
| 3671 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3673 | (eval $ac_try) 2>&5 |
---|
| 3674 | ac_status=$? |
---|
| 3675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3676 | (exit $ac_status); }; }; then |
---|
| 3677 | ac_header_compiler=yes |
---|
| 3678 | else |
---|
| 3679 | echo "$as_me: failed program was:" >&5 |
---|
| 3680 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3681 | |
---|
| 3682 | ac_header_compiler=no |
---|
| 3683 | fi |
---|
| 3684 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 3685 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 3686 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 3687 | |
---|
| 3688 | # Is the header present? |
---|
| 3689 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 3690 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 3691 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3692 | #line $LINENO "configure" |
---|
| 3693 | /* confdefs.h. */ |
---|
| 3694 | _ACEOF |
---|
| 3695 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3696 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3697 | /* end confdefs.h. */ |
---|
| 3698 | #include <$ac_header> |
---|
| 3699 | _ACEOF |
---|
| 3700 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3701 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3702 | ac_status=$? |
---|
| 3703 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3704 | rm -f conftest.er1 |
---|
| 3705 | cat conftest.err >&5 |
---|
| 3706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3707 | (exit $ac_status); } >/dev/null; then |
---|
| 3708 | if test -s conftest.err; then |
---|
| 3709 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3710 | else |
---|
| 3711 | ac_cpp_err= |
---|
| 3712 | fi |
---|
| 3713 | else |
---|
| 3714 | ac_cpp_err=yes |
---|
| 3715 | fi |
---|
| 3716 | if test -z "$ac_cpp_err"; then |
---|
| 3717 | ac_header_preproc=yes |
---|
| 3718 | else |
---|
| 3719 | echo "$as_me: failed program was:" >&5 |
---|
| 3720 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3721 | |
---|
| 3722 | ac_header_preproc=no |
---|
| 3723 | fi |
---|
| 3724 | rm -f conftest.err conftest.$ac_ext |
---|
| 3725 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 3726 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 3727 | |
---|
| 3728 | # So? What about this header? |
---|
| 3729 | case $ac_header_compiler:$ac_header_preproc in |
---|
| 3730 | yes:no ) |
---|
| 3731 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 3732 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 3733 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 3734 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 3735 | ( |
---|
| 3736 | cat <<\_ASBOX |
---|
| 3737 | ## ------------------------------------ ## |
---|
| 3738 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 3739 | ## ------------------------------------ ## |
---|
| 3740 | _ASBOX |
---|
| 3741 | ) | |
---|
| 3742 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 3743 | ;; |
---|
| 3744 | no:yes ) |
---|
| 3745 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 3746 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 3747 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 3748 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 3749 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 3750 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 3751 | ( |
---|
| 3752 | cat <<\_ASBOX |
---|
| 3753 | ## ------------------------------------ ## |
---|
| 3754 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 3755 | ## ------------------------------------ ## |
---|
| 3756 | _ASBOX |
---|
| 3757 | ) | |
---|
| 3758 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 3759 | ;; |
---|
| 3760 | esac |
---|
| 3761 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 3762 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 3763 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 3764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3765 | else |
---|
| 3766 | eval "$as_ac_Header=$ac_header_preproc" |
---|
| 3767 | fi |
---|
| 3768 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 3769 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 3770 | |
---|
| 3771 | fi |
---|
| 3772 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 3773 | cat >>confdefs.h <<_ACEOF |
---|
| 3774 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 3775 | _ACEOF |
---|
| 3776 | |
---|
| 3777 | fi |
---|
| 3778 | |
---|
| 3779 | done |
---|
| 3780 | |
---|
| 3781 | |
---|
| 3782 | #---------------------------------------------------------------------- |
---|
| 3783 | # Checks for typedefs, structures, and compiler characteristics. |
---|
| 3784 | #---------------------------------------------------------------------- |
---|
| 3785 | |
---|
| 3786 | # Check to see if the compiler understands "const" |
---|
| 3787 | # #define it empty otherwise |
---|
| 3788 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
---|
| 3789 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
---|
| 3790 | if test "${ac_cv_c_const+set}" = set; then |
---|
| 3791 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3792 | else |
---|
| 3793 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3794 | #line $LINENO "configure" |
---|
| 3795 | /* confdefs.h. */ |
---|
| 3796 | _ACEOF |
---|
| 3797 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3798 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3799 | /* end confdefs.h. */ |
---|
| 3800 | |
---|
| 3801 | int |
---|
| 3802 | main () |
---|
| 3803 | { |
---|
| 3804 | /* FIXME: Include the comments suggested by Paul. */ |
---|
| 3805 | #ifndef __cplusplus |
---|
| 3806 | /* Ultrix mips cc rejects this. */ |
---|
| 3807 | typedef int charset[2]; |
---|
| 3808 | const charset x; |
---|
| 3809 | /* SunOS 4.1.1 cc rejects this. */ |
---|
| 3810 | char const *const *ccp; |
---|
| 3811 | char **p; |
---|
| 3812 | /* NEC SVR4.0.2 mips cc rejects this. */ |
---|
| 3813 | struct point {int x, y;}; |
---|
| 3814 | static struct point const zero = {0,0}; |
---|
| 3815 | /* AIX XL C 1.02.0.0 rejects this. |
---|
| 3816 | It does not let you subtract one const X* pointer from another in |
---|
| 3817 | an arm of an if-expression whose if-part is not a constant |
---|
| 3818 | expression */ |
---|
| 3819 | const char *g = "string"; |
---|
| 3820 | ccp = &g + (g ? g-g : 0); |
---|
| 3821 | /* HPUX 7.0 cc rejects these. */ |
---|
| 3822 | ++ccp; |
---|
| 3823 | p = (char**) ccp; |
---|
| 3824 | ccp = (char const *const *) p; |
---|
| 3825 | { /* SCO 3.2v4 cc rejects this. */ |
---|
| 3826 | char *t; |
---|
| 3827 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
---|
| 3828 | |
---|
| 3829 | *t++ = 0; |
---|
| 3830 | } |
---|
| 3831 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
---|
| 3832 | int x[] = {25, 17}; |
---|
| 3833 | const int *foo = &x[0]; |
---|
| 3834 | ++foo; |
---|
| 3835 | } |
---|
| 3836 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
---|
| 3837 | typedef const int *iptr; |
---|
| 3838 | iptr p = 0; |
---|
| 3839 | ++p; |
---|
| 3840 | } |
---|
| 3841 | { /* AIX XL C 1.02.0.0 rejects this saying |
---|
| 3842 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
---|
| 3843 | struct s { int j; const int *ap[3]; }; |
---|
| 3844 | struct s *b; b->j = 5; |
---|
| 3845 | } |
---|
| 3846 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
---|
| 3847 | const int foo = 10; |
---|
| 3848 | } |
---|
| 3849 | #endif |
---|
| 3850 | |
---|
| 3851 | ; |
---|
| 3852 | return 0; |
---|
| 3853 | } |
---|
| 3854 | _ACEOF |
---|
| 3855 | rm -f conftest.$ac_objext |
---|
| 3856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3857 | (eval $ac_compile) 2>&5 |
---|
| 3858 | ac_status=$? |
---|
| 3859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3860 | (exit $ac_status); } && |
---|
| 3861 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3863 | (eval $ac_try) 2>&5 |
---|
| 3864 | ac_status=$? |
---|
| 3865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3866 | (exit $ac_status); }; }; then |
---|
| 3867 | ac_cv_c_const=yes |
---|
| 3868 | else |
---|
| 3869 | echo "$as_me: failed program was:" >&5 |
---|
| 3870 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3871 | |
---|
| 3872 | ac_cv_c_const=no |
---|
| 3873 | fi |
---|
| 3874 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 3875 | fi |
---|
| 3876 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
---|
| 3877 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
---|
| 3878 | if test $ac_cv_c_const = no; then |
---|
| 3879 | |
---|
| 3880 | cat >>confdefs.h <<\_ACEOF |
---|
| 3881 | #define const |
---|
| 3882 | _ACEOF |
---|
| 3883 | |
---|
| 3884 | fi |
---|
| 3885 | |
---|
| 3886 | |
---|
| 3887 | # Check the size of pointers, longs and ints |
---|
| 3888 | |
---|
| 3889 | if test -z "$ac_sizeof_voidp"; then |
---|
| 3890 | echo "$as_me:$LINENO: checking for void *" >&5 |
---|
| 3891 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 |
---|
| 3892 | if test "${ac_cv_type_void_p+set}" = set; then |
---|
| 3893 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3894 | else |
---|
| 3895 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3896 | #line $LINENO "configure" |
---|
| 3897 | /* confdefs.h. */ |
---|
| 3898 | _ACEOF |
---|
| 3899 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3900 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3901 | /* end confdefs.h. */ |
---|
| 3902 | $ac_includes_default |
---|
| 3903 | int |
---|
| 3904 | main () |
---|
| 3905 | { |
---|
| 3906 | if ((void * *) 0) |
---|
| 3907 | return 0; |
---|
| 3908 | if (sizeof (void *)) |
---|
| 3909 | return 0; |
---|
| 3910 | ; |
---|
| 3911 | return 0; |
---|
| 3912 | } |
---|
| 3913 | _ACEOF |
---|
| 3914 | rm -f conftest.$ac_objext |
---|
| 3915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3916 | (eval $ac_compile) 2>&5 |
---|
| 3917 | ac_status=$? |
---|
| 3918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3919 | (exit $ac_status); } && |
---|
| 3920 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3922 | (eval $ac_try) 2>&5 |
---|
| 3923 | ac_status=$? |
---|
| 3924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3925 | (exit $ac_status); }; }; then |
---|
| 3926 | ac_cv_type_void_p=yes |
---|
| 3927 | else |
---|
| 3928 | echo "$as_me: failed program was:" >&5 |
---|
| 3929 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3930 | |
---|
| 3931 | ac_cv_type_void_p=no |
---|
| 3932 | fi |
---|
| 3933 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 3934 | fi |
---|
| 3935 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 |
---|
| 3936 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 |
---|
| 3937 | |
---|
| 3938 | echo "$as_me:$LINENO: checking size of void *" >&5 |
---|
| 3939 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 |
---|
| 3940 | if test "${ac_cv_sizeof_void_p+set}" = set; then |
---|
| 3941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3942 | else |
---|
| 3943 | if test "$ac_cv_type_void_p" = yes; then |
---|
| 3944 | # The cast to unsigned long works around a bug in the HP C Compiler |
---|
| 3945 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
| 3946 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
| 3947 | # This bug is HP SR number 8606223364. |
---|
| 3948 | if test "$cross_compiling" = yes; then |
---|
| 3949 | # Depending upon the size, compute the lo and hi bounds. |
---|
| 3950 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3951 | #line $LINENO "configure" |
---|
| 3952 | /* confdefs.h. */ |
---|
| 3953 | _ACEOF |
---|
| 3954 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3955 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3956 | /* end confdefs.h. */ |
---|
| 3957 | $ac_includes_default |
---|
| 3958 | int |
---|
| 3959 | main () |
---|
| 3960 | { |
---|
| 3961 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; |
---|
| 3962 | test_array [0] = 0 |
---|
| 3963 | |
---|
| 3964 | ; |
---|
| 3965 | return 0; |
---|
| 3966 | } |
---|
| 3967 | _ACEOF |
---|
| 3968 | rm -f conftest.$ac_objext |
---|
| 3969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3970 | (eval $ac_compile) 2>&5 |
---|
| 3971 | ac_status=$? |
---|
| 3972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3973 | (exit $ac_status); } && |
---|
| 3974 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3976 | (eval $ac_try) 2>&5 |
---|
| 3977 | ac_status=$? |
---|
| 3978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3979 | (exit $ac_status); }; }; then |
---|
| 3980 | ac_lo=0 ac_mid=0 |
---|
| 3981 | while :; do |
---|
| 3982 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3983 | #line $LINENO "configure" |
---|
| 3984 | /* confdefs.h. */ |
---|
| 3985 | _ACEOF |
---|
| 3986 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3987 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3988 | /* end confdefs.h. */ |
---|
| 3989 | $ac_includes_default |
---|
| 3990 | int |
---|
| 3991 | main () |
---|
| 3992 | { |
---|
| 3993 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
---|
| 3994 | test_array [0] = 0 |
---|
| 3995 | |
---|
| 3996 | ; |
---|
| 3997 | return 0; |
---|
| 3998 | } |
---|
| 3999 | _ACEOF |
---|
| 4000 | rm -f conftest.$ac_objext |
---|
| 4001 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4002 | (eval $ac_compile) 2>&5 |
---|
| 4003 | ac_status=$? |
---|
| 4004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4005 | (exit $ac_status); } && |
---|
| 4006 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4008 | (eval $ac_try) 2>&5 |
---|
| 4009 | ac_status=$? |
---|
| 4010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4011 | (exit $ac_status); }; }; then |
---|
| 4012 | ac_hi=$ac_mid; break |
---|
| 4013 | else |
---|
| 4014 | echo "$as_me: failed program was:" >&5 |
---|
| 4015 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4016 | |
---|
| 4017 | ac_lo=`expr $ac_mid + 1` |
---|
| 4018 | if test $ac_lo -le $ac_mid; then |
---|
| 4019 | ac_lo= ac_hi= |
---|
| 4020 | break |
---|
| 4021 | fi |
---|
| 4022 | ac_mid=`expr 2 '*' $ac_mid + 1` |
---|
| 4023 | fi |
---|
| 4024 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 4025 | done |
---|
| 4026 | else |
---|
| 4027 | echo "$as_me: failed program was:" >&5 |
---|
| 4028 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4029 | |
---|
| 4030 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4031 | #line $LINENO "configure" |
---|
| 4032 | /* confdefs.h. */ |
---|
| 4033 | _ACEOF |
---|
| 4034 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4035 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4036 | /* end confdefs.h. */ |
---|
| 4037 | $ac_includes_default |
---|
| 4038 | int |
---|
| 4039 | main () |
---|
| 4040 | { |
---|
| 4041 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; |
---|
| 4042 | test_array [0] = 0 |
---|
| 4043 | |
---|
| 4044 | ; |
---|
| 4045 | return 0; |
---|
| 4046 | } |
---|
| 4047 | _ACEOF |
---|
| 4048 | rm -f conftest.$ac_objext |
---|
| 4049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4050 | (eval $ac_compile) 2>&5 |
---|
| 4051 | ac_status=$? |
---|
| 4052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4053 | (exit $ac_status); } && |
---|
| 4054 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4056 | (eval $ac_try) 2>&5 |
---|
| 4057 | ac_status=$? |
---|
| 4058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4059 | (exit $ac_status); }; }; then |
---|
| 4060 | ac_hi=-1 ac_mid=-1 |
---|
| 4061 | while :; do |
---|
| 4062 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4063 | #line $LINENO "configure" |
---|
| 4064 | /* confdefs.h. */ |
---|
| 4065 | _ACEOF |
---|
| 4066 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4067 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4068 | /* end confdefs.h. */ |
---|
| 4069 | $ac_includes_default |
---|
| 4070 | int |
---|
| 4071 | main () |
---|
| 4072 | { |
---|
| 4073 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; |
---|
| 4074 | test_array [0] = 0 |
---|
| 4075 | |
---|
| 4076 | ; |
---|
| 4077 | return 0; |
---|
| 4078 | } |
---|
| 4079 | _ACEOF |
---|
| 4080 | rm -f conftest.$ac_objext |
---|
| 4081 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4082 | (eval $ac_compile) 2>&5 |
---|
| 4083 | ac_status=$? |
---|
| 4084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4085 | (exit $ac_status); } && |
---|
| 4086 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4088 | (eval $ac_try) 2>&5 |
---|
| 4089 | ac_status=$? |
---|
| 4090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4091 | (exit $ac_status); }; }; then |
---|
| 4092 | ac_lo=$ac_mid; break |
---|
| 4093 | else |
---|
| 4094 | echo "$as_me: failed program was:" >&5 |
---|
| 4095 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4096 | |
---|
| 4097 | ac_hi=`expr '(' $ac_mid ')' - 1` |
---|
| 4098 | if test $ac_mid -le $ac_hi; then |
---|
| 4099 | ac_lo= ac_hi= |
---|
| 4100 | break |
---|
| 4101 | fi |
---|
| 4102 | ac_mid=`expr 2 '*' $ac_mid` |
---|
| 4103 | fi |
---|
| 4104 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 4105 | done |
---|
| 4106 | else |
---|
| 4107 | echo "$as_me: failed program was:" >&5 |
---|
| 4108 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4109 | |
---|
| 4110 | ac_lo= ac_hi= |
---|
| 4111 | fi |
---|
| 4112 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 4113 | fi |
---|
| 4114 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 4115 | # Binary search between lo and hi bounds. |
---|
| 4116 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
| 4117 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
---|
| 4118 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4119 | #line $LINENO "configure" |
---|
| 4120 | /* confdefs.h. */ |
---|
| 4121 | _ACEOF |
---|
| 4122 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4123 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4124 | /* end confdefs.h. */ |
---|
| 4125 | $ac_includes_default |
---|
| 4126 | int |
---|
| 4127 | main () |
---|
| 4128 | { |
---|
| 4129 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; |
---|
| 4130 | test_array [0] = 0 |
---|
| 4131 | |
---|
| 4132 | ; |
---|
| 4133 | return 0; |
---|
| 4134 | } |
---|
| 4135 | _ACEOF |
---|
| 4136 | rm -f conftest.$ac_objext |
---|
| 4137 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4138 | (eval $ac_compile) 2>&5 |
---|
| 4139 | ac_status=$? |
---|
| 4140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4141 | (exit $ac_status); } && |
---|
| 4142 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4144 | (eval $ac_try) 2>&5 |
---|
| 4145 | ac_status=$? |
---|
| 4146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4147 | (exit $ac_status); }; }; then |
---|
| 4148 | ac_hi=$ac_mid |
---|
| 4149 | else |
---|
| 4150 | echo "$as_me: failed program was:" >&5 |
---|
| 4151 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4152 | |
---|
| 4153 | ac_lo=`expr '(' $ac_mid ')' + 1` |
---|
| 4154 | fi |
---|
| 4155 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 4156 | done |
---|
| 4157 | case $ac_lo in |
---|
| 4158 | ?*) ac_cv_sizeof_void_p=$ac_lo;; |
---|
| 4159 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
---|
| 4160 | See \`config.log' for more details." >&5 |
---|
| 4161 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
---|
| 4162 | See \`config.log' for more details." >&2;} |
---|
| 4163 | { (exit 1); exit 1; }; } ;; |
---|
| 4164 | esac |
---|
| 4165 | else |
---|
| 4166 | if test "$cross_compiling" = yes; then |
---|
| 4167 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
---|
| 4168 | See \`config.log' for more details." >&5 |
---|
| 4169 | echo "$as_me: error: cannot run test program while cross compiling |
---|
| 4170 | See \`config.log' for more details." >&2;} |
---|
| 4171 | { (exit 1); exit 1; }; } |
---|
| 4172 | else |
---|
| 4173 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4174 | #line $LINENO "configure" |
---|
| 4175 | /* confdefs.h. */ |
---|
| 4176 | _ACEOF |
---|
| 4177 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4178 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4179 | /* end confdefs.h. */ |
---|
| 4180 | $ac_includes_default |
---|
| 4181 | long longval () { return (long) (sizeof (void *)); } |
---|
| 4182 | unsigned long ulongval () { return (long) (sizeof (void *)); } |
---|
| 4183 | #include <stdio.h> |
---|
| 4184 | #include <stdlib.h> |
---|
| 4185 | int |
---|
| 4186 | main () |
---|
| 4187 | { |
---|
| 4188 | |
---|
| 4189 | FILE *f = fopen ("conftest.val", "w"); |
---|
| 4190 | if (! f) |
---|
| 4191 | exit (1); |
---|
| 4192 | if (((long) (sizeof (void *))) < 0) |
---|
| 4193 | { |
---|
| 4194 | long i = longval (); |
---|
| 4195 | if (i != ((long) (sizeof (void *)))) |
---|
| 4196 | exit (1); |
---|
| 4197 | fprintf (f, "%ld\n", i); |
---|
| 4198 | } |
---|
| 4199 | else |
---|
| 4200 | { |
---|
| 4201 | unsigned long i = ulongval (); |
---|
| 4202 | if (i != ((long) (sizeof (void *)))) |
---|
| 4203 | exit (1); |
---|
| 4204 | fprintf (f, "%lu\n", i); |
---|
| 4205 | } |
---|
| 4206 | exit (ferror (f) || fclose (f) != 0); |
---|
| 4207 | |
---|
| 4208 | ; |
---|
| 4209 | return 0; |
---|
| 4210 | } |
---|
| 4211 | _ACEOF |
---|
| 4212 | rm -f conftest$ac_exeext |
---|
| 4213 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4214 | (eval $ac_link) 2>&5 |
---|
| 4215 | ac_status=$? |
---|
| 4216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4217 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 4218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4219 | (eval $ac_try) 2>&5 |
---|
| 4220 | ac_status=$? |
---|
| 4221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4222 | (exit $ac_status); }; }; then |
---|
| 4223 | ac_cv_sizeof_void_p=`cat conftest.val` |
---|
| 4224 | else |
---|
| 4225 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 4226 | echo "$as_me: failed program was:" >&5 |
---|
| 4227 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4228 | |
---|
| 4229 | ( exit $ac_status ) |
---|
| 4230 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
---|
| 4231 | See \`config.log' for more details." >&5 |
---|
| 4232 | echo "$as_me: error: cannot compute sizeof (void *), 77 |
---|
| 4233 | See \`config.log' for more details." >&2;} |
---|
| 4234 | { (exit 1); exit 1; }; } |
---|
| 4235 | fi |
---|
| 4236 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 4237 | fi |
---|
| 4238 | fi |
---|
| 4239 | rm -f conftest.val |
---|
| 4240 | else |
---|
| 4241 | ac_cv_sizeof_void_p=0 |
---|
| 4242 | fi |
---|
| 4243 | fi |
---|
| 4244 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
---|
| 4245 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 |
---|
| 4246 | cat >>confdefs.h <<_ACEOF |
---|
| 4247 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p |
---|
| 4248 | _ACEOF |
---|
| 4249 | |
---|
| 4250 | |
---|
| 4251 | fi |
---|
| 4252 | echo "$as_me:$LINENO: checking for int" >&5 |
---|
| 4253 | echo $ECHO_N "checking for int... $ECHO_C" >&6 |
---|
| 4254 | if test "${ac_cv_type_int+set}" = set; then |
---|
| 4255 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4256 | else |
---|
| 4257 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4258 | #line $LINENO "configure" |
---|
| 4259 | /* confdefs.h. */ |
---|
| 4260 | _ACEOF |
---|
| 4261 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4262 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4263 | /* end confdefs.h. */ |
---|
| 4264 | $ac_includes_default |
---|
| 4265 | int |
---|
| 4266 | main () |
---|
| 4267 | { |
---|
| 4268 | if ((int *) 0) |
---|
| 4269 | return 0; |
---|
| 4270 | if (sizeof (int)) |
---|
| 4271 | return 0; |
---|
| 4272 | ; |
---|
| 4273 | return 0; |
---|
| 4274 | } |
---|
| 4275 | _ACEOF |
---|
| 4276 | rm -f conftest.$ac_objext |
---|
| 4277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4278 | (eval $ac_compile) 2>&5 |
---|
| 4279 | ac_status=$? |
---|
| 4280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4281 | (exit $ac_status); } && |
---|
| 4282 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4284 | (eval $ac_try) 2>&5 |
---|
| 4285 | ac_status=$? |
---|
| 4286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4287 | (exit $ac_status); }; }; then |
---|
| 4288 | ac_cv_type_int=yes |
---|
| 4289 | else |
---|
| 4290 | echo "$as_me: failed program was:" >&5 |
---|
| 4291 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4292 | |
---|
| 4293 | ac_cv_type_int=no |
---|
| 4294 | fi |
---|
| 4295 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 4296 | fi |
---|
| 4297 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 |
---|
| 4298 | echo "${ECHO_T}$ac_cv_type_int" >&6 |
---|
| 4299 | |
---|
| 4300 | echo "$as_me:$LINENO: checking size of int" >&5 |
---|
| 4301 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 |
---|
| 4302 | if test "${ac_cv_sizeof_int+set}" = set; then |
---|
| 4303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4304 | else |
---|
| 4305 | if test "$ac_cv_type_int" = yes; then |
---|
| 4306 | # The cast to unsigned long works around a bug in the HP C Compiler |
---|
| 4307 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
| 4308 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
| 4309 | # This bug is HP SR number 8606223364. |
---|
| 4310 | if test "$cross_compiling" = yes; then |
---|
| 4311 | # Depending upon the size, compute the lo and hi bounds. |
---|
| 4312 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4313 | #line $LINENO "configure" |
---|
| 4314 | /* confdefs.h. */ |
---|
| 4315 | _ACEOF |
---|
| 4316 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4317 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4318 | /* end confdefs.h. */ |
---|
| 4319 | $ac_includes_default |
---|
| 4320 | int |
---|
| 4321 | main () |
---|
| 4322 | { |
---|
| 4323 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; |
---|
| 4324 | test_array [0] = 0 |
---|
| 4325 | |
---|
| 4326 | ; |
---|
| 4327 | return 0; |
---|
| 4328 | } |
---|
| 4329 | _ACEOF |
---|
| 4330 | rm -f conftest.$ac_objext |
---|
| 4331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4332 | (eval $ac_compile) 2>&5 |
---|
| 4333 | ac_status=$? |
---|
| 4334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4335 | (exit $ac_status); } && |
---|
| 4336 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4338 | (eval $ac_try) 2>&5 |
---|
| 4339 | ac_status=$? |
---|
| 4340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4341 | (exit $ac_status); }; }; then |
---|
| 4342 | ac_lo=0 ac_mid=0 |
---|
| 4343 | while :; do |
---|
| 4344 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4345 | #line $LINENO "configure" |
---|
| 4346 | /* confdefs.h. */ |
---|
| 4347 | _ACEOF |
---|
| 4348 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4349 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4350 | /* end confdefs.h. */ |
---|
| 4351 | $ac_includes_default |
---|
| 4352 | int |
---|
| 4353 | main () |
---|
| 4354 | { |
---|
| 4355 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
---|
| 4356 | test_array [0] = 0 |
---|
| 4357 | |
---|
| 4358 | ; |
---|
| 4359 | return 0; |
---|
| 4360 | } |
---|
| 4361 | _ACEOF |
---|
| 4362 | rm -f conftest.$ac_objext |
---|
| 4363 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4364 | (eval $ac_compile) 2>&5 |
---|
| 4365 | ac_status=$? |
---|
| 4366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4367 | (exit $ac_status); } && |
---|
| 4368 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4369 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4370 | (eval $ac_try) 2>&5 |
---|
| 4371 | ac_status=$? |
---|
| 4372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4373 | (exit $ac_status); }; }; then |
---|
| 4374 | ac_hi=$ac_mid; break |
---|
| 4375 | else |
---|
| 4376 | echo "$as_me: failed program was:" >&5 |
---|
| 4377 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4378 | |
---|
| 4379 | ac_lo=`expr $ac_mid + 1` |
---|
| 4380 | if test $ac_lo -le $ac_mid; then |
---|
| 4381 | ac_lo= ac_hi= |
---|
| 4382 | break |
---|
| 4383 | fi |
---|
| 4384 | ac_mid=`expr 2 '*' $ac_mid + 1` |
---|
| 4385 | fi |
---|
| 4386 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 4387 | done |
---|
| 4388 | else |
---|
| 4389 | echo "$as_me: failed program was:" >&5 |
---|
| 4390 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4391 | |
---|
| 4392 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4393 | #line $LINENO "configure" |
---|
| 4394 | /* confdefs.h. */ |
---|
| 4395 | _ACEOF |
---|
| 4396 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4397 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4398 | /* end confdefs.h. */ |
---|
| 4399 | $ac_includes_default |
---|
| 4400 | int |
---|
| 4401 | main () |
---|
| 4402 | { |
---|
| 4403 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; |
---|
| 4404 | test_array [0] = 0 |
---|
| 4405 | |
---|
| 4406 | ; |
---|
| 4407 | return 0; |
---|
| 4408 | } |
---|
| 4409 | _ACEOF |
---|
| 4410 | rm -f conftest.$ac_objext |
---|
| 4411 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4412 | (eval $ac_compile) 2>&5 |
---|
| 4413 | ac_status=$? |
---|
| 4414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4415 | (exit $ac_status); } && |
---|
| 4416 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4418 | (eval $ac_try) 2>&5 |
---|
| 4419 | ac_status=$? |
---|
| 4420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4421 | (exit $ac_status); }; }; then |
---|
| 4422 | ac_hi=-1 ac_mid=-1 |
---|
| 4423 | while :; do |
---|
| 4424 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4425 | #line $LINENO "configure" |
---|
| 4426 | /* confdefs.h. */ |
---|
| 4427 | _ACEOF |
---|
| 4428 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4429 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4430 | /* end confdefs.h. */ |
---|
| 4431 | $ac_includes_default |
---|
| 4432 | int |
---|
| 4433 | main () |
---|
| 4434 | { |
---|
| 4435 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; |
---|
| 4436 | test_array [0] = 0 |
---|
| 4437 | |
---|
| 4438 | ; |
---|
| 4439 | return 0; |
---|
| 4440 | } |
---|
| 4441 | _ACEOF |
---|
| 4442 | rm -f conftest.$ac_objext |
---|
| 4443 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4444 | (eval $ac_compile) 2>&5 |
---|
| 4445 | ac_status=$? |
---|
| 4446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4447 | (exit $ac_status); } && |
---|
| 4448 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4450 | (eval $ac_try) 2>&5 |
---|
| 4451 | ac_status=$? |
---|
| 4452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4453 | (exit $ac_status); }; }; then |
---|
| 4454 | ac_lo=$ac_mid; break |
---|
| 4455 | else |
---|
| 4456 | echo "$as_me: failed program was:" >&5 |
---|
| 4457 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4458 | |
---|
| 4459 | ac_hi=`expr '(' $ac_mid ')' - 1` |
---|
| 4460 | if test $ac_mid -le $ac_hi; then |
---|
| 4461 | ac_lo= ac_hi= |
---|
| 4462 | break |
---|
| 4463 | fi |
---|
| 4464 | ac_mid=`expr 2 '*' $ac_mid` |
---|
| 4465 | fi |
---|
| 4466 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 4467 | done |
---|
| 4468 | else |
---|
| 4469 | echo "$as_me: failed program was:" >&5 |
---|
| 4470 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4471 | |
---|
| 4472 | ac_lo= ac_hi= |
---|
| 4473 | fi |
---|
| 4474 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 4475 | fi |
---|
| 4476 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 4477 | # Binary search between lo and hi bounds. |
---|
| 4478 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
| 4479 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
---|
| 4480 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4481 | #line $LINENO "configure" |
---|
| 4482 | /* confdefs.h. */ |
---|
| 4483 | _ACEOF |
---|
| 4484 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4485 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4486 | /* end confdefs.h. */ |
---|
| 4487 | $ac_includes_default |
---|
| 4488 | int |
---|
| 4489 | main () |
---|
| 4490 | { |
---|
| 4491 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; |
---|
| 4492 | test_array [0] = 0 |
---|
| 4493 | |
---|
| 4494 | ; |
---|
| 4495 | return 0; |
---|
| 4496 | } |
---|
| 4497 | _ACEOF |
---|
| 4498 | rm -f conftest.$ac_objext |
---|
| 4499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4500 | (eval $ac_compile) 2>&5 |
---|
| 4501 | ac_status=$? |
---|
| 4502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4503 | (exit $ac_status); } && |
---|
| 4504 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4506 | (eval $ac_try) 2>&5 |
---|
| 4507 | ac_status=$? |
---|
| 4508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4509 | (exit $ac_status); }; }; then |
---|
| 4510 | ac_hi=$ac_mid |
---|
| 4511 | else |
---|
| 4512 | echo "$as_me: failed program was:" >&5 |
---|
| 4513 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4514 | |
---|
| 4515 | ac_lo=`expr '(' $ac_mid ')' + 1` |
---|
| 4516 | fi |
---|
| 4517 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 4518 | done |
---|
| 4519 | case $ac_lo in |
---|
| 4520 | ?*) ac_cv_sizeof_int=$ac_lo;; |
---|
| 4521 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
---|
| 4522 | See \`config.log' for more details." >&5 |
---|
| 4523 | echo "$as_me: error: cannot compute sizeof (int), 77 |
---|
| 4524 | See \`config.log' for more details." >&2;} |
---|
| 4525 | { (exit 1); exit 1; }; } ;; |
---|
| 4526 | esac |
---|
| 4527 | else |
---|
| 4528 | if test "$cross_compiling" = yes; then |
---|
| 4529 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
---|
| 4530 | See \`config.log' for more details." >&5 |
---|
| 4531 | echo "$as_me: error: cannot run test program while cross compiling |
---|
| 4532 | See \`config.log' for more details." >&2;} |
---|
| 4533 | { (exit 1); exit 1; }; } |
---|
| 4534 | else |
---|
| 4535 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4536 | #line $LINENO "configure" |
---|
| 4537 | /* confdefs.h. */ |
---|
| 4538 | _ACEOF |
---|
| 4539 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4540 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4541 | /* end confdefs.h. */ |
---|
| 4542 | $ac_includes_default |
---|
| 4543 | long longval () { return (long) (sizeof (int)); } |
---|
| 4544 | unsigned long ulongval () { return (long) (sizeof (int)); } |
---|
| 4545 | #include <stdio.h> |
---|
| 4546 | #include <stdlib.h> |
---|
| 4547 | int |
---|
| 4548 | main () |
---|
| 4549 | { |
---|
| 4550 | |
---|
| 4551 | FILE *f = fopen ("conftest.val", "w"); |
---|
| 4552 | if (! f) |
---|
| 4553 | exit (1); |
---|
| 4554 | if (((long) (sizeof (int))) < 0) |
---|
| 4555 | { |
---|
| 4556 | long i = longval (); |
---|
| 4557 | if (i != ((long) (sizeof (int)))) |
---|
| 4558 | exit (1); |
---|
| 4559 | fprintf (f, "%ld\n", i); |
---|
| 4560 | } |
---|
| 4561 | else |
---|
| 4562 | { |
---|
| 4563 | unsigned long i = ulongval (); |
---|
| 4564 | if (i != ((long) (sizeof (int)))) |
---|
| 4565 | exit (1); |
---|
| 4566 | fprintf (f, "%lu\n", i); |
---|
| 4567 | } |
---|
| 4568 | exit (ferror (f) || fclose (f) != 0); |
---|
| 4569 | |
---|
| 4570 | ; |
---|
| 4571 | return 0; |
---|
| 4572 | } |
---|
| 4573 | _ACEOF |
---|
| 4574 | rm -f conftest$ac_exeext |
---|
| 4575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4576 | (eval $ac_link) 2>&5 |
---|
| 4577 | ac_status=$? |
---|
| 4578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4579 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 4580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4581 | (eval $ac_try) 2>&5 |
---|
| 4582 | ac_status=$? |
---|
| 4583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4584 | (exit $ac_status); }; }; then |
---|
| 4585 | ac_cv_sizeof_int=`cat conftest.val` |
---|
| 4586 | else |
---|
| 4587 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 4588 | echo "$as_me: failed program was:" >&5 |
---|
| 4589 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4590 | |
---|
| 4591 | ( exit $ac_status ) |
---|
| 4592 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
---|
| 4593 | See \`config.log' for more details." >&5 |
---|
| 4594 | echo "$as_me: error: cannot compute sizeof (int), 77 |
---|
| 4595 | See \`config.log' for more details." >&2;} |
---|
| 4596 | { (exit 1); exit 1; }; } |
---|
| 4597 | fi |
---|
| 4598 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 4599 | fi |
---|
| 4600 | fi |
---|
| 4601 | rm -f conftest.val |
---|
| 4602 | else |
---|
| 4603 | ac_cv_sizeof_int=0 |
---|
| 4604 | fi |
---|
| 4605 | fi |
---|
| 4606 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
---|
| 4607 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 |
---|
| 4608 | cat >>confdefs.h <<_ACEOF |
---|
| 4609 | #define SIZEOF_INT $ac_cv_sizeof_int |
---|
| 4610 | _ACEOF |
---|
| 4611 | |
---|
| 4612 | |
---|
| 4613 | echo "$as_me:$LINENO: checking for long" >&5 |
---|
| 4614 | echo $ECHO_N "checking for long... $ECHO_C" >&6 |
---|
| 4615 | if test "${ac_cv_type_long+set}" = set; then |
---|
| 4616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4617 | else |
---|
| 4618 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4619 | #line $LINENO "configure" |
---|
| 4620 | /* confdefs.h. */ |
---|
| 4621 | _ACEOF |
---|
| 4622 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4623 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4624 | /* end confdefs.h. */ |
---|
| 4625 | $ac_includes_default |
---|
| 4626 | int |
---|
| 4627 | main () |
---|
| 4628 | { |
---|
| 4629 | if ((long *) 0) |
---|
| 4630 | return 0; |
---|
| 4631 | if (sizeof (long)) |
---|
| 4632 | return 0; |
---|
| 4633 | ; |
---|
| 4634 | return 0; |
---|
| 4635 | } |
---|
| 4636 | _ACEOF |
---|
| 4637 | rm -f conftest.$ac_objext |
---|
| 4638 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4639 | (eval $ac_compile) 2>&5 |
---|
| 4640 | ac_status=$? |
---|
| 4641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4642 | (exit $ac_status); } && |
---|
| 4643 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4645 | (eval $ac_try) 2>&5 |
---|
| 4646 | ac_status=$? |
---|
| 4647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4648 | (exit $ac_status); }; }; then |
---|
| 4649 | ac_cv_type_long=yes |
---|
| 4650 | else |
---|
| 4651 | echo "$as_me: failed program was:" >&5 |
---|
| 4652 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4653 | |
---|
| 4654 | ac_cv_type_long=no |
---|
| 4655 | fi |
---|
| 4656 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 4657 | fi |
---|
| 4658 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
---|
| 4659 | echo "${ECHO_T}$ac_cv_type_long" >&6 |
---|
| 4660 | |
---|
| 4661 | echo "$as_me:$LINENO: checking size of long" >&5 |
---|
| 4662 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 |
---|
| 4663 | if test "${ac_cv_sizeof_long+set}" = set; then |
---|
| 4664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4665 | else |
---|
| 4666 | if test "$ac_cv_type_long" = yes; then |
---|
| 4667 | # The cast to unsigned long works around a bug in the HP C Compiler |
---|
| 4668 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
---|
| 4669 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
---|
| 4670 | # This bug is HP SR number 8606223364. |
---|
| 4671 | if test "$cross_compiling" = yes; then |
---|
| 4672 | # Depending upon the size, compute the lo and hi bounds. |
---|
| 4673 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4674 | #line $LINENO "configure" |
---|
| 4675 | /* confdefs.h. */ |
---|
| 4676 | _ACEOF |
---|
| 4677 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4678 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4679 | /* end confdefs.h. */ |
---|
| 4680 | $ac_includes_default |
---|
| 4681 | int |
---|
| 4682 | main () |
---|
| 4683 | { |
---|
| 4684 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
---|
| 4685 | test_array [0] = 0 |
---|
| 4686 | |
---|
| 4687 | ; |
---|
| 4688 | return 0; |
---|
| 4689 | } |
---|
| 4690 | _ACEOF |
---|
| 4691 | rm -f conftest.$ac_objext |
---|
| 4692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4693 | (eval $ac_compile) 2>&5 |
---|
| 4694 | ac_status=$? |
---|
| 4695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4696 | (exit $ac_status); } && |
---|
| 4697 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4699 | (eval $ac_try) 2>&5 |
---|
| 4700 | ac_status=$? |
---|
| 4701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4702 | (exit $ac_status); }; }; then |
---|
| 4703 | ac_lo=0 ac_mid=0 |
---|
| 4704 | while :; do |
---|
| 4705 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4706 | #line $LINENO "configure" |
---|
| 4707 | /* confdefs.h. */ |
---|
| 4708 | _ACEOF |
---|
| 4709 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4710 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4711 | /* end confdefs.h. */ |
---|
| 4712 | $ac_includes_default |
---|
| 4713 | int |
---|
| 4714 | main () |
---|
| 4715 | { |
---|
| 4716 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
---|
| 4717 | test_array [0] = 0 |
---|
| 4718 | |
---|
| 4719 | ; |
---|
| 4720 | return 0; |
---|
| 4721 | } |
---|
| 4722 | _ACEOF |
---|
| 4723 | rm -f conftest.$ac_objext |
---|
| 4724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4725 | (eval $ac_compile) 2>&5 |
---|
| 4726 | ac_status=$? |
---|
| 4727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4728 | (exit $ac_status); } && |
---|
| 4729 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4731 | (eval $ac_try) 2>&5 |
---|
| 4732 | ac_status=$? |
---|
| 4733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4734 | (exit $ac_status); }; }; then |
---|
| 4735 | ac_hi=$ac_mid; break |
---|
| 4736 | else |
---|
| 4737 | echo "$as_me: failed program was:" >&5 |
---|
| 4738 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4739 | |
---|
| 4740 | ac_lo=`expr $ac_mid + 1` |
---|
| 4741 | if test $ac_lo -le $ac_mid; then |
---|
| 4742 | ac_lo= ac_hi= |
---|
| 4743 | break |
---|
| 4744 | fi |
---|
| 4745 | ac_mid=`expr 2 '*' $ac_mid + 1` |
---|
| 4746 | fi |
---|
| 4747 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 4748 | done |
---|
| 4749 | else |
---|
| 4750 | echo "$as_me: failed program was:" >&5 |
---|
| 4751 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4752 | |
---|
| 4753 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4754 | #line $LINENO "configure" |
---|
| 4755 | /* confdefs.h. */ |
---|
| 4756 | _ACEOF |
---|
| 4757 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4758 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4759 | /* end confdefs.h. */ |
---|
| 4760 | $ac_includes_default |
---|
| 4761 | int |
---|
| 4762 | main () |
---|
| 4763 | { |
---|
| 4764 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
---|
| 4765 | test_array [0] = 0 |
---|
| 4766 | |
---|
| 4767 | ; |
---|
| 4768 | return 0; |
---|
| 4769 | } |
---|
| 4770 | _ACEOF |
---|
| 4771 | rm -f conftest.$ac_objext |
---|
| 4772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4773 | (eval $ac_compile) 2>&5 |
---|
| 4774 | ac_status=$? |
---|
| 4775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4776 | (exit $ac_status); } && |
---|
| 4777 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4779 | (eval $ac_try) 2>&5 |
---|
| 4780 | ac_status=$? |
---|
| 4781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4782 | (exit $ac_status); }; }; then |
---|
| 4783 | ac_hi=-1 ac_mid=-1 |
---|
| 4784 | while :; do |
---|
| 4785 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4786 | #line $LINENO "configure" |
---|
| 4787 | /* confdefs.h. */ |
---|
| 4788 | _ACEOF |
---|
| 4789 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4790 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4791 | /* end confdefs.h. */ |
---|
| 4792 | $ac_includes_default |
---|
| 4793 | int |
---|
| 4794 | main () |
---|
| 4795 | { |
---|
| 4796 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
---|
| 4797 | test_array [0] = 0 |
---|
| 4798 | |
---|
| 4799 | ; |
---|
| 4800 | return 0; |
---|
| 4801 | } |
---|
| 4802 | _ACEOF |
---|
| 4803 | rm -f conftest.$ac_objext |
---|
| 4804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4805 | (eval $ac_compile) 2>&5 |
---|
| 4806 | ac_status=$? |
---|
| 4807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4808 | (exit $ac_status); } && |
---|
| 4809 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4811 | (eval $ac_try) 2>&5 |
---|
| 4812 | ac_status=$? |
---|
| 4813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4814 | (exit $ac_status); }; }; then |
---|
| 4815 | ac_lo=$ac_mid; break |
---|
| 4816 | else |
---|
| 4817 | echo "$as_me: failed program was:" >&5 |
---|
| 4818 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4819 | |
---|
| 4820 | ac_hi=`expr '(' $ac_mid ')' - 1` |
---|
| 4821 | if test $ac_mid -le $ac_hi; then |
---|
| 4822 | ac_lo= ac_hi= |
---|
| 4823 | break |
---|
| 4824 | fi |
---|
| 4825 | ac_mid=`expr 2 '*' $ac_mid` |
---|
| 4826 | fi |
---|
| 4827 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 4828 | done |
---|
| 4829 | else |
---|
| 4830 | echo "$as_me: failed program was:" >&5 |
---|
| 4831 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4832 | |
---|
| 4833 | ac_lo= ac_hi= |
---|
| 4834 | fi |
---|
| 4835 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 4836 | fi |
---|
| 4837 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 4838 | # Binary search between lo and hi bounds. |
---|
| 4839 | while test "x$ac_lo" != "x$ac_hi"; do |
---|
| 4840 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` |
---|
| 4841 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4842 | #line $LINENO "configure" |
---|
| 4843 | /* confdefs.h. */ |
---|
| 4844 | _ACEOF |
---|
| 4845 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4846 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4847 | /* end confdefs.h. */ |
---|
| 4848 | $ac_includes_default |
---|
| 4849 | int |
---|
| 4850 | main () |
---|
| 4851 | { |
---|
| 4852 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
---|
| 4853 | test_array [0] = 0 |
---|
| 4854 | |
---|
| 4855 | ; |
---|
| 4856 | return 0; |
---|
| 4857 | } |
---|
| 4858 | _ACEOF |
---|
| 4859 | rm -f conftest.$ac_objext |
---|
| 4860 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4861 | (eval $ac_compile) 2>&5 |
---|
| 4862 | ac_status=$? |
---|
| 4863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4864 | (exit $ac_status); } && |
---|
| 4865 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4867 | (eval $ac_try) 2>&5 |
---|
| 4868 | ac_status=$? |
---|
| 4869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4870 | (exit $ac_status); }; }; then |
---|
| 4871 | ac_hi=$ac_mid |
---|
| 4872 | else |
---|
| 4873 | echo "$as_me: failed program was:" >&5 |
---|
| 4874 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4875 | |
---|
| 4876 | ac_lo=`expr '(' $ac_mid ')' + 1` |
---|
| 4877 | fi |
---|
| 4878 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 4879 | done |
---|
| 4880 | case $ac_lo in |
---|
| 4881 | ?*) ac_cv_sizeof_long=$ac_lo;; |
---|
| 4882 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
---|
| 4883 | See \`config.log' for more details." >&5 |
---|
| 4884 | echo "$as_me: error: cannot compute sizeof (long), 77 |
---|
| 4885 | See \`config.log' for more details." >&2;} |
---|
| 4886 | { (exit 1); exit 1; }; } ;; |
---|
| 4887 | esac |
---|
| 4888 | else |
---|
| 4889 | if test "$cross_compiling" = yes; then |
---|
| 4890 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
---|
| 4891 | See \`config.log' for more details." >&5 |
---|
| 4892 | echo "$as_me: error: cannot run test program while cross compiling |
---|
| 4893 | See \`config.log' for more details." >&2;} |
---|
| 4894 | { (exit 1); exit 1; }; } |
---|
| 4895 | else |
---|
| 4896 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4897 | #line $LINENO "configure" |
---|
| 4898 | /* confdefs.h. */ |
---|
| 4899 | _ACEOF |
---|
| 4900 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4901 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4902 | /* end confdefs.h. */ |
---|
| 4903 | $ac_includes_default |
---|
| 4904 | long longval () { return (long) (sizeof (long)); } |
---|
| 4905 | unsigned long ulongval () { return (long) (sizeof (long)); } |
---|
| 4906 | #include <stdio.h> |
---|
| 4907 | #include <stdlib.h> |
---|
| 4908 | int |
---|
| 4909 | main () |
---|
| 4910 | { |
---|
| 4911 | |
---|
| 4912 | FILE *f = fopen ("conftest.val", "w"); |
---|
| 4913 | if (! f) |
---|
| 4914 | exit (1); |
---|
| 4915 | if (((long) (sizeof (long))) < 0) |
---|
| 4916 | { |
---|
| 4917 | long i = longval (); |
---|
| 4918 | if (i != ((long) (sizeof (long)))) |
---|
| 4919 | exit (1); |
---|
| 4920 | fprintf (f, "%ld\n", i); |
---|
| 4921 | } |
---|
| 4922 | else |
---|
| 4923 | { |
---|
| 4924 | unsigned long i = ulongval (); |
---|
| 4925 | if (i != ((long) (sizeof (long)))) |
---|
| 4926 | exit (1); |
---|
| 4927 | fprintf (f, "%lu\n", i); |
---|
| 4928 | } |
---|
| 4929 | exit (ferror (f) || fclose (f) != 0); |
---|
| 4930 | |
---|
| 4931 | ; |
---|
| 4932 | return 0; |
---|
| 4933 | } |
---|
| 4934 | _ACEOF |
---|
| 4935 | rm -f conftest$ac_exeext |
---|
| 4936 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4937 | (eval $ac_link) 2>&5 |
---|
| 4938 | ac_status=$? |
---|
| 4939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4940 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 4941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4942 | (eval $ac_try) 2>&5 |
---|
| 4943 | ac_status=$? |
---|
| 4944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4945 | (exit $ac_status); }; }; then |
---|
| 4946 | ac_cv_sizeof_long=`cat conftest.val` |
---|
| 4947 | else |
---|
| 4948 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 4949 | echo "$as_me: failed program was:" >&5 |
---|
| 4950 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4951 | |
---|
| 4952 | ( exit $ac_status ) |
---|
| 4953 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
---|
| 4954 | See \`config.log' for more details." >&5 |
---|
| 4955 | echo "$as_me: error: cannot compute sizeof (long), 77 |
---|
| 4956 | See \`config.log' for more details." >&2;} |
---|
| 4957 | { (exit 1); exit 1; }; } |
---|
| 4958 | fi |
---|
| 4959 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 4960 | fi |
---|
| 4961 | fi |
---|
| 4962 | rm -f conftest.val |
---|
| 4963 | else |
---|
| 4964 | ac_cv_sizeof_long=0 |
---|
| 4965 | fi |
---|
| 4966 | fi |
---|
| 4967 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
---|
| 4968 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 |
---|
| 4969 | cat >>confdefs.h <<_ACEOF |
---|
| 4970 | #define SIZEOF_LONG $ac_cv_sizeof_long |
---|
| 4971 | _ACEOF |
---|
| 4972 | |
---|
| 4973 | |
---|
| 4974 | |
---|
| 4975 | # Check for a working implementation of IEEE 754 floating point |
---|
| 4976 | # Specifically, check for correct treatment of +Infinity |
---|
| 4977 | echo "$as_me:$LINENO: checking for +Infinity (IEEE 754 floating point)" >&5 |
---|
| 4978 | echo $ECHO_N "checking for +Infinity (IEEE 754 floating point)... $ECHO_C" >&6 |
---|
| 4979 | if test "${ac_cv_have_ieee_754+set}" = set; then |
---|
| 4980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4981 | else |
---|
| 4982 | if test "$cross_compiling" = yes; then |
---|
| 4983 | ac_cv_have_ieee_754=no |
---|
| 4984 | else |
---|
| 4985 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4986 | #line $LINENO "configure" |
---|
| 4987 | /* confdefs.h. */ |
---|
| 4988 | _ACEOF |
---|
| 4989 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4990 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4991 | /* end confdefs.h. */ |
---|
| 4992 | |
---|
| 4993 | #include <math.h> |
---|
| 4994 | main() |
---|
| 4995 | { |
---|
| 4996 | if (HUGE_VAL != HUGE_VAL * 3 || HUGE_VAL != HUGE_VAL / 3) exit(1); |
---|
| 4997 | exit(0); |
---|
| 4998 | } |
---|
| 4999 | |
---|
| 5000 | _ACEOF |
---|
| 5001 | rm -f conftest$ac_exeext |
---|
| 5002 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5003 | (eval $ac_link) 2>&5 |
---|
| 5004 | ac_status=$? |
---|
| 5005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5006 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 5007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5008 | (eval $ac_try) 2>&5 |
---|
| 5009 | ac_status=$? |
---|
| 5010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5011 | (exit $ac_status); }; }; then |
---|
| 5012 | ac_cv_have_ieee_754=yes |
---|
| 5013 | else |
---|
| 5014 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 5015 | echo "$as_me: failed program was:" >&5 |
---|
| 5016 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5017 | |
---|
| 5018 | ( exit $ac_status ) |
---|
| 5019 | ac_cv_have_ieee_754=no |
---|
| 5020 | fi |
---|
| 5021 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 5022 | fi |
---|
| 5023 | fi |
---|
| 5024 | |
---|
| 5025 | if test $ac_cv_have_ieee_754 = yes ; then |
---|
| 5026 | echo "$as_me:$LINENO: result: working" >&5 |
---|
| 5027 | echo "${ECHO_T}working" >&6 |
---|
| 5028 | cat >>confdefs.h <<\_ACEOF |
---|
| 5029 | #define HAVE_IEEE_754 1 |
---|
| 5030 | _ACEOF |
---|
| 5031 | |
---|
| 5032 | else |
---|
| 5033 | echo "$as_me:$LINENO: result: broken" >&5 |
---|
| 5034 | echo "${ECHO_T}broken" >&6 |
---|
| 5035 | fi |
---|
| 5036 | |
---|
| 5037 | # Check the size of the virtual memory page |
---|
| 5038 | # |
---|
| 5039 | # The Cal BDD package uses this |
---|
| 5040 | # |
---|
| 5041 | # This compiles and runs a small program that gets the pagesize from |
---|
| 5042 | # the "getpagesize()" UNIX system function. |
---|
| 5043 | |
---|
| 5044 | echo "$as_me:$LINENO: checking the size of the virtual memory system's page" >&5 |
---|
| 5045 | echo $ECHO_N "checking the size of the virtual memory system's page... $ECHO_C" >&6 |
---|
| 5046 | if test "${ac_cv_sys_pagesize+set}" = set; then |
---|
| 5047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5048 | else |
---|
| 5049 | if test "$cross_compiling" = yes; then |
---|
| 5050 | ac_cv_sys_pagesize=unknown |
---|
| 5051 | else |
---|
| 5052 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5053 | #line $LINENO "configure" |
---|
| 5054 | /* confdefs.h. */ |
---|
| 5055 | _ACEOF |
---|
| 5056 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5057 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5058 | /* end confdefs.h. */ |
---|
| 5059 | |
---|
| 5060 | |
---|
| 5061 | #include <stdio.h> |
---|
| 5062 | #ifdef HAVE_UNISTD_H |
---|
| 5063 | # include <unistd.h> |
---|
| 5064 | #endif |
---|
| 5065 | |
---|
| 5066 | main() { |
---|
| 5067 | FILE * f = fopen( "conftestval", "w" ); |
---|
| 5068 | if ( f == NULL ) exit(1); |
---|
| 5069 | fprintf( f, "%d\n", (int) getpagesize() ); |
---|
| 5070 | exit(0); |
---|
| 5071 | } |
---|
| 5072 | |
---|
| 5073 | _ACEOF |
---|
| 5074 | rm -f conftest$ac_exeext |
---|
| 5075 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5076 | (eval $ac_link) 2>&5 |
---|
| 5077 | ac_status=$? |
---|
| 5078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5079 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 5080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5081 | (eval $ac_try) 2>&5 |
---|
| 5082 | ac_status=$? |
---|
| 5083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5084 | (exit $ac_status); }; }; then |
---|
| 5085 | ac_cv_sys_pagesize=`cat conftestval` |
---|
| 5086 | else |
---|
| 5087 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 5088 | echo "$as_me: failed program was:" >&5 |
---|
| 5089 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5090 | |
---|
| 5091 | ( exit $ac_status ) |
---|
| 5092 | ac_cv_sys_pagesize=unknown |
---|
| 5093 | fi |
---|
| 5094 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 5095 | fi |
---|
| 5096 | fi |
---|
| 5097 | |
---|
| 5098 | case "$ac_cv_sys_pagesize" in |
---|
| 5099 | 512) |
---|
| 5100 | echo "$as_me:$LINENO: result: 512" >&5 |
---|
| 5101 | echo "${ECHO_T}512" >&6 |
---|
| 5102 | PAGE_SIZE=512 |
---|
| 5103 | LG_PAGE_SIZE=9 ;; |
---|
| 5104 | 1024) |
---|
| 5105 | echo "$as_me:$LINENO: result: 1K" >&5 |
---|
| 5106 | echo "${ECHO_T}1K" >&6 |
---|
| 5107 | PAGE_SIZE=1024 |
---|
| 5108 | LG_PAGE_SIZE=10 ;; |
---|
| 5109 | 2048) |
---|
| 5110 | echo "$as_me:$LINENO: result: 2K" >&5 |
---|
| 5111 | echo "${ECHO_T}2K" >&6 |
---|
| 5112 | PAGE_SIZE=2048 |
---|
| 5113 | LG_PAGE_SIZE=11 ;; |
---|
| 5114 | 4096) |
---|
| 5115 | echo "$as_me:$LINENO: result: 4K" >&5 |
---|
| 5116 | echo "${ECHO_T}4K" >&6 |
---|
| 5117 | PAGE_SIZE=4096 |
---|
| 5118 | LG_PAGE_SIZE=12 ;; |
---|
| 5119 | 8192) |
---|
| 5120 | echo "$as_me:$LINENO: result: 8K" >&5 |
---|
| 5121 | echo "${ECHO_T}8K" >&6 |
---|
| 5122 | PAGE_SIZE=8192 |
---|
| 5123 | LG_PAGE_SIZE=13 ;; |
---|
| 5124 | 16384) |
---|
| 5125 | echo "$as_me:$LINENO: result: 16K" >&5 |
---|
| 5126 | echo "${ECHO_T}16K" >&6 |
---|
| 5127 | PAGE_SIZE=16384 |
---|
| 5128 | LG_PAGE_SIZE=14 ;; |
---|
| 5129 | 32768) |
---|
| 5130 | echo "$as_me:$LINENO: result: 32K" >&5 |
---|
| 5131 | echo "${ECHO_T}32K" >&6 |
---|
| 5132 | PAGE_SIZE=32768 |
---|
| 5133 | LG_PAGE_SIZE=15 ;; |
---|
| 5134 | 65536) |
---|
| 5135 | echo "$as_me:$LINENO: result: 64K" >&5 |
---|
| 5136 | echo "${ECHO_T}64K" >&6 |
---|
| 5137 | PAGE_SIZE=65536 |
---|
| 5138 | LG_PAGE_SIZE=16 ;; |
---|
| 5139 | unknown) |
---|
| 5140 | echo "$as_me:$LINENO: result: could not determine -- assuming 4K" >&5 |
---|
| 5141 | echo "${ECHO_T}could not determine -- assuming 4K" >&6 |
---|
| 5142 | PAGE_SIZE=4096 |
---|
| 5143 | LG_PAGE_SIZE=12 ;; |
---|
| 5144 | *) |
---|
| 5145 | echo "$as_me:$LINENO: result: Invalid page size $ac_cv_sys_pagesize -- assuming 4K" >&5 |
---|
| 5146 | echo "${ECHO_T}Invalid page size $ac_cv_sys_pagesize -- assuming 4K" >&6 |
---|
| 5147 | PAGE_SIZE=4096 |
---|
| 5148 | LG_PAGE_SIZE=12 ;; |
---|
| 5149 | esac |
---|
| 5150 | cat >>confdefs.h <<_ACEOF |
---|
| 5151 | #define PAGE_SIZE $PAGE_SIZE |
---|
| 5152 | _ACEOF |
---|
| 5153 | |
---|
| 5154 | cat >>confdefs.h <<_ACEOF |
---|
| 5155 | #define LG_PAGE_SIZE $LG_PAGE_SIZE |
---|
| 5156 | _ACEOF |
---|
| 5157 | |
---|
| 5158 | |
---|
| 5159 | # Check the endianness |
---|
| 5160 | # |
---|
| 5161 | # This compiles and runs a small program that gets endian type. |
---|
| 5162 | |
---|
| 5163 | echo "$as_me:$LINENO: checking endian type" >&5 |
---|
| 5164 | echo $ECHO_N "checking endian type... $ECHO_C" >&6 |
---|
| 5165 | if test "${ac_cv_sys_endian+set}" = set; then |
---|
| 5166 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5167 | else |
---|
| 5168 | if test "$cross_compiling" = yes; then |
---|
| 5169 | ac_cv_sys_endian=unknown |
---|
| 5170 | else |
---|
| 5171 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5172 | #line $LINENO "configure" |
---|
| 5173 | /* confdefs.h. */ |
---|
| 5174 | _ACEOF |
---|
| 5175 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5176 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5177 | /* end confdefs.h. */ |
---|
| 5178 | |
---|
| 5179 | |
---|
| 5180 | #include <stdio.h> |
---|
| 5181 | #ifdef HAVE_UNISTD_H |
---|
| 5182 | # include <unistd.h> |
---|
| 5183 | #endif |
---|
| 5184 | |
---|
| 5185 | typedef struct EpDoubleStruct { |
---|
| 5186 | union { |
---|
| 5187 | double value; |
---|
| 5188 | struct IeeeDoubleStruct { /* LITTLE_ENDIAN */ |
---|
| 5189 | unsigned int mantissa1: 32; |
---|
| 5190 | unsigned int mantissa0: 20; |
---|
| 5191 | unsigned int exponent: 11; |
---|
| 5192 | unsigned int sign: 1; |
---|
| 5193 | } bits; |
---|
| 5194 | } type; |
---|
| 5195 | int exponent; |
---|
| 5196 | } EpDouble; |
---|
| 5197 | |
---|
| 5198 | main() |
---|
| 5199 | { |
---|
| 5200 | EpDouble epd; |
---|
| 5201 | FILE *f = fopen("conftestval", "w" ); |
---|
| 5202 | |
---|
| 5203 | if (!f) exit(1); |
---|
| 5204 | epd.type.value = -1.0; |
---|
| 5205 | if (epd.type.bits.sign == 1 && epd.type.bits.exponent == 1023 && |
---|
| 5206 | epd.type.bits.mantissa0 == 0 && epd.type.bits.mantissa1 == 0) |
---|
| 5207 | fprintf(f, "0\n"); |
---|
| 5208 | else |
---|
| 5209 | fprintf(f, "1\n"); |
---|
| 5210 | fclose(f); |
---|
| 5211 | exit(0); |
---|
| 5212 | } |
---|
| 5213 | |
---|
| 5214 | _ACEOF |
---|
| 5215 | rm -f conftest$ac_exeext |
---|
| 5216 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5217 | (eval $ac_link) 2>&5 |
---|
| 5218 | ac_status=$? |
---|
| 5219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5220 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 5221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5222 | (eval $ac_try) 2>&5 |
---|
| 5223 | ac_status=$? |
---|
| 5224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5225 | (exit $ac_status); }; }; then |
---|
| 5226 | ac_cv_sys_endian=`cat conftestval` |
---|
| 5227 | else |
---|
| 5228 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 5229 | echo "$as_me: failed program was:" >&5 |
---|
| 5230 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5231 | |
---|
| 5232 | ( exit $ac_status ) |
---|
| 5233 | ac_cv_sys_endian=unknown |
---|
| 5234 | fi |
---|
| 5235 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 5236 | fi |
---|
| 5237 | fi |
---|
| 5238 | |
---|
| 5239 | case "$ac_cv_sys_endian" in |
---|
| 5240 | 0) |
---|
| 5241 | echo "$as_me:$LINENO: result: LITTLE_ENDIAN" >&5 |
---|
| 5242 | echo "${ECHO_T}LITTLE_ENDIAN" >&6 |
---|
| 5243 | cat >>confdefs.h <<_ACEOF |
---|
| 5244 | #define EPD_LITTLE_ENDIAN 1 |
---|
| 5245 | _ACEOF |
---|
| 5246 | ;; |
---|
| 5247 | 1) |
---|
| 5248 | echo "$as_me:$LINENO: result: BIG_ENDIAN" >&5 |
---|
| 5249 | echo "${ECHO_T}BIG_ENDIAN" >&6 |
---|
| 5250 | cat >>confdefs.h <<_ACEOF |
---|
| 5251 | #define EPD_BIG_ENDIAN 1 |
---|
| 5252 | _ACEOF |
---|
| 5253 | ;; |
---|
| 5254 | *) |
---|
| 5255 | echo "$as_me:$LINENO: result: Invalid endian size $ac_cv_sys_endian -- assuming LITTLE_ENDIAN" >&5 |
---|
| 5256 | echo "${ECHO_T}Invalid endian size $ac_cv_sys_endian -- assuming LITTLE_ENDIAN" >&6 |
---|
| 5257 | cat >>confdefs.h <<_ACEOF |
---|
| 5258 | #define EPD_LITTLE_ENDIAN 1 |
---|
| 5259 | _ACEOF |
---|
| 5260 | ;; |
---|
| 5261 | esac |
---|
| 5262 | |
---|
| 5263 | #---------------------------------------------------------------------- |
---|
| 5264 | # Checks for library functions. |
---|
| 5265 | #---------------------------------------------------------------------- |
---|
| 5266 | |
---|
| 5267 | # Add memcmp.o to LIBOBJS if the memcmp() function is unavailable or broken |
---|
| 5268 | echo "$as_me:$LINENO: checking for working memcmp" >&5 |
---|
| 5269 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6 |
---|
| 5270 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
---|
| 5271 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5272 | else |
---|
| 5273 | if test "$cross_compiling" = yes; then |
---|
| 5274 | ac_cv_func_memcmp_working=no |
---|
| 5275 | else |
---|
| 5276 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5277 | #line $LINENO "configure" |
---|
| 5278 | /* confdefs.h. */ |
---|
| 5279 | _ACEOF |
---|
| 5280 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5281 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5282 | /* end confdefs.h. */ |
---|
| 5283 | |
---|
| 5284 | int |
---|
| 5285 | main () |
---|
| 5286 | { |
---|
| 5287 | |
---|
| 5288 | /* Some versions of memcmp are not 8-bit clean. */ |
---|
| 5289 | char c0 = 0x40, c1 = 0x80, c2 = 0x81; |
---|
| 5290 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
---|
| 5291 | exit (1); |
---|
| 5292 | |
---|
| 5293 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
---|
| 5294 | or more and with at least one buffer not starting on a 4-byte boundary. |
---|
| 5295 | William Lewis provided this test program. */ |
---|
| 5296 | { |
---|
| 5297 | char foo[21]; |
---|
| 5298 | char bar[21]; |
---|
| 5299 | int i; |
---|
| 5300 | for (i = 0; i < 4; i++) |
---|
| 5301 | { |
---|
| 5302 | char *a = foo + i; |
---|
| 5303 | char *b = bar + i; |
---|
| 5304 | strcpy (a, "--------01111111"); |
---|
| 5305 | strcpy (b, "--------10000000"); |
---|
| 5306 | if (memcmp (a, b, 16) >= 0) |
---|
| 5307 | exit (1); |
---|
| 5308 | } |
---|
| 5309 | exit (0); |
---|
| 5310 | } |
---|
| 5311 | |
---|
| 5312 | ; |
---|
| 5313 | return 0; |
---|
| 5314 | } |
---|
| 5315 | _ACEOF |
---|
| 5316 | rm -f conftest$ac_exeext |
---|
| 5317 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5318 | (eval $ac_link) 2>&5 |
---|
| 5319 | ac_status=$? |
---|
| 5320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5321 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 5322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5323 | (eval $ac_try) 2>&5 |
---|
| 5324 | ac_status=$? |
---|
| 5325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5326 | (exit $ac_status); }; }; then |
---|
| 5327 | ac_cv_func_memcmp_working=yes |
---|
| 5328 | else |
---|
| 5329 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 5330 | echo "$as_me: failed program was:" >&5 |
---|
| 5331 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5332 | |
---|
| 5333 | ( exit $ac_status ) |
---|
| 5334 | ac_cv_func_memcmp_working=no |
---|
| 5335 | fi |
---|
| 5336 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 5337 | fi |
---|
| 5338 | fi |
---|
| 5339 | echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
---|
| 5340 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6 |
---|
| 5341 | test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
---|
| 5342 | |
---|
| 5343 | |
---|
| 5344 | # Define RETSIGTYPE to be void or int depending on the expected return type of |
---|
| 5345 | # a signal handler |
---|
| 5346 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
---|
| 5347 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 |
---|
| 5348 | if test "${ac_cv_type_signal+set}" = set; then |
---|
| 5349 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5350 | else |
---|
| 5351 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5352 | #line $LINENO "configure" |
---|
| 5353 | /* confdefs.h. */ |
---|
| 5354 | _ACEOF |
---|
| 5355 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5356 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5357 | /* end confdefs.h. */ |
---|
| 5358 | #include <sys/types.h> |
---|
| 5359 | #include <signal.h> |
---|
| 5360 | #ifdef signal |
---|
| 5361 | # undef signal |
---|
| 5362 | #endif |
---|
| 5363 | #ifdef __cplusplus |
---|
| 5364 | extern "C" void (*signal (int, void (*)(int)))(int); |
---|
| 5365 | #else |
---|
| 5366 | void (*signal ()) (); |
---|
| 5367 | #endif |
---|
| 5368 | |
---|
| 5369 | int |
---|
| 5370 | main () |
---|
| 5371 | { |
---|
| 5372 | int i; |
---|
| 5373 | ; |
---|
| 5374 | return 0; |
---|
| 5375 | } |
---|
| 5376 | _ACEOF |
---|
| 5377 | rm -f conftest.$ac_objext |
---|
| 5378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5379 | (eval $ac_compile) 2>&5 |
---|
| 5380 | ac_status=$? |
---|
| 5381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5382 | (exit $ac_status); } && |
---|
| 5383 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5385 | (eval $ac_try) 2>&5 |
---|
| 5386 | ac_status=$? |
---|
| 5387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5388 | (exit $ac_status); }; }; then |
---|
| 5389 | ac_cv_type_signal=void |
---|
| 5390 | else |
---|
| 5391 | echo "$as_me: failed program was:" >&5 |
---|
| 5392 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5393 | |
---|
| 5394 | ac_cv_type_signal=int |
---|
| 5395 | fi |
---|
| 5396 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 5397 | fi |
---|
| 5398 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
---|
| 5399 | echo "${ECHO_T}$ac_cv_type_signal" >&6 |
---|
| 5400 | |
---|
| 5401 | cat >>confdefs.h <<_ACEOF |
---|
| 5402 | #define RETSIGTYPE $ac_cv_type_signal |
---|
| 5403 | _ACEOF |
---|
| 5404 | |
---|
| 5405 | |
---|
| 5406 | |
---|
| 5407 | # Define HAVE_STRCOLL if the strcoll function exists and works |
---|
| 5408 | echo "$as_me:$LINENO: checking for working strcoll" >&5 |
---|
| 5409 | echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6 |
---|
| 5410 | if test "${ac_cv_func_strcoll_works+set}" = set; then |
---|
| 5411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5412 | else |
---|
| 5413 | if test "$cross_compiling" = yes; then |
---|
| 5414 | ac_cv_func_strcoll_works=no |
---|
| 5415 | else |
---|
| 5416 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5417 | #line $LINENO "configure" |
---|
| 5418 | /* confdefs.h. */ |
---|
| 5419 | _ACEOF |
---|
| 5420 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5421 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5422 | /* end confdefs.h. */ |
---|
| 5423 | $ac_includes_default |
---|
| 5424 | int |
---|
| 5425 | main () |
---|
| 5426 | { |
---|
| 5427 | exit (strcoll ("abc", "def") >= 0 || |
---|
| 5428 | strcoll ("ABC", "DEF") >= 0 || |
---|
| 5429 | strcoll ("123", "456") >= 0) |
---|
| 5430 | ; |
---|
| 5431 | return 0; |
---|
| 5432 | } |
---|
| 5433 | _ACEOF |
---|
| 5434 | rm -f conftest$ac_exeext |
---|
| 5435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5436 | (eval $ac_link) 2>&5 |
---|
| 5437 | ac_status=$? |
---|
| 5438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5439 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 5440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5441 | (eval $ac_try) 2>&5 |
---|
| 5442 | ac_status=$? |
---|
| 5443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5444 | (exit $ac_status); }; }; then |
---|
| 5445 | ac_cv_func_strcoll_works=yes |
---|
| 5446 | else |
---|
| 5447 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 5448 | echo "$as_me: failed program was:" >&5 |
---|
| 5449 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5450 | |
---|
| 5451 | ( exit $ac_status ) |
---|
| 5452 | ac_cv_func_strcoll_works=no |
---|
| 5453 | fi |
---|
| 5454 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 5455 | fi |
---|
| 5456 | fi |
---|
| 5457 | echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5 |
---|
| 5458 | echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6 |
---|
| 5459 | if test $ac_cv_func_strcoll_works = yes; then |
---|
| 5460 | |
---|
| 5461 | cat >>confdefs.h <<\_ACEOF |
---|
| 5462 | #define HAVE_STRCOLL 1 |
---|
| 5463 | _ACEOF |
---|
| 5464 | |
---|
| 5465 | fi |
---|
| 5466 | |
---|
| 5467 | |
---|
| 5468 | # Define HAVE_VFORK_H if vfork.h is present, otherwise define "vfork" to be |
---|
| 5469 | # "fork" |
---|
| 5470 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
---|
| 5471 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 |
---|
| 5472 | if test "${ac_cv_type_pid_t+set}" = set; then |
---|
| 5473 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5474 | else |
---|
| 5475 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5476 | #line $LINENO "configure" |
---|
| 5477 | /* confdefs.h. */ |
---|
| 5478 | _ACEOF |
---|
| 5479 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5480 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5481 | /* end confdefs.h. */ |
---|
| 5482 | $ac_includes_default |
---|
| 5483 | int |
---|
| 5484 | main () |
---|
| 5485 | { |
---|
| 5486 | if ((pid_t *) 0) |
---|
| 5487 | return 0; |
---|
| 5488 | if (sizeof (pid_t)) |
---|
| 5489 | return 0; |
---|
| 5490 | ; |
---|
| 5491 | return 0; |
---|
| 5492 | } |
---|
| 5493 | _ACEOF |
---|
| 5494 | rm -f conftest.$ac_objext |
---|
| 5495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5496 | (eval $ac_compile) 2>&5 |
---|
| 5497 | ac_status=$? |
---|
| 5498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5499 | (exit $ac_status); } && |
---|
| 5500 | { ac_try='test -s conftest.$ac_objext' |
---|
| 5501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5502 | (eval $ac_try) 2>&5 |
---|
| 5503 | ac_status=$? |
---|
| 5504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5505 | (exit $ac_status); }; }; then |
---|
| 5506 | ac_cv_type_pid_t=yes |
---|
| 5507 | else |
---|
| 5508 | echo "$as_me: failed program was:" >&5 |
---|
| 5509 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5510 | |
---|
| 5511 | ac_cv_type_pid_t=no |
---|
| 5512 | fi |
---|
| 5513 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 5514 | fi |
---|
| 5515 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
---|
| 5516 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 |
---|
| 5517 | if test $ac_cv_type_pid_t = yes; then |
---|
| 5518 | : |
---|
| 5519 | else |
---|
| 5520 | |
---|
| 5521 | cat >>confdefs.h <<_ACEOF |
---|
| 5522 | #define pid_t int |
---|
| 5523 | _ACEOF |
---|
| 5524 | |
---|
| 5525 | fi |
---|
| 5526 | |
---|
| 5527 | |
---|
| 5528 | |
---|
| 5529 | for ac_header in unistd.h vfork.h |
---|
| 5530 | do |
---|
| 5531 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 5532 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5533 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5534 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5535 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5537 | fi |
---|
| 5538 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5539 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5540 | else |
---|
| 5541 | # Is the header compilable? |
---|
| 5542 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 5543 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 5544 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5545 | #line $LINENO "configure" |
---|
| 5546 | /* confdefs.h. */ |
---|
| 5547 | _ACEOF |
---|
| 5548 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5549 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5550 | /* end confdefs.h. */ |
---|
| 5551 | $ac_includes_default |
---|
| 5552 | #include <$ac_header> |
---|
| 5553 | _ACEOF |
---|
| 5554 | rm -f conftest.$ac_objext |
---|
| 5555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 5556 | (eval $ac_compile) 2>&5 |
---|
| 5557 | ac_status=$? |
---|
| 5558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5559 | (exit $ac_status); } && |
---|
| 5560 | { ac_try='test -s conftest.$ac_objext' |
---|
| 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_header_compiler=yes |
---|
| 5567 | else |
---|
| 5568 | echo "$as_me: failed program was:" >&5 |
---|
| 5569 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5570 | |
---|
| 5571 | ac_header_compiler=no |
---|
| 5572 | fi |
---|
| 5573 | rm -f conftest.$ac_objext conftest.$ac_ext |
---|
| 5574 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 5575 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 5576 | |
---|
| 5577 | # Is the header present? |
---|
| 5578 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 5579 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 5580 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5581 | #line $LINENO "configure" |
---|
| 5582 | /* confdefs.h. */ |
---|
| 5583 | _ACEOF |
---|
| 5584 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5585 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5586 | /* end confdefs.h. */ |
---|
| 5587 | #include <$ac_header> |
---|
| 5588 | _ACEOF |
---|
| 5589 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 5590 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 5591 | ac_status=$? |
---|
| 5592 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5593 | rm -f conftest.er1 |
---|
| 5594 | cat conftest.err >&5 |
---|
| 5595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5596 | (exit $ac_status); } >/dev/null; then |
---|
| 5597 | if test -s conftest.err; then |
---|
| 5598 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 5599 | else |
---|
| 5600 | ac_cpp_err= |
---|
| 5601 | fi |
---|
| 5602 | else |
---|
| 5603 | ac_cpp_err=yes |
---|
| 5604 | fi |
---|
| 5605 | if test -z "$ac_cpp_err"; then |
---|
| 5606 | ac_header_preproc=yes |
---|
| 5607 | else |
---|
| 5608 | echo "$as_me: failed program was:" >&5 |
---|
| 5609 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5610 | |
---|
| 5611 | ac_header_preproc=no |
---|
| 5612 | fi |
---|
| 5613 | rm -f conftest.err conftest.$ac_ext |
---|
| 5614 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 5615 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 5616 | |
---|
| 5617 | # So? What about this header? |
---|
| 5618 | case $ac_header_compiler:$ac_header_preproc in |
---|
| 5619 | yes:no ) |
---|
| 5620 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 5621 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 5622 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5623 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5624 | ( |
---|
| 5625 | cat <<\_ASBOX |
---|
| 5626 | ## ------------------------------------ ## |
---|
| 5627 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 5628 | ## ------------------------------------ ## |
---|
| 5629 | _ASBOX |
---|
| 5630 | ) | |
---|
| 5631 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5632 | ;; |
---|
| 5633 | no:yes ) |
---|
| 5634 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 5635 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 5636 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 5637 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 5638 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 5639 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 5640 | ( |
---|
| 5641 | cat <<\_ASBOX |
---|
| 5642 | ## ------------------------------------ ## |
---|
| 5643 | ## Report this to bug-autoconf@gnu.org. ## |
---|
| 5644 | ## ------------------------------------ ## |
---|
| 5645 | _ASBOX |
---|
| 5646 | ) | |
---|
| 5647 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 5648 | ;; |
---|
| 5649 | esac |
---|
| 5650 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 5651 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 5652 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 5653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5654 | else |
---|
| 5655 | eval "$as_ac_Header=$ac_header_preproc" |
---|
| 5656 | fi |
---|
| 5657 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 5658 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 5659 | |
---|
| 5660 | fi |
---|
| 5661 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 5662 | cat >>confdefs.h <<_ACEOF |
---|
| 5663 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 5664 | _ACEOF |
---|
| 5665 | |
---|
| 5666 | fi |
---|
| 5667 | |
---|
| 5668 | done |
---|
| 5669 | |
---|
| 5670 | |
---|
| 5671 | |
---|
| 5672 | for ac_func in fork vfork |
---|
| 5673 | do |
---|
| 5674 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 5675 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 5676 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 5677 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 5678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5679 | else |
---|
| 5680 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5681 | #line $LINENO "configure" |
---|
| 5682 | /* confdefs.h. */ |
---|
| 5683 | _ACEOF |
---|
| 5684 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5685 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5686 | /* end confdefs.h. */ |
---|
| 5687 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 5688 | which can conflict with char $ac_func (); below. |
---|
| 5689 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 5690 | <limits.h> exists even on freestanding compilers. */ |
---|
| 5691 | #ifdef __STDC__ |
---|
| 5692 | # include <limits.h> |
---|
| 5693 | #else |
---|
| 5694 | # include <assert.h> |
---|
| 5695 | #endif |
---|
| 5696 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5697 | #ifdef __cplusplus |
---|
| 5698 | extern "C" |
---|
| 5699 | { |
---|
| 5700 | #endif |
---|
| 5701 | /* We use char because int might match the return type of a gcc2 |
---|
| 5702 | builtin and then its argument prototype would still apply. */ |
---|
| 5703 | char $ac_func (); |
---|
| 5704 | /* The GNU C library defines this for functions which it implements |
---|
| 5705 | to always fail with ENOSYS. Some functions are actually named |
---|
| 5706 | something starting with __ and the normal name is an alias. */ |
---|
| 5707 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 5708 | choke me |
---|
| 5709 | #else |
---|
| 5710 | char (*f) () = $ac_func; |
---|
| 5711 | #endif |
---|
| 5712 | #ifdef __cplusplus |
---|
| 5713 | } |
---|
| 5714 | #endif |
---|
| 5715 | |
---|
| 5716 | int |
---|
| 5717 | main () |
---|
| 5718 | { |
---|
| 5719 | return f != $ac_func; |
---|
| 5720 | ; |
---|
| 5721 | return 0; |
---|
| 5722 | } |
---|
| 5723 | _ACEOF |
---|
| 5724 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5725 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5726 | (eval $ac_link) 2>&5 |
---|
| 5727 | ac_status=$? |
---|
| 5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5729 | (exit $ac_status); } && |
---|
| 5730 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5732 | (eval $ac_try) 2>&5 |
---|
| 5733 | ac_status=$? |
---|
| 5734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5735 | (exit $ac_status); }; }; then |
---|
| 5736 | eval "$as_ac_var=yes" |
---|
| 5737 | else |
---|
| 5738 | echo "$as_me: failed program was:" >&5 |
---|
| 5739 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5740 | |
---|
| 5741 | eval "$as_ac_var=no" |
---|
| 5742 | fi |
---|
| 5743 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 5744 | fi |
---|
| 5745 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 5746 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 5747 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 5748 | cat >>confdefs.h <<_ACEOF |
---|
| 5749 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 5750 | _ACEOF |
---|
| 5751 | |
---|
| 5752 | fi |
---|
| 5753 | done |
---|
| 5754 | |
---|
| 5755 | if test "x$ac_cv_func_fork" = xyes; then |
---|
| 5756 | echo "$as_me:$LINENO: checking for working fork" >&5 |
---|
| 5757 | echo $ECHO_N "checking for working fork... $ECHO_C" >&6 |
---|
| 5758 | if test "${ac_cv_func_fork_works+set}" = set; then |
---|
| 5759 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5760 | else |
---|
| 5761 | if test "$cross_compiling" = yes; then |
---|
| 5762 | ac_cv_func_fork_works=cross |
---|
| 5763 | else |
---|
| 5764 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5765 | /* By Ruediger Kuhlmann. */ |
---|
| 5766 | #include <sys/types.h> |
---|
| 5767 | #if HAVE_UNISTD_H |
---|
| 5768 | # include <unistd.h> |
---|
| 5769 | #endif |
---|
| 5770 | /* Some systems only have a dummy stub for fork() */ |
---|
| 5771 | int main () |
---|
| 5772 | { |
---|
| 5773 | if (fork() < 0) |
---|
| 5774 | exit (1); |
---|
| 5775 | exit (0); |
---|
| 5776 | } |
---|
| 5777 | _ACEOF |
---|
| 5778 | rm -f conftest$ac_exeext |
---|
| 5779 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5780 | (eval $ac_link) 2>&5 |
---|
| 5781 | ac_status=$? |
---|
| 5782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5783 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 5784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5785 | (eval $ac_try) 2>&5 |
---|
| 5786 | ac_status=$? |
---|
| 5787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5788 | (exit $ac_status); }; }; then |
---|
| 5789 | ac_cv_func_fork_works=yes |
---|
| 5790 | else |
---|
| 5791 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 5792 | echo "$as_me: failed program was:" >&5 |
---|
| 5793 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5794 | |
---|
| 5795 | ( exit $ac_status ) |
---|
| 5796 | ac_cv_func_fork_works=no |
---|
| 5797 | fi |
---|
| 5798 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 5799 | fi |
---|
| 5800 | fi |
---|
| 5801 | echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5 |
---|
| 5802 | echo "${ECHO_T}$ac_cv_func_fork_works" >&6 |
---|
| 5803 | |
---|
| 5804 | else |
---|
| 5805 | ac_cv_func_fork_works=$ac_cv_func_fork |
---|
| 5806 | fi |
---|
| 5807 | if test "x$ac_cv_func_fork_works" = xcross; then |
---|
| 5808 | case $host in |
---|
| 5809 | *-*-amigaos* | *-*-msdosdjgpp*) |
---|
| 5810 | # Override, as these systems have only a dummy fork() stub |
---|
| 5811 | ac_cv_func_fork_works=no |
---|
| 5812 | ;; |
---|
| 5813 | *) |
---|
| 5814 | ac_cv_func_fork_works=yes |
---|
| 5815 | ;; |
---|
| 5816 | esac |
---|
| 5817 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
---|
| 5818 | echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
---|
| 5819 | fi |
---|
| 5820 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
---|
| 5821 | if test "x$ac_cv_func_vfork" = xyes; then |
---|
| 5822 | echo "$as_me:$LINENO: checking for working vfork" >&5 |
---|
| 5823 | echo $ECHO_N "checking for working vfork... $ECHO_C" >&6 |
---|
| 5824 | if test "${ac_cv_func_vfork_works+set}" = set; then |
---|
| 5825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5826 | else |
---|
| 5827 | if test "$cross_compiling" = yes; then |
---|
| 5828 | ac_cv_func_vfork_works=cross |
---|
| 5829 | else |
---|
| 5830 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5831 | #line $LINENO "configure" |
---|
| 5832 | /* confdefs.h. */ |
---|
| 5833 | _ACEOF |
---|
| 5834 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5835 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5836 | /* end confdefs.h. */ |
---|
| 5837 | /* Thanks to Paul Eggert for this test. */ |
---|
| 5838 | #include <stdio.h> |
---|
| 5839 | #include <stdlib.h> |
---|
| 5840 | #include <sys/types.h> |
---|
| 5841 | #include <sys/stat.h> |
---|
| 5842 | #include <sys/wait.h> |
---|
| 5843 | #if HAVE_UNISTD_H |
---|
| 5844 | # include <unistd.h> |
---|
| 5845 | #endif |
---|
| 5846 | #if HAVE_VFORK_H |
---|
| 5847 | # include <vfork.h> |
---|
| 5848 | #endif |
---|
| 5849 | /* On some sparc systems, changes by the child to local and incoming |
---|
| 5850 | argument registers are propagated back to the parent. The compiler |
---|
| 5851 | is told about this with #include <vfork.h>, but some compilers |
---|
| 5852 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
---|
| 5853 | static variable whose address is put into a register that is |
---|
| 5854 | clobbered by the vfork. */ |
---|
| 5855 | static void |
---|
| 5856 | #ifdef __cplusplus |
---|
| 5857 | sparc_address_test (int arg) |
---|
| 5858 | # else |
---|
| 5859 | sparc_address_test (arg) int arg; |
---|
| 5860 | #endif |
---|
| 5861 | { |
---|
| 5862 | static pid_t child; |
---|
| 5863 | if (!child) { |
---|
| 5864 | child = vfork (); |
---|
| 5865 | if (child < 0) { |
---|
| 5866 | perror ("vfork"); |
---|
| 5867 | _exit(2); |
---|
| 5868 | } |
---|
| 5869 | if (!child) { |
---|
| 5870 | arg = getpid(); |
---|
| 5871 | write(-1, "", 0); |
---|
| 5872 | _exit (arg); |
---|
| 5873 | } |
---|
| 5874 | } |
---|
| 5875 | } |
---|
| 5876 | |
---|
| 5877 | int |
---|
| 5878 | main () |
---|
| 5879 | { |
---|
| 5880 | pid_t parent = getpid (); |
---|
| 5881 | pid_t child; |
---|
| 5882 | |
---|
| 5883 | sparc_address_test (0); |
---|
| 5884 | |
---|
| 5885 | child = vfork (); |
---|
| 5886 | |
---|
| 5887 | if (child == 0) { |
---|
| 5888 | /* Here is another test for sparc vfork register problems. This |
---|
| 5889 | test uses lots of local variables, at least as many local |
---|
| 5890 | variables as main has allocated so far including compiler |
---|
| 5891 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
---|
| 5892 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
---|
| 5893 | reuse the register of parent for one of the local variables, |
---|
| 5894 | since it will think that parent can't possibly be used any more |
---|
| 5895 | in this routine. Assigning to the local variable will thus |
---|
| 5896 | munge parent in the parent process. */ |
---|
| 5897 | pid_t |
---|
| 5898 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
---|
| 5899 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
---|
| 5900 | /* Convince the compiler that p..p7 are live; otherwise, it might |
---|
| 5901 | use the same hardware register for all 8 local variables. */ |
---|
| 5902 | if (p != p1 || p != p2 || p != p3 || p != p4 |
---|
| 5903 | || p != p5 || p != p6 || p != p7) |
---|
| 5904 | _exit(1); |
---|
| 5905 | |
---|
| 5906 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
---|
| 5907 | from child file descriptors. If the child closes a descriptor |
---|
| 5908 | before it execs or exits, this munges the parent's descriptor |
---|
| 5909 | as well. Test for this by closing stdout in the child. */ |
---|
| 5910 | _exit(close(fileno(stdout)) != 0); |
---|
| 5911 | } else { |
---|
| 5912 | int status; |
---|
| 5913 | struct stat st; |
---|
| 5914 | |
---|
| 5915 | while (wait(&status) != child) |
---|
| 5916 | ; |
---|
| 5917 | exit( |
---|
| 5918 | /* Was there some problem with vforking? */ |
---|
| 5919 | child < 0 |
---|
| 5920 | |
---|
| 5921 | /* Did the child fail? (This shouldn't happen.) */ |
---|
| 5922 | || status |
---|
| 5923 | |
---|
| 5924 | /* Did the vfork/compiler bug occur? */ |
---|
| 5925 | || parent != getpid() |
---|
| 5926 | |
---|
| 5927 | /* Did the file descriptor bug occur? */ |
---|
| 5928 | || fstat(fileno(stdout), &st) != 0 |
---|
| 5929 | ); |
---|
| 5930 | } |
---|
| 5931 | } |
---|
| 5932 | _ACEOF |
---|
| 5933 | rm -f conftest$ac_exeext |
---|
| 5934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5935 | (eval $ac_link) 2>&5 |
---|
| 5936 | ac_status=$? |
---|
| 5937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5938 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 5939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5940 | (eval $ac_try) 2>&5 |
---|
| 5941 | ac_status=$? |
---|
| 5942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5943 | (exit $ac_status); }; }; then |
---|
| 5944 | ac_cv_func_vfork_works=yes |
---|
| 5945 | else |
---|
| 5946 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 5947 | echo "$as_me: failed program was:" >&5 |
---|
| 5948 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5949 | |
---|
| 5950 | ( exit $ac_status ) |
---|
| 5951 | ac_cv_func_vfork_works=no |
---|
| 5952 | fi |
---|
| 5953 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 5954 | fi |
---|
| 5955 | fi |
---|
| 5956 | echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5 |
---|
| 5957 | echo "${ECHO_T}$ac_cv_func_vfork_works" >&6 |
---|
| 5958 | |
---|
| 5959 | fi; |
---|
| 5960 | if test "x$ac_cv_func_fork_works" = xcross; then |
---|
| 5961 | ac_cv_func_vfork_works=ac_cv_func_vfork |
---|
| 5962 | { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
---|
| 5963 | echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
---|
| 5964 | fi |
---|
| 5965 | |
---|
| 5966 | if test "x$ac_cv_func_vfork_works" = xyes; then |
---|
| 5967 | |
---|
| 5968 | cat >>confdefs.h <<\_ACEOF |
---|
| 5969 | #define HAVE_WORKING_VFORK 1 |
---|
| 5970 | _ACEOF |
---|
| 5971 | |
---|
| 5972 | else |
---|
| 5973 | |
---|
| 5974 | cat >>confdefs.h <<\_ACEOF |
---|
| 5975 | #define vfork fork |
---|
| 5976 | _ACEOF |
---|
| 5977 | |
---|
| 5978 | fi |
---|
| 5979 | if test "x$ac_cv_func_fork_works" = xyes; then |
---|
| 5980 | |
---|
| 5981 | cat >>confdefs.h <<\_ACEOF |
---|
| 5982 | #define HAVE_WORKING_FORK 1 |
---|
| 5983 | _ACEOF |
---|
| 5984 | |
---|
| 5985 | fi |
---|
| 5986 | |
---|
| 5987 | |
---|
| 5988 | # Look for these functions and define HAVE_... for each if present |
---|
| 5989 | |
---|
| 5990 | |
---|
| 5991 | |
---|
| 5992 | |
---|
| 5993 | |
---|
| 5994 | |
---|
| 5995 | |
---|
| 5996 | |
---|
| 5997 | |
---|
| 5998 | |
---|
| 5999 | |
---|
| 6000 | for ac_func in sysconf gethostname strcspn strerror strspn strstr getenv strchr getrlimit getrusage valloc |
---|
| 6001 | do |
---|
| 6002 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 6003 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 6004 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 6005 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 6006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 6007 | else |
---|
| 6008 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 6009 | #line $LINENO "configure" |
---|
| 6010 | /* confdefs.h. */ |
---|
| 6011 | _ACEOF |
---|
| 6012 | cat confdefs.h >>conftest.$ac_ext |
---|
| 6013 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 6014 | /* end confdefs.h. */ |
---|
| 6015 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 6016 | which can conflict with char $ac_func (); below. |
---|
| 6017 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 6018 | <limits.h> exists even on freestanding compilers. */ |
---|
| 6019 | #ifdef __STDC__ |
---|
| 6020 | # include <limits.h> |
---|
| 6021 | #else |
---|
| 6022 | # include <assert.h> |
---|
| 6023 | #endif |
---|
| 6024 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 6025 | #ifdef __cplusplus |
---|
| 6026 | extern "C" |
---|
| 6027 | { |
---|
| 6028 | #endif |
---|
| 6029 | /* We use char because int might match the return type of a gcc2 |
---|
| 6030 | builtin and then its argument prototype would still apply. */ |
---|
| 6031 | char $ac_func (); |
---|
| 6032 | /* The GNU C library defines this for functions which it implements |
---|
| 6033 | to always fail with ENOSYS. Some functions are actually named |
---|
| 6034 | something starting with __ and the normal name is an alias. */ |
---|
| 6035 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 6036 | choke me |
---|
| 6037 | #else |
---|
| 6038 | char (*f) () = $ac_func; |
---|
| 6039 | #endif |
---|
| 6040 | #ifdef __cplusplus |
---|
| 6041 | } |
---|
| 6042 | #endif |
---|
| 6043 | |
---|
| 6044 | int |
---|
| 6045 | main () |
---|
| 6046 | { |
---|
| 6047 | return f != $ac_func; |
---|
| 6048 | ; |
---|
| 6049 | return 0; |
---|
| 6050 | } |
---|
| 6051 | _ACEOF |
---|
| 6052 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 6053 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 6054 | (eval $ac_link) 2>&5 |
---|
| 6055 | ac_status=$? |
---|
| 6056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6057 | (exit $ac_status); } && |
---|
| 6058 | { ac_try='test -s conftest$ac_exeext' |
---|
| 6059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 6060 | (eval $ac_try) 2>&5 |
---|
| 6061 | ac_status=$? |
---|
| 6062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 6063 | (exit $ac_status); }; }; then |
---|
| 6064 | eval "$as_ac_var=yes" |
---|
| 6065 | else |
---|
| 6066 | echo "$as_me: failed program was:" >&5 |
---|
| 6067 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 6068 | |
---|
| 6069 | eval "$as_ac_var=no" |
---|
| 6070 | fi |
---|
| 6071 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
---|
| 6072 | fi |
---|
| 6073 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 6074 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 6075 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 6076 | cat >>confdefs.h <<_ACEOF |
---|
| 6077 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 6078 | _ACEOF |
---|
| 6079 | |
---|
| 6080 | fi |
---|
| 6081 | done |
---|
| 6082 | |
---|
| 6083 | |
---|
| 6084 | #---------------------------------------------------------------------- |
---|
| 6085 | # Create the Makefile from Makefile.in |
---|
| 6086 | #---------------------------------------------------------------------- |
---|
| 6087 | if test "$gcc_ok" = "g++"; then |
---|
| 6088 | CC=$gcc_ok |
---|
| 6089 | fi |
---|
| 6090 | ac_config_files="$ac_config_files Makefile" |
---|
| 6091 | cat >confcache <<\_ACEOF |
---|
| 6092 | # This file is a shell script that caches the results of configure |
---|
| 6093 | # tests run on this system so they can be shared between configure |
---|
| 6094 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 6095 | # It is not useful on other systems. If it contains results you don't |
---|
| 6096 | # want to keep, you may remove or edit it. |
---|
| 6097 | # |
---|
| 6098 | # config.status only pays attention to the cache file if you give it |
---|
| 6099 | # the --recheck option to rerun configure. |
---|
| 6100 | # |
---|
| 6101 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 6102 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 6103 | # following values. |
---|
| 6104 | |
---|
| 6105 | _ACEOF |
---|
| 6106 | |
---|
| 6107 | # The following way of writing the cache mishandles newlines in values, |
---|
| 6108 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 6109 | # So, don't put newlines in cache variables' values. |
---|
| 6110 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 6111 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 6112 | { |
---|
| 6113 | (set) 2>&1 | |
---|
| 6114 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 6115 | *ac_space=\ *) |
---|
| 6116 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 6117 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 6118 | sed -n \ |
---|
| 6119 | "s/'/'\\\\''/g; |
---|
| 6120 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 6121 | ;; |
---|
| 6122 | *) |
---|
| 6123 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 6124 | sed -n \ |
---|
| 6125 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 6126 | ;; |
---|
| 6127 | esac; |
---|
| 6128 | } | |
---|
| 6129 | sed ' |
---|
| 6130 | t clear |
---|
| 6131 | : clear |
---|
| 6132 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 6133 | t end |
---|
| 6134 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 6135 | : end' >>confcache |
---|
| 6136 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 6137 | if test -w $cache_file; then |
---|
| 6138 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 6139 | cat confcache >$cache_file |
---|
| 6140 | else |
---|
| 6141 | echo "not updating unwritable cache $cache_file" |
---|
| 6142 | fi |
---|
| 6143 | fi |
---|
| 6144 | rm -f confcache |
---|
| 6145 | |
---|
| 6146 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 6147 | # Let make expand exec_prefix. |
---|
| 6148 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 6149 | |
---|
| 6150 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 6151 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 6152 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 6153 | # (actually we leave an empty line to preserve line numbers). |
---|
| 6154 | if test "x$srcdir" = x.; then |
---|
| 6155 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 6156 | s/:*\$(srcdir):*/:/; |
---|
| 6157 | s/:*\${srcdir}:*/:/; |
---|
| 6158 | s/:*@srcdir@:*/:/; |
---|
| 6159 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 6160 | s/:*$//; |
---|
| 6161 | s/^[^=]*=[ ]*$//; |
---|
| 6162 | }' |
---|
| 6163 | fi |
---|
| 6164 | |
---|
| 6165 | # Transform confdefs.h into DEFS. |
---|
| 6166 | # Protect against shell expansion while executing Makefile rules. |
---|
| 6167 | # Protect against Makefile macro expansion. |
---|
| 6168 | # |
---|
| 6169 | # If the first sed substitution is executed (which looks for macros that |
---|
| 6170 | # take arguments), then we branch to the quote section. Otherwise, |
---|
| 6171 | # look for a macro that doesn't take arguments. |
---|
| 6172 | cat >confdef2opt.sed <<\_ACEOF |
---|
| 6173 | t clear |
---|
| 6174 | : clear |
---|
| 6175 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
---|
| 6176 | t quote |
---|
| 6177 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
---|
| 6178 | t quote |
---|
| 6179 | d |
---|
| 6180 | : quote |
---|
| 6181 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
---|
| 6182 | s,\[,\\&,g |
---|
| 6183 | s,\],\\&,g |
---|
| 6184 | s,\$,$$,g |
---|
| 6185 | p |
---|
| 6186 | _ACEOF |
---|
| 6187 | # We use echo to avoid assuming a particular line-breaking character. |
---|
| 6188 | # The extra dot is to prevent the shell from consuming trailing |
---|
| 6189 | # line-breaks from the sub-command output. A line-break within |
---|
| 6190 | # single-quotes doesn't work because, if this script is created in a |
---|
| 6191 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
---|
| 6192 | # would break. |
---|
| 6193 | ac_LF_and_DOT=`echo; echo .` |
---|
| 6194 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
---|
| 6195 | rm -f confdef2opt.sed |
---|
| 6196 | |
---|
| 6197 | |
---|
| 6198 | ac_libobjs= |
---|
| 6199 | ac_ltlibobjs= |
---|
| 6200 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 6201 | # 1. Remove the extension, and $U if already installed. |
---|
| 6202 | ac_i=`echo "$ac_i" | |
---|
| 6203 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 6204 | # 2. Add them. |
---|
| 6205 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 6206 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 6207 | done |
---|
| 6208 | LIBOBJS=$ac_libobjs |
---|
| 6209 | |
---|
| 6210 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 6211 | |
---|
| 6212 | |
---|
| 6213 | |
---|
| 6214 | : ${CONFIG_STATUS=./config.status} |
---|
| 6215 | ac_clean_files_save=$ac_clean_files |
---|
| 6216 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 6217 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 6218 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 6219 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 6220 | #! $SHELL |
---|
| 6221 | # Generated by $as_me. |
---|
| 6222 | # Run this file to recreate the current configuration. |
---|
| 6223 | # Compiler output produced by configure, useful for debugging |
---|
| 6224 | # configure, is in config.log if it exists. |
---|
| 6225 | |
---|
| 6226 | debug=false |
---|
| 6227 | ac_cs_recheck=false |
---|
| 6228 | ac_cs_silent=false |
---|
| 6229 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 6230 | _ACEOF |
---|
| 6231 | |
---|
| 6232 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6233 | ## --------------------- ## |
---|
| 6234 | ## M4sh Initialization. ## |
---|
| 6235 | ## --------------------- ## |
---|
| 6236 | |
---|
| 6237 | # Be Bourne compatible |
---|
| 6238 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 6239 | emulate sh |
---|
| 6240 | NULLCMD=: |
---|
| 6241 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 6242 | # is contrary to our usage. Disable this feature. |
---|
| 6243 | alias -g '${1+"$@"}'='"$@"' |
---|
| 6244 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 6245 | set -o posix |
---|
| 6246 | fi |
---|
| 6247 | |
---|
| 6248 | # Support unset when possible. |
---|
| 6249 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
---|
| 6250 | as_unset=unset |
---|
| 6251 | else |
---|
| 6252 | as_unset=false |
---|
| 6253 | fi |
---|
| 6254 | |
---|
| 6255 | |
---|
| 6256 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 6257 | $as_unset ENV MAIL MAILPATH |
---|
| 6258 | PS1='$ ' |
---|
| 6259 | PS2='> ' |
---|
| 6260 | PS4='+ ' |
---|
| 6261 | |
---|
| 6262 | # NLS nuisances. |
---|
| 6263 | for as_var in \ |
---|
| 6264 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 6265 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 6266 | LC_TELEPHONE LC_TIME |
---|
| 6267 | do |
---|
| 6268 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 6269 | eval $as_var=C; export $as_var |
---|
| 6270 | else |
---|
| 6271 | $as_unset $as_var |
---|
| 6272 | fi |
---|
| 6273 | done |
---|
| 6274 | |
---|
| 6275 | # Required to use basename. |
---|
| 6276 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 6277 | as_expr=expr |
---|
| 6278 | else |
---|
| 6279 | as_expr=false |
---|
| 6280 | fi |
---|
| 6281 | |
---|
| 6282 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 6283 | as_basename=basename |
---|
| 6284 | else |
---|
| 6285 | as_basename=false |
---|
| 6286 | fi |
---|
| 6287 | |
---|
| 6288 | |
---|
| 6289 | # Name of the executable. |
---|
| 6290 | as_me=`$as_basename "$0" || |
---|
| 6291 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 6292 | X"$0" : 'X\(//\)$' \| \ |
---|
| 6293 | X"$0" : 'X\(/\)$' \| \ |
---|
| 6294 | . : '\(.\)' 2>/dev/null || |
---|
| 6295 | echo X/"$0" | |
---|
| 6296 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 6297 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 6298 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 6299 | s/.*/./; q'` |
---|
| 6300 | |
---|
| 6301 | |
---|
| 6302 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 6303 | # Avoid depending upon Character Ranges. |
---|
| 6304 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 6305 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 6306 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 6307 | as_cr_digits='0123456789' |
---|
| 6308 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 6309 | |
---|
| 6310 | # The user is always right. |
---|
| 6311 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 6312 | echo "#! /bin/sh" >conf$$.sh |
---|
| 6313 | echo "exit 0" >>conf$$.sh |
---|
| 6314 | chmod +x conf$$.sh |
---|
| 6315 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 6316 | PATH_SEPARATOR=';' |
---|
| 6317 | else |
---|
| 6318 | PATH_SEPARATOR=: |
---|
| 6319 | fi |
---|
| 6320 | rm -f conf$$.sh |
---|
| 6321 | fi |
---|
| 6322 | |
---|
| 6323 | |
---|
| 6324 | as_lineno_1=$LINENO |
---|
| 6325 | as_lineno_2=$LINENO |
---|
| 6326 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 6327 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 6328 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 6329 | # Find who we are. Look in the path if we contain no path at all |
---|
| 6330 | # relative or not. |
---|
| 6331 | case $0 in |
---|
| 6332 | *[\\/]* ) as_myself=$0 ;; |
---|
| 6333 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6334 | for as_dir in $PATH |
---|
| 6335 | do |
---|
| 6336 | IFS=$as_save_IFS |
---|
| 6337 | test -z "$as_dir" && as_dir=. |
---|
| 6338 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 6339 | done |
---|
| 6340 | |
---|
| 6341 | ;; |
---|
| 6342 | esac |
---|
| 6343 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 6344 | # in which case we are not to be found in the path. |
---|
| 6345 | if test "x$as_myself" = x; then |
---|
| 6346 | as_myself=$0 |
---|
| 6347 | fi |
---|
| 6348 | if test ! -f "$as_myself"; then |
---|
| 6349 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 6350 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 6351 | { (exit 1); exit 1; }; } |
---|
| 6352 | fi |
---|
| 6353 | case $CONFIG_SHELL in |
---|
| 6354 | '') |
---|
| 6355 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 6356 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 6357 | do |
---|
| 6358 | IFS=$as_save_IFS |
---|
| 6359 | test -z "$as_dir" && as_dir=. |
---|
| 6360 | for as_base in sh bash ksh sh5; do |
---|
| 6361 | case $as_dir in |
---|
| 6362 | /*) |
---|
| 6363 | if ("$as_dir/$as_base" -c ' |
---|
| 6364 | as_lineno_1=$LINENO |
---|
| 6365 | as_lineno_2=$LINENO |
---|
| 6366 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 6367 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 6368 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 6369 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 6370 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 6371 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 6372 | export CONFIG_SHELL |
---|
| 6373 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 6374 | fi;; |
---|
| 6375 | esac |
---|
| 6376 | done |
---|
| 6377 | done |
---|
| 6378 | ;; |
---|
| 6379 | esac |
---|
| 6380 | |
---|
| 6381 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 6382 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 6383 | # line-number line before each line; the second 'sed' does the real |
---|
| 6384 | # work. The second script uses 'N' to pair each line-number line |
---|
| 6385 | # with the numbered line, and appends trailing '-' during |
---|
| 6386 | # substitution so that $LINENO is not a special case at line end. |
---|
| 6387 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 6388 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 6389 | sed '=' <$as_myself | |
---|
| 6390 | sed ' |
---|
| 6391 | N |
---|
| 6392 | s,$,-, |
---|
| 6393 | : loop |
---|
| 6394 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 6395 | t loop |
---|
| 6396 | s,-$,, |
---|
| 6397 | s,^['$as_cr_digits']*\n,, |
---|
| 6398 | ' >$as_me.lineno && |
---|
| 6399 | chmod +x $as_me.lineno || |
---|
| 6400 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 6401 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 6402 | { (exit 1); exit 1; }; } |
---|
| 6403 | |
---|
| 6404 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 6405 | # (the dirname of $[0] is not the place where we might find the |
---|
| 6406 | # original and so on. Autoconf is especially sensible to this). |
---|
| 6407 | . ./$as_me.lineno |
---|
| 6408 | # Exit status is that of the last command. |
---|
| 6409 | exit |
---|
| 6410 | } |
---|
| 6411 | |
---|
| 6412 | |
---|
| 6413 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 6414 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 6415 | ' ECHO_T=' ' ;; |
---|
| 6416 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 6417 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 6418 | esac |
---|
| 6419 | |
---|
| 6420 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 6421 | as_expr=expr |
---|
| 6422 | else |
---|
| 6423 | as_expr=false |
---|
| 6424 | fi |
---|
| 6425 | |
---|
| 6426 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 6427 | echo >conf$$.file |
---|
| 6428 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 6429 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 6430 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 6431 | if test -f conf$$.exe; then |
---|
| 6432 | # Don't use ln at all; we don't have any links |
---|
| 6433 | as_ln_s='cp -p' |
---|
| 6434 | else |
---|
| 6435 | as_ln_s='ln -s' |
---|
| 6436 | fi |
---|
| 6437 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 6438 | as_ln_s=ln |
---|
| 6439 | else |
---|
| 6440 | as_ln_s='cp -p' |
---|
| 6441 | fi |
---|
| 6442 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 6443 | |
---|
| 6444 | if mkdir -p . 2>/dev/null; then |
---|
| 6445 | as_mkdir_p=: |
---|
| 6446 | else |
---|
| 6447 | as_mkdir_p=false |
---|
| 6448 | fi |
---|
| 6449 | |
---|
| 6450 | as_executable_p="test -f" |
---|
| 6451 | |
---|
| 6452 | # Sed expression to map a string onto a valid CPP name. |
---|
| 6453 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
---|
| 6454 | |
---|
| 6455 | # Sed expression to map a string onto a valid variable name. |
---|
| 6456 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
---|
| 6457 | |
---|
| 6458 | |
---|
| 6459 | # IFS |
---|
| 6460 | # We need space, tab and new line, in precisely that order. |
---|
| 6461 | as_nl=' |
---|
| 6462 | ' |
---|
| 6463 | IFS=" $as_nl" |
---|
| 6464 | |
---|
| 6465 | # CDPATH. |
---|
| 6466 | $as_unset CDPATH |
---|
| 6467 | |
---|
| 6468 | exec 6>&1 |
---|
| 6469 | |
---|
| 6470 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 6471 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 6472 | # values after options handling. Logging --version etc. is OK. |
---|
| 6473 | exec 5>>config.log |
---|
| 6474 | { |
---|
| 6475 | echo |
---|
| 6476 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 6477 | ## Running $as_me. ## |
---|
| 6478 | _ASBOX |
---|
| 6479 | } >&5 |
---|
| 6480 | cat >&5 <<_CSEOF |
---|
| 6481 | |
---|
| 6482 | This file was extended by $as_me, which was |
---|
| 6483 | generated by GNU Autoconf 2.57. Invocation command line was |
---|
| 6484 | |
---|
| 6485 | CONFIG_FILES = $CONFIG_FILES |
---|
| 6486 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 6487 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 6488 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 6489 | $ $0 $@ |
---|
| 6490 | |
---|
| 6491 | _CSEOF |
---|
| 6492 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 6493 | echo >&5 |
---|
| 6494 | _ACEOF |
---|
| 6495 | |
---|
| 6496 | # Files that config.status was made for. |
---|
| 6497 | if test -n "$ac_config_files"; then |
---|
| 6498 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 6499 | fi |
---|
| 6500 | |
---|
| 6501 | if test -n "$ac_config_headers"; then |
---|
| 6502 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 6503 | fi |
---|
| 6504 | |
---|
| 6505 | if test -n "$ac_config_links"; then |
---|
| 6506 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 6507 | fi |
---|
| 6508 | |
---|
| 6509 | if test -n "$ac_config_commands"; then |
---|
| 6510 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 6511 | fi |
---|
| 6512 | |
---|
| 6513 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6514 | |
---|
| 6515 | ac_cs_usage="\ |
---|
| 6516 | \`$as_me' instantiates files from templates according to the |
---|
| 6517 | current configuration. |
---|
| 6518 | |
---|
| 6519 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 6520 | |
---|
| 6521 | -h, --help print this help, then exit |
---|
| 6522 | -V, --version print version number, then exit |
---|
| 6523 | -q, --quiet do not print progress messages |
---|
| 6524 | -d, --debug don't remove temporary files |
---|
| 6525 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 6526 | --file=FILE[:TEMPLATE] |
---|
| 6527 | instantiate the configuration file FILE |
---|
| 6528 | |
---|
| 6529 | Configuration files: |
---|
| 6530 | $config_files |
---|
| 6531 | |
---|
| 6532 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 6533 | _ACEOF |
---|
| 6534 | |
---|
| 6535 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6536 | ac_cs_version="\\ |
---|
| 6537 | config.status |
---|
| 6538 | configured by $0, generated by GNU Autoconf 2.57, |
---|
| 6539 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 6540 | |
---|
| 6541 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
---|
| 6542 | Free Software Foundation, Inc. |
---|
| 6543 | This config.status script is free software; the Free Software Foundation |
---|
| 6544 | gives unlimited permission to copy, distribute and modify it." |
---|
| 6545 | srcdir=$srcdir |
---|
| 6546 | INSTALL="$INSTALL" |
---|
| 6547 | _ACEOF |
---|
| 6548 | |
---|
| 6549 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6550 | # If no file are specified by the user, then we need to provide default |
---|
| 6551 | # value. By we need to know if files were specified by the user. |
---|
| 6552 | ac_need_defaults=: |
---|
| 6553 | while test $# != 0 |
---|
| 6554 | do |
---|
| 6555 | case $1 in |
---|
| 6556 | --*=*) |
---|
| 6557 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 6558 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 6559 | ac_shift=: |
---|
| 6560 | ;; |
---|
| 6561 | -*) |
---|
| 6562 | ac_option=$1 |
---|
| 6563 | ac_optarg=$2 |
---|
| 6564 | ac_shift=shift |
---|
| 6565 | ;; |
---|
| 6566 | *) # This is not an option, so the user has probably given explicit |
---|
| 6567 | # arguments. |
---|
| 6568 | ac_option=$1 |
---|
| 6569 | ac_need_defaults=false;; |
---|
| 6570 | esac |
---|
| 6571 | |
---|
| 6572 | case $ac_option in |
---|
| 6573 | # Handling of the options. |
---|
| 6574 | _ACEOF |
---|
| 6575 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6576 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 6577 | ac_cs_recheck=: ;; |
---|
| 6578 | --version | --vers* | -V ) |
---|
| 6579 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 6580 | --he | --h) |
---|
| 6581 | # Conflict between --help and --header |
---|
| 6582 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 6583 | Try \`$0 --help' for more information." >&5 |
---|
| 6584 | echo "$as_me: error: ambiguous option: $1 |
---|
| 6585 | Try \`$0 --help' for more information." >&2;} |
---|
| 6586 | { (exit 1); exit 1; }; };; |
---|
| 6587 | --help | --hel | -h ) |
---|
| 6588 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 6589 | --debug | --d* | -d ) |
---|
| 6590 | debug=: ;; |
---|
| 6591 | --file | --fil | --fi | --f ) |
---|
| 6592 | $ac_shift |
---|
| 6593 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 6594 | ac_need_defaults=false;; |
---|
| 6595 | --header | --heade | --head | --hea ) |
---|
| 6596 | $ac_shift |
---|
| 6597 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 6598 | ac_need_defaults=false;; |
---|
| 6599 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 6600 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 6601 | ac_cs_silent=: ;; |
---|
| 6602 | |
---|
| 6603 | # This is an error. |
---|
| 6604 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 6605 | Try \`$0 --help' for more information." >&5 |
---|
| 6606 | echo "$as_me: error: unrecognized option: $1 |
---|
| 6607 | Try \`$0 --help' for more information." >&2;} |
---|
| 6608 | { (exit 1); exit 1; }; } ;; |
---|
| 6609 | |
---|
| 6610 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 6611 | |
---|
| 6612 | esac |
---|
| 6613 | shift |
---|
| 6614 | done |
---|
| 6615 | |
---|
| 6616 | ac_configure_extra_args= |
---|
| 6617 | |
---|
| 6618 | if $ac_cs_silent; then |
---|
| 6619 | exec 6>/dev/null |
---|
| 6620 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 6621 | fi |
---|
| 6622 | |
---|
| 6623 | _ACEOF |
---|
| 6624 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6625 | if \$ac_cs_recheck; then |
---|
| 6626 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 6627 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 6628 | fi |
---|
| 6629 | |
---|
| 6630 | _ACEOF |
---|
| 6631 | |
---|
| 6632 | |
---|
| 6633 | |
---|
| 6634 | |
---|
| 6635 | |
---|
| 6636 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6637 | for ac_config_target in $ac_config_targets |
---|
| 6638 | do |
---|
| 6639 | case "$ac_config_target" in |
---|
| 6640 | # Handling of arguments. |
---|
| 6641 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 6642 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 6643 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 6644 | { (exit 1); exit 1; }; };; |
---|
| 6645 | esac |
---|
| 6646 | done |
---|
| 6647 | |
---|
| 6648 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 6649 | # then the envvar interface is used. Set only those that are not. |
---|
| 6650 | # We use the long form for the default assignment because of an extremely |
---|
| 6651 | # bizarre bug on SunOS 4.1.3. |
---|
| 6652 | if $ac_need_defaults; then |
---|
| 6653 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 6654 | fi |
---|
| 6655 | |
---|
| 6656 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 6657 | # simply because there is no reason to put it here, and in addition, |
---|
| 6658 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 6659 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 6660 | $debug || |
---|
| 6661 | { |
---|
| 6662 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 6663 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 6664 | } |
---|
| 6665 | |
---|
| 6666 | # Create a (secure) tmp directory for tmp files. |
---|
| 6667 | |
---|
| 6668 | { |
---|
| 6669 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 6670 | test -n "$tmp" && test -d "$tmp" |
---|
| 6671 | } || |
---|
| 6672 | { |
---|
| 6673 | tmp=./confstat$$-$RANDOM |
---|
| 6674 | (umask 077 && mkdir $tmp) |
---|
| 6675 | } || |
---|
| 6676 | { |
---|
| 6677 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 6678 | { (exit 1); exit 1; } |
---|
| 6679 | } |
---|
| 6680 | |
---|
| 6681 | _ACEOF |
---|
| 6682 | |
---|
| 6683 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6684 | |
---|
| 6685 | # |
---|
| 6686 | # CONFIG_FILES section. |
---|
| 6687 | # |
---|
| 6688 | |
---|
| 6689 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 6690 | # This happens for instance when ./config.status config.h |
---|
| 6691 | if test -n "\$CONFIG_FILES"; then |
---|
| 6692 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 6693 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 6694 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 6695 | s,@SHELL@,$SHELL,;t t |
---|
| 6696 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 6697 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 6698 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 6699 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 6700 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 6701 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 6702 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 6703 | s,@prefix@,$prefix,;t t |
---|
| 6704 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 6705 | s,@bindir@,$bindir,;t t |
---|
| 6706 | s,@sbindir@,$sbindir,;t t |
---|
| 6707 | s,@libexecdir@,$libexecdir,;t t |
---|
| 6708 | s,@datadir@,$datadir,;t t |
---|
| 6709 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 6710 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 6711 | s,@localstatedir@,$localstatedir,;t t |
---|
| 6712 | s,@libdir@,$libdir,;t t |
---|
| 6713 | s,@includedir@,$includedir,;t t |
---|
| 6714 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 6715 | s,@infodir@,$infodir,;t t |
---|
| 6716 | s,@mandir@,$mandir,;t t |
---|
| 6717 | s,@build_alias@,$build_alias,;t t |
---|
| 6718 | s,@host_alias@,$host_alias,;t t |
---|
| 6719 | s,@target_alias@,$target_alias,;t t |
---|
| 6720 | s,@DEFS@,$DEFS,;t t |
---|
| 6721 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 6722 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 6723 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 6724 | s,@LIBS@,$LIBS,;t t |
---|
| 6725 | s,@local_srcdir@,$local_srcdir,;t t |
---|
| 6726 | s,@AR@,$AR,;t t |
---|
| 6727 | s,@RANLIB@,$RANLIB,;t t |
---|
| 6728 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
| 6729 | s,@build@,$build,;t t |
---|
| 6730 | s,@build_cpu@,$build_cpu,;t t |
---|
| 6731 | s,@build_vendor@,$build_vendor,;t t |
---|
| 6732 | s,@build_os@,$build_os,;t t |
---|
| 6733 | s,@host@,$host,;t t |
---|
| 6734 | s,@host_cpu@,$host_cpu,;t t |
---|
| 6735 | s,@host_vendor@,$host_vendor,;t t |
---|
| 6736 | s,@host_os@,$host_os,;t t |
---|
| 6737 | s,@target@,$target,;t t |
---|
| 6738 | s,@target_cpu@,$target_cpu,;t t |
---|
| 6739 | s,@target_vendor@,$target_vendor,;t t |
---|
| 6740 | s,@target_os@,$target_os,;t t |
---|
| 6741 | s,@CC@,$CC,;t t |
---|
| 6742 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 6743 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 6744 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 6745 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 6746 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 6747 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 6748 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
| 6749 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
| 6750 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
| 6751 | s,@LINKER@,$LINKER,;t t |
---|
| 6752 | s,@PLINKER@,$PLINKER,;t t |
---|
| 6753 | s,@CPP@,$CPP,;t t |
---|
| 6754 | s,@EGREP@,$EGREP,;t t |
---|
| 6755 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 6756 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 6757 | CEOF |
---|
| 6758 | |
---|
| 6759 | _ACEOF |
---|
| 6760 | |
---|
| 6761 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6762 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 6763 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 6764 | ac_max_sed_lines=48 |
---|
| 6765 | ac_sed_frag=1 # Number of current file. |
---|
| 6766 | ac_beg=1 # First line for current file. |
---|
| 6767 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 6768 | ac_more_lines=: |
---|
| 6769 | ac_sed_cmds= |
---|
| 6770 | while $ac_more_lines; do |
---|
| 6771 | if test $ac_beg -gt 1; then |
---|
| 6772 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 6773 | else |
---|
| 6774 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 6775 | fi |
---|
| 6776 | if test ! -s $tmp/subs.frag; then |
---|
| 6777 | ac_more_lines=false |
---|
| 6778 | else |
---|
| 6779 | # The purpose of the label and of the branching condition is to |
---|
| 6780 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 6781 | # is no need to browse any of the substitutions). |
---|
| 6782 | # These are the two extra sed commands mentioned above. |
---|
| 6783 | (echo ':t |
---|
| 6784 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 6785 | if test -z "$ac_sed_cmds"; then |
---|
| 6786 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 6787 | else |
---|
| 6788 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 6789 | fi |
---|
| 6790 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 6791 | ac_beg=$ac_end |
---|
| 6792 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 6793 | fi |
---|
| 6794 | done |
---|
| 6795 | if test -z "$ac_sed_cmds"; then |
---|
| 6796 | ac_sed_cmds=cat |
---|
| 6797 | fi |
---|
| 6798 | fi # test -n "$CONFIG_FILES" |
---|
| 6799 | |
---|
| 6800 | _ACEOF |
---|
| 6801 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6802 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 6803 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 6804 | case $ac_file in |
---|
| 6805 | - | *:- | *:-:* ) # input from stdin |
---|
| 6806 | cat >$tmp/stdin |
---|
| 6807 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 6808 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 6809 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 6810 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 6811 | * ) ac_file_in=$ac_file.in ;; |
---|
| 6812 | esac |
---|
| 6813 | |
---|
| 6814 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 6815 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 6816 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6817 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 6818 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 6819 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 6820 | . : '\(.\)' 2>/dev/null || |
---|
| 6821 | echo X"$ac_file" | |
---|
| 6822 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 6823 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 6824 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 6825 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 6826 | s/.*/./; q'` |
---|
| 6827 | { if $as_mkdir_p; then |
---|
| 6828 | mkdir -p "$ac_dir" |
---|
| 6829 | else |
---|
| 6830 | as_dir="$ac_dir" |
---|
| 6831 | as_dirs= |
---|
| 6832 | while test ! -d "$as_dir"; do |
---|
| 6833 | as_dirs="$as_dir $as_dirs" |
---|
| 6834 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 6835 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6836 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 6837 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 6838 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 6839 | . : '\(.\)' 2>/dev/null || |
---|
| 6840 | echo X"$as_dir" | |
---|
| 6841 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 6842 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 6843 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 6844 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 6845 | s/.*/./; q'` |
---|
| 6846 | done |
---|
| 6847 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 6848 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 6849 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 6850 | { (exit 1); exit 1; }; }; } |
---|
| 6851 | |
---|
| 6852 | ac_builddir=. |
---|
| 6853 | |
---|
| 6854 | if test "$ac_dir" != .; then |
---|
| 6855 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 6856 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 6857 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 6858 | else |
---|
| 6859 | ac_dir_suffix= ac_top_builddir= |
---|
| 6860 | fi |
---|
| 6861 | |
---|
| 6862 | case $srcdir in |
---|
| 6863 | .) # No --srcdir option. We are building in place. |
---|
| 6864 | ac_srcdir=. |
---|
| 6865 | if test -z "$ac_top_builddir"; then |
---|
| 6866 | ac_top_srcdir=. |
---|
| 6867 | else |
---|
| 6868 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 6869 | fi ;; |
---|
| 6870 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 6871 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 6872 | ac_top_srcdir=$srcdir ;; |
---|
| 6873 | *) # Relative path. |
---|
| 6874 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 6875 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 6876 | esac |
---|
| 6877 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
---|
| 6878 | # absolute. |
---|
| 6879 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
---|
| 6880 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
---|
| 6881 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
---|
| 6882 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
---|
| 6883 | |
---|
| 6884 | |
---|
| 6885 | case $INSTALL in |
---|
| 6886 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 6887 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
| 6888 | esac |
---|
| 6889 | |
---|
| 6890 | if test x"$ac_file" != x-; then |
---|
| 6891 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 6892 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 6893 | rm -f "$ac_file" |
---|
| 6894 | fi |
---|
| 6895 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 6896 | # use $as_me), people would be surprised to read: |
---|
| 6897 | # /* config.h. Generated by config.status. */ |
---|
| 6898 | if test x"$ac_file" = x-; then |
---|
| 6899 | configure_input= |
---|
| 6900 | else |
---|
| 6901 | configure_input="$ac_file. " |
---|
| 6902 | fi |
---|
| 6903 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 6904 | sed 's,.*/,,'` by configure." |
---|
| 6905 | |
---|
| 6906 | # First look for the input files in the build tree, otherwise in the |
---|
| 6907 | # src tree. |
---|
| 6908 | ac_file_inputs=`IFS=: |
---|
| 6909 | for f in $ac_file_in; do |
---|
| 6910 | case $f in |
---|
| 6911 | -) echo $tmp/stdin ;; |
---|
| 6912 | [\\/$]*) |
---|
| 6913 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 6914 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 6915 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 6916 | { (exit 1); exit 1; }; } |
---|
| 6917 | echo $f;; |
---|
| 6918 | *) # Relative |
---|
| 6919 | if test -f "$f"; then |
---|
| 6920 | # Build tree |
---|
| 6921 | echo $f |
---|
| 6922 | elif test -f "$srcdir/$f"; then |
---|
| 6923 | # Source tree |
---|
| 6924 | echo $srcdir/$f |
---|
| 6925 | else |
---|
| 6926 | # /dev/null tree |
---|
| 6927 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 6928 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 6929 | { (exit 1); exit 1; }; } |
---|
| 6930 | fi;; |
---|
| 6931 | esac |
---|
| 6932 | done` || { (exit 1); exit 1; } |
---|
| 6933 | _ACEOF |
---|
| 6934 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6935 | sed "$ac_vpsub |
---|
| 6936 | $extrasub |
---|
| 6937 | _ACEOF |
---|
| 6938 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6939 | :t |
---|
| 6940 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 6941 | s,@configure_input@,$configure_input,;t t |
---|
| 6942 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 6943 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 6944 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 6945 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 6946 | s,@builddir@,$ac_builddir,;t t |
---|
| 6947 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 6948 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 6949 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 6950 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
| 6951 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 6952 | rm -f $tmp/stdin |
---|
| 6953 | if test x"$ac_file" != x-; then |
---|
| 6954 | mv $tmp/out $ac_file |
---|
| 6955 | else |
---|
| 6956 | cat $tmp/out |
---|
| 6957 | rm -f $tmp/out |
---|
| 6958 | fi |
---|
| 6959 | |
---|
| 6960 | done |
---|
| 6961 | _ACEOF |
---|
| 6962 | |
---|
| 6963 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6964 | |
---|
| 6965 | { (exit 0); exit 0; } |
---|
| 6966 | _ACEOF |
---|
| 6967 | chmod +x $CONFIG_STATUS |
---|
| 6968 | ac_clean_files=$ac_clean_files_save |
---|
| 6969 | |
---|
| 6970 | |
---|
| 6971 | # configure is writing to config.log, and then calls config.status. |
---|
| 6972 | # config.status does its own redirection, appending to config.log. |
---|
| 6973 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 6974 | # by configure, so config.status won't be able to write to it; its |
---|
| 6975 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 6976 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 6977 | # appended to by config.status. When coming back to configure, we |
---|
| 6978 | # need to make the FD available again. |
---|
| 6979 | if test "$no_create" != yes; then |
---|
| 6980 | ac_cs_success=: |
---|
| 6981 | ac_config_status_args= |
---|
| 6982 | test "$silent" = yes && |
---|
| 6983 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 6984 | exec 5>/dev/null |
---|
| 6985 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 6986 | exec 5>>config.log |
---|
| 6987 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 6988 | # would make configure fail if this is the last instruction. |
---|
| 6989 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 6990 | fi |
---|
| 6991 | |
---|
| 6992 | |
---|