[18] | 1 | #! /bin/sh |
---|
| 2 | # Guess values for system-dependent variables and create Makefiles. |
---|
| 3 | # Generated by GNU Autoconf 2.59. |
---|
| 4 | # |
---|
| 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 6 | # This configure script is free software; the Free Software Foundation |
---|
| 7 | # gives unlimited permission to copy, distribute and modify it. |
---|
| 8 | ## --------------------- ## |
---|
| 9 | ## M4sh Initialization. ## |
---|
| 10 | ## --------------------- ## |
---|
| 11 | |
---|
| 12 | # Be Bourne compatible |
---|
| 13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 14 | emulate sh |
---|
| 15 | NULLCMD=: |
---|
| 16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 17 | # is contrary to our usage. Disable this feature. |
---|
| 18 | alias -g '${1+"$@"}'='"$@"' |
---|
| 19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 20 | set -o posix |
---|
| 21 | fi |
---|
| 22 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 23 | |
---|
| 24 | # Support unset when possible. |
---|
| 25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 26 | as_unset=unset |
---|
| 27 | else |
---|
| 28 | as_unset=false |
---|
| 29 | fi |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 33 | $as_unset ENV MAIL MAILPATH |
---|
| 34 | PS1='$ ' |
---|
| 35 | PS2='> ' |
---|
| 36 | PS4='+ ' |
---|
| 37 | |
---|
| 38 | # NLS nuisances. |
---|
| 39 | for as_var in \ |
---|
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 42 | LC_TELEPHONE LC_TIME |
---|
| 43 | do |
---|
| 44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 45 | eval $as_var=C; export $as_var |
---|
| 46 | else |
---|
| 47 | $as_unset $as_var |
---|
| 48 | fi |
---|
| 49 | done |
---|
| 50 | |
---|
| 51 | # Required to use basename. |
---|
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 53 | as_expr=expr |
---|
| 54 | else |
---|
| 55 | as_expr=false |
---|
| 56 | fi |
---|
| 57 | |
---|
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 59 | as_basename=basename |
---|
| 60 | else |
---|
| 61 | as_basename=false |
---|
| 62 | fi |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | # Name of the executable. |
---|
| 66 | as_me=`$as_basename "$0" || |
---|
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 68 | X"$0" : 'X\(//\)$' \| \ |
---|
| 69 | X"$0" : 'X\(/\)$' \| \ |
---|
| 70 | . : '\(.\)' 2>/dev/null || |
---|
| 71 | echo X/"$0" | |
---|
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 75 | s/.*/./; q'` |
---|
| 76 | |
---|
| 77 | |
---|
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 79 | # Avoid depending upon Character Ranges. |
---|
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 83 | as_cr_digits='0123456789' |
---|
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 85 | |
---|
| 86 | # The user is always right. |
---|
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 88 | echo "#! /bin/sh" >conf$$.sh |
---|
| 89 | echo "exit 0" >>conf$$.sh |
---|
| 90 | chmod +x conf$$.sh |
---|
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 92 | PATH_SEPARATOR=';' |
---|
| 93 | else |
---|
| 94 | PATH_SEPARATOR=: |
---|
| 95 | fi |
---|
| 96 | rm -f conf$$.sh |
---|
| 97 | fi |
---|
| 98 | |
---|
| 99 | |
---|
| 100 | as_lineno_1=$LINENO |
---|
| 101 | as_lineno_2=$LINENO |
---|
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 105 | # Find who we are. Look in the path if we contain no path at all |
---|
| 106 | # relative or not. |
---|
| 107 | case $0 in |
---|
| 108 | *[\\/]* ) as_myself=$0 ;; |
---|
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 110 | for as_dir in $PATH |
---|
| 111 | do |
---|
| 112 | IFS=$as_save_IFS |
---|
| 113 | test -z "$as_dir" && as_dir=. |
---|
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 115 | done |
---|
| 116 | |
---|
| 117 | ;; |
---|
| 118 | esac |
---|
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 120 | # in which case we are not to be found in the path. |
---|
| 121 | if test "x$as_myself" = x; then |
---|
| 122 | as_myself=$0 |
---|
| 123 | fi |
---|
| 124 | if test ! -f "$as_myself"; then |
---|
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
---|
| 126 | { (exit 1); exit 1; }; } |
---|
| 127 | fi |
---|
| 128 | case $CONFIG_SHELL in |
---|
| 129 | '') |
---|
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 132 | do |
---|
| 133 | IFS=$as_save_IFS |
---|
| 134 | test -z "$as_dir" && as_dir=. |
---|
| 135 | for as_base in sh bash ksh sh5; do |
---|
| 136 | case $as_dir in |
---|
| 137 | /*) |
---|
| 138 | if ("$as_dir/$as_base" -c ' |
---|
| 139 | as_lineno_1=$LINENO |
---|
| 140 | as_lineno_2=$LINENO |
---|
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 146 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 147 | export CONFIG_SHELL |
---|
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 149 | fi;; |
---|
| 150 | esac |
---|
| 151 | done |
---|
| 152 | done |
---|
| 153 | ;; |
---|
| 154 | esac |
---|
| 155 | |
---|
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 158 | # line-number line before each line; the second 'sed' does the real |
---|
| 159 | # work. The second script uses 'N' to pair each line-number line |
---|
| 160 | # with the numbered line, and appends trailing '-' during |
---|
| 161 | # substitution so that $LINENO is not a special case at line end. |
---|
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 164 | sed '=' <$as_myself | |
---|
| 165 | sed ' |
---|
| 166 | N |
---|
| 167 | s,$,-, |
---|
| 168 | : loop |
---|
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 170 | t loop |
---|
| 171 | s,-$,, |
---|
| 172 | s,^['$as_cr_digits']*\n,, |
---|
| 173 | ' >$as_me.lineno && |
---|
| 174 | chmod +x $as_me.lineno || |
---|
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
---|
| 176 | { (exit 1); exit 1; }; } |
---|
| 177 | |
---|
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 179 | # (the dirname of $[0] is not the place where we might find the |
---|
| 180 | # original and so on. Autoconf is especially sensible to this). |
---|
| 181 | . ./$as_me.lineno |
---|
| 182 | # Exit status is that of the last command. |
---|
| 183 | exit |
---|
| 184 | } |
---|
| 185 | |
---|
| 186 | |
---|
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 189 | ' ECHO_T=' ' ;; |
---|
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 192 | esac |
---|
| 193 | |
---|
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 195 | as_expr=expr |
---|
| 196 | else |
---|
| 197 | as_expr=false |
---|
| 198 | fi |
---|
| 199 | |
---|
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 201 | echo >conf$$.file |
---|
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 205 | if test -f conf$$.exe; then |
---|
| 206 | # Don't use ln at all; we don't have any links |
---|
| 207 | as_ln_s='cp -p' |
---|
| 208 | else |
---|
| 209 | as_ln_s='ln -s' |
---|
| 210 | fi |
---|
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 212 | as_ln_s=ln |
---|
| 213 | else |
---|
| 214 | as_ln_s='cp -p' |
---|
| 215 | fi |
---|
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 217 | |
---|
| 218 | if mkdir -p . 2>/dev/null; then |
---|
| 219 | as_mkdir_p=: |
---|
| 220 | else |
---|
| 221 | test -d ./-p && rmdir ./-p |
---|
| 222 | as_mkdir_p=false |
---|
| 223 | fi |
---|
| 224 | |
---|
| 225 | as_executable_p="test -f" |
---|
| 226 | |
---|
| 227 | # Sed expression to map a string onto a valid CPP name. |
---|
| 228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 229 | |
---|
| 230 | # Sed expression to map a string onto a valid variable name. |
---|
| 231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 232 | |
---|
| 233 | |
---|
| 234 | # IFS |
---|
| 235 | # We need space, tab and new line, in precisely that order. |
---|
| 236 | as_nl=' |
---|
| 237 | ' |
---|
| 238 | IFS=" $as_nl" |
---|
| 239 | |
---|
| 240 | # CDPATH. |
---|
| 241 | $as_unset CDPATH |
---|
| 242 | |
---|
| 243 | |
---|
| 244 | # Name of the host. |
---|
| 245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
---|
| 246 | # so uname gets run too. |
---|
| 247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 248 | |
---|
| 249 | exec 6>&1 |
---|
| 250 | |
---|
| 251 | # |
---|
| 252 | # Initializations. |
---|
| 253 | # |
---|
| 254 | ac_default_prefix=/usr/local |
---|
| 255 | ac_config_libobj_dir=. |
---|
| 256 | cross_compiling=no |
---|
| 257 | subdirs= |
---|
| 258 | MFLAGS= |
---|
| 259 | MAKEFLAGS= |
---|
| 260 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
| 261 | |
---|
| 262 | # Maximum number of lines to put in a shell here document. |
---|
| 263 | # This variable seems obsolete. It should probably be removed, and |
---|
| 264 | # only ac_max_sed_lines should be used. |
---|
| 265 | : ${ac_max_here_lines=38} |
---|
| 266 | |
---|
| 267 | # Identity of this package. |
---|
| 268 | PACKAGE_NAME= |
---|
| 269 | PACKAGE_TARNAME= |
---|
| 270 | PACKAGE_VERSION= |
---|
| 271 | PACKAGE_STRING= |
---|
| 272 | PACKAGE_BUGREPORT= |
---|
| 273 | |
---|
| 274 | ac_unique_file="src/parser/main.c" |
---|
| 275 | # Factoring default headers for most tests. |
---|
| 276 | ac_includes_default="\ |
---|
| 277 | #include <stdio.h> |
---|
| 278 | #if HAVE_SYS_TYPES_H |
---|
| 279 | # include <sys/types.h> |
---|
| 280 | #endif |
---|
| 281 | #if HAVE_SYS_STAT_H |
---|
| 282 | # include <sys/stat.h> |
---|
| 283 | #endif |
---|
| 284 | #if STDC_HEADERS |
---|
| 285 | # include <stdlib.h> |
---|
| 286 | # include <stddef.h> |
---|
| 287 | #else |
---|
| 288 | # if HAVE_STDLIB_H |
---|
| 289 | # include <stdlib.h> |
---|
| 290 | # endif |
---|
| 291 | #endif |
---|
| 292 | #if HAVE_STRING_H |
---|
| 293 | # if !STDC_HEADERS && HAVE_MEMORY_H |
---|
| 294 | # include <memory.h> |
---|
| 295 | # endif |
---|
| 296 | # include <string.h> |
---|
| 297 | #endif |
---|
| 298 | #if HAVE_STRINGS_H |
---|
| 299 | # include <strings.h> |
---|
| 300 | #endif |
---|
| 301 | #if HAVE_INTTYPES_H |
---|
| 302 | # include <inttypes.h> |
---|
| 303 | #else |
---|
| 304 | # if HAVE_STDINT_H |
---|
| 305 | # include <stdint.h> |
---|
| 306 | # endif |
---|
| 307 | #endif |
---|
| 308 | #if HAVE_UNISTD_H |
---|
| 309 | # include <unistd.h> |
---|
| 310 | #endif" |
---|
| 311 | |
---|
| 312 | ac_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 glulibdir gluincdir vl2mvlibdir local_srcdir AR RANLIB ac_ct_RANLIB AWK SED build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LINKER LEX LEXLIB LEX_OUTPUT_ROOT LN_S SET_MAKE YACC LIBDIRS CPP EGREP LIBOBJS LTLIBOBJS' |
---|
| 313 | ac_subst_files='' |
---|
| 314 | |
---|
| 315 | # Initialize some variables set by options. |
---|
| 316 | ac_init_help= |
---|
| 317 | ac_init_version=false |
---|
| 318 | # The variables have the same names as the options, with |
---|
| 319 | # dashes changed to underlines. |
---|
| 320 | cache_file=/dev/null |
---|
| 321 | exec_prefix=NONE |
---|
| 322 | no_create= |
---|
| 323 | no_recursion= |
---|
| 324 | prefix=NONE |
---|
| 325 | program_prefix=NONE |
---|
| 326 | program_suffix=NONE |
---|
| 327 | program_transform_name=s,x,x, |
---|
| 328 | silent= |
---|
| 329 | site= |
---|
| 330 | srcdir= |
---|
| 331 | verbose= |
---|
| 332 | x_includes=NONE |
---|
| 333 | x_libraries=NONE |
---|
| 334 | |
---|
| 335 | # Installation directory options. |
---|
| 336 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
| 337 | # and all the variables that are supposed to be based on exec_prefix |
---|
| 338 | # by default will actually change. |
---|
| 339 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
| 340 | bindir='${exec_prefix}/bin' |
---|
| 341 | sbindir='${exec_prefix}/sbin' |
---|
| 342 | libexecdir='${exec_prefix}/libexec' |
---|
| 343 | datadir='${prefix}/share' |
---|
| 344 | sysconfdir='${prefix}/etc' |
---|
| 345 | sharedstatedir='${prefix}/com' |
---|
| 346 | localstatedir='${prefix}/var' |
---|
| 347 | libdir='${exec_prefix}/lib' |
---|
| 348 | includedir='${prefix}/include' |
---|
| 349 | oldincludedir='/usr/include' |
---|
| 350 | infodir='${prefix}/info' |
---|
| 351 | mandir='${prefix}/man' |
---|
| 352 | |
---|
| 353 | ac_prev= |
---|
| 354 | for ac_option |
---|
| 355 | do |
---|
| 356 | # If the previous option needs an argument, assign it. |
---|
| 357 | if test -n "$ac_prev"; then |
---|
| 358 | eval "$ac_prev=\$ac_option" |
---|
| 359 | ac_prev= |
---|
| 360 | continue |
---|
| 361 | fi |
---|
| 362 | |
---|
| 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
---|
| 364 | |
---|
| 365 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
| 366 | |
---|
| 367 | case $ac_option in |
---|
| 368 | |
---|
| 369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
| 370 | ac_prev=bindir ;; |
---|
| 371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
| 372 | bindir=$ac_optarg ;; |
---|
| 373 | |
---|
| 374 | -build | --build | --buil | --bui | --bu) |
---|
| 375 | ac_prev=build_alias ;; |
---|
| 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
| 377 | build_alias=$ac_optarg ;; |
---|
| 378 | |
---|
| 379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
| 380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
| 381 | ac_prev=cache_file ;; |
---|
| 382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
| 383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
| 384 | cache_file=$ac_optarg ;; |
---|
| 385 | |
---|
| 386 | --config-cache | -C) |
---|
| 387 | cache_file=config.cache ;; |
---|
| 388 | |
---|
| 389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
---|
| 390 | ac_prev=datadir ;; |
---|
| 391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
---|
| 392 | | --da=*) |
---|
| 393 | datadir=$ac_optarg ;; |
---|
| 394 | |
---|
| 395 | -disable-* | --disable-*) |
---|
| 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
| 397 | # Reject names that are not valid shell variable names. |
---|
| 398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 400 | { (exit 1); exit 1; }; } |
---|
| 401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 402 | eval "enable_$ac_feature=no" ;; |
---|
| 403 | |
---|
| 404 | -enable-* | --enable-*) |
---|
| 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
| 406 | # Reject names that are not valid shell variable names. |
---|
| 407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
---|
| 409 | { (exit 1); exit 1; }; } |
---|
| 410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
---|
| 411 | case $ac_option in |
---|
| 412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 413 | *) ac_optarg=yes ;; |
---|
| 414 | esac |
---|
| 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
---|
| 416 | |
---|
| 417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
| 418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
| 419 | | --exec | --exe | --ex) |
---|
| 420 | ac_prev=exec_prefix ;; |
---|
| 421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
| 422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
| 423 | | --exec=* | --exe=* | --ex=*) |
---|
| 424 | exec_prefix=$ac_optarg ;; |
---|
| 425 | |
---|
| 426 | -gas | --gas | --ga | --g) |
---|
| 427 | # Obsolete; use --with-gas. |
---|
| 428 | with_gas=yes ;; |
---|
| 429 | |
---|
| 430 | -help | --help | --hel | --he | -h) |
---|
| 431 | ac_init_help=long ;; |
---|
| 432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
| 433 | ac_init_help=recursive ;; |
---|
| 434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
| 435 | ac_init_help=short ;; |
---|
| 436 | |
---|
| 437 | -host | --host | --hos | --ho) |
---|
| 438 | ac_prev=host_alias ;; |
---|
| 439 | -host=* | --host=* | --hos=* | --ho=*) |
---|
| 440 | host_alias=$ac_optarg ;; |
---|
| 441 | |
---|
| 442 | -includedir | --includedir | --includedi | --included | --include \ |
---|
| 443 | | --includ | --inclu | --incl | --inc) |
---|
| 444 | ac_prev=includedir ;; |
---|
| 445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
| 446 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
| 447 | includedir=$ac_optarg ;; |
---|
| 448 | |
---|
| 449 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
| 450 | ac_prev=infodir ;; |
---|
| 451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
| 452 | infodir=$ac_optarg ;; |
---|
| 453 | |
---|
| 454 | -libdir | --libdir | --libdi | --libd) |
---|
| 455 | ac_prev=libdir ;; |
---|
| 456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
| 457 | libdir=$ac_optarg ;; |
---|
| 458 | |
---|
| 459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
| 460 | | --libexe | --libex | --libe) |
---|
| 461 | ac_prev=libexecdir ;; |
---|
| 462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
| 463 | | --libexe=* | --libex=* | --libe=*) |
---|
| 464 | libexecdir=$ac_optarg ;; |
---|
| 465 | |
---|
| 466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
| 467 | | --localstate | --localstat | --localsta | --localst \ |
---|
| 468 | | --locals | --local | --loca | --loc | --lo) |
---|
| 469 | ac_prev=localstatedir ;; |
---|
| 470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
| 471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
---|
| 472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
---|
| 473 | localstatedir=$ac_optarg ;; |
---|
| 474 | |
---|
| 475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
| 476 | ac_prev=mandir ;; |
---|
| 477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
| 478 | mandir=$ac_optarg ;; |
---|
| 479 | |
---|
| 480 | -nfp | --nfp | --nf) |
---|
| 481 | # Obsolete; use --without-fp. |
---|
| 482 | with_fp=no ;; |
---|
| 483 | |
---|
| 484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
| 485 | | --no-cr | --no-c | -n) |
---|
| 486 | no_create=yes ;; |
---|
| 487 | |
---|
| 488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
| 489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
| 490 | no_recursion=yes ;; |
---|
| 491 | |
---|
| 492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
| 493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
| 494 | | --oldin | --oldi | --old | --ol | --o) |
---|
| 495 | ac_prev=oldincludedir ;; |
---|
| 496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
| 497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
| 498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
| 499 | oldincludedir=$ac_optarg ;; |
---|
| 500 | |
---|
| 501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
| 502 | ac_prev=prefix ;; |
---|
| 503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
| 504 | prefix=$ac_optarg ;; |
---|
| 505 | |
---|
| 506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
| 507 | | --program-pre | --program-pr | --program-p) |
---|
| 508 | ac_prev=program_prefix ;; |
---|
| 509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
| 510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
| 511 | program_prefix=$ac_optarg ;; |
---|
| 512 | |
---|
| 513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
| 514 | | --program-suf | --program-su | --program-s) |
---|
| 515 | ac_prev=program_suffix ;; |
---|
| 516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
| 517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
| 518 | program_suffix=$ac_optarg ;; |
---|
| 519 | |
---|
| 520 | -program-transform-name | --program-transform-name \ |
---|
| 521 | | --program-transform-nam | --program-transform-na \ |
---|
| 522 | | --program-transform-n | --program-transform- \ |
---|
| 523 | | --program-transform | --program-transfor \ |
---|
| 524 | | --program-transfo | --program-transf \ |
---|
| 525 | | --program-trans | --program-tran \ |
---|
| 526 | | --progr-tra | --program-tr | --program-t) |
---|
| 527 | ac_prev=program_transform_name ;; |
---|
| 528 | -program-transform-name=* | --program-transform-name=* \ |
---|
| 529 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
| 530 | | --program-transform-n=* | --program-transform-=* \ |
---|
| 531 | | --program-transform=* | --program-transfor=* \ |
---|
| 532 | | --program-transfo=* | --program-transf=* \ |
---|
| 533 | | --program-trans=* | --program-tran=* \ |
---|
| 534 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
| 535 | program_transform_name=$ac_optarg ;; |
---|
| 536 | |
---|
| 537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 538 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 539 | silent=yes ;; |
---|
| 540 | |
---|
| 541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
| 542 | ac_prev=sbindir ;; |
---|
| 543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
| 544 | | --sbi=* | --sb=*) |
---|
| 545 | sbindir=$ac_optarg ;; |
---|
| 546 | |
---|
| 547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
| 548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
| 549 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
| 550 | | --sha | --sh) |
---|
| 551 | ac_prev=sharedstatedir ;; |
---|
| 552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
| 553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
| 554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
| 555 | | --sha=* | --sh=*) |
---|
| 556 | sharedstatedir=$ac_optarg ;; |
---|
| 557 | |
---|
| 558 | -site | --site | --sit) |
---|
| 559 | ac_prev=site ;; |
---|
| 560 | -site=* | --site=* | --sit=*) |
---|
| 561 | site=$ac_optarg ;; |
---|
| 562 | |
---|
| 563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
| 564 | ac_prev=srcdir ;; |
---|
| 565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
| 566 | srcdir=$ac_optarg ;; |
---|
| 567 | |
---|
| 568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
| 569 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
| 570 | ac_prev=sysconfdir ;; |
---|
| 571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
| 572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
| 573 | sysconfdir=$ac_optarg ;; |
---|
| 574 | |
---|
| 575 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
| 576 | ac_prev=target_alias ;; |
---|
| 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
| 578 | target_alias=$ac_optarg ;; |
---|
| 579 | |
---|
| 580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
| 581 | verbose=yes ;; |
---|
| 582 | |
---|
| 583 | -version | --version | --versio | --versi | --vers | -V) |
---|
| 584 | ac_init_version=: ;; |
---|
| 585 | |
---|
| 586 | -with-* | --with-*) |
---|
| 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
| 588 | # Reject names that are not valid shell variable names. |
---|
| 589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 591 | { (exit 1); exit 1; }; } |
---|
| 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
---|
| 593 | case $ac_option in |
---|
| 594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
---|
| 595 | *) ac_optarg=yes ;; |
---|
| 596 | esac |
---|
| 597 | eval "with_$ac_package='$ac_optarg'" ;; |
---|
| 598 | |
---|
| 599 | -without-* | --without-*) |
---|
| 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
| 601 | # Reject names that are not valid shell variable names. |
---|
| 602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
---|
| 603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
---|
| 604 | { (exit 1); exit 1; }; } |
---|
| 605 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
---|
| 606 | eval "with_$ac_package=no" ;; |
---|
| 607 | |
---|
| 608 | --x) |
---|
| 609 | # Obsolete; use --with-x. |
---|
| 610 | with_x=yes ;; |
---|
| 611 | |
---|
| 612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
| 613 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
| 614 | ac_prev=x_includes ;; |
---|
| 615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
| 616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
| 617 | x_includes=$ac_optarg ;; |
---|
| 618 | |
---|
| 619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
| 620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
| 621 | ac_prev=x_libraries ;; |
---|
| 622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
| 623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
| 624 | x_libraries=$ac_optarg ;; |
---|
| 625 | |
---|
| 626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
---|
| 627 | Try \`$0 --help' for more information." >&2 |
---|
| 628 | { (exit 1); exit 1; }; } |
---|
| 629 | ;; |
---|
| 630 | |
---|
| 631 | *=*) |
---|
| 632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
| 633 | # Reject names that are not valid shell variable names. |
---|
| 634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
---|
| 635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
---|
| 636 | { (exit 1); exit 1; }; } |
---|
| 637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
---|
| 638 | eval "$ac_envvar='$ac_optarg'" |
---|
| 639 | export $ac_envvar ;; |
---|
| 640 | |
---|
| 641 | *) |
---|
| 642 | # FIXME: should be removed in autoconf 3.0. |
---|
| 643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
| 644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
| 645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
| 646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
---|
| 647 | ;; |
---|
| 648 | |
---|
| 649 | esac |
---|
| 650 | done |
---|
| 651 | |
---|
| 652 | if test -n "$ac_prev"; then |
---|
| 653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
| 654 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
---|
| 655 | { (exit 1); exit 1; }; } |
---|
| 656 | fi |
---|
| 657 | |
---|
| 658 | # Be sure to have absolute paths. |
---|
| 659 | for ac_var in exec_prefix prefix |
---|
| 660 | do |
---|
| 661 | eval ac_val=$`echo $ac_var` |
---|
| 662 | case $ac_val in |
---|
| 663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
---|
| 664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 665 | { (exit 1); exit 1; }; };; |
---|
| 666 | esac |
---|
| 667 | done |
---|
| 668 | |
---|
| 669 | # Be sure to have absolute paths. |
---|
| 670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
---|
| 671 | localstatedir libdir includedir oldincludedir infodir mandir |
---|
| 672 | do |
---|
| 673 | eval ac_val=$`echo $ac_var` |
---|
| 674 | case $ac_val in |
---|
| 675 | [\\/$]* | ?:[\\/]* ) ;; |
---|
| 676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
---|
| 677 | { (exit 1); exit 1; }; };; |
---|
| 678 | esac |
---|
| 679 | done |
---|
| 680 | |
---|
| 681 | # There might be people who depend on the old broken behavior: `$host' |
---|
| 682 | # used to hold the argument of --host etc. |
---|
| 683 | # FIXME: To remove some day. |
---|
| 684 | build=$build_alias |
---|
| 685 | host=$host_alias |
---|
| 686 | target=$target_alias |
---|
| 687 | |
---|
| 688 | # FIXME: To remove some day. |
---|
| 689 | if test "x$host_alias" != x; then |
---|
| 690 | if test "x$build_alias" = x; then |
---|
| 691 | cross_compiling=maybe |
---|
| 692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
---|
| 693 | If a cross compiler is detected then cross compile mode will be used." >&2 |
---|
| 694 | elif test "x$build_alias" != "x$host_alias"; then |
---|
| 695 | cross_compiling=yes |
---|
| 696 | fi |
---|
| 697 | fi |
---|
| 698 | |
---|
| 699 | ac_tool_prefix= |
---|
| 700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
| 701 | |
---|
| 702 | test "$silent" = yes && exec 6>/dev/null |
---|
| 703 | |
---|
| 704 | |
---|
| 705 | # Find the source files, if location was not specified. |
---|
| 706 | if test -z "$srcdir"; then |
---|
| 707 | ac_srcdir_defaulted=yes |
---|
| 708 | # Try the directory containing this script, then its parent. |
---|
| 709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
---|
| 710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 711 | X"$0" : 'X\(//\)[^/]' \| \ |
---|
| 712 | X"$0" : 'X\(//\)$' \| \ |
---|
| 713 | X"$0" : 'X\(/\)' \| \ |
---|
| 714 | . : '\(.\)' 2>/dev/null || |
---|
| 715 | echo X"$0" | |
---|
| 716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 718 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 719 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 720 | s/.*/./; q'` |
---|
| 721 | srcdir=$ac_confdir |
---|
| 722 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 723 | srcdir=.. |
---|
| 724 | fi |
---|
| 725 | else |
---|
| 726 | ac_srcdir_defaulted=no |
---|
| 727 | fi |
---|
| 728 | if test ! -r $srcdir/$ac_unique_file; then |
---|
| 729 | if test "$ac_srcdir_defaulted" = yes; then |
---|
| 730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
---|
| 731 | { (exit 1); exit 1; }; } |
---|
| 732 | else |
---|
| 733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
---|
| 734 | { (exit 1); exit 1; }; } |
---|
| 735 | fi |
---|
| 736 | fi |
---|
| 737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
---|
| 738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
---|
| 739 | { (exit 1); exit 1; }; } |
---|
| 740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
---|
| 741 | ac_env_build_alias_set=${build_alias+set} |
---|
| 742 | ac_env_build_alias_value=$build_alias |
---|
| 743 | ac_cv_env_build_alias_set=${build_alias+set} |
---|
| 744 | ac_cv_env_build_alias_value=$build_alias |
---|
| 745 | ac_env_host_alias_set=${host_alias+set} |
---|
| 746 | ac_env_host_alias_value=$host_alias |
---|
| 747 | ac_cv_env_host_alias_set=${host_alias+set} |
---|
| 748 | ac_cv_env_host_alias_value=$host_alias |
---|
| 749 | ac_env_target_alias_set=${target_alias+set} |
---|
| 750 | ac_env_target_alias_value=$target_alias |
---|
| 751 | ac_cv_env_target_alias_set=${target_alias+set} |
---|
| 752 | ac_cv_env_target_alias_value=$target_alias |
---|
| 753 | ac_env_CC_set=${CC+set} |
---|
| 754 | ac_env_CC_value=$CC |
---|
| 755 | ac_cv_env_CC_set=${CC+set} |
---|
| 756 | ac_cv_env_CC_value=$CC |
---|
| 757 | ac_env_CFLAGS_set=${CFLAGS+set} |
---|
| 758 | ac_env_CFLAGS_value=$CFLAGS |
---|
| 759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
---|
| 760 | ac_cv_env_CFLAGS_value=$CFLAGS |
---|
| 761 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 762 | ac_env_LDFLAGS_value=$LDFLAGS |
---|
| 763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
---|
| 764 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
---|
| 765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 766 | ac_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
---|
| 768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
---|
| 769 | ac_env_CPP_set=${CPP+set} |
---|
| 770 | ac_env_CPP_value=$CPP |
---|
| 771 | ac_cv_env_CPP_set=${CPP+set} |
---|
| 772 | ac_cv_env_CPP_value=$CPP |
---|
| 773 | |
---|
| 774 | # |
---|
| 775 | # Report the --help message. |
---|
| 776 | # |
---|
| 777 | if test "$ac_init_help" = "long"; then |
---|
| 778 | # Omit some internal or obsolete options to make the list less imposing. |
---|
| 779 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
| 780 | cat <<_ACEOF |
---|
| 781 | \`configure' configures this package to adapt to many kinds of systems. |
---|
| 782 | |
---|
| 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
| 784 | |
---|
| 785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
| 786 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
| 787 | |
---|
| 788 | Defaults for the options are specified in brackets. |
---|
| 789 | |
---|
| 790 | Configuration: |
---|
| 791 | -h, --help display this help and exit |
---|
| 792 | --help=short display options specific to this package |
---|
| 793 | --help=recursive display the short help of all the included packages |
---|
| 794 | -V, --version display version information and exit |
---|
| 795 | -q, --quiet, --silent do not print \`checking...' messages |
---|
| 796 | --cache-file=FILE cache test results in FILE [disabled] |
---|
| 797 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
| 798 | -n, --no-create do not create output files |
---|
| 799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
| 800 | |
---|
| 801 | _ACEOF |
---|
| 802 | |
---|
| 803 | cat <<_ACEOF |
---|
| 804 | Installation directories: |
---|
| 805 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
| 806 | [$ac_default_prefix] |
---|
| 807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
| 808 | [PREFIX] |
---|
| 809 | |
---|
| 810 | By default, \`make install' will install all the files in |
---|
| 811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
| 812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
| 813 | for instance \`--prefix=\$HOME'. |
---|
| 814 | |
---|
| 815 | For better control, use the options below. |
---|
| 816 | |
---|
| 817 | Fine tuning of the installation directories: |
---|
| 818 | --bindir=DIR user executables [EPREFIX/bin] |
---|
| 819 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
| 820 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
| 821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
---|
| 822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
| 823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
| 824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
| 825 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
| 826 | --includedir=DIR C header files [PREFIX/include] |
---|
| 827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
| 828 | --infodir=DIR info documentation [PREFIX/info] |
---|
| 829 | --mandir=DIR man documentation [PREFIX/man] |
---|
| 830 | _ACEOF |
---|
| 831 | |
---|
| 832 | cat <<\_ACEOF |
---|
| 833 | |
---|
| 834 | System types: |
---|
| 835 | --build=BUILD configure for building on BUILD [guessed] |
---|
| 836 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
| 837 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
| 838 | _ACEOF |
---|
| 839 | fi |
---|
| 840 | |
---|
| 841 | if test -n "$ac_init_help"; then |
---|
| 842 | |
---|
| 843 | cat <<\_ACEOF |
---|
| 844 | |
---|
| 845 | Optional Features: |
---|
| 846 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
| 847 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
| 848 | --enable-gcc Allow use of gcc if available |
---|
| 849 | --enable-64 Use 64-bit pointers on 64-bit Alpha machines |
---|
| 850 | |
---|
| 851 | Optional Packages: |
---|
| 852 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
| 853 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
| 854 | --with-glu-libdir=<libdir> Specify directories to search for the GLU library. Expects to find <libdir>/libglu.a |
---|
| 855 | --with-glu-incdir=<incdir> Specify directories to search for the GLU headers |
---|
| 856 | --with-vl2mv-libdir=<libdir> Specify directories to search for the vl2mv |
---|
| 857 | library and headers. Defaults to \".\". |
---|
| 858 | Expects to find <libdir>/libvl2mv.a |
---|
| 859 | --with-local-srcdir=<srcdir> Specify the root directory to search for |
---|
| 860 | source for packages (the PKGS list). |
---|
| 861 | Expects to find, e.g., <srcdir>/parser/main.c |
---|
| 862 | --with-comp-mode=<mode> Specify a special compilation mode: |
---|
| 863 | optimize (the default): Produce optimized |
---|
| 864 | code, with symbol table information |
---|
| 865 | if supported on the platform/compiler, |
---|
| 866 | and without asserts. |
---|
| 867 | debug: Produce unoptimized code with symbol table |
---|
| 868 | information and asserts enabled |
---|
| 869 | purify: Unoptimized code linked with purify |
---|
| 870 | quantify: Optimized code without asserts |
---|
| 871 | linked with quantify |
---|
| 872 | |
---|
| 873 | Some influential environment variables: |
---|
| 874 | CC C compiler command |
---|
| 875 | CFLAGS C compiler flags |
---|
| 876 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
| 877 | nonstandard directory <lib dir> |
---|
| 878 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
---|
| 879 | headers in a nonstandard directory <include dir> |
---|
| 880 | CPP C preprocessor |
---|
| 881 | |
---|
| 882 | Use these variables to override the choices made by `configure' or to help |
---|
| 883 | it to find libraries and programs with nonstandard names/locations. |
---|
| 884 | |
---|
| 885 | _ACEOF |
---|
| 886 | fi |
---|
| 887 | |
---|
| 888 | if test "$ac_init_help" = "recursive"; then |
---|
| 889 | # If there are subdirs, report their specific --help. |
---|
| 890 | ac_popdir=`pwd` |
---|
| 891 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
| 892 | test -d $ac_dir || continue |
---|
| 893 | ac_builddir=. |
---|
| 894 | |
---|
| 895 | if test "$ac_dir" != .; then |
---|
| 896 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 897 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 898 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 899 | else |
---|
| 900 | ac_dir_suffix= ac_top_builddir= |
---|
| 901 | fi |
---|
| 902 | |
---|
| 903 | case $srcdir in |
---|
| 904 | .) # No --srcdir option. We are building in place. |
---|
| 905 | ac_srcdir=. |
---|
| 906 | if test -z "$ac_top_builddir"; then |
---|
| 907 | ac_top_srcdir=. |
---|
| 908 | else |
---|
| 909 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 910 | fi ;; |
---|
| 911 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 912 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 913 | ac_top_srcdir=$srcdir ;; |
---|
| 914 | *) # Relative path. |
---|
| 915 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 916 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 917 | esac |
---|
| 918 | |
---|
| 919 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 920 | # the directories may not exist. |
---|
| 921 | case `pwd` in |
---|
| 922 | .) ac_abs_builddir="$ac_dir";; |
---|
| 923 | *) |
---|
| 924 | case "$ac_dir" in |
---|
| 925 | .) ac_abs_builddir=`pwd`;; |
---|
| 926 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 927 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 928 | esac;; |
---|
| 929 | esac |
---|
| 930 | case $ac_abs_builddir in |
---|
| 931 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 932 | *) |
---|
| 933 | case ${ac_top_builddir}. in |
---|
| 934 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 935 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 936 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 937 | esac;; |
---|
| 938 | esac |
---|
| 939 | case $ac_abs_builddir in |
---|
| 940 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 941 | *) |
---|
| 942 | case $ac_srcdir in |
---|
| 943 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 944 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 945 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 946 | esac;; |
---|
| 947 | esac |
---|
| 948 | case $ac_abs_builddir in |
---|
| 949 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 950 | *) |
---|
| 951 | case $ac_top_srcdir in |
---|
| 952 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 953 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 954 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 955 | esac;; |
---|
| 956 | esac |
---|
| 957 | |
---|
| 958 | cd $ac_dir |
---|
| 959 | # Check for guested configure; otherwise get Cygnus style configure. |
---|
| 960 | if test -f $ac_srcdir/configure.gnu; then |
---|
| 961 | echo |
---|
| 962 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
---|
| 963 | elif test -f $ac_srcdir/configure; then |
---|
| 964 | echo |
---|
| 965 | $SHELL $ac_srcdir/configure --help=recursive |
---|
| 966 | elif test -f $ac_srcdir/configure.ac || |
---|
| 967 | test -f $ac_srcdir/configure.in; then |
---|
| 968 | echo |
---|
| 969 | $ac_configure --help |
---|
| 970 | else |
---|
| 971 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
| 972 | fi |
---|
| 973 | cd $ac_popdir |
---|
| 974 | done |
---|
| 975 | fi |
---|
| 976 | |
---|
| 977 | test -n "$ac_init_help" && exit 0 |
---|
| 978 | if $ac_init_version; then |
---|
| 979 | cat <<\_ACEOF |
---|
| 980 | |
---|
| 981 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 982 | This configure script is free software; the Free Software Foundation |
---|
| 983 | gives unlimited permission to copy, distribute and modify it. |
---|
| 984 | _ACEOF |
---|
| 985 | exit 0 |
---|
| 986 | fi |
---|
| 987 | exec 5>config.log |
---|
| 988 | cat >&5 <<_ACEOF |
---|
| 989 | This file contains any messages produced by compilers while |
---|
| 990 | running configure, to aid debugging if configure makes a mistake. |
---|
| 991 | |
---|
| 992 | It was created by $as_me, which was |
---|
| 993 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 994 | |
---|
| 995 | $ $0 $@ |
---|
| 996 | |
---|
| 997 | _ACEOF |
---|
| 998 | { |
---|
| 999 | cat <<_ASUNAME |
---|
| 1000 | ## --------- ## |
---|
| 1001 | ## Platform. ## |
---|
| 1002 | ## --------- ## |
---|
| 1003 | |
---|
| 1004 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
| 1005 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
| 1006 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
| 1007 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
| 1008 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
| 1009 | |
---|
| 1010 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
| 1011 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
| 1012 | |
---|
| 1013 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
| 1014 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
| 1015 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
| 1016 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
---|
| 1017 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
| 1018 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
| 1019 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
| 1020 | |
---|
| 1021 | _ASUNAME |
---|
| 1022 | |
---|
| 1023 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1024 | for as_dir in $PATH |
---|
| 1025 | do |
---|
| 1026 | IFS=$as_save_IFS |
---|
| 1027 | test -z "$as_dir" && as_dir=. |
---|
| 1028 | echo "PATH: $as_dir" |
---|
| 1029 | done |
---|
| 1030 | |
---|
| 1031 | } >&5 |
---|
| 1032 | |
---|
| 1033 | cat >&5 <<_ACEOF |
---|
| 1034 | |
---|
| 1035 | |
---|
| 1036 | ## ----------- ## |
---|
| 1037 | ## Core tests. ## |
---|
| 1038 | ## ----------- ## |
---|
| 1039 | |
---|
| 1040 | _ACEOF |
---|
| 1041 | |
---|
| 1042 | |
---|
| 1043 | # Keep a trace of the command line. |
---|
| 1044 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
| 1045 | # Strip out --silent because we don't want to record it for future runs. |
---|
| 1046 | # Also quote any args containing shell meta-characters. |
---|
| 1047 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
| 1048 | ac_configure_args= |
---|
| 1049 | ac_configure_args0= |
---|
| 1050 | ac_configure_args1= |
---|
| 1051 | ac_sep= |
---|
| 1052 | ac_must_keep_next=false |
---|
| 1053 | for ac_pass in 1 2 |
---|
| 1054 | do |
---|
| 1055 | for ac_arg |
---|
| 1056 | do |
---|
| 1057 | case $ac_arg in |
---|
| 1058 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
| 1059 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 1060 | | -silent | --silent | --silen | --sile | --sil) |
---|
| 1061 | continue ;; |
---|
| 1062 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1063 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1064 | esac |
---|
| 1065 | case $ac_pass in |
---|
| 1066 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
---|
| 1067 | 2) |
---|
| 1068 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
---|
| 1069 | if test $ac_must_keep_next = true; then |
---|
| 1070 | ac_must_keep_next=false # Got value, back to normal. |
---|
| 1071 | else |
---|
| 1072 | case $ac_arg in |
---|
| 1073 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
| 1074 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
| 1075 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
| 1076 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
| 1077 | case "$ac_configure_args0 " in |
---|
| 1078 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
| 1079 | esac |
---|
| 1080 | ;; |
---|
| 1081 | -* ) ac_must_keep_next=true ;; |
---|
| 1082 | esac |
---|
| 1083 | fi |
---|
| 1084 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
---|
| 1085 | # Get rid of the leading space. |
---|
| 1086 | ac_sep=" " |
---|
| 1087 | ;; |
---|
| 1088 | esac |
---|
| 1089 | done |
---|
| 1090 | done |
---|
| 1091 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
---|
| 1092 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
---|
| 1093 | |
---|
| 1094 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
| 1095 | # config.log. We remove comments because anyway the quotes in there |
---|
| 1096 | # would cause problems or look ugly. |
---|
| 1097 | # WARNING: Be sure not to use single quotes in there, as some shells, |
---|
| 1098 | # such as our DU 5.0 friend, will then `close' the trap. |
---|
| 1099 | trap 'exit_status=$? |
---|
| 1100 | # Save into config.log some information that might help in debugging. |
---|
| 1101 | { |
---|
| 1102 | echo |
---|
| 1103 | |
---|
| 1104 | cat <<\_ASBOX |
---|
| 1105 | ## ---------------- ## |
---|
| 1106 | ## Cache variables. ## |
---|
| 1107 | ## ---------------- ## |
---|
| 1108 | _ASBOX |
---|
| 1109 | echo |
---|
| 1110 | # The following way of writing the cache mishandles newlines in values, |
---|
| 1111 | { |
---|
| 1112 | (set) 2>&1 | |
---|
| 1113 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
---|
| 1114 | *ac_space=\ *) |
---|
| 1115 | sed -n \ |
---|
| 1116 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
---|
| 1117 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
---|
| 1118 | ;; |
---|
| 1119 | *) |
---|
| 1120 | sed -n \ |
---|
| 1121 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 1122 | ;; |
---|
| 1123 | esac; |
---|
| 1124 | } |
---|
| 1125 | echo |
---|
| 1126 | |
---|
| 1127 | cat <<\_ASBOX |
---|
| 1128 | ## ----------------- ## |
---|
| 1129 | ## Output variables. ## |
---|
| 1130 | ## ----------------- ## |
---|
| 1131 | _ASBOX |
---|
| 1132 | echo |
---|
| 1133 | for ac_var in $ac_subst_vars |
---|
| 1134 | do |
---|
| 1135 | eval ac_val=$`echo $ac_var` |
---|
| 1136 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1137 | done | sort |
---|
| 1138 | echo |
---|
| 1139 | |
---|
| 1140 | if test -n "$ac_subst_files"; then |
---|
| 1141 | cat <<\_ASBOX |
---|
| 1142 | ## ------------- ## |
---|
| 1143 | ## Output files. ## |
---|
| 1144 | ## ------------- ## |
---|
| 1145 | _ASBOX |
---|
| 1146 | echo |
---|
| 1147 | for ac_var in $ac_subst_files |
---|
| 1148 | do |
---|
| 1149 | eval ac_val=$`echo $ac_var` |
---|
| 1150 | echo "$ac_var='"'"'$ac_val'"'"'" |
---|
| 1151 | done | sort |
---|
| 1152 | echo |
---|
| 1153 | fi |
---|
| 1154 | |
---|
| 1155 | if test -s confdefs.h; then |
---|
| 1156 | cat <<\_ASBOX |
---|
| 1157 | ## ----------- ## |
---|
| 1158 | ## confdefs.h. ## |
---|
| 1159 | ## ----------- ## |
---|
| 1160 | _ASBOX |
---|
| 1161 | echo |
---|
| 1162 | sed "/^$/d" confdefs.h | sort |
---|
| 1163 | echo |
---|
| 1164 | fi |
---|
| 1165 | test "$ac_signal" != 0 && |
---|
| 1166 | echo "$as_me: caught signal $ac_signal" |
---|
| 1167 | echo "$as_me: exit $exit_status" |
---|
| 1168 | } >&5 |
---|
| 1169 | rm -f core *.core && |
---|
| 1170 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
---|
| 1171 | exit $exit_status |
---|
| 1172 | ' 0 |
---|
| 1173 | for ac_signal in 1 2 13 15; do |
---|
| 1174 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
---|
| 1175 | done |
---|
| 1176 | ac_signal=0 |
---|
| 1177 | |
---|
| 1178 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
| 1179 | rm -rf conftest* confdefs.h |
---|
| 1180 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
---|
| 1181 | echo >confdefs.h |
---|
| 1182 | |
---|
| 1183 | # Predefined preprocessor variables. |
---|
| 1184 | |
---|
| 1185 | cat >>confdefs.h <<_ACEOF |
---|
| 1186 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
| 1187 | _ACEOF |
---|
| 1188 | |
---|
| 1189 | |
---|
| 1190 | cat >>confdefs.h <<_ACEOF |
---|
| 1191 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
| 1192 | _ACEOF |
---|
| 1193 | |
---|
| 1194 | |
---|
| 1195 | cat >>confdefs.h <<_ACEOF |
---|
| 1196 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
| 1197 | _ACEOF |
---|
| 1198 | |
---|
| 1199 | |
---|
| 1200 | cat >>confdefs.h <<_ACEOF |
---|
| 1201 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
| 1202 | _ACEOF |
---|
| 1203 | |
---|
| 1204 | |
---|
| 1205 | cat >>confdefs.h <<_ACEOF |
---|
| 1206 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
| 1207 | _ACEOF |
---|
| 1208 | |
---|
| 1209 | |
---|
| 1210 | # Let the site file select an alternate cache file if it wants to. |
---|
| 1211 | # Prefer explicitly selected file to automatically selected ones. |
---|
| 1212 | if test -z "$CONFIG_SITE"; then |
---|
| 1213 | if test "x$prefix" != xNONE; then |
---|
| 1214 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
---|
| 1215 | else |
---|
| 1216 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
---|
| 1217 | fi |
---|
| 1218 | fi |
---|
| 1219 | for ac_site_file in $CONFIG_SITE; do |
---|
| 1220 | if test -r "$ac_site_file"; then |
---|
| 1221 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
---|
| 1222 | echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
| 1223 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
| 1224 | . "$ac_site_file" |
---|
| 1225 | fi |
---|
| 1226 | done |
---|
| 1227 | |
---|
| 1228 | if test -r "$cache_file"; then |
---|
| 1229 | # Some versions of bash will fail to source /dev/null (special |
---|
| 1230 | # files actually), so we avoid doing that. |
---|
| 1231 | if test -f "$cache_file"; then |
---|
| 1232 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
---|
| 1233 | echo "$as_me: loading cache $cache_file" >&6;} |
---|
| 1234 | case $cache_file in |
---|
| 1235 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
---|
| 1236 | *) . ./$cache_file;; |
---|
| 1237 | esac |
---|
| 1238 | fi |
---|
| 1239 | else |
---|
| 1240 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
---|
| 1241 | echo "$as_me: creating cache $cache_file" >&6;} |
---|
| 1242 | >$cache_file |
---|
| 1243 | fi |
---|
| 1244 | |
---|
| 1245 | # Check that the precious variables saved in the cache have kept the same |
---|
| 1246 | # value. |
---|
| 1247 | ac_cache_corrupted=false |
---|
| 1248 | for ac_var in `(set) 2>&1 | |
---|
| 1249 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
---|
| 1250 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
| 1251 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
| 1252 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
---|
| 1253 | eval ac_new_val="\$ac_env_${ac_var}_value" |
---|
| 1254 | case $ac_old_set,$ac_new_set in |
---|
| 1255 | set,) |
---|
| 1256 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
| 1257 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
| 1258 | ac_cache_corrupted=: ;; |
---|
| 1259 | ,set) |
---|
| 1260 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
---|
| 1261 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
| 1262 | ac_cache_corrupted=: ;; |
---|
| 1263 | ,);; |
---|
| 1264 | *) |
---|
| 1265 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
| 1266 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
| 1267 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
| 1268 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
---|
| 1269 | echo "$as_me: former value: $ac_old_val" >&2;} |
---|
| 1270 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
---|
| 1271 | echo "$as_me: current value: $ac_new_val" >&2;} |
---|
| 1272 | ac_cache_corrupted=: |
---|
| 1273 | fi;; |
---|
| 1274 | esac |
---|
| 1275 | # Pass precious variables to config.status. |
---|
| 1276 | if test "$ac_new_set" = set; then |
---|
| 1277 | case $ac_new_val in |
---|
| 1278 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
---|
| 1279 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
| 1280 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
| 1281 | esac |
---|
| 1282 | case " $ac_configure_args " in |
---|
| 1283 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
| 1284 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
---|
| 1285 | esac |
---|
| 1286 | fi |
---|
| 1287 | done |
---|
| 1288 | if $ac_cache_corrupted; then |
---|
| 1289 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
---|
| 1290 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
| 1291 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
---|
| 1292 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
---|
| 1293 | { (exit 1); exit 1; }; } |
---|
| 1294 | fi |
---|
| 1295 | |
---|
| 1296 | ac_ext=c |
---|
| 1297 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1301 | |
---|
| 1302 | |
---|
| 1303 | |
---|
| 1304 | |
---|
| 1305 | |
---|
| 1306 | |
---|
| 1307 | |
---|
| 1308 | |
---|
| 1309 | |
---|
| 1310 | |
---|
| 1311 | |
---|
| 1312 | |
---|
| 1313 | |
---|
| 1314 | |
---|
| 1315 | |
---|
| 1316 | |
---|
| 1317 | |
---|
| 1318 | |
---|
| 1319 | |
---|
| 1320 | |
---|
| 1321 | # Look for install.sh, config.guess, and config.sub in the "helpers" dir |
---|
| 1322 | ac_aux_dir= |
---|
| 1323 | for ac_dir in helpers $srcdir/helpers; do |
---|
| 1324 | if test -f $ac_dir/install-sh; then |
---|
| 1325 | ac_aux_dir=$ac_dir |
---|
| 1326 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
| 1327 | break |
---|
| 1328 | elif test -f $ac_dir/install.sh; then |
---|
| 1329 | ac_aux_dir=$ac_dir |
---|
| 1330 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
| 1331 | break |
---|
| 1332 | elif test -f $ac_dir/shtool; then |
---|
| 1333 | ac_aux_dir=$ac_dir |
---|
| 1334 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
| 1335 | break |
---|
| 1336 | fi |
---|
| 1337 | done |
---|
| 1338 | if test -z "$ac_aux_dir"; then |
---|
| 1339 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in helpers $srcdir/helpers" >&5 |
---|
| 1340 | echo "$as_me: error: cannot find install-sh or install.sh in helpers $srcdir/helpers" >&2;} |
---|
| 1341 | { (exit 1); exit 1; }; } |
---|
| 1342 | fi |
---|
| 1343 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
---|
| 1344 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
---|
| 1345 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
---|
| 1346 | |
---|
| 1347 | |
---|
| 1348 | #---------------------------------------------------------------------- |
---|
| 1349 | # Configuration options |
---|
| 1350 | #---------------------------------------------------------------------- |
---|
| 1351 | |
---|
| 1352 | # Give the configurer a chance to set the location of the GLU tree |
---|
| 1353 | |
---|
| 1354 | |
---|
| 1355 | |
---|
| 1356 | # Check whether --with-glu-libdir or --without-glu-libdir was given. |
---|
| 1357 | if test "${with_glu_libdir+set}" = set; then |
---|
| 1358 | withval="$with_glu_libdir" |
---|
| 1359 | glulibdir=$withval |
---|
| 1360 | else |
---|
| 1361 | glulibdir="" |
---|
| 1362 | fi; |
---|
| 1363 | |
---|
| 1364 | |
---|
| 1365 | |
---|
| 1366 | # Check whether --with-glu-incdir or --without-glu-incdir was given. |
---|
| 1367 | if test "${with_glu_incdir+set}" = set; then |
---|
| 1368 | withval="$with_glu_incdir" |
---|
| 1369 | gluincdir=$withval |
---|
| 1370 | else |
---|
| 1371 | gluincdir="" |
---|
| 1372 | fi; |
---|
| 1373 | |
---|
| 1374 | # Give the configurer a chance to set a different location for the VIS |
---|
| 1375 | # headers and library |
---|
| 1376 | |
---|
| 1377 | |
---|
| 1378 | |
---|
| 1379 | # Check whether --with-vl2mv-libdir or --without-vl2mv-libdir was given. |
---|
| 1380 | if test "${with_vl2mv_libdir+set}" = set; then |
---|
| 1381 | withval="$with_vl2mv_libdir" |
---|
| 1382 | vl2mvlibdir=$withval |
---|
| 1383 | else |
---|
| 1384 | vl2mvlibdir="." |
---|
| 1385 | fi; |
---|
| 1386 | |
---|
| 1387 | # Give the configurer a chance to set a different location for the vl2mv |
---|
| 1388 | # source. When specified, "srcdir" points to "master" source, and |
---|
| 1389 | # "local_srcdir" points to the source under local development. |
---|
| 1390 | |
---|
| 1391 | |
---|
| 1392 | |
---|
| 1393 | # Check whether --with-local-srcdir or --without-local-srcdir was given. |
---|
| 1394 | if test "${with_local_srcdir+set}" = set; then |
---|
| 1395 | withval="$with_local_srcdir" |
---|
| 1396 | local_srcdir=$withval |
---|
| 1397 | else |
---|
| 1398 | local_srcdir=$srcdir |
---|
| 1399 | fi; |
---|
| 1400 | |
---|
| 1401 | |
---|
| 1402 | #---------------------------------------------------------------------- |
---|
| 1403 | # Checks for programs we need |
---|
| 1404 | #---------------------------------------------------------------------- |
---|
| 1405 | |
---|
| 1406 | # Extract the first word of "ar", so it can be a program name with args. |
---|
| 1407 | set dummy ar; 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_path_AR+set}" = set; then |
---|
| 1411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1412 | else |
---|
| 1413 | case $AR in |
---|
| 1414 | [\\/]* | ?:[\\/]*) |
---|
| 1415 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
---|
| 1416 | ;; |
---|
| 1417 | *) |
---|
| 1418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1419 | for as_dir in $PATH |
---|
| 1420 | do |
---|
| 1421 | IFS=$as_save_IFS |
---|
| 1422 | test -z "$as_dir" && as_dir=. |
---|
| 1423 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1424 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1425 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
---|
| 1426 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1427 | break 2 |
---|
| 1428 | fi |
---|
| 1429 | done |
---|
| 1430 | done |
---|
| 1431 | |
---|
| 1432 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" |
---|
| 1433 | ;; |
---|
| 1434 | esac |
---|
| 1435 | fi |
---|
| 1436 | AR=$ac_cv_path_AR |
---|
| 1437 | |
---|
| 1438 | if test -n "$AR"; then |
---|
| 1439 | echo "$as_me:$LINENO: result: $AR" >&5 |
---|
| 1440 | echo "${ECHO_T}$AR" >&6 |
---|
| 1441 | else |
---|
| 1442 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1443 | echo "${ECHO_T}no" >&6 |
---|
| 1444 | fi |
---|
| 1445 | |
---|
| 1446 | if test -n "$ac_tool_prefix"; then |
---|
| 1447 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
| 1448 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
| 1449 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1450 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1451 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
| 1452 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1453 | else |
---|
| 1454 | if test -n "$RANLIB"; then |
---|
| 1455 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 1456 | else |
---|
| 1457 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1458 | for as_dir in $PATH |
---|
| 1459 | do |
---|
| 1460 | IFS=$as_save_IFS |
---|
| 1461 | test -z "$as_dir" && as_dir=. |
---|
| 1462 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1463 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1464 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
| 1465 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1466 | break 2 |
---|
| 1467 | fi |
---|
| 1468 | done |
---|
| 1469 | done |
---|
| 1470 | |
---|
| 1471 | fi |
---|
| 1472 | fi |
---|
| 1473 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 1474 | if test -n "$RANLIB"; then |
---|
| 1475 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
| 1476 | echo "${ECHO_T}$RANLIB" >&6 |
---|
| 1477 | else |
---|
| 1478 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1479 | echo "${ECHO_T}no" >&6 |
---|
| 1480 | fi |
---|
| 1481 | |
---|
| 1482 | fi |
---|
| 1483 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
| 1484 | ac_ct_RANLIB=$RANLIB |
---|
| 1485 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 1486 | set dummy ranlib; ac_word=$2 |
---|
| 1487 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1488 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1489 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
| 1490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1491 | else |
---|
| 1492 | if test -n "$ac_ct_RANLIB"; then |
---|
| 1493 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
| 1494 | else |
---|
| 1495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1496 | for as_dir in $PATH |
---|
| 1497 | do |
---|
| 1498 | IFS=$as_save_IFS |
---|
| 1499 | test -z "$as_dir" && as_dir=. |
---|
| 1500 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1501 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1502 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
| 1503 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1504 | break 2 |
---|
| 1505 | fi |
---|
| 1506 | done |
---|
| 1507 | done |
---|
| 1508 | |
---|
| 1509 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
| 1510 | fi |
---|
| 1511 | fi |
---|
| 1512 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
| 1513 | if test -n "$ac_ct_RANLIB"; then |
---|
| 1514 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
| 1515 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
| 1516 | else |
---|
| 1517 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1518 | echo "${ECHO_T}no" >&6 |
---|
| 1519 | fi |
---|
| 1520 | |
---|
| 1521 | RANLIB=$ac_ct_RANLIB |
---|
| 1522 | else |
---|
| 1523 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 1524 | fi |
---|
| 1525 | |
---|
| 1526 | for ac_prog in gawk mawk nawk awk |
---|
| 1527 | do |
---|
| 1528 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 1529 | set dummy $ac_prog; ac_word=$2 |
---|
| 1530 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1531 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1532 | if test "${ac_cv_prog_AWK+set}" = set; then |
---|
| 1533 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1534 | else |
---|
| 1535 | if test -n "$AWK"; then |
---|
| 1536 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
---|
| 1537 | else |
---|
| 1538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1539 | for as_dir in $PATH |
---|
| 1540 | do |
---|
| 1541 | IFS=$as_save_IFS |
---|
| 1542 | test -z "$as_dir" && as_dir=. |
---|
| 1543 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1544 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1545 | ac_cv_prog_AWK="$ac_prog" |
---|
| 1546 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1547 | break 2 |
---|
| 1548 | fi |
---|
| 1549 | done |
---|
| 1550 | done |
---|
| 1551 | |
---|
| 1552 | fi |
---|
| 1553 | fi |
---|
| 1554 | AWK=$ac_cv_prog_AWK |
---|
| 1555 | if test -n "$AWK"; then |
---|
| 1556 | echo "$as_me:$LINENO: result: $AWK" >&5 |
---|
| 1557 | echo "${ECHO_T}$AWK" >&6 |
---|
| 1558 | else |
---|
| 1559 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1560 | echo "${ECHO_T}no" >&6 |
---|
| 1561 | fi |
---|
| 1562 | |
---|
| 1563 | test -n "$AWK" && break |
---|
| 1564 | done |
---|
| 1565 | |
---|
| 1566 | # Extract the first word of "sed", so it can be a program name with args. |
---|
| 1567 | set dummy sed; ac_word=$2 |
---|
| 1568 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1569 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1570 | if test "${ac_cv_path_SED+set}" = set; then |
---|
| 1571 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1572 | else |
---|
| 1573 | case $SED in |
---|
| 1574 | [\\/]* | ?:[\\/]*) |
---|
| 1575 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
---|
| 1576 | ;; |
---|
| 1577 | *) |
---|
| 1578 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1579 | for as_dir in $PATH |
---|
| 1580 | do |
---|
| 1581 | IFS=$as_save_IFS |
---|
| 1582 | test -z "$as_dir" && as_dir=. |
---|
| 1583 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1584 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1585 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
---|
| 1586 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1587 | break 2 |
---|
| 1588 | fi |
---|
| 1589 | done |
---|
| 1590 | done |
---|
| 1591 | |
---|
| 1592 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
---|
| 1593 | ;; |
---|
| 1594 | esac |
---|
| 1595 | fi |
---|
| 1596 | SED=$ac_cv_path_SED |
---|
| 1597 | |
---|
| 1598 | if test -n "$SED"; then |
---|
| 1599 | echo "$as_me:$LINENO: result: $SED" >&5 |
---|
| 1600 | echo "${ECHO_T}$SED" >&6 |
---|
| 1601 | else |
---|
| 1602 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1603 | echo "${ECHO_T}no" >&6 |
---|
| 1604 | fi |
---|
| 1605 | |
---|
| 1606 | |
---|
| 1607 | # Make sure we can run config.sub. |
---|
| 1608 | $ac_config_sub sun4 >/dev/null 2>&1 || |
---|
| 1609 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
---|
| 1610 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
---|
| 1611 | { (exit 1); exit 1; }; } |
---|
| 1612 | |
---|
| 1613 | echo "$as_me:$LINENO: checking build system type" >&5 |
---|
| 1614 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
---|
| 1615 | if test "${ac_cv_build+set}" = set; then |
---|
| 1616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1617 | else |
---|
| 1618 | ac_cv_build_alias=$build_alias |
---|
| 1619 | test -z "$ac_cv_build_alias" && |
---|
| 1620 | ac_cv_build_alias=`$ac_config_guess` |
---|
| 1621 | test -z "$ac_cv_build_alias" && |
---|
| 1622 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
---|
| 1623 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
---|
| 1624 | { (exit 1); exit 1; }; } |
---|
| 1625 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
---|
| 1626 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
---|
| 1627 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
---|
| 1628 | { (exit 1); exit 1; }; } |
---|
| 1629 | |
---|
| 1630 | fi |
---|
| 1631 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
---|
| 1632 | echo "${ECHO_T}$ac_cv_build" >&6 |
---|
| 1633 | build=$ac_cv_build |
---|
| 1634 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1635 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1636 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1637 | |
---|
| 1638 | |
---|
| 1639 | echo "$as_me:$LINENO: checking host system type" >&5 |
---|
| 1640 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
---|
| 1641 | if test "${ac_cv_host+set}" = set; then |
---|
| 1642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1643 | else |
---|
| 1644 | ac_cv_host_alias=$host_alias |
---|
| 1645 | test -z "$ac_cv_host_alias" && |
---|
| 1646 | ac_cv_host_alias=$ac_cv_build_alias |
---|
| 1647 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
---|
| 1648 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
---|
| 1649 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
---|
| 1650 | { (exit 1); exit 1; }; } |
---|
| 1651 | |
---|
| 1652 | fi |
---|
| 1653 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
---|
| 1654 | echo "${ECHO_T}$ac_cv_host" >&6 |
---|
| 1655 | host=$ac_cv_host |
---|
| 1656 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1657 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1658 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1659 | |
---|
| 1660 | |
---|
| 1661 | echo "$as_me:$LINENO: checking target system type" >&5 |
---|
| 1662 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
---|
| 1663 | if test "${ac_cv_target+set}" = set; then |
---|
| 1664 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1665 | else |
---|
| 1666 | ac_cv_target_alias=$target_alias |
---|
| 1667 | test "x$ac_cv_target_alias" = "x" && |
---|
| 1668 | ac_cv_target_alias=$ac_cv_host_alias |
---|
| 1669 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
---|
| 1670 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
---|
| 1671 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
---|
| 1672 | { (exit 1); exit 1; }; } |
---|
| 1673 | |
---|
| 1674 | fi |
---|
| 1675 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
---|
| 1676 | echo "${ECHO_T}$ac_cv_target" >&6 |
---|
| 1677 | target=$ac_cv_target |
---|
| 1678 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
---|
| 1679 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
---|
| 1680 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
---|
| 1681 | |
---|
| 1682 | |
---|
| 1683 | # The aliases save the names the user supplied, while $host etc. |
---|
| 1684 | # will get canonicalized. |
---|
| 1685 | test -n "$target_alias" && |
---|
| 1686 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
| 1687 | NONENONEs,x,x, && |
---|
| 1688 | program_prefix=${target_alias}- |
---|
| 1689 | |
---|
| 1690 | |
---|
| 1691 | # Balakrisha Kumthekar (kumtheka@colorado.edu): making a special case |
---|
| 1692 | # for ultrix install, since its annoying about setting groupids. |
---|
| 1693 | case "$target" in |
---|
| 1694 | mips-dec-ultrix*) |
---|
| 1695 | INSTALL="helpers/install-sh -c" |
---|
| 1696 | INSTALL_PROGRAM="\${INSTALL}" |
---|
| 1697 | INSTALL_DATA="\${INSTALL} -m 644";; |
---|
| 1698 | |
---|
| 1699 | *) |
---|
| 1700 | # Find a good install program. We prefer a C program (faster), |
---|
| 1701 | # so one script is as good as another. But avoid the broken or |
---|
| 1702 | # incompatible versions: |
---|
| 1703 | # SysV /etc/install, /usr/sbin/install |
---|
| 1704 | # SunOS /usr/etc/install |
---|
| 1705 | # IRIX /sbin/install |
---|
| 1706 | # AIX /bin/install |
---|
| 1707 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
| 1708 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
| 1709 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
| 1710 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
| 1711 | # OS/2's system install, which has a completely different semantic |
---|
| 1712 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
| 1713 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
---|
| 1714 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
---|
| 1715 | if test -z "$INSTALL"; then |
---|
| 1716 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1718 | else |
---|
| 1719 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1720 | for as_dir in $PATH |
---|
| 1721 | do |
---|
| 1722 | IFS=$as_save_IFS |
---|
| 1723 | test -z "$as_dir" && as_dir=. |
---|
| 1724 | # Account for people who put trailing slashes in PATH elements. |
---|
| 1725 | case $as_dir/ in |
---|
| 1726 | ./ | .// | /cC/* | \ |
---|
| 1727 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
| 1728 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
---|
| 1729 | /usr/ucb/* ) ;; |
---|
| 1730 | *) |
---|
| 1731 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
| 1732 | # Don't use installbsd from OSF since it installs stuff as root |
---|
| 1733 | # by default. |
---|
| 1734 | for ac_prog in ginstall scoinst install; do |
---|
| 1735 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1736 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
---|
| 1737 | if test $ac_prog = install && |
---|
| 1738 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1739 | # AIX install. It has an incompatible calling convention. |
---|
| 1740 | : |
---|
| 1741 | elif test $ac_prog = install && |
---|
| 1742 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
| 1743 | # program-specific install script used by HP pwplus--don't use. |
---|
| 1744 | : |
---|
| 1745 | else |
---|
| 1746 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
| 1747 | break 3 |
---|
| 1748 | fi |
---|
| 1749 | fi |
---|
| 1750 | done |
---|
| 1751 | done |
---|
| 1752 | ;; |
---|
| 1753 | esac |
---|
| 1754 | done |
---|
| 1755 | |
---|
| 1756 | |
---|
| 1757 | fi |
---|
| 1758 | if test "${ac_cv_path_install+set}" = set; then |
---|
| 1759 | INSTALL=$ac_cv_path_install |
---|
| 1760 | else |
---|
| 1761 | # As a last resort, use the slow shell script. We don't cache a |
---|
| 1762 | # path for INSTALL within a source directory, because that will |
---|
| 1763 | # break other packages using the cache if that directory is |
---|
| 1764 | # removed, or if the path is relative. |
---|
| 1765 | INSTALL=$ac_install_sh |
---|
| 1766 | fi |
---|
| 1767 | fi |
---|
| 1768 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
---|
| 1769 | echo "${ECHO_T}$INSTALL" >&6 |
---|
| 1770 | |
---|
| 1771 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
| 1772 | # It thinks the first close brace ends the variable substitution. |
---|
| 1773 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
| 1774 | |
---|
| 1775 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
| 1776 | |
---|
| 1777 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
| 1778 | ;; |
---|
| 1779 | esac |
---|
| 1780 | |
---|
| 1781 | # Determine the name of the C compiler we're going to use |
---|
| 1782 | |
---|
| 1783 | # Check whether --enable-gcc or --disable-gcc was given. |
---|
| 1784 | if test "${enable_gcc+set}" = set; then |
---|
| 1785 | enableval="$enable_gcc" |
---|
| 1786 | gcc_ok=$enableval |
---|
| 1787 | else |
---|
| 1788 | gcc_ok=no |
---|
| 1789 | fi; |
---|
| 1790 | |
---|
| 1791 | if test "$gcc_ok" != no; then |
---|
| 1792 | case "$gcc_ok" in |
---|
| 1793 | yes) |
---|
| 1794 | CC=gcc ;; |
---|
| 1795 | *) |
---|
| 1796 | CC=$gcc_ok |
---|
| 1797 | esac |
---|
| 1798 | else |
---|
| 1799 | # Balakrishna Kumthekar <kumtheka@colorado.edu> |
---|
| 1800 | # As we do not support cc on RS6000, Cygwin and SunOS. |
---|
| 1801 | case "$target" in |
---|
| 1802 | rs6000-ibm-aix* | *-pc-cygwin32 | sparc-sun-sunos*) |
---|
| 1803 | CC=gcc ;; |
---|
| 1804 | *) |
---|
| 1805 | CC=cc ;; |
---|
| 1806 | esac |
---|
| 1807 | fi |
---|
| 1808 | |
---|
| 1809 | ac_ext=c |
---|
| 1810 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 1811 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 1812 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 1813 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 1814 | if test -n "$ac_tool_prefix"; then |
---|
| 1815 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
| 1816 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
| 1817 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1818 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1819 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1821 | else |
---|
| 1822 | if test -n "$CC"; then |
---|
| 1823 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1824 | else |
---|
| 1825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1826 | for as_dir in $PATH |
---|
| 1827 | do |
---|
| 1828 | IFS=$as_save_IFS |
---|
| 1829 | test -z "$as_dir" && as_dir=. |
---|
| 1830 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1831 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1832 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
| 1833 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1834 | break 2 |
---|
| 1835 | fi |
---|
| 1836 | done |
---|
| 1837 | done |
---|
| 1838 | |
---|
| 1839 | fi |
---|
| 1840 | fi |
---|
| 1841 | CC=$ac_cv_prog_CC |
---|
| 1842 | if test -n "$CC"; then |
---|
| 1843 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 1844 | echo "${ECHO_T}$CC" >&6 |
---|
| 1845 | else |
---|
| 1846 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1847 | echo "${ECHO_T}no" >&6 |
---|
| 1848 | fi |
---|
| 1849 | |
---|
| 1850 | fi |
---|
| 1851 | if test -z "$ac_cv_prog_CC"; then |
---|
| 1852 | ac_ct_CC=$CC |
---|
| 1853 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
| 1854 | set dummy gcc; ac_word=$2 |
---|
| 1855 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1856 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1857 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 1858 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1859 | else |
---|
| 1860 | if test -n "$ac_ct_CC"; then |
---|
| 1861 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 1862 | else |
---|
| 1863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1864 | for as_dir in $PATH |
---|
| 1865 | do |
---|
| 1866 | IFS=$as_save_IFS |
---|
| 1867 | test -z "$as_dir" && as_dir=. |
---|
| 1868 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1869 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1870 | ac_cv_prog_ac_ct_CC="gcc" |
---|
| 1871 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1872 | break 2 |
---|
| 1873 | fi |
---|
| 1874 | done |
---|
| 1875 | done |
---|
| 1876 | |
---|
| 1877 | fi |
---|
| 1878 | fi |
---|
| 1879 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 1880 | if test -n "$ac_ct_CC"; then |
---|
| 1881 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 1882 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 1883 | else |
---|
| 1884 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1885 | echo "${ECHO_T}no" >&6 |
---|
| 1886 | fi |
---|
| 1887 | |
---|
| 1888 | CC=$ac_ct_CC |
---|
| 1889 | else |
---|
| 1890 | CC="$ac_cv_prog_CC" |
---|
| 1891 | fi |
---|
| 1892 | |
---|
| 1893 | if test -z "$CC"; then |
---|
| 1894 | if test -n "$ac_tool_prefix"; then |
---|
| 1895 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
| 1896 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
| 1897 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1899 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1900 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1901 | else |
---|
| 1902 | if test -n "$CC"; then |
---|
| 1903 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1904 | else |
---|
| 1905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1906 | for as_dir in $PATH |
---|
| 1907 | do |
---|
| 1908 | IFS=$as_save_IFS |
---|
| 1909 | test -z "$as_dir" && as_dir=. |
---|
| 1910 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1911 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1912 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
| 1913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1914 | break 2 |
---|
| 1915 | fi |
---|
| 1916 | done |
---|
| 1917 | done |
---|
| 1918 | |
---|
| 1919 | fi |
---|
| 1920 | fi |
---|
| 1921 | CC=$ac_cv_prog_CC |
---|
| 1922 | if test -n "$CC"; then |
---|
| 1923 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 1924 | echo "${ECHO_T}$CC" >&6 |
---|
| 1925 | else |
---|
| 1926 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1927 | echo "${ECHO_T}no" >&6 |
---|
| 1928 | fi |
---|
| 1929 | |
---|
| 1930 | fi |
---|
| 1931 | if test -z "$ac_cv_prog_CC"; then |
---|
| 1932 | ac_ct_CC=$CC |
---|
| 1933 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 1934 | set dummy cc; ac_word=$2 |
---|
| 1935 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1936 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1937 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 1938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1939 | else |
---|
| 1940 | if test -n "$ac_ct_CC"; then |
---|
| 1941 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 1942 | else |
---|
| 1943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1944 | for as_dir in $PATH |
---|
| 1945 | do |
---|
| 1946 | IFS=$as_save_IFS |
---|
| 1947 | test -z "$as_dir" && as_dir=. |
---|
| 1948 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1949 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1950 | ac_cv_prog_ac_ct_CC="cc" |
---|
| 1951 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1952 | break 2 |
---|
| 1953 | fi |
---|
| 1954 | done |
---|
| 1955 | done |
---|
| 1956 | |
---|
| 1957 | fi |
---|
| 1958 | fi |
---|
| 1959 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 1960 | if test -n "$ac_ct_CC"; then |
---|
| 1961 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 1962 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 1963 | else |
---|
| 1964 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 1965 | echo "${ECHO_T}no" >&6 |
---|
| 1966 | fi |
---|
| 1967 | |
---|
| 1968 | CC=$ac_ct_CC |
---|
| 1969 | else |
---|
| 1970 | CC="$ac_cv_prog_CC" |
---|
| 1971 | fi |
---|
| 1972 | |
---|
| 1973 | fi |
---|
| 1974 | if test -z "$CC"; then |
---|
| 1975 | # Extract the first word of "cc", so it can be a program name with args. |
---|
| 1976 | set dummy cc; ac_word=$2 |
---|
| 1977 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 1978 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 1979 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 1980 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 1981 | else |
---|
| 1982 | if test -n "$CC"; then |
---|
| 1983 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 1984 | else |
---|
| 1985 | ac_prog_rejected=no |
---|
| 1986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 1987 | for as_dir in $PATH |
---|
| 1988 | do |
---|
| 1989 | IFS=$as_save_IFS |
---|
| 1990 | test -z "$as_dir" && as_dir=. |
---|
| 1991 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 1992 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 1993 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
| 1994 | ac_prog_rejected=yes |
---|
| 1995 | continue |
---|
| 1996 | fi |
---|
| 1997 | ac_cv_prog_CC="cc" |
---|
| 1998 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 1999 | break 2 |
---|
| 2000 | fi |
---|
| 2001 | done |
---|
| 2002 | done |
---|
| 2003 | |
---|
| 2004 | if test $ac_prog_rejected = yes; then |
---|
| 2005 | # We found a bogon in the path, so make sure we never use it. |
---|
| 2006 | set dummy $ac_cv_prog_CC |
---|
| 2007 | shift |
---|
| 2008 | if test $# != 0; then |
---|
| 2009 | # We chose a different compiler from the bogus one. |
---|
| 2010 | # However, it has the same basename, so the bogon will be chosen |
---|
| 2011 | # first if we set CC to just the basename; use the full file name. |
---|
| 2012 | shift |
---|
| 2013 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
| 2014 | fi |
---|
| 2015 | fi |
---|
| 2016 | fi |
---|
| 2017 | fi |
---|
| 2018 | CC=$ac_cv_prog_CC |
---|
| 2019 | if test -n "$CC"; then |
---|
| 2020 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2021 | echo "${ECHO_T}$CC" >&6 |
---|
| 2022 | else |
---|
| 2023 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2024 | echo "${ECHO_T}no" >&6 |
---|
| 2025 | fi |
---|
| 2026 | |
---|
| 2027 | fi |
---|
| 2028 | if test -z "$CC"; then |
---|
| 2029 | if test -n "$ac_tool_prefix"; then |
---|
| 2030 | for ac_prog in cl |
---|
| 2031 | do |
---|
| 2032 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
| 2033 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
| 2034 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2035 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2036 | if test "${ac_cv_prog_CC+set}" = set; then |
---|
| 2037 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2038 | else |
---|
| 2039 | if test -n "$CC"; then |
---|
| 2040 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
| 2041 | else |
---|
| 2042 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2043 | for as_dir in $PATH |
---|
| 2044 | do |
---|
| 2045 | IFS=$as_save_IFS |
---|
| 2046 | test -z "$as_dir" && as_dir=. |
---|
| 2047 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2048 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2049 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
| 2050 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2051 | break 2 |
---|
| 2052 | fi |
---|
| 2053 | done |
---|
| 2054 | done |
---|
| 2055 | |
---|
| 2056 | fi |
---|
| 2057 | fi |
---|
| 2058 | CC=$ac_cv_prog_CC |
---|
| 2059 | if test -n "$CC"; then |
---|
| 2060 | echo "$as_me:$LINENO: result: $CC" >&5 |
---|
| 2061 | echo "${ECHO_T}$CC" >&6 |
---|
| 2062 | else |
---|
| 2063 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2064 | echo "${ECHO_T}no" >&6 |
---|
| 2065 | fi |
---|
| 2066 | |
---|
| 2067 | test -n "$CC" && break |
---|
| 2068 | done |
---|
| 2069 | fi |
---|
| 2070 | if test -z "$CC"; then |
---|
| 2071 | ac_ct_CC=$CC |
---|
| 2072 | for ac_prog in cl |
---|
| 2073 | do |
---|
| 2074 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 2075 | set dummy $ac_prog; ac_word=$2 |
---|
| 2076 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 2077 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 2078 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
---|
| 2079 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2080 | else |
---|
| 2081 | if test -n "$ac_ct_CC"; then |
---|
| 2082 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
| 2083 | else |
---|
| 2084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 2085 | for as_dir in $PATH |
---|
| 2086 | do |
---|
| 2087 | IFS=$as_save_IFS |
---|
| 2088 | test -z "$as_dir" && as_dir=. |
---|
| 2089 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 2090 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 2091 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
| 2092 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 2093 | break 2 |
---|
| 2094 | fi |
---|
| 2095 | done |
---|
| 2096 | done |
---|
| 2097 | |
---|
| 2098 | fi |
---|
| 2099 | fi |
---|
| 2100 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
| 2101 | if test -n "$ac_ct_CC"; then |
---|
| 2102 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
---|
| 2103 | echo "${ECHO_T}$ac_ct_CC" >&6 |
---|
| 2104 | else |
---|
| 2105 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 2106 | echo "${ECHO_T}no" >&6 |
---|
| 2107 | fi |
---|
| 2108 | |
---|
| 2109 | test -n "$ac_ct_CC" && break |
---|
| 2110 | done |
---|
| 2111 | |
---|
| 2112 | CC=$ac_ct_CC |
---|
| 2113 | fi |
---|
| 2114 | |
---|
| 2115 | fi |
---|
| 2116 | |
---|
| 2117 | |
---|
| 2118 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
---|
| 2119 | See \`config.log' for more details." >&5 |
---|
| 2120 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
---|
| 2121 | See \`config.log' for more details." >&2;} |
---|
| 2122 | { (exit 1); exit 1; }; } |
---|
| 2123 | |
---|
| 2124 | # Provide some information about the compiler. |
---|
| 2125 | echo "$as_me:$LINENO:" \ |
---|
| 2126 | "checking for C compiler version" >&5 |
---|
| 2127 | ac_compiler=`set X $ac_compile; echo $2` |
---|
| 2128 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
---|
| 2129 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
---|
| 2130 | ac_status=$? |
---|
| 2131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2132 | (exit $ac_status); } |
---|
| 2133 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
---|
| 2134 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
---|
| 2135 | ac_status=$? |
---|
| 2136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2137 | (exit $ac_status); } |
---|
| 2138 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
---|
| 2139 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
---|
| 2140 | ac_status=$? |
---|
| 2141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2142 | (exit $ac_status); } |
---|
| 2143 | |
---|
| 2144 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2145 | /* confdefs.h. */ |
---|
| 2146 | _ACEOF |
---|
| 2147 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2148 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2149 | /* end confdefs.h. */ |
---|
| 2150 | |
---|
| 2151 | int |
---|
| 2152 | main () |
---|
| 2153 | { |
---|
| 2154 | |
---|
| 2155 | ; |
---|
| 2156 | return 0; |
---|
| 2157 | } |
---|
| 2158 | _ACEOF |
---|
| 2159 | ac_clean_files_save=$ac_clean_files |
---|
| 2160 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
---|
| 2161 | # Try to create an executable without -o first, disregard a.out. |
---|
| 2162 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
| 2163 | # of exeext. |
---|
| 2164 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
---|
| 2165 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
---|
| 2166 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
| 2167 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
---|
| 2168 | (eval $ac_link_default) 2>&5 |
---|
| 2169 | ac_status=$? |
---|
| 2170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2171 | (exit $ac_status); }; then |
---|
| 2172 | # Find the output, starting from the most likely. This scheme is |
---|
| 2173 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
---|
| 2174 | # resort. |
---|
| 2175 | |
---|
| 2176 | # Be careful to initialize this variable, since it used to be cached. |
---|
| 2177 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
---|
| 2178 | ac_cv_exeext= |
---|
| 2179 | # b.out is created by i960 compilers. |
---|
| 2180 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
---|
| 2181 | do |
---|
| 2182 | test -f "$ac_file" || continue |
---|
| 2183 | case $ac_file in |
---|
| 2184 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
---|
| 2185 | ;; |
---|
| 2186 | conftest.$ac_ext ) |
---|
| 2187 | # This is the source file. |
---|
| 2188 | ;; |
---|
| 2189 | [ab].out ) |
---|
| 2190 | # We found the default executable, but exeext='' is most |
---|
| 2191 | # certainly right. |
---|
| 2192 | break;; |
---|
| 2193 | *.* ) |
---|
| 2194 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2195 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
---|
| 2196 | # but it would be cool to find out if it's true. Does anybody |
---|
| 2197 | # maintain Libtool? --akim. |
---|
| 2198 | export ac_cv_exeext |
---|
| 2199 | break;; |
---|
| 2200 | * ) |
---|
| 2201 | break;; |
---|
| 2202 | esac |
---|
| 2203 | done |
---|
| 2204 | else |
---|
| 2205 | echo "$as_me: failed program was:" >&5 |
---|
| 2206 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2207 | |
---|
| 2208 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
---|
| 2209 | See \`config.log' for more details." >&5 |
---|
| 2210 | echo "$as_me: error: C compiler cannot create executables |
---|
| 2211 | See \`config.log' for more details." >&2;} |
---|
| 2212 | { (exit 77); exit 77; }; } |
---|
| 2213 | fi |
---|
| 2214 | |
---|
| 2215 | ac_exeext=$ac_cv_exeext |
---|
| 2216 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
---|
| 2217 | echo "${ECHO_T}$ac_file" >&6 |
---|
| 2218 | |
---|
| 2219 | # Check the compiler produces executables we can run. If not, either |
---|
| 2220 | # the compiler is broken, or we cross compile. |
---|
| 2221 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
---|
| 2222 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
---|
| 2223 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
---|
| 2224 | # If not cross compiling, check that we can run a simple program. |
---|
| 2225 | if test "$cross_compiling" != yes; then |
---|
| 2226 | if { ac_try='./$ac_file' |
---|
| 2227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2228 | (eval $ac_try) 2>&5 |
---|
| 2229 | ac_status=$? |
---|
| 2230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2231 | (exit $ac_status); }; }; then |
---|
| 2232 | cross_compiling=no |
---|
| 2233 | else |
---|
| 2234 | if test "$cross_compiling" = maybe; then |
---|
| 2235 | cross_compiling=yes |
---|
| 2236 | else |
---|
| 2237 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
---|
| 2238 | If you meant to cross compile, use \`--host'. |
---|
| 2239 | See \`config.log' for more details." >&5 |
---|
| 2240 | echo "$as_me: error: cannot run C compiled programs. |
---|
| 2241 | If you meant to cross compile, use \`--host'. |
---|
| 2242 | See \`config.log' for more details." >&2;} |
---|
| 2243 | { (exit 1); exit 1; }; } |
---|
| 2244 | fi |
---|
| 2245 | fi |
---|
| 2246 | fi |
---|
| 2247 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 2248 | echo "${ECHO_T}yes" >&6 |
---|
| 2249 | |
---|
| 2250 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
---|
| 2251 | ac_clean_files=$ac_clean_files_save |
---|
| 2252 | # Check the compiler produces executables we can run. If not, either |
---|
| 2253 | # the compiler is broken, or we cross compile. |
---|
| 2254 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
---|
| 2255 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
---|
| 2256 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
---|
| 2257 | echo "${ECHO_T}$cross_compiling" >&6 |
---|
| 2258 | |
---|
| 2259 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
---|
| 2260 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
---|
| 2261 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2262 | (eval $ac_link) 2>&5 |
---|
| 2263 | ac_status=$? |
---|
| 2264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2265 | (exit $ac_status); }; then |
---|
| 2266 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
| 2267 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
| 2268 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
| 2269 | # `rm'. |
---|
| 2270 | for ac_file in conftest.exe conftest conftest.*; do |
---|
| 2271 | test -f "$ac_file" || continue |
---|
| 2272 | case $ac_file in |
---|
| 2273 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
---|
| 2274 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
| 2275 | export ac_cv_exeext |
---|
| 2276 | break;; |
---|
| 2277 | * ) break;; |
---|
| 2278 | esac |
---|
| 2279 | done |
---|
| 2280 | else |
---|
| 2281 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2282 | See \`config.log' for more details." >&5 |
---|
| 2283 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
---|
| 2284 | See \`config.log' for more details." >&2;} |
---|
| 2285 | { (exit 1); exit 1; }; } |
---|
| 2286 | fi |
---|
| 2287 | |
---|
| 2288 | rm -f conftest$ac_cv_exeext |
---|
| 2289 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
---|
| 2290 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
---|
| 2291 | |
---|
| 2292 | rm -f conftest.$ac_ext |
---|
| 2293 | EXEEXT=$ac_cv_exeext |
---|
| 2294 | ac_exeext=$EXEEXT |
---|
| 2295 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
---|
| 2296 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
---|
| 2297 | if test "${ac_cv_objext+set}" = set; then |
---|
| 2298 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2299 | else |
---|
| 2300 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2301 | /* confdefs.h. */ |
---|
| 2302 | _ACEOF |
---|
| 2303 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2304 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2305 | /* end confdefs.h. */ |
---|
| 2306 | |
---|
| 2307 | int |
---|
| 2308 | main () |
---|
| 2309 | { |
---|
| 2310 | |
---|
| 2311 | ; |
---|
| 2312 | return 0; |
---|
| 2313 | } |
---|
| 2314 | _ACEOF |
---|
| 2315 | rm -f conftest.o conftest.obj |
---|
| 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); }; then |
---|
| 2321 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
---|
| 2322 | case $ac_file in |
---|
| 2323 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
---|
| 2324 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
| 2325 | break;; |
---|
| 2326 | esac |
---|
| 2327 | done |
---|
| 2328 | else |
---|
| 2329 | echo "$as_me: failed program was:" >&5 |
---|
| 2330 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2331 | |
---|
| 2332 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
---|
| 2333 | See \`config.log' for more details." >&5 |
---|
| 2334 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
---|
| 2335 | See \`config.log' for more details." >&2;} |
---|
| 2336 | { (exit 1); exit 1; }; } |
---|
| 2337 | fi |
---|
| 2338 | |
---|
| 2339 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
| 2340 | fi |
---|
| 2341 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
---|
| 2342 | echo "${ECHO_T}$ac_cv_objext" >&6 |
---|
| 2343 | OBJEXT=$ac_cv_objext |
---|
| 2344 | ac_objext=$OBJEXT |
---|
| 2345 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
---|
| 2346 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
---|
| 2347 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
---|
| 2348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2349 | else |
---|
| 2350 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2351 | /* confdefs.h. */ |
---|
| 2352 | _ACEOF |
---|
| 2353 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2354 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2355 | /* end confdefs.h. */ |
---|
| 2356 | |
---|
| 2357 | int |
---|
| 2358 | main () |
---|
| 2359 | { |
---|
| 2360 | #ifndef __GNUC__ |
---|
| 2361 | choke me |
---|
| 2362 | #endif |
---|
| 2363 | |
---|
| 2364 | ; |
---|
| 2365 | return 0; |
---|
| 2366 | } |
---|
| 2367 | _ACEOF |
---|
| 2368 | rm -f conftest.$ac_objext |
---|
| 2369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2370 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2371 | ac_status=$? |
---|
| 2372 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2373 | rm -f conftest.er1 |
---|
| 2374 | cat conftest.err >&5 |
---|
| 2375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2376 | (exit $ac_status); } && |
---|
| 2377 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2378 | || test ! -s conftest.err' |
---|
| 2379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2380 | (eval $ac_try) 2>&5 |
---|
| 2381 | ac_status=$? |
---|
| 2382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2383 | (exit $ac_status); }; } && |
---|
| 2384 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2386 | (eval $ac_try) 2>&5 |
---|
| 2387 | ac_status=$? |
---|
| 2388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2389 | (exit $ac_status); }; }; then |
---|
| 2390 | ac_compiler_gnu=yes |
---|
| 2391 | else |
---|
| 2392 | echo "$as_me: failed program was:" >&5 |
---|
| 2393 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2394 | |
---|
| 2395 | ac_compiler_gnu=no |
---|
| 2396 | fi |
---|
| 2397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2398 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
| 2399 | |
---|
| 2400 | fi |
---|
| 2401 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
---|
| 2402 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
---|
| 2403 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
---|
| 2404 | ac_test_CFLAGS=${CFLAGS+set} |
---|
| 2405 | ac_save_CFLAGS=$CFLAGS |
---|
| 2406 | CFLAGS="-g" |
---|
| 2407 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
---|
| 2408 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
---|
| 2409 | if test "${ac_cv_prog_cc_g+set}" = set; then |
---|
| 2410 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2411 | else |
---|
| 2412 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2413 | /* confdefs.h. */ |
---|
| 2414 | _ACEOF |
---|
| 2415 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2416 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2417 | /* end confdefs.h. */ |
---|
| 2418 | |
---|
| 2419 | int |
---|
| 2420 | main () |
---|
| 2421 | { |
---|
| 2422 | |
---|
| 2423 | ; |
---|
| 2424 | return 0; |
---|
| 2425 | } |
---|
| 2426 | _ACEOF |
---|
| 2427 | rm -f conftest.$ac_objext |
---|
| 2428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2429 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2430 | ac_status=$? |
---|
| 2431 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2432 | rm -f conftest.er1 |
---|
| 2433 | cat conftest.err >&5 |
---|
| 2434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2435 | (exit $ac_status); } && |
---|
| 2436 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2437 | || test ! -s conftest.err' |
---|
| 2438 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2439 | (eval $ac_try) 2>&5 |
---|
| 2440 | ac_status=$? |
---|
| 2441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2442 | (exit $ac_status); }; } && |
---|
| 2443 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2444 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2445 | (eval $ac_try) 2>&5 |
---|
| 2446 | ac_status=$? |
---|
| 2447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2448 | (exit $ac_status); }; }; then |
---|
| 2449 | ac_cv_prog_cc_g=yes |
---|
| 2450 | else |
---|
| 2451 | echo "$as_me: failed program was:" >&5 |
---|
| 2452 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2453 | |
---|
| 2454 | ac_cv_prog_cc_g=no |
---|
| 2455 | fi |
---|
| 2456 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2457 | fi |
---|
| 2458 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
---|
| 2459 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
---|
| 2460 | if test "$ac_test_CFLAGS" = set; then |
---|
| 2461 | CFLAGS=$ac_save_CFLAGS |
---|
| 2462 | elif test $ac_cv_prog_cc_g = yes; then |
---|
| 2463 | if test "$GCC" = yes; then |
---|
| 2464 | CFLAGS="-g -O2" |
---|
| 2465 | else |
---|
| 2466 | CFLAGS="-g" |
---|
| 2467 | fi |
---|
| 2468 | else |
---|
| 2469 | if test "$GCC" = yes; then |
---|
| 2470 | CFLAGS="-O2" |
---|
| 2471 | else |
---|
| 2472 | CFLAGS= |
---|
| 2473 | fi |
---|
| 2474 | fi |
---|
| 2475 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
---|
| 2476 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
---|
| 2477 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
---|
| 2478 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2479 | else |
---|
| 2480 | ac_cv_prog_cc_stdc=no |
---|
| 2481 | ac_save_CC=$CC |
---|
| 2482 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2483 | /* confdefs.h. */ |
---|
| 2484 | _ACEOF |
---|
| 2485 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2486 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2487 | /* end confdefs.h. */ |
---|
| 2488 | #include <stdarg.h> |
---|
| 2489 | #include <stdio.h> |
---|
| 2490 | #include <sys/types.h> |
---|
| 2491 | #include <sys/stat.h> |
---|
| 2492 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
| 2493 | struct buf { int x; }; |
---|
| 2494 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
| 2495 | static char *e (p, i) |
---|
| 2496 | char **p; |
---|
| 2497 | int i; |
---|
| 2498 | { |
---|
| 2499 | return p[i]; |
---|
| 2500 | } |
---|
| 2501 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
| 2502 | { |
---|
| 2503 | char *s; |
---|
| 2504 | va_list v; |
---|
| 2505 | va_start (v,p); |
---|
| 2506 | s = g (p, va_arg (v,int)); |
---|
| 2507 | va_end (v); |
---|
| 2508 | return s; |
---|
| 2509 | } |
---|
| 2510 | |
---|
| 2511 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
| 2512 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
| 2513 | These don't provoke an error unfortunately, instead are silently treated |
---|
| 2514 | as 'x'. The following induces an error, until -std1 is added to get |
---|
| 2515 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
| 2516 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
| 2517 | that's true only with -std1. */ |
---|
| 2518 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
| 2519 | |
---|
| 2520 | int test (int i, double x); |
---|
| 2521 | struct s1 {int (*f) (int a);}; |
---|
| 2522 | struct s2 {int (*f) (double a);}; |
---|
| 2523 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
| 2524 | int argc; |
---|
| 2525 | char **argv; |
---|
| 2526 | int |
---|
| 2527 | main () |
---|
| 2528 | { |
---|
| 2529 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
| 2530 | ; |
---|
| 2531 | return 0; |
---|
| 2532 | } |
---|
| 2533 | _ACEOF |
---|
| 2534 | # Don't try gcc -ansi; that turns off useful extensions and |
---|
| 2535 | # breaks some systems' header files. |
---|
| 2536 | # AIX -qlanglvl=ansi |
---|
| 2537 | # Ultrix and OSF/1 -std1 |
---|
| 2538 | # HP-UX 10.20 and later -Ae |
---|
| 2539 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
---|
| 2540 | # SVR4 -Xc -D__EXTENSIONS__ |
---|
| 2541 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
| 2542 | do |
---|
| 2543 | CC="$ac_save_CC $ac_arg" |
---|
| 2544 | rm -f conftest.$ac_objext |
---|
| 2545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2546 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2547 | ac_status=$? |
---|
| 2548 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2549 | rm -f conftest.er1 |
---|
| 2550 | cat conftest.err >&5 |
---|
| 2551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2552 | (exit $ac_status); } && |
---|
| 2553 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2554 | || test ! -s conftest.err' |
---|
| 2555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2556 | (eval $ac_try) 2>&5 |
---|
| 2557 | ac_status=$? |
---|
| 2558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2559 | (exit $ac_status); }; } && |
---|
| 2560 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2562 | (eval $ac_try) 2>&5 |
---|
| 2563 | ac_status=$? |
---|
| 2564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2565 | (exit $ac_status); }; }; then |
---|
| 2566 | ac_cv_prog_cc_stdc=$ac_arg |
---|
| 2567 | break |
---|
| 2568 | else |
---|
| 2569 | echo "$as_me: failed program was:" >&5 |
---|
| 2570 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2571 | |
---|
| 2572 | fi |
---|
| 2573 | rm -f conftest.err conftest.$ac_objext |
---|
| 2574 | done |
---|
| 2575 | rm -f conftest.$ac_ext conftest.$ac_objext |
---|
| 2576 | CC=$ac_save_CC |
---|
| 2577 | |
---|
| 2578 | fi |
---|
| 2579 | |
---|
| 2580 | case "x$ac_cv_prog_cc_stdc" in |
---|
| 2581 | x|xno) |
---|
| 2582 | echo "$as_me:$LINENO: result: none needed" >&5 |
---|
| 2583 | echo "${ECHO_T}none needed" >&6 ;; |
---|
| 2584 | *) |
---|
| 2585 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
---|
| 2586 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
---|
| 2587 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
---|
| 2588 | esac |
---|
| 2589 | |
---|
| 2590 | # Some people use a C++ compiler to compile C. Since we use `exit', |
---|
| 2591 | # in C++ we need to declare it. In case someone uses the same compiler |
---|
| 2592 | # for both compiling C and C++ we need to have the C++ compiler decide |
---|
| 2593 | # the declaration of exit, since it's the most demanding environment. |
---|
| 2594 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2595 | #ifndef __cplusplus |
---|
| 2596 | choke me |
---|
| 2597 | #endif |
---|
| 2598 | _ACEOF |
---|
| 2599 | rm -f conftest.$ac_objext |
---|
| 2600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2601 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2602 | ac_status=$? |
---|
| 2603 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2604 | rm -f conftest.er1 |
---|
| 2605 | cat conftest.err >&5 |
---|
| 2606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2607 | (exit $ac_status); } && |
---|
| 2608 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2609 | || test ! -s conftest.err' |
---|
| 2610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2611 | (eval $ac_try) 2>&5 |
---|
| 2612 | ac_status=$? |
---|
| 2613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2614 | (exit $ac_status); }; } && |
---|
| 2615 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2617 | (eval $ac_try) 2>&5 |
---|
| 2618 | ac_status=$? |
---|
| 2619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2620 | (exit $ac_status); }; }; then |
---|
| 2621 | for ac_declaration in \ |
---|
| 2622 | '' \ |
---|
| 2623 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
---|
| 2624 | 'extern "C" void std::exit (int); using std::exit;' \ |
---|
| 2625 | 'extern "C" void exit (int) throw ();' \ |
---|
| 2626 | 'extern "C" void exit (int);' \ |
---|
| 2627 | 'void exit (int);' |
---|
| 2628 | do |
---|
| 2629 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2630 | /* confdefs.h. */ |
---|
| 2631 | _ACEOF |
---|
| 2632 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2633 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2634 | /* end confdefs.h. */ |
---|
| 2635 | $ac_declaration |
---|
| 2636 | #include <stdlib.h> |
---|
| 2637 | int |
---|
| 2638 | main () |
---|
| 2639 | { |
---|
| 2640 | exit (42); |
---|
| 2641 | ; |
---|
| 2642 | return 0; |
---|
| 2643 | } |
---|
| 2644 | _ACEOF |
---|
| 2645 | rm -f conftest.$ac_objext |
---|
| 2646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2647 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2648 | ac_status=$? |
---|
| 2649 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2650 | rm -f conftest.er1 |
---|
| 2651 | cat conftest.err >&5 |
---|
| 2652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2653 | (exit $ac_status); } && |
---|
| 2654 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2655 | || test ! -s conftest.err' |
---|
| 2656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2657 | (eval $ac_try) 2>&5 |
---|
| 2658 | ac_status=$? |
---|
| 2659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2660 | (exit $ac_status); }; } && |
---|
| 2661 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2663 | (eval $ac_try) 2>&5 |
---|
| 2664 | ac_status=$? |
---|
| 2665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2666 | (exit $ac_status); }; }; then |
---|
| 2667 | : |
---|
| 2668 | else |
---|
| 2669 | echo "$as_me: failed program was:" >&5 |
---|
| 2670 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2671 | |
---|
| 2672 | continue |
---|
| 2673 | fi |
---|
| 2674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2675 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2676 | /* confdefs.h. */ |
---|
| 2677 | _ACEOF |
---|
| 2678 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2679 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2680 | /* end confdefs.h. */ |
---|
| 2681 | $ac_declaration |
---|
| 2682 | int |
---|
| 2683 | main () |
---|
| 2684 | { |
---|
| 2685 | exit (42); |
---|
| 2686 | ; |
---|
| 2687 | return 0; |
---|
| 2688 | } |
---|
| 2689 | _ACEOF |
---|
| 2690 | rm -f conftest.$ac_objext |
---|
| 2691 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2692 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2693 | ac_status=$? |
---|
| 2694 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2695 | rm -f conftest.er1 |
---|
| 2696 | cat conftest.err >&5 |
---|
| 2697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2698 | (exit $ac_status); } && |
---|
| 2699 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2700 | || test ! -s conftest.err' |
---|
| 2701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2702 | (eval $ac_try) 2>&5 |
---|
| 2703 | ac_status=$? |
---|
| 2704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2705 | (exit $ac_status); }; } && |
---|
| 2706 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2707 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2708 | (eval $ac_try) 2>&5 |
---|
| 2709 | ac_status=$? |
---|
| 2710 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2711 | (exit $ac_status); }; }; then |
---|
| 2712 | break |
---|
| 2713 | else |
---|
| 2714 | echo "$as_me: failed program was:" >&5 |
---|
| 2715 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2716 | |
---|
| 2717 | fi |
---|
| 2718 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2719 | done |
---|
| 2720 | rm -f conftest* |
---|
| 2721 | if test -n "$ac_declaration"; then |
---|
| 2722 | echo '#ifdef __cplusplus' >>confdefs.h |
---|
| 2723 | echo $ac_declaration >>confdefs.h |
---|
| 2724 | echo '#endif' >>confdefs.h |
---|
| 2725 | fi |
---|
| 2726 | |
---|
| 2727 | else |
---|
| 2728 | echo "$as_me: failed program was:" >&5 |
---|
| 2729 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2730 | |
---|
| 2731 | fi |
---|
| 2732 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2733 | ac_ext=c |
---|
| 2734 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 2735 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 2736 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 2737 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 2738 | |
---|
| 2739 | |
---|
| 2740 | # Check whether --enable-64 or --disable-64 was given. |
---|
| 2741 | if test "${enable_64+set}" = set; then |
---|
| 2742 | enableval="$enable_64" |
---|
| 2743 | use_sixty_four=$enableval |
---|
| 2744 | else |
---|
| 2745 | use_sixty_four=no |
---|
| 2746 | fi; |
---|
| 2747 | |
---|
| 2748 | if test "$gcc_ok" != no; then |
---|
| 2749 | use_sixty_four=yes |
---|
| 2750 | fi |
---|
| 2751 | |
---|
| 2752 | |
---|
| 2753 | # Determine the compiler flags to use |
---|
| 2754 | |
---|
| 2755 | DEBUG_CFLAGS="-g" |
---|
| 2756 | DEBUG_LDFLAGS="" |
---|
| 2757 | |
---|
| 2758 | case "$target" in |
---|
| 2759 | |
---|
| 2760 | sparc-sun-solaris* | i386-pc-solaris*) |
---|
| 2761 | # Sparc and X86 Solaris: |
---|
| 2762 | # -xO3: Highest safe level of optimization |
---|
| 2763 | # -native: Optimize for the native processor (if supported) |
---|
| 2764 | # -dalign: Generate double-word load/store for performance |
---|
| 2765 | # (only for SPARC) |
---|
| 2766 | # and other arcane compilation flags. |
---|
| 2767 | if test "$GCC" = yes; then |
---|
| 2768 | OPTIMIZE_CFLAGS="-O" |
---|
| 2769 | else |
---|
| 2770 | case "$target" in |
---|
| 2771 | sparc-sun-solaris*) |
---|
| 2772 | ALIGN=" -dalign" ;; |
---|
| 2773 | *) |
---|
| 2774 | ALIGN="" ;; |
---|
| 2775 | esac |
---|
| 2776 | echo "$as_me:$LINENO: checking for -native" >&5 |
---|
| 2777 | echo $ECHO_N "checking for -native... $ECHO_C" >&6 |
---|
| 2778 | CFLAGS="-xO3 -native$ALIGN" |
---|
| 2779 | |
---|
| 2780 | if test "${ac_cv_have_native+set}" = set; then |
---|
| 2781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2782 | else |
---|
| 2783 | if test "$cross_compiling" = yes; then |
---|
| 2784 | ac_cv_have_native=no |
---|
| 2785 | else |
---|
| 2786 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2787 | /* confdefs.h. */ |
---|
| 2788 | _ACEOF |
---|
| 2789 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2790 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2791 | /* end confdefs.h. */ |
---|
| 2792 | |
---|
| 2793 | main(){exit(0);} |
---|
| 2794 | |
---|
| 2795 | _ACEOF |
---|
| 2796 | rm -f conftest$ac_exeext |
---|
| 2797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2798 | (eval $ac_link) 2>&5 |
---|
| 2799 | ac_status=$? |
---|
| 2800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2801 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 2802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2803 | (eval $ac_try) 2>&5 |
---|
| 2804 | ac_status=$? |
---|
| 2805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2806 | (exit $ac_status); }; }; then |
---|
| 2807 | ac_cv_have_native=yes |
---|
| 2808 | else |
---|
| 2809 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 2810 | echo "$as_me: failed program was:" >&5 |
---|
| 2811 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2812 | |
---|
| 2813 | ( exit $ac_status ) |
---|
| 2814 | ac_cv_have_native=no |
---|
| 2815 | fi |
---|
| 2816 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 2817 | fi |
---|
| 2818 | fi |
---|
| 2819 | |
---|
| 2820 | if test $ac_cv_have_native = yes ; then |
---|
| 2821 | echo "$as_me:$LINENO: result: working" >&5 |
---|
| 2822 | echo "${ECHO_T}working" >&6 |
---|
| 2823 | OPTIMIZE_CFLAGS="-xO3 -native$ALIGN" |
---|
| 2824 | else |
---|
| 2825 | echo "$as_me:$LINENO: result: broken" >&5 |
---|
| 2826 | echo "${ECHO_T}broken" >&6 |
---|
| 2827 | echo "$as_me:$LINENO: checking for fallback optimization flags" >&5 |
---|
| 2828 | echo $ECHO_N "checking for fallback optimization flags... $ECHO_C" >&6 |
---|
| 2829 | CFLAGS="-xO3 -fns -fsimple=2$ALIGN -ftrap=%none -xlibmil" |
---|
| 2830 | if test "${ac_cv_have_fallback+set}" = set; then |
---|
| 2831 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 2832 | else |
---|
| 2833 | if test "$cross_compiling" = yes; then |
---|
| 2834 | ac_cv_have_fallback=no |
---|
| 2835 | else |
---|
| 2836 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2837 | /* confdefs.h. */ |
---|
| 2838 | _ACEOF |
---|
| 2839 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2840 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2841 | /* end confdefs.h. */ |
---|
| 2842 | |
---|
| 2843 | main(){exit(0);} |
---|
| 2844 | |
---|
| 2845 | _ACEOF |
---|
| 2846 | rm -f conftest$ac_exeext |
---|
| 2847 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 2848 | (eval $ac_link) 2>&5 |
---|
| 2849 | ac_status=$? |
---|
| 2850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2851 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 2852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2853 | (eval $ac_try) 2>&5 |
---|
| 2854 | ac_status=$? |
---|
| 2855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2856 | (exit $ac_status); }; }; then |
---|
| 2857 | ac_cv_have_fallback=yes |
---|
| 2858 | else |
---|
| 2859 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 2860 | echo "$as_me: failed program was:" >&5 |
---|
| 2861 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2862 | |
---|
| 2863 | ( exit $ac_status ) |
---|
| 2864 | ac_cv_have_fallback=no |
---|
| 2865 | fi |
---|
| 2866 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 2867 | fi |
---|
| 2868 | fi |
---|
| 2869 | |
---|
| 2870 | if test $ac_cv_have_fallback = yes ; then |
---|
| 2871 | echo "$as_me:$LINENO: result: working" >&5 |
---|
| 2872 | echo "${ECHO_T}working" >&6 |
---|
| 2873 | OPTIMIZE_CFLAGS="-xO3 -fns -fsimple=2$ALIGN -ftrap=%none -xlibmil" |
---|
| 2874 | else |
---|
| 2875 | echo "$as_me:$LINENO: result: broken" >&5 |
---|
| 2876 | echo "${ECHO_T}broken" >&6 |
---|
| 2877 | OPTIMIZE_CFLAGS="-O" |
---|
| 2878 | fi |
---|
| 2879 | fi |
---|
| 2880 | fi |
---|
| 2881 | ;; |
---|
| 2882 | |
---|
| 2883 | mips-dec-ultrix*) |
---|
| 2884 | # MIPS-based DECstations running Ultrix: |
---|
| 2885 | # -std1: Produce non-ANSI code warnings, and define __STDC__ |
---|
| 2886 | # -O: Use the global "ucode" optimizer |
---|
| 2887 | # -Olimit 5000: Don't optimize routines bigger than 5000 basic blocks |
---|
| 2888 | OPTIMIZE_CFLAGS="-std1 -O -Olimit 5000" ;; |
---|
| 2889 | |
---|
| 2890 | alpha-dec-osf*) |
---|
| 2891 | # DEC Alpha running OSF: |
---|
| 2892 | |
---|
| 2893 | # 64-bit mode: |
---|
| 2894 | # -g3: Produce symbol table information for optimized code |
---|
| 2895 | # -O4: Enable every optimization |
---|
| 2896 | # -std: Enforce the ANSI standard with extensions, define __STDC__ |
---|
| 2897 | # -ieee_with_no_inexact: Disable (potentially slow) signaling |
---|
| 2898 | # for inexact floating-point results |
---|
| 2899 | # -tune host: Tune instructions for the compilation host machine |
---|
| 2900 | |
---|
| 2901 | OPTIMIZE_CFLAGS="-g3 -O4 -std -ieee_with_no_inexact -tune host" |
---|
| 2902 | DEBUG_CFLAGS="-g -std -ieee_with_no_inexact" |
---|
| 2903 | |
---|
| 2904 | # -non_shared: Do not use shared libraries |
---|
| 2905 | # -om: Generate an OMAGIC file for the om optimizer |
---|
| 2906 | OPTIMIZE_LDFLAGS="-non_shared" |
---|
| 2907 | |
---|
| 2908 | if test "$use_sixty_four" = "no"; then |
---|
| 2909 | # 32-bit mode: |
---|
| 2910 | # -xtaso: Make the compiler respond to #pragma pointer_size directives |
---|
| 2911 | OPTIMIZE_CFLAGS="$OPTIMIZE_CFLAGS -xtaso" |
---|
| 2912 | DEBUG_CFLAGS="$DEBUG_CFLAGS -xtaso" |
---|
| 2913 | |
---|
| 2914 | # -taso: Load the executable into the lower 31-bit address space |
---|
| 2915 | OPTIMIZE_LDFLAGS="$OPTIMIZE_LDFLAGS -om -taso" |
---|
| 2916 | DEBUG_LDFLAGS="$DEBUG_LDFLAGS -taso" |
---|
| 2917 | |
---|
| 2918 | cat >>confdefs.h <<\_ACEOF |
---|
| 2919 | #define SIZEOF_VOID_P 4 |
---|
| 2920 | _ACEOF |
---|
| 2921 | |
---|
| 2922 | ac_sizeof_voidp=4 |
---|
| 2923 | fi |
---|
| 2924 | ;; |
---|
| 2925 | |
---|
| 2926 | hppa*-*-hpux*) |
---|
| 2927 | # HP running HPUX |
---|
| 2928 | # -Aa: Behave as an ANSI compiler |
---|
| 2929 | # -D_HPUX_SOURCE: Include "HP-specific" symbols in the header |
---|
| 2930 | # files (e.g., this means sys/resource.h has struct rusage) |
---|
| 2931 | OPTIMIZE_CFLAGS="-O -Aa -D_HPUX_SOURCE" |
---|
| 2932 | DEBUG_CFLAGS="-g -Aa -D_HPUX_SOURCE" ;; |
---|
| 2933 | |
---|
| 2934 | *) |
---|
| 2935 | # Other systems: |
---|
| 2936 | OPTIMIZE_CFLAGS="-O" ;; |
---|
| 2937 | |
---|
| 2938 | esac |
---|
| 2939 | |
---|
| 2940 | if test "$GCC" = yes; then |
---|
| 2941 | case "$target" in |
---|
| 2942 | i686-pc-linux-gnu | i386-pc-solaris* | i386-pc-cygwin32) |
---|
| 2943 | echo "$as_me:$LINENO: checking for -mcpu and -malign compiler options" >&5 |
---|
| 2944 | echo $ECHO_N "checking for -mcpu and -malign compiler options... $ECHO_C" >&6 |
---|
| 2945 | CFLAGS="-g -O6 -mcpu=pentiumpro -malign-double" |
---|
| 2946 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 2947 | /* confdefs.h. */ |
---|
| 2948 | _ACEOF |
---|
| 2949 | cat confdefs.h >>conftest.$ac_ext |
---|
| 2950 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 2951 | /* end confdefs.h. */ |
---|
| 2952 | |
---|
| 2953 | int |
---|
| 2954 | main () |
---|
| 2955 | { |
---|
| 2956 | |
---|
| 2957 | ; |
---|
| 2958 | return 0; |
---|
| 2959 | } |
---|
| 2960 | _ACEOF |
---|
| 2961 | rm -f conftest.$ac_objext |
---|
| 2962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 2963 | (eval $ac_compile) 2>conftest.er1 |
---|
| 2964 | ac_status=$? |
---|
| 2965 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 2966 | rm -f conftest.er1 |
---|
| 2967 | cat conftest.err >&5 |
---|
| 2968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2969 | (exit $ac_status); } && |
---|
| 2970 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 2971 | || test ! -s conftest.err' |
---|
| 2972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2973 | (eval $ac_try) 2>&5 |
---|
| 2974 | ac_status=$? |
---|
| 2975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2976 | (exit $ac_status); }; } && |
---|
| 2977 | { ac_try='test -s conftest.$ac_objext' |
---|
| 2978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 2979 | (eval $ac_try) 2>&5 |
---|
| 2980 | ac_status=$? |
---|
| 2981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 2982 | (exit $ac_status); }; }; then |
---|
| 2983 | ac_have_mcpu=yes |
---|
| 2984 | else |
---|
| 2985 | echo "$as_me: failed program was:" >&5 |
---|
| 2986 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 2987 | |
---|
| 2988 | ac_have_mcpu=no |
---|
| 2989 | fi |
---|
| 2990 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 2991 | if test "$ac_have_mcpu" = yes; then |
---|
| 2992 | echo "$as_me:$LINENO: result: working" >&5 |
---|
| 2993 | echo "${ECHO_T}working" >&6 |
---|
| 2994 | OPTIMIZE_CFLAGS="-g -O6 -mcpu=pentiumpro -malign-double" |
---|
| 2995 | else |
---|
| 2996 | echo "$as_me:$LINENO: result: broken" >&5 |
---|
| 2997 | echo "${ECHO_T}broken" >&6 |
---|
| 2998 | OPTIMIZE_CFLAGS="-g -O3" |
---|
| 2999 | fi |
---|
| 3000 | ;; |
---|
| 3001 | sparc-sun-solaris*) |
---|
| 3002 | echo "$as_me:$LINENO: checking for -mtune compiler option" >&5 |
---|
| 3003 | echo $ECHO_N "checking for -mtune compiler option... $ECHO_C" >&6 |
---|
| 3004 | CFLAGS="-g -O6 -mtune=ultrasparc" |
---|
| 3005 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3006 | /* confdefs.h. */ |
---|
| 3007 | _ACEOF |
---|
| 3008 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3009 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3010 | /* end confdefs.h. */ |
---|
| 3011 | |
---|
| 3012 | int |
---|
| 3013 | main () |
---|
| 3014 | { |
---|
| 3015 | |
---|
| 3016 | ; |
---|
| 3017 | return 0; |
---|
| 3018 | } |
---|
| 3019 | _ACEOF |
---|
| 3020 | rm -f conftest.$ac_objext |
---|
| 3021 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 3022 | (eval $ac_compile) 2>conftest.er1 |
---|
| 3023 | ac_status=$? |
---|
| 3024 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3025 | rm -f conftest.er1 |
---|
| 3026 | cat conftest.err >&5 |
---|
| 3027 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3028 | (exit $ac_status); } && |
---|
| 3029 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3030 | || test ! -s conftest.err' |
---|
| 3031 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3032 | (eval $ac_try) 2>&5 |
---|
| 3033 | ac_status=$? |
---|
| 3034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3035 | (exit $ac_status); }; } && |
---|
| 3036 | { ac_try='test -s conftest.$ac_objext' |
---|
| 3037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3038 | (eval $ac_try) 2>&5 |
---|
| 3039 | ac_status=$? |
---|
| 3040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3041 | (exit $ac_status); }; }; then |
---|
| 3042 | ac_have_mtune=yes |
---|
| 3043 | else |
---|
| 3044 | echo "$as_me: failed program was:" >&5 |
---|
| 3045 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3046 | |
---|
| 3047 | ac_have_mtune=no |
---|
| 3048 | fi |
---|
| 3049 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 3050 | if test "$ac_have_mtune" = yes; then |
---|
| 3051 | echo "$as_me:$LINENO: result: working" >&5 |
---|
| 3052 | echo "${ECHO_T}working" >&6 |
---|
| 3053 | OPTIMIZE_CFLAGS="-g -O6 -mtune=ultrasparc" |
---|
| 3054 | else |
---|
| 3055 | echo "$as_me:$LINENO: result: not working" >&5 |
---|
| 3056 | echo "${ECHO_T}not working" >&6 |
---|
| 3057 | OPTIMIZE_CFLAGS="-g -O3" |
---|
| 3058 | fi |
---|
| 3059 | ;; |
---|
| 3060 | *) |
---|
| 3061 | OPTIMIZE_CFLAGS="-g -O3" |
---|
| 3062 | ;; |
---|
| 3063 | esac |
---|
| 3064 | OPTIMIZE_LDFLAGS="" |
---|
| 3065 | DEBUG_CFLAGS="-g" |
---|
| 3066 | DEBUG_LDFLAGS="" |
---|
| 3067 | fi |
---|
| 3068 | |
---|
| 3069 | |
---|
| 3070 | # Check whether --with-comp-mode or --without-comp-mode was given. |
---|
| 3071 | if test "${with_comp_mode+set}" = set; then |
---|
| 3072 | withval="$with_comp_mode" |
---|
| 3073 | comp_mode=$withval |
---|
| 3074 | else |
---|
| 3075 | comp_mode=optimize |
---|
| 3076 | fi; |
---|
| 3077 | |
---|
| 3078 | |
---|
| 3079 | LINKER="$CC" |
---|
| 3080 | |
---|
| 3081 | case "$comp_mode" in |
---|
| 3082 | debug) |
---|
| 3083 | CFLAGS="$DEBUG_CFLAGS" |
---|
| 3084 | LDFLAGS="$DEBUG_LDFLAGS" ;; |
---|
| 3085 | purify) |
---|
| 3086 | CFLAGS="$DEBUG_CFLAGS" |
---|
| 3087 | LDFLAGS="$DEBUG_LDFLAGS" |
---|
| 3088 | cat >>confdefs.h <<\_ACEOF |
---|
| 3089 | #define PURIFY 1 |
---|
| 3090 | _ACEOF |
---|
| 3091 | |
---|
| 3092 | LINKER="purify -cache-dir=/tmp $CC" ;; |
---|
| 3093 | quantify) |
---|
| 3094 | CFLAGS="$OPTIMIZE_CFLAGS" |
---|
| 3095 | LDFLAGS="$OPTIMIZE_LDFLAGS" |
---|
| 3096 | cat >>confdefs.h <<\_ACEOF |
---|
| 3097 | #define QUANTIFY 1 |
---|
| 3098 | _ACEOF |
---|
| 3099 | |
---|
| 3100 | cat >>confdefs.h <<\_ACEOF |
---|
| 3101 | #define NDEBUG 1 |
---|
| 3102 | _ACEOF |
---|
| 3103 | |
---|
| 3104 | LINKER="quantify $CC" ;; |
---|
| 3105 | optimize | *) |
---|
| 3106 | CFLAGS="$OPTIMIZE_CFLAGS" |
---|
| 3107 | LDFLAGS="$OPTIMIZE_LDFLAGS" |
---|
| 3108 | cat >>confdefs.h <<\_ACEOF |
---|
| 3109 | #define NDEBUG 1 |
---|
| 3110 | _ACEOF |
---|
| 3111 | ;; |
---|
| 3112 | esac |
---|
| 3113 | |
---|
| 3114 | for ac_prog in flex lex |
---|
| 3115 | do |
---|
| 3116 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 3117 | set dummy $ac_prog; ac_word=$2 |
---|
| 3118 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 3119 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 3120 | if test "${ac_cv_prog_LEX+set}" = set; then |
---|
| 3121 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3122 | else |
---|
| 3123 | if test -n "$LEX"; then |
---|
| 3124 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
---|
| 3125 | else |
---|
| 3126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3127 | for as_dir in $PATH |
---|
| 3128 | do |
---|
| 3129 | IFS=$as_save_IFS |
---|
| 3130 | test -z "$as_dir" && as_dir=. |
---|
| 3131 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3132 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 3133 | ac_cv_prog_LEX="$ac_prog" |
---|
| 3134 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3135 | break 2 |
---|
| 3136 | fi |
---|
| 3137 | done |
---|
| 3138 | done |
---|
| 3139 | |
---|
| 3140 | fi |
---|
| 3141 | fi |
---|
| 3142 | LEX=$ac_cv_prog_LEX |
---|
| 3143 | if test -n "$LEX"; then |
---|
| 3144 | echo "$as_me:$LINENO: result: $LEX" >&5 |
---|
| 3145 | echo "${ECHO_T}$LEX" >&6 |
---|
| 3146 | else |
---|
| 3147 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3148 | echo "${ECHO_T}no" >&6 |
---|
| 3149 | fi |
---|
| 3150 | |
---|
| 3151 | test -n "$LEX" && break |
---|
| 3152 | done |
---|
| 3153 | test -n "$LEX" || LEX=":" |
---|
| 3154 | |
---|
| 3155 | if test -z "$LEXLIB" |
---|
| 3156 | then |
---|
| 3157 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
---|
| 3158 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
---|
| 3159 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
---|
| 3160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3161 | else |
---|
| 3162 | ac_check_lib_save_LIBS=$LIBS |
---|
| 3163 | LIBS="-lfl $LIBS" |
---|
| 3164 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3165 | /* confdefs.h. */ |
---|
| 3166 | _ACEOF |
---|
| 3167 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3168 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3169 | /* end confdefs.h. */ |
---|
| 3170 | |
---|
| 3171 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 3172 | #ifdef __cplusplus |
---|
| 3173 | extern "C" |
---|
| 3174 | #endif |
---|
| 3175 | /* We use char because int might match the return type of a gcc2 |
---|
| 3176 | builtin and then its argument prototype would still apply. */ |
---|
| 3177 | char yywrap (); |
---|
| 3178 | int |
---|
| 3179 | main () |
---|
| 3180 | { |
---|
| 3181 | yywrap (); |
---|
| 3182 | ; |
---|
| 3183 | return 0; |
---|
| 3184 | } |
---|
| 3185 | _ACEOF |
---|
| 3186 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3188 | (eval $ac_link) 2>conftest.er1 |
---|
| 3189 | ac_status=$? |
---|
| 3190 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3191 | rm -f conftest.er1 |
---|
| 3192 | cat conftest.err >&5 |
---|
| 3193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3194 | (exit $ac_status); } && |
---|
| 3195 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3196 | || test ! -s conftest.err' |
---|
| 3197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3198 | (eval $ac_try) 2>&5 |
---|
| 3199 | ac_status=$? |
---|
| 3200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3201 | (exit $ac_status); }; } && |
---|
| 3202 | { ac_try='test -s conftest$ac_exeext' |
---|
| 3203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3204 | (eval $ac_try) 2>&5 |
---|
| 3205 | ac_status=$? |
---|
| 3206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3207 | (exit $ac_status); }; }; then |
---|
| 3208 | ac_cv_lib_fl_yywrap=yes |
---|
| 3209 | else |
---|
| 3210 | echo "$as_me: failed program was:" >&5 |
---|
| 3211 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3212 | |
---|
| 3213 | ac_cv_lib_fl_yywrap=no |
---|
| 3214 | fi |
---|
| 3215 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 3216 | conftest$ac_exeext conftest.$ac_ext |
---|
| 3217 | LIBS=$ac_check_lib_save_LIBS |
---|
| 3218 | fi |
---|
| 3219 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
---|
| 3220 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
---|
| 3221 | if test $ac_cv_lib_fl_yywrap = yes; then |
---|
| 3222 | LEXLIB="-lfl" |
---|
| 3223 | else |
---|
| 3224 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
---|
| 3225 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
---|
| 3226 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
---|
| 3227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3228 | else |
---|
| 3229 | ac_check_lib_save_LIBS=$LIBS |
---|
| 3230 | LIBS="-ll $LIBS" |
---|
| 3231 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3232 | /* confdefs.h. */ |
---|
| 3233 | _ACEOF |
---|
| 3234 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3235 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3236 | /* end confdefs.h. */ |
---|
| 3237 | |
---|
| 3238 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 3239 | #ifdef __cplusplus |
---|
| 3240 | extern "C" |
---|
| 3241 | #endif |
---|
| 3242 | /* We use char because int might match the return type of a gcc2 |
---|
| 3243 | builtin and then its argument prototype would still apply. */ |
---|
| 3244 | char yywrap (); |
---|
| 3245 | int |
---|
| 3246 | main () |
---|
| 3247 | { |
---|
| 3248 | yywrap (); |
---|
| 3249 | ; |
---|
| 3250 | return 0; |
---|
| 3251 | } |
---|
| 3252 | _ACEOF |
---|
| 3253 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3254 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3255 | (eval $ac_link) 2>conftest.er1 |
---|
| 3256 | ac_status=$? |
---|
| 3257 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3258 | rm -f conftest.er1 |
---|
| 3259 | cat conftest.err >&5 |
---|
| 3260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3261 | (exit $ac_status); } && |
---|
| 3262 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3263 | || test ! -s conftest.err' |
---|
| 3264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3265 | (eval $ac_try) 2>&5 |
---|
| 3266 | ac_status=$? |
---|
| 3267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3268 | (exit $ac_status); }; } && |
---|
| 3269 | { ac_try='test -s conftest$ac_exeext' |
---|
| 3270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3271 | (eval $ac_try) 2>&5 |
---|
| 3272 | ac_status=$? |
---|
| 3273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3274 | (exit $ac_status); }; }; then |
---|
| 3275 | ac_cv_lib_l_yywrap=yes |
---|
| 3276 | else |
---|
| 3277 | echo "$as_me: failed program was:" >&5 |
---|
| 3278 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3279 | |
---|
| 3280 | ac_cv_lib_l_yywrap=no |
---|
| 3281 | fi |
---|
| 3282 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 3283 | conftest$ac_exeext conftest.$ac_ext |
---|
| 3284 | LIBS=$ac_check_lib_save_LIBS |
---|
| 3285 | fi |
---|
| 3286 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
---|
| 3287 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
---|
| 3288 | if test $ac_cv_lib_l_yywrap = yes; then |
---|
| 3289 | LEXLIB="-ll" |
---|
| 3290 | fi |
---|
| 3291 | |
---|
| 3292 | fi |
---|
| 3293 | |
---|
| 3294 | fi |
---|
| 3295 | |
---|
| 3296 | if test "x$LEX" != "x:"; then |
---|
| 3297 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
---|
| 3298 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
---|
| 3299 | if test "${ac_cv_prog_lex_root+set}" = set; then |
---|
| 3300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3301 | else |
---|
| 3302 | # The minimal lex program is just a single line: %%. But some broken lexes |
---|
| 3303 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
---|
| 3304 | cat >conftest.l <<_ACEOF |
---|
| 3305 | %% |
---|
| 3306 | %% |
---|
| 3307 | _ACEOF |
---|
| 3308 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
---|
| 3309 | (eval $LEX conftest.l) 2>&5 |
---|
| 3310 | ac_status=$? |
---|
| 3311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3312 | (exit $ac_status); } |
---|
| 3313 | if test -f lex.yy.c; then |
---|
| 3314 | ac_cv_prog_lex_root=lex.yy |
---|
| 3315 | elif test -f lexyy.c; then |
---|
| 3316 | ac_cv_prog_lex_root=lexyy |
---|
| 3317 | else |
---|
| 3318 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
---|
| 3319 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
---|
| 3320 | { (exit 1); exit 1; }; } |
---|
| 3321 | fi |
---|
| 3322 | fi |
---|
| 3323 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
---|
| 3324 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
---|
| 3325 | rm -f conftest.l |
---|
| 3326 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
---|
| 3327 | |
---|
| 3328 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
---|
| 3329 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
---|
| 3330 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
---|
| 3331 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3332 | else |
---|
| 3333 | # POSIX says lex can declare yytext either as a pointer or an array; the |
---|
| 3334 | # default is implementation-dependent. Figure out which it is, since |
---|
| 3335 | # not all implementations provide the %pointer and %array declarations. |
---|
| 3336 | ac_cv_prog_lex_yytext_pointer=no |
---|
| 3337 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
---|
| 3338 | ac_save_LIBS=$LIBS |
---|
| 3339 | LIBS="$LIBS $LEXLIB" |
---|
| 3340 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3341 | `cat $LEX_OUTPUT_ROOT.c` |
---|
| 3342 | _ACEOF |
---|
| 3343 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3344 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3345 | (eval $ac_link) 2>conftest.er1 |
---|
| 3346 | ac_status=$? |
---|
| 3347 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3348 | rm -f conftest.er1 |
---|
| 3349 | cat conftest.err >&5 |
---|
| 3350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3351 | (exit $ac_status); } && |
---|
| 3352 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3353 | || test ! -s conftest.err' |
---|
| 3354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3355 | (eval $ac_try) 2>&5 |
---|
| 3356 | ac_status=$? |
---|
| 3357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3358 | (exit $ac_status); }; } && |
---|
| 3359 | { ac_try='test -s conftest$ac_exeext' |
---|
| 3360 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3361 | (eval $ac_try) 2>&5 |
---|
| 3362 | ac_status=$? |
---|
| 3363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3364 | (exit $ac_status); }; }; then |
---|
| 3365 | ac_cv_prog_lex_yytext_pointer=yes |
---|
| 3366 | else |
---|
| 3367 | echo "$as_me: failed program was:" >&5 |
---|
| 3368 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3369 | |
---|
| 3370 | fi |
---|
| 3371 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 3372 | conftest$ac_exeext conftest.$ac_ext |
---|
| 3373 | LIBS=$ac_save_LIBS |
---|
| 3374 | rm -f "${LEX_OUTPUT_ROOT}.c" |
---|
| 3375 | |
---|
| 3376 | fi |
---|
| 3377 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
---|
| 3378 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
---|
| 3379 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
---|
| 3380 | |
---|
| 3381 | cat >>confdefs.h <<\_ACEOF |
---|
| 3382 | #define YYTEXT_POINTER 1 |
---|
| 3383 | _ACEOF |
---|
| 3384 | |
---|
| 3385 | fi |
---|
| 3386 | |
---|
| 3387 | fi |
---|
| 3388 | echo "$as_me:$LINENO: checking if $LEX accepts the -o and -P options" >&5 |
---|
| 3389 | echo $ECHO_N "checking if $LEX accepts the -o and -P options... $ECHO_C" >&6 |
---|
| 3390 | |
---|
| 3391 | if test "${ac_cv_flex_accepts_op+set}" = set; then |
---|
| 3392 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3393 | else |
---|
| 3394 | ac_cv_flex_accepts_op=yes ; |
---|
| 3395 | echo "%%\ |
---|
| 3396 | %%" | $LEX -Ptest -o/dev/null >/dev/null 2>&1 || ac_cv_flex_accepts_op=no |
---|
| 3397 | fi |
---|
| 3398 | |
---|
| 3399 | if test $ac_cv_flex_accepts_op = yes ; then |
---|
| 3400 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 3401 | echo "${ECHO_T}yes" >&6 |
---|
| 3402 | else |
---|
| 3403 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3404 | echo "${ECHO_T}no" >&6 |
---|
| 3405 | { echo "$as_me:$LINENO: WARNING: You either need a newer version of flex, or need to modify |
---|
| 3406 | the defintion of LEX in the Makefile to point to a version that does |
---|
| 3407 | accept -p -t and -o." >&5 |
---|
| 3408 | echo "$as_me: WARNING: You either need a newer version of flex, or need to modify |
---|
| 3409 | the defintion of LEX in the Makefile to point to a version that does |
---|
| 3410 | accept -p -t and -o." >&2;} |
---|
| 3411 | fi |
---|
| 3412 | |
---|
| 3413 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
---|
| 3414 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
---|
| 3415 | LN_S=$as_ln_s |
---|
| 3416 | if test "$LN_S" = "ln -s"; then |
---|
| 3417 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 3418 | echo "${ECHO_T}yes" >&6 |
---|
| 3419 | else |
---|
| 3420 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
---|
| 3421 | echo "${ECHO_T}no, using $LN_S" >&6 |
---|
| 3422 | fi |
---|
| 3423 | |
---|
| 3424 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
| 3425 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
---|
| 3426 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` |
---|
| 3427 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
---|
| 3428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3429 | else |
---|
| 3430 | cat >conftest.make <<\_ACEOF |
---|
| 3431 | all: |
---|
| 3432 | @echo 'ac_maketemp="$(MAKE)"' |
---|
| 3433 | _ACEOF |
---|
| 3434 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
---|
| 3435 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
---|
| 3436 | if test -n "$ac_maketemp"; then |
---|
| 3437 | eval ac_cv_prog_make_${ac_make}_set=yes |
---|
| 3438 | else |
---|
| 3439 | eval ac_cv_prog_make_${ac_make}_set=no |
---|
| 3440 | fi |
---|
| 3441 | rm -f conftest.make |
---|
| 3442 | fi |
---|
| 3443 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
---|
| 3444 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 3445 | echo "${ECHO_T}yes" >&6 |
---|
| 3446 | SET_MAKE= |
---|
| 3447 | else |
---|
| 3448 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3449 | echo "${ECHO_T}no" >&6 |
---|
| 3450 | SET_MAKE="MAKE=${MAKE-make}" |
---|
| 3451 | fi |
---|
| 3452 | |
---|
| 3453 | # Extract the first word of "ar", so it can be a program name with args. |
---|
| 3454 | set dummy ar; ac_word=$2 |
---|
| 3455 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 3456 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 3457 | if test "${ac_cv_path_AR+set}" = set; then |
---|
| 3458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3459 | else |
---|
| 3460 | case $AR in |
---|
| 3461 | [\\/]* | ?:[\\/]*) |
---|
| 3462 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
---|
| 3463 | ;; |
---|
| 3464 | *) |
---|
| 3465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3466 | for as_dir in $PATH |
---|
| 3467 | do |
---|
| 3468 | IFS=$as_save_IFS |
---|
| 3469 | test -z "$as_dir" && as_dir=. |
---|
| 3470 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3471 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 3472 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
---|
| 3473 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3474 | break 2 |
---|
| 3475 | fi |
---|
| 3476 | done |
---|
| 3477 | done |
---|
| 3478 | |
---|
| 3479 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" |
---|
| 3480 | ;; |
---|
| 3481 | esac |
---|
| 3482 | fi |
---|
| 3483 | AR=$ac_cv_path_AR |
---|
| 3484 | |
---|
| 3485 | if test -n "$AR"; then |
---|
| 3486 | echo "$as_me:$LINENO: result: $AR" >&5 |
---|
| 3487 | echo "${ECHO_T}$AR" >&6 |
---|
| 3488 | else |
---|
| 3489 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3490 | echo "${ECHO_T}no" >&6 |
---|
| 3491 | fi |
---|
| 3492 | |
---|
| 3493 | if test -n "$ac_tool_prefix"; then |
---|
| 3494 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
| 3495 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
| 3496 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 3497 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 3498 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
---|
| 3499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3500 | else |
---|
| 3501 | if test -n "$RANLIB"; then |
---|
| 3502 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
| 3503 | else |
---|
| 3504 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3505 | for as_dir in $PATH |
---|
| 3506 | do |
---|
| 3507 | IFS=$as_save_IFS |
---|
| 3508 | test -z "$as_dir" && as_dir=. |
---|
| 3509 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3510 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 3511 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
| 3512 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3513 | break 2 |
---|
| 3514 | fi |
---|
| 3515 | done |
---|
| 3516 | done |
---|
| 3517 | |
---|
| 3518 | fi |
---|
| 3519 | fi |
---|
| 3520 | RANLIB=$ac_cv_prog_RANLIB |
---|
| 3521 | if test -n "$RANLIB"; then |
---|
| 3522 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
---|
| 3523 | echo "${ECHO_T}$RANLIB" >&6 |
---|
| 3524 | else |
---|
| 3525 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3526 | echo "${ECHO_T}no" >&6 |
---|
| 3527 | fi |
---|
| 3528 | |
---|
| 3529 | fi |
---|
| 3530 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
| 3531 | ac_ct_RANLIB=$RANLIB |
---|
| 3532 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
| 3533 | set dummy ranlib; ac_word=$2 |
---|
| 3534 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 3535 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 3536 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
---|
| 3537 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3538 | else |
---|
| 3539 | if test -n "$ac_ct_RANLIB"; then |
---|
| 3540 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
| 3541 | else |
---|
| 3542 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3543 | for as_dir in $PATH |
---|
| 3544 | do |
---|
| 3545 | IFS=$as_save_IFS |
---|
| 3546 | test -z "$as_dir" && as_dir=. |
---|
| 3547 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3548 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 3549 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
| 3550 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3551 | break 2 |
---|
| 3552 | fi |
---|
| 3553 | done |
---|
| 3554 | done |
---|
| 3555 | |
---|
| 3556 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
---|
| 3557 | fi |
---|
| 3558 | fi |
---|
| 3559 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
| 3560 | if test -n "$ac_ct_RANLIB"; then |
---|
| 3561 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
---|
| 3562 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
---|
| 3563 | else |
---|
| 3564 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3565 | echo "${ECHO_T}no" >&6 |
---|
| 3566 | fi |
---|
| 3567 | |
---|
| 3568 | RANLIB=$ac_ct_RANLIB |
---|
| 3569 | else |
---|
| 3570 | RANLIB="$ac_cv_prog_RANLIB" |
---|
| 3571 | fi |
---|
| 3572 | |
---|
| 3573 | for ac_prog in 'bison -y' byacc |
---|
| 3574 | do |
---|
| 3575 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
| 3576 | set dummy $ac_prog; ac_word=$2 |
---|
| 3577 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
---|
| 3578 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
---|
| 3579 | if test "${ac_cv_prog_YACC+set}" = set; then |
---|
| 3580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3581 | else |
---|
| 3582 | if test -n "$YACC"; then |
---|
| 3583 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
---|
| 3584 | else |
---|
| 3585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 3586 | for as_dir in $PATH |
---|
| 3587 | do |
---|
| 3588 | IFS=$as_save_IFS |
---|
| 3589 | test -z "$as_dir" && as_dir=. |
---|
| 3590 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
| 3591 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
---|
| 3592 | ac_cv_prog_YACC="$ac_prog" |
---|
| 3593 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
| 3594 | break 2 |
---|
| 3595 | fi |
---|
| 3596 | done |
---|
| 3597 | done |
---|
| 3598 | |
---|
| 3599 | fi |
---|
| 3600 | fi |
---|
| 3601 | YACC=$ac_cv_prog_YACC |
---|
| 3602 | if test -n "$YACC"; then |
---|
| 3603 | echo "$as_me:$LINENO: result: $YACC" >&5 |
---|
| 3604 | echo "${ECHO_T}$YACC" >&6 |
---|
| 3605 | else |
---|
| 3606 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3607 | echo "${ECHO_T}no" >&6 |
---|
| 3608 | fi |
---|
| 3609 | |
---|
| 3610 | test -n "$YACC" && break |
---|
| 3611 | done |
---|
| 3612 | test -n "$YACC" || YACC="yacc" |
---|
| 3613 | |
---|
| 3614 | echo "$as_me:$LINENO: checking if $YACC accepts the -p, -t, and -o options" >&5 |
---|
| 3615 | echo $ECHO_N "checking if $YACC accepts the -p, -t, and -o options... $ECHO_C" >&6 |
---|
| 3616 | if test "${ac_cv_yacc_accepts_pto+set}" = set; then |
---|
| 3617 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3618 | else |
---|
| 3619 | ac_cv_yacc_accepts_pto=yes ; |
---|
| 3620 | echo "%token terminal\ |
---|
| 3621 | %%\ |
---|
| 3622 | nonterminal: terminal\ |
---|
| 3623 | %%" > config.in |
---|
| 3624 | $YACC -ptest -o /dev/null config.in >/dev/null 2>&1 || ac_cv_yacc_accepts_pto=norm -f config.in |
---|
| 3625 | fi |
---|
| 3626 | |
---|
| 3627 | if test $ac_cv_yacc_accepts_pto = yes ; then |
---|
| 3628 | echo "$as_me:$LINENO: result: yes" >&5 |
---|
| 3629 | echo "${ECHO_T}yes" >&6 |
---|
| 3630 | else |
---|
| 3631 | echo "$as_me:$LINENO: result: no" >&5 |
---|
| 3632 | echo "${ECHO_T}no" >&6 |
---|
| 3633 | { echo "$as_me:$LINENO: WARNING: You either need a newer version of bison, or need to modify |
---|
| 3634 | the defintion of YACC in the Makefile to point to a version that does |
---|
| 3635 | accept -p -t and -o." >&5 |
---|
| 3636 | echo "$as_me: WARNING: You either need a newer version of bison, or need to modify |
---|
| 3637 | the defintion of YACC in the Makefile to point to a version that does |
---|
| 3638 | accept -p -t and -o." >&2;} |
---|
| 3639 | fi |
---|
| 3640 | |
---|
| 3641 | |
---|
| 3642 | |
---|
| 3643 | |
---|
| 3644 | # add -lucb to LIBS and set LIBDIRS to -L/usr/ucblib |
---|
| 3645 | # if there's a libucb.a available |
---|
| 3646 | # (Solaris needs this for signals) |
---|
| 3647 | |
---|
| 3648 | ac_save_ldflags="$LDFLAGS" |
---|
| 3649 | LDFLAGS=-L/usr/ucblib |
---|
| 3650 | echo "$as_me:$LINENO: checking for main in -lucb" >&5 |
---|
| 3651 | echo $ECHO_N "checking for main in -lucb... $ECHO_C" >&6 |
---|
| 3652 | if test "${ac_cv_lib_ucb_main+set}" = set; then |
---|
| 3653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3654 | else |
---|
| 3655 | ac_check_lib_save_LIBS=$LIBS |
---|
| 3656 | LIBS="-lucb $LIBS" |
---|
| 3657 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3658 | /* confdefs.h. */ |
---|
| 3659 | _ACEOF |
---|
| 3660 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3661 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3662 | /* end confdefs.h. */ |
---|
| 3663 | |
---|
| 3664 | |
---|
| 3665 | int |
---|
| 3666 | main () |
---|
| 3667 | { |
---|
| 3668 | main (); |
---|
| 3669 | ; |
---|
| 3670 | return 0; |
---|
| 3671 | } |
---|
| 3672 | _ACEOF |
---|
| 3673 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3675 | (eval $ac_link) 2>conftest.er1 |
---|
| 3676 | ac_status=$? |
---|
| 3677 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3678 | rm -f conftest.er1 |
---|
| 3679 | cat conftest.err >&5 |
---|
| 3680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3681 | (exit $ac_status); } && |
---|
| 3682 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3683 | || test ! -s conftest.err' |
---|
| 3684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3685 | (eval $ac_try) 2>&5 |
---|
| 3686 | ac_status=$? |
---|
| 3687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3688 | (exit $ac_status); }; } && |
---|
| 3689 | { ac_try='test -s conftest$ac_exeext' |
---|
| 3690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3691 | (eval $ac_try) 2>&5 |
---|
| 3692 | ac_status=$? |
---|
| 3693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3694 | (exit $ac_status); }; }; then |
---|
| 3695 | ac_cv_lib_ucb_main=yes |
---|
| 3696 | else |
---|
| 3697 | echo "$as_me: failed program was:" >&5 |
---|
| 3698 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3699 | |
---|
| 3700 | ac_cv_lib_ucb_main=no |
---|
| 3701 | fi |
---|
| 3702 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 3703 | conftest$ac_exeext conftest.$ac_ext |
---|
| 3704 | LIBS=$ac_check_lib_save_LIBS |
---|
| 3705 | fi |
---|
| 3706 | echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_main" >&5 |
---|
| 3707 | echo "${ECHO_T}$ac_cv_lib_ucb_main" >&6 |
---|
| 3708 | if test $ac_cv_lib_ucb_main = yes; then |
---|
| 3709 | LIBDIRS=-L/usr/ucblib |
---|
| 3710 | fi |
---|
| 3711 | |
---|
| 3712 | LDFLAGS="$ac_save_ldflags" |
---|
| 3713 | |
---|
| 3714 | # add -lbsd if there's a libbsd.a available |
---|
| 3715 | # (e.g., Linux needs this for bsd_ioctl) |
---|
| 3716 | |
---|
| 3717 | echo "$as_me:$LINENO: checking for main in -lbsd" >&5 |
---|
| 3718 | echo $ECHO_N "checking for main in -lbsd... $ECHO_C" >&6 |
---|
| 3719 | if test "${ac_cv_lib_bsd_main+set}" = set; then |
---|
| 3720 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3721 | else |
---|
| 3722 | ac_check_lib_save_LIBS=$LIBS |
---|
| 3723 | LIBS="-lbsd $LIBS" |
---|
| 3724 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3725 | /* confdefs.h. */ |
---|
| 3726 | _ACEOF |
---|
| 3727 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3728 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3729 | /* end confdefs.h. */ |
---|
| 3730 | |
---|
| 3731 | |
---|
| 3732 | int |
---|
| 3733 | main () |
---|
| 3734 | { |
---|
| 3735 | main (); |
---|
| 3736 | ; |
---|
| 3737 | return 0; |
---|
| 3738 | } |
---|
| 3739 | _ACEOF |
---|
| 3740 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3742 | (eval $ac_link) 2>conftest.er1 |
---|
| 3743 | ac_status=$? |
---|
| 3744 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3745 | rm -f conftest.er1 |
---|
| 3746 | cat conftest.err >&5 |
---|
| 3747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3748 | (exit $ac_status); } && |
---|
| 3749 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3750 | || test ! -s conftest.err' |
---|
| 3751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3752 | (eval $ac_try) 2>&5 |
---|
| 3753 | ac_status=$? |
---|
| 3754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3755 | (exit $ac_status); }; } && |
---|
| 3756 | { ac_try='test -s conftest$ac_exeext' |
---|
| 3757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3758 | (eval $ac_try) 2>&5 |
---|
| 3759 | ac_status=$? |
---|
| 3760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3761 | (exit $ac_status); }; }; then |
---|
| 3762 | ac_cv_lib_bsd_main=yes |
---|
| 3763 | else |
---|
| 3764 | echo "$as_me: failed program was:" >&5 |
---|
| 3765 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3766 | |
---|
| 3767 | ac_cv_lib_bsd_main=no |
---|
| 3768 | fi |
---|
| 3769 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 3770 | conftest$ac_exeext conftest.$ac_ext |
---|
| 3771 | LIBS=$ac_check_lib_save_LIBS |
---|
| 3772 | fi |
---|
| 3773 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_main" >&5 |
---|
| 3774 | echo "${ECHO_T}$ac_cv_lib_bsd_main" >&6 |
---|
| 3775 | if test $ac_cv_lib_bsd_main = yes; then |
---|
| 3776 | cat >>confdefs.h <<_ACEOF |
---|
| 3777 | #define HAVE_LIBBSD 1 |
---|
| 3778 | _ACEOF |
---|
| 3779 | |
---|
| 3780 | LIBS="-lbsd $LIBS" |
---|
| 3781 | |
---|
| 3782 | fi |
---|
| 3783 | |
---|
| 3784 | |
---|
| 3785 | |
---|
| 3786 | echo "$as_me:$LINENO: checking for main in -lglu" >&5 |
---|
| 3787 | echo $ECHO_N "checking for main in -lglu... $ECHO_C" >&6 |
---|
| 3788 | if test "${ac_cv_lib_glu_main+set}" = set; then |
---|
| 3789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3790 | else |
---|
| 3791 | ac_check_lib_save_LIBS=$LIBS |
---|
| 3792 | LIBS="-lglu $LIBS" |
---|
| 3793 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3794 | /* confdefs.h. */ |
---|
| 3795 | _ACEOF |
---|
| 3796 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3797 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3798 | /* end confdefs.h. */ |
---|
| 3799 | |
---|
| 3800 | |
---|
| 3801 | int |
---|
| 3802 | main () |
---|
| 3803 | { |
---|
| 3804 | main (); |
---|
| 3805 | ; |
---|
| 3806 | return 0; |
---|
| 3807 | } |
---|
| 3808 | _ACEOF |
---|
| 3809 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3811 | (eval $ac_link) 2>conftest.er1 |
---|
| 3812 | ac_status=$? |
---|
| 3813 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3814 | rm -f conftest.er1 |
---|
| 3815 | cat conftest.err >&5 |
---|
| 3816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3817 | (exit $ac_status); } && |
---|
| 3818 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3819 | || test ! -s conftest.err' |
---|
| 3820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3821 | (eval $ac_try) 2>&5 |
---|
| 3822 | ac_status=$? |
---|
| 3823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3824 | (exit $ac_status); }; } && |
---|
| 3825 | { ac_try='test -s conftest$ac_exeext' |
---|
| 3826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3827 | (eval $ac_try) 2>&5 |
---|
| 3828 | ac_status=$? |
---|
| 3829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3830 | (exit $ac_status); }; }; then |
---|
| 3831 | ac_cv_lib_glu_main=yes |
---|
| 3832 | else |
---|
| 3833 | echo "$as_me: failed program was:" >&5 |
---|
| 3834 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3835 | |
---|
| 3836 | ac_cv_lib_glu_main=no |
---|
| 3837 | fi |
---|
| 3838 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 3839 | conftest$ac_exeext conftest.$ac_ext |
---|
| 3840 | LIBS=$ac_check_lib_save_LIBS |
---|
| 3841 | fi |
---|
| 3842 | echo "$as_me:$LINENO: result: $ac_cv_lib_glu_main" >&5 |
---|
| 3843 | echo "${ECHO_T}$ac_cv_lib_glu_main" >&6 |
---|
| 3844 | if test $ac_cv_lib_glu_main = yes; then |
---|
| 3845 | cat >>confdefs.h <<_ACEOF |
---|
| 3846 | #define HAVE_LIBGLU 1 |
---|
| 3847 | _ACEOF |
---|
| 3848 | |
---|
| 3849 | LIBS="-lglu $LIBS" |
---|
| 3850 | |
---|
| 3851 | fi |
---|
| 3852 | |
---|
| 3853 | |
---|
| 3854 | echo "$as_me:$LINENO: checking for main in -lm" >&5 |
---|
| 3855 | echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6 |
---|
| 3856 | if test "${ac_cv_lib_m_main+set}" = set; then |
---|
| 3857 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3858 | else |
---|
| 3859 | ac_check_lib_save_LIBS=$LIBS |
---|
| 3860 | LIBS="-lm $LIBS" |
---|
| 3861 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3862 | /* confdefs.h. */ |
---|
| 3863 | _ACEOF |
---|
| 3864 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3865 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3866 | /* end confdefs.h. */ |
---|
| 3867 | |
---|
| 3868 | |
---|
| 3869 | int |
---|
| 3870 | main () |
---|
| 3871 | { |
---|
| 3872 | main (); |
---|
| 3873 | ; |
---|
| 3874 | return 0; |
---|
| 3875 | } |
---|
| 3876 | _ACEOF |
---|
| 3877 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 3878 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 3879 | (eval $ac_link) 2>conftest.er1 |
---|
| 3880 | ac_status=$? |
---|
| 3881 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3882 | rm -f conftest.er1 |
---|
| 3883 | cat conftest.err >&5 |
---|
| 3884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3885 | (exit $ac_status); } && |
---|
| 3886 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 3887 | || test ! -s conftest.err' |
---|
| 3888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3889 | (eval $ac_try) 2>&5 |
---|
| 3890 | ac_status=$? |
---|
| 3891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3892 | (exit $ac_status); }; } && |
---|
| 3893 | { ac_try='test -s conftest$ac_exeext' |
---|
| 3894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 3895 | (eval $ac_try) 2>&5 |
---|
| 3896 | ac_status=$? |
---|
| 3897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3898 | (exit $ac_status); }; }; then |
---|
| 3899 | ac_cv_lib_m_main=yes |
---|
| 3900 | else |
---|
| 3901 | echo "$as_me: failed program was:" >&5 |
---|
| 3902 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3903 | |
---|
| 3904 | ac_cv_lib_m_main=no |
---|
| 3905 | fi |
---|
| 3906 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 3907 | conftest$ac_exeext conftest.$ac_ext |
---|
| 3908 | LIBS=$ac_check_lib_save_LIBS |
---|
| 3909 | fi |
---|
| 3910 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5 |
---|
| 3911 | echo "${ECHO_T}$ac_cv_lib_m_main" >&6 |
---|
| 3912 | if test $ac_cv_lib_m_main = yes; then |
---|
| 3913 | cat >>confdefs.h <<_ACEOF |
---|
| 3914 | #define HAVE_LIBM 1 |
---|
| 3915 | _ACEOF |
---|
| 3916 | |
---|
| 3917 | LIBS="-lm $LIBS" |
---|
| 3918 | |
---|
| 3919 | fi |
---|
| 3920 | |
---|
| 3921 | |
---|
| 3922 | ac_ext=c |
---|
| 3923 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 3924 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 3925 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 3926 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 3927 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
---|
| 3928 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
---|
| 3929 | # On Suns, sometimes $CPP names a directory. |
---|
| 3930 | if test -n "$CPP" && test -d "$CPP"; then |
---|
| 3931 | CPP= |
---|
| 3932 | fi |
---|
| 3933 | if test -z "$CPP"; then |
---|
| 3934 | if test "${ac_cv_prog_CPP+set}" = set; then |
---|
| 3935 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 3936 | else |
---|
| 3937 | # Double quotes because CPP needs to be expanded |
---|
| 3938 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
| 3939 | do |
---|
| 3940 | ac_preproc_ok=false |
---|
| 3941 | for ac_c_preproc_warn_flag in '' yes |
---|
| 3942 | do |
---|
| 3943 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 3944 | # with a fresh cross-compiler works. |
---|
| 3945 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 3946 | # <limits.h> exists even on freestanding compilers. |
---|
| 3947 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 3948 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 3949 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3950 | /* confdefs.h. */ |
---|
| 3951 | _ACEOF |
---|
| 3952 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3953 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3954 | /* end confdefs.h. */ |
---|
| 3955 | #ifdef __STDC__ |
---|
| 3956 | # include <limits.h> |
---|
| 3957 | #else |
---|
| 3958 | # include <assert.h> |
---|
| 3959 | #endif |
---|
| 3960 | Syntax error |
---|
| 3961 | _ACEOF |
---|
| 3962 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 3963 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 3964 | ac_status=$? |
---|
| 3965 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 3966 | rm -f conftest.er1 |
---|
| 3967 | cat conftest.err >&5 |
---|
| 3968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 3969 | (exit $ac_status); } >/dev/null; then |
---|
| 3970 | if test -s conftest.err; then |
---|
| 3971 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 3972 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 3973 | else |
---|
| 3974 | ac_cpp_err= |
---|
| 3975 | fi |
---|
| 3976 | else |
---|
| 3977 | ac_cpp_err=yes |
---|
| 3978 | fi |
---|
| 3979 | if test -z "$ac_cpp_err"; then |
---|
| 3980 | : |
---|
| 3981 | else |
---|
| 3982 | echo "$as_me: failed program was:" >&5 |
---|
| 3983 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 3984 | |
---|
| 3985 | # Broken: fails on valid input. |
---|
| 3986 | continue |
---|
| 3987 | fi |
---|
| 3988 | rm -f conftest.err conftest.$ac_ext |
---|
| 3989 | |
---|
| 3990 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 3991 | # can be detected and how. |
---|
| 3992 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 3993 | /* confdefs.h. */ |
---|
| 3994 | _ACEOF |
---|
| 3995 | cat confdefs.h >>conftest.$ac_ext |
---|
| 3996 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 3997 | /* end confdefs.h. */ |
---|
| 3998 | #include <ac_nonexistent.h> |
---|
| 3999 | _ACEOF |
---|
| 4000 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4001 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4002 | ac_status=$? |
---|
| 4003 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4004 | rm -f conftest.er1 |
---|
| 4005 | cat conftest.err >&5 |
---|
| 4006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4007 | (exit $ac_status); } >/dev/null; then |
---|
| 4008 | if test -s conftest.err; then |
---|
| 4009 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4010 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4011 | else |
---|
| 4012 | ac_cpp_err= |
---|
| 4013 | fi |
---|
| 4014 | else |
---|
| 4015 | ac_cpp_err=yes |
---|
| 4016 | fi |
---|
| 4017 | if test -z "$ac_cpp_err"; then |
---|
| 4018 | # Broken: success on invalid input. |
---|
| 4019 | continue |
---|
| 4020 | else |
---|
| 4021 | echo "$as_me: failed program was:" >&5 |
---|
| 4022 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4023 | |
---|
| 4024 | # Passes both tests. |
---|
| 4025 | ac_preproc_ok=: |
---|
| 4026 | break |
---|
| 4027 | fi |
---|
| 4028 | rm -f conftest.err conftest.$ac_ext |
---|
| 4029 | |
---|
| 4030 | done |
---|
| 4031 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 4032 | rm -f conftest.err conftest.$ac_ext |
---|
| 4033 | if $ac_preproc_ok; then |
---|
| 4034 | break |
---|
| 4035 | fi |
---|
| 4036 | |
---|
| 4037 | done |
---|
| 4038 | ac_cv_prog_CPP=$CPP |
---|
| 4039 | |
---|
| 4040 | fi |
---|
| 4041 | CPP=$ac_cv_prog_CPP |
---|
| 4042 | else |
---|
| 4043 | ac_cv_prog_CPP=$CPP |
---|
| 4044 | fi |
---|
| 4045 | echo "$as_me:$LINENO: result: $CPP" >&5 |
---|
| 4046 | echo "${ECHO_T}$CPP" >&6 |
---|
| 4047 | ac_preproc_ok=false |
---|
| 4048 | for ac_c_preproc_warn_flag in '' yes |
---|
| 4049 | do |
---|
| 4050 | # Use a header file that comes with gcc, so configuring glibc |
---|
| 4051 | # with a fresh cross-compiler works. |
---|
| 4052 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 4053 | # <limits.h> exists even on freestanding compilers. |
---|
| 4054 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
| 4055 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
| 4056 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4057 | /* confdefs.h. */ |
---|
| 4058 | _ACEOF |
---|
| 4059 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4060 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4061 | /* end confdefs.h. */ |
---|
| 4062 | #ifdef __STDC__ |
---|
| 4063 | # include <limits.h> |
---|
| 4064 | #else |
---|
| 4065 | # include <assert.h> |
---|
| 4066 | #endif |
---|
| 4067 | Syntax error |
---|
| 4068 | _ACEOF |
---|
| 4069 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4070 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4071 | ac_status=$? |
---|
| 4072 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4073 | rm -f conftest.er1 |
---|
| 4074 | cat conftest.err >&5 |
---|
| 4075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4076 | (exit $ac_status); } >/dev/null; then |
---|
| 4077 | if test -s conftest.err; then |
---|
| 4078 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4079 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4080 | else |
---|
| 4081 | ac_cpp_err= |
---|
| 4082 | fi |
---|
| 4083 | else |
---|
| 4084 | ac_cpp_err=yes |
---|
| 4085 | fi |
---|
| 4086 | if test -z "$ac_cpp_err"; then |
---|
| 4087 | : |
---|
| 4088 | else |
---|
| 4089 | echo "$as_me: failed program was:" >&5 |
---|
| 4090 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4091 | |
---|
| 4092 | # Broken: fails on valid input. |
---|
| 4093 | continue |
---|
| 4094 | fi |
---|
| 4095 | rm -f conftest.err conftest.$ac_ext |
---|
| 4096 | |
---|
| 4097 | # OK, works on sane cases. Now check whether non-existent headers |
---|
| 4098 | # can be detected and how. |
---|
| 4099 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4100 | /* confdefs.h. */ |
---|
| 4101 | _ACEOF |
---|
| 4102 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4103 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4104 | /* end confdefs.h. */ |
---|
| 4105 | #include <ac_nonexistent.h> |
---|
| 4106 | _ACEOF |
---|
| 4107 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4108 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4109 | ac_status=$? |
---|
| 4110 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4111 | rm -f conftest.er1 |
---|
| 4112 | cat conftest.err >&5 |
---|
| 4113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4114 | (exit $ac_status); } >/dev/null; then |
---|
| 4115 | if test -s conftest.err; then |
---|
| 4116 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4117 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4118 | else |
---|
| 4119 | ac_cpp_err= |
---|
| 4120 | fi |
---|
| 4121 | else |
---|
| 4122 | ac_cpp_err=yes |
---|
| 4123 | fi |
---|
| 4124 | if test -z "$ac_cpp_err"; then |
---|
| 4125 | # Broken: success on invalid input. |
---|
| 4126 | continue |
---|
| 4127 | else |
---|
| 4128 | echo "$as_me: failed program was:" >&5 |
---|
| 4129 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4130 | |
---|
| 4131 | # Passes both tests. |
---|
| 4132 | ac_preproc_ok=: |
---|
| 4133 | break |
---|
| 4134 | fi |
---|
| 4135 | rm -f conftest.err conftest.$ac_ext |
---|
| 4136 | |
---|
| 4137 | done |
---|
| 4138 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
| 4139 | rm -f conftest.err conftest.$ac_ext |
---|
| 4140 | if $ac_preproc_ok; then |
---|
| 4141 | : |
---|
| 4142 | else |
---|
| 4143 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 4144 | See \`config.log' for more details." >&5 |
---|
| 4145 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
---|
| 4146 | See \`config.log' for more details." >&2;} |
---|
| 4147 | { (exit 1); exit 1; }; } |
---|
| 4148 | fi |
---|
| 4149 | |
---|
| 4150 | ac_ext=c |
---|
| 4151 | ac_cpp='$CPP $CPPFLAGS' |
---|
| 4152 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
| 4153 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
| 4154 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
| 4155 | |
---|
| 4156 | |
---|
| 4157 | echo "$as_me:$LINENO: checking for egrep" >&5 |
---|
| 4158 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
---|
| 4159 | if test "${ac_cv_prog_egrep+set}" = set; then |
---|
| 4160 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4161 | else |
---|
| 4162 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
---|
| 4163 | then ac_cv_prog_egrep='grep -E' |
---|
| 4164 | else ac_cv_prog_egrep='egrep' |
---|
| 4165 | fi |
---|
| 4166 | fi |
---|
| 4167 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
---|
| 4168 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
---|
| 4169 | EGREP=$ac_cv_prog_egrep |
---|
| 4170 | |
---|
| 4171 | |
---|
| 4172 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 4173 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 4174 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 4175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4176 | else |
---|
| 4177 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4178 | /* confdefs.h. */ |
---|
| 4179 | _ACEOF |
---|
| 4180 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4181 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4182 | /* end confdefs.h. */ |
---|
| 4183 | #include <stdlib.h> |
---|
| 4184 | #include <stdarg.h> |
---|
| 4185 | #include <string.h> |
---|
| 4186 | #include <float.h> |
---|
| 4187 | |
---|
| 4188 | int |
---|
| 4189 | main () |
---|
| 4190 | { |
---|
| 4191 | |
---|
| 4192 | ; |
---|
| 4193 | return 0; |
---|
| 4194 | } |
---|
| 4195 | _ACEOF |
---|
| 4196 | rm -f conftest.$ac_objext |
---|
| 4197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4198 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4199 | ac_status=$? |
---|
| 4200 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4201 | rm -f conftest.er1 |
---|
| 4202 | cat conftest.err >&5 |
---|
| 4203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4204 | (exit $ac_status); } && |
---|
| 4205 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4206 | || test ! -s conftest.err' |
---|
| 4207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4208 | (eval $ac_try) 2>&5 |
---|
| 4209 | ac_status=$? |
---|
| 4210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4211 | (exit $ac_status); }; } && |
---|
| 4212 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4214 | (eval $ac_try) 2>&5 |
---|
| 4215 | ac_status=$? |
---|
| 4216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4217 | (exit $ac_status); }; }; then |
---|
| 4218 | ac_cv_header_stdc=yes |
---|
| 4219 | else |
---|
| 4220 | echo "$as_me: failed program was:" >&5 |
---|
| 4221 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4222 | |
---|
| 4223 | ac_cv_header_stdc=no |
---|
| 4224 | fi |
---|
| 4225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4226 | |
---|
| 4227 | if test $ac_cv_header_stdc = yes; then |
---|
| 4228 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 4229 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4230 | /* confdefs.h. */ |
---|
| 4231 | _ACEOF |
---|
| 4232 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4233 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4234 | /* end confdefs.h. */ |
---|
| 4235 | #include <string.h> |
---|
| 4236 | |
---|
| 4237 | _ACEOF |
---|
| 4238 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 4239 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 4240 | : |
---|
| 4241 | else |
---|
| 4242 | ac_cv_header_stdc=no |
---|
| 4243 | fi |
---|
| 4244 | rm -f conftest* |
---|
| 4245 | |
---|
| 4246 | fi |
---|
| 4247 | |
---|
| 4248 | if test $ac_cv_header_stdc = yes; then |
---|
| 4249 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 4250 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4251 | /* confdefs.h. */ |
---|
| 4252 | _ACEOF |
---|
| 4253 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4254 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4255 | /* end confdefs.h. */ |
---|
| 4256 | #include <stdlib.h> |
---|
| 4257 | |
---|
| 4258 | _ACEOF |
---|
| 4259 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 4260 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 4261 | : |
---|
| 4262 | else |
---|
| 4263 | ac_cv_header_stdc=no |
---|
| 4264 | fi |
---|
| 4265 | rm -f conftest* |
---|
| 4266 | |
---|
| 4267 | fi |
---|
| 4268 | |
---|
| 4269 | if test $ac_cv_header_stdc = yes; then |
---|
| 4270 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 4271 | if test "$cross_compiling" = yes; then |
---|
| 4272 | : |
---|
| 4273 | else |
---|
| 4274 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4275 | /* confdefs.h. */ |
---|
| 4276 | _ACEOF |
---|
| 4277 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4278 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4279 | /* end confdefs.h. */ |
---|
| 4280 | #include <ctype.h> |
---|
| 4281 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 4282 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 4283 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 4284 | #else |
---|
| 4285 | # define ISLOWER(c) \ |
---|
| 4286 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 4287 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 4288 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 4289 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 4290 | #endif |
---|
| 4291 | |
---|
| 4292 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 4293 | int |
---|
| 4294 | main () |
---|
| 4295 | { |
---|
| 4296 | int i; |
---|
| 4297 | for (i = 0; i < 256; i++) |
---|
| 4298 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 4299 | || toupper (i) != TOUPPER (i)) |
---|
| 4300 | exit(2); |
---|
| 4301 | exit (0); |
---|
| 4302 | } |
---|
| 4303 | _ACEOF |
---|
| 4304 | rm -f conftest$ac_exeext |
---|
| 4305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4306 | (eval $ac_link) 2>&5 |
---|
| 4307 | ac_status=$? |
---|
| 4308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4309 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 4310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4311 | (eval $ac_try) 2>&5 |
---|
| 4312 | ac_status=$? |
---|
| 4313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4314 | (exit $ac_status); }; }; then |
---|
| 4315 | : |
---|
| 4316 | else |
---|
| 4317 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 4318 | echo "$as_me: failed program was:" >&5 |
---|
| 4319 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4320 | |
---|
| 4321 | ( exit $ac_status ) |
---|
| 4322 | ac_cv_header_stdc=no |
---|
| 4323 | fi |
---|
| 4324 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 4325 | fi |
---|
| 4326 | fi |
---|
| 4327 | fi |
---|
| 4328 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 4329 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 4330 | if test $ac_cv_header_stdc = yes; then |
---|
| 4331 | |
---|
| 4332 | cat >>confdefs.h <<\_ACEOF |
---|
| 4333 | #define STDC_HEADERS 1 |
---|
| 4334 | _ACEOF |
---|
| 4335 | |
---|
| 4336 | fi |
---|
| 4337 | |
---|
| 4338 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
| 4339 | |
---|
| 4340 | |
---|
| 4341 | |
---|
| 4342 | |
---|
| 4343 | |
---|
| 4344 | |
---|
| 4345 | |
---|
| 4346 | |
---|
| 4347 | |
---|
| 4348 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
| 4349 | inttypes.h stdint.h unistd.h |
---|
| 4350 | do |
---|
| 4351 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4352 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4353 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4354 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4356 | else |
---|
| 4357 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4358 | /* confdefs.h. */ |
---|
| 4359 | _ACEOF |
---|
| 4360 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4361 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4362 | /* end confdefs.h. */ |
---|
| 4363 | $ac_includes_default |
---|
| 4364 | |
---|
| 4365 | #include <$ac_header> |
---|
| 4366 | _ACEOF |
---|
| 4367 | rm -f conftest.$ac_objext |
---|
| 4368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4369 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4370 | ac_status=$? |
---|
| 4371 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4372 | rm -f conftest.er1 |
---|
| 4373 | cat conftest.err >&5 |
---|
| 4374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4375 | (exit $ac_status); } && |
---|
| 4376 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4377 | || test ! -s conftest.err' |
---|
| 4378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4379 | (eval $ac_try) 2>&5 |
---|
| 4380 | ac_status=$? |
---|
| 4381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4382 | (exit $ac_status); }; } && |
---|
| 4383 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4385 | (eval $ac_try) 2>&5 |
---|
| 4386 | ac_status=$? |
---|
| 4387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4388 | (exit $ac_status); }; }; then |
---|
| 4389 | eval "$as_ac_Header=yes" |
---|
| 4390 | else |
---|
| 4391 | echo "$as_me: failed program was:" >&5 |
---|
| 4392 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4393 | |
---|
| 4394 | eval "$as_ac_Header=no" |
---|
| 4395 | fi |
---|
| 4396 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4397 | fi |
---|
| 4398 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4399 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4400 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4401 | cat >>confdefs.h <<_ACEOF |
---|
| 4402 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4403 | _ACEOF |
---|
| 4404 | |
---|
| 4405 | fi |
---|
| 4406 | |
---|
| 4407 | done |
---|
| 4408 | |
---|
| 4409 | |
---|
| 4410 | |
---|
| 4411 | for ac_header in sys/time.h |
---|
| 4412 | do |
---|
| 4413 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
| 4414 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4415 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4416 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4417 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4418 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4419 | fi |
---|
| 4420 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4421 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4422 | else |
---|
| 4423 | # Is the header compilable? |
---|
| 4424 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
---|
| 4425 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
---|
| 4426 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4427 | /* confdefs.h. */ |
---|
| 4428 | _ACEOF |
---|
| 4429 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4430 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4431 | /* end confdefs.h. */ |
---|
| 4432 | $ac_includes_default |
---|
| 4433 | #include <$ac_header> |
---|
| 4434 | _ACEOF |
---|
| 4435 | rm -f conftest.$ac_objext |
---|
| 4436 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4437 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4438 | ac_status=$? |
---|
| 4439 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4440 | rm -f conftest.er1 |
---|
| 4441 | cat conftest.err >&5 |
---|
| 4442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4443 | (exit $ac_status); } && |
---|
| 4444 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4445 | || test ! -s conftest.err' |
---|
| 4446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4447 | (eval $ac_try) 2>&5 |
---|
| 4448 | ac_status=$? |
---|
| 4449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4450 | (exit $ac_status); }; } && |
---|
| 4451 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4453 | (eval $ac_try) 2>&5 |
---|
| 4454 | ac_status=$? |
---|
| 4455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4456 | (exit $ac_status); }; }; then |
---|
| 4457 | ac_header_compiler=yes |
---|
| 4458 | else |
---|
| 4459 | echo "$as_me: failed program was:" >&5 |
---|
| 4460 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4461 | |
---|
| 4462 | ac_header_compiler=no |
---|
| 4463 | fi |
---|
| 4464 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4465 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
---|
| 4466 | echo "${ECHO_T}$ac_header_compiler" >&6 |
---|
| 4467 | |
---|
| 4468 | # Is the header present? |
---|
| 4469 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
---|
| 4470 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
---|
| 4471 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4472 | /* confdefs.h. */ |
---|
| 4473 | _ACEOF |
---|
| 4474 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4475 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4476 | /* end confdefs.h. */ |
---|
| 4477 | #include <$ac_header> |
---|
| 4478 | _ACEOF |
---|
| 4479 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
---|
| 4480 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
---|
| 4481 | ac_status=$? |
---|
| 4482 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4483 | rm -f conftest.er1 |
---|
| 4484 | cat conftest.err >&5 |
---|
| 4485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4486 | (exit $ac_status); } >/dev/null; then |
---|
| 4487 | if test -s conftest.err; then |
---|
| 4488 | ac_cpp_err=$ac_c_preproc_warn_flag |
---|
| 4489 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
---|
| 4490 | else |
---|
| 4491 | ac_cpp_err= |
---|
| 4492 | fi |
---|
| 4493 | else |
---|
| 4494 | ac_cpp_err=yes |
---|
| 4495 | fi |
---|
| 4496 | if test -z "$ac_cpp_err"; then |
---|
| 4497 | ac_header_preproc=yes |
---|
| 4498 | else |
---|
| 4499 | echo "$as_me: failed program was:" >&5 |
---|
| 4500 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4501 | |
---|
| 4502 | ac_header_preproc=no |
---|
| 4503 | fi |
---|
| 4504 | rm -f conftest.err conftest.$ac_ext |
---|
| 4505 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
---|
| 4506 | echo "${ECHO_T}$ac_header_preproc" >&6 |
---|
| 4507 | |
---|
| 4508 | # So? What about this header? |
---|
| 4509 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
---|
| 4510 | yes:no: ) |
---|
| 4511 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
| 4512 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
| 4513 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
---|
| 4514 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
---|
| 4515 | ac_header_preproc=yes |
---|
| 4516 | ;; |
---|
| 4517 | no:yes:* ) |
---|
| 4518 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
---|
| 4519 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
---|
| 4520 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
---|
| 4521 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
---|
| 4522 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
---|
| 4523 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
---|
| 4524 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
---|
| 4525 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
| 4526 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
---|
| 4527 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
---|
| 4528 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
---|
| 4529 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
---|
| 4530 | ( |
---|
| 4531 | cat <<\_ASBOX |
---|
| 4532 | ## ------------------------------------------ ## |
---|
| 4533 | ## Report this to the AC_PACKAGE_NAME lists. ## |
---|
| 4534 | ## ------------------------------------------ ## |
---|
| 4535 | _ASBOX |
---|
| 4536 | ) | |
---|
| 4537 | sed "s/^/$as_me: WARNING: /" >&2 |
---|
| 4538 | ;; |
---|
| 4539 | esac |
---|
| 4540 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
---|
| 4541 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
---|
| 4542 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
---|
| 4543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4544 | else |
---|
| 4545 | eval "$as_ac_Header=\$ac_header_preproc" |
---|
| 4546 | fi |
---|
| 4547 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
---|
| 4548 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
---|
| 4549 | |
---|
| 4550 | fi |
---|
| 4551 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
---|
| 4552 | cat >>confdefs.h <<_ACEOF |
---|
| 4553 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
| 4554 | _ACEOF |
---|
| 4555 | |
---|
| 4556 | fi |
---|
| 4557 | |
---|
| 4558 | done |
---|
| 4559 | |
---|
| 4560 | |
---|
| 4561 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
---|
| 4562 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 |
---|
| 4563 | if test "${ac_cv_header_time+set}" = set; then |
---|
| 4564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4565 | else |
---|
| 4566 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4567 | /* confdefs.h. */ |
---|
| 4568 | _ACEOF |
---|
| 4569 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4570 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4571 | /* end confdefs.h. */ |
---|
| 4572 | #include <sys/types.h> |
---|
| 4573 | #include <sys/time.h> |
---|
| 4574 | #include <time.h> |
---|
| 4575 | |
---|
| 4576 | int |
---|
| 4577 | main () |
---|
| 4578 | { |
---|
| 4579 | if ((struct tm *) 0) |
---|
| 4580 | return 0; |
---|
| 4581 | ; |
---|
| 4582 | return 0; |
---|
| 4583 | } |
---|
| 4584 | _ACEOF |
---|
| 4585 | rm -f conftest.$ac_objext |
---|
| 4586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4587 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4588 | ac_status=$? |
---|
| 4589 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4590 | rm -f conftest.er1 |
---|
| 4591 | cat conftest.err >&5 |
---|
| 4592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4593 | (exit $ac_status); } && |
---|
| 4594 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4595 | || test ! -s conftest.err' |
---|
| 4596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4597 | (eval $ac_try) 2>&5 |
---|
| 4598 | ac_status=$? |
---|
| 4599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4600 | (exit $ac_status); }; } && |
---|
| 4601 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4603 | (eval $ac_try) 2>&5 |
---|
| 4604 | ac_status=$? |
---|
| 4605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4606 | (exit $ac_status); }; }; then |
---|
| 4607 | ac_cv_header_time=yes |
---|
| 4608 | else |
---|
| 4609 | echo "$as_me: failed program was:" >&5 |
---|
| 4610 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4611 | |
---|
| 4612 | ac_cv_header_time=no |
---|
| 4613 | fi |
---|
| 4614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4615 | fi |
---|
| 4616 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
---|
| 4617 | echo "${ECHO_T}$ac_cv_header_time" >&6 |
---|
| 4618 | if test $ac_cv_header_time = yes; then |
---|
| 4619 | |
---|
| 4620 | cat >>confdefs.h <<\_ACEOF |
---|
| 4621 | #define TIME_WITH_SYS_TIME 1 |
---|
| 4622 | _ACEOF |
---|
| 4623 | |
---|
| 4624 | fi |
---|
| 4625 | |
---|
| 4626 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
---|
| 4627 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
---|
| 4628 | if test "${ac_cv_struct_tm+set}" = set; then |
---|
| 4629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4630 | else |
---|
| 4631 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4632 | /* confdefs.h. */ |
---|
| 4633 | _ACEOF |
---|
| 4634 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4635 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4636 | /* end confdefs.h. */ |
---|
| 4637 | #include <sys/types.h> |
---|
| 4638 | #include <time.h> |
---|
| 4639 | |
---|
| 4640 | int |
---|
| 4641 | main () |
---|
| 4642 | { |
---|
| 4643 | struct tm *tp; tp->tm_sec; |
---|
| 4644 | ; |
---|
| 4645 | return 0; |
---|
| 4646 | } |
---|
| 4647 | _ACEOF |
---|
| 4648 | rm -f conftest.$ac_objext |
---|
| 4649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4650 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4651 | ac_status=$? |
---|
| 4652 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4653 | rm -f conftest.er1 |
---|
| 4654 | cat conftest.err >&5 |
---|
| 4655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4656 | (exit $ac_status); } && |
---|
| 4657 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4658 | || test ! -s conftest.err' |
---|
| 4659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4660 | (eval $ac_try) 2>&5 |
---|
| 4661 | ac_status=$? |
---|
| 4662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4663 | (exit $ac_status); }; } && |
---|
| 4664 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4665 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4666 | (eval $ac_try) 2>&5 |
---|
| 4667 | ac_status=$? |
---|
| 4668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4669 | (exit $ac_status); }; }; then |
---|
| 4670 | ac_cv_struct_tm=time.h |
---|
| 4671 | else |
---|
| 4672 | echo "$as_me: failed program was:" >&5 |
---|
| 4673 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4674 | |
---|
| 4675 | ac_cv_struct_tm=sys/time.h |
---|
| 4676 | fi |
---|
| 4677 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4678 | fi |
---|
| 4679 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
---|
| 4680 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
---|
| 4681 | if test $ac_cv_struct_tm = sys/time.h; then |
---|
| 4682 | |
---|
| 4683 | cat >>confdefs.h <<\_ACEOF |
---|
| 4684 | #define TM_IN_SYS_TIME 1 |
---|
| 4685 | _ACEOF |
---|
| 4686 | |
---|
| 4687 | fi |
---|
| 4688 | |
---|
| 4689 | |
---|
| 4690 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
---|
| 4691 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
---|
| 4692 | if test "${ac_cv_header_stdc+set}" = set; then |
---|
| 4693 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4694 | else |
---|
| 4695 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4696 | /* confdefs.h. */ |
---|
| 4697 | _ACEOF |
---|
| 4698 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4699 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4700 | /* end confdefs.h. */ |
---|
| 4701 | #include <stdlib.h> |
---|
| 4702 | #include <stdarg.h> |
---|
| 4703 | #include <string.h> |
---|
| 4704 | #include <float.h> |
---|
| 4705 | |
---|
| 4706 | int |
---|
| 4707 | main () |
---|
| 4708 | { |
---|
| 4709 | |
---|
| 4710 | ; |
---|
| 4711 | return 0; |
---|
| 4712 | } |
---|
| 4713 | _ACEOF |
---|
| 4714 | rm -f conftest.$ac_objext |
---|
| 4715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
---|
| 4716 | (eval $ac_compile) 2>conftest.er1 |
---|
| 4717 | ac_status=$? |
---|
| 4718 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4719 | rm -f conftest.er1 |
---|
| 4720 | cat conftest.err >&5 |
---|
| 4721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4722 | (exit $ac_status); } && |
---|
| 4723 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4724 | || test ! -s conftest.err' |
---|
| 4725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4726 | (eval $ac_try) 2>&5 |
---|
| 4727 | ac_status=$? |
---|
| 4728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4729 | (exit $ac_status); }; } && |
---|
| 4730 | { ac_try='test -s conftest.$ac_objext' |
---|
| 4731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4732 | (eval $ac_try) 2>&5 |
---|
| 4733 | ac_status=$? |
---|
| 4734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4735 | (exit $ac_status); }; }; then |
---|
| 4736 | ac_cv_header_stdc=yes |
---|
| 4737 | else |
---|
| 4738 | echo "$as_me: failed program was:" >&5 |
---|
| 4739 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4740 | |
---|
| 4741 | ac_cv_header_stdc=no |
---|
| 4742 | fi |
---|
| 4743 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
| 4744 | |
---|
| 4745 | if test $ac_cv_header_stdc = yes; then |
---|
| 4746 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
| 4747 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4748 | /* confdefs.h. */ |
---|
| 4749 | _ACEOF |
---|
| 4750 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4751 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4752 | /* end confdefs.h. */ |
---|
| 4753 | #include <string.h> |
---|
| 4754 | |
---|
| 4755 | _ACEOF |
---|
| 4756 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 4757 | $EGREP "memchr" >/dev/null 2>&1; then |
---|
| 4758 | : |
---|
| 4759 | else |
---|
| 4760 | ac_cv_header_stdc=no |
---|
| 4761 | fi |
---|
| 4762 | rm -f conftest* |
---|
| 4763 | |
---|
| 4764 | fi |
---|
| 4765 | |
---|
| 4766 | if test $ac_cv_header_stdc = yes; then |
---|
| 4767 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
| 4768 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4769 | /* confdefs.h. */ |
---|
| 4770 | _ACEOF |
---|
| 4771 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4772 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4773 | /* end confdefs.h. */ |
---|
| 4774 | #include <stdlib.h> |
---|
| 4775 | |
---|
| 4776 | _ACEOF |
---|
| 4777 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
| 4778 | $EGREP "free" >/dev/null 2>&1; then |
---|
| 4779 | : |
---|
| 4780 | else |
---|
| 4781 | ac_cv_header_stdc=no |
---|
| 4782 | fi |
---|
| 4783 | rm -f conftest* |
---|
| 4784 | |
---|
| 4785 | fi |
---|
| 4786 | |
---|
| 4787 | if test $ac_cv_header_stdc = yes; then |
---|
| 4788 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
| 4789 | if test "$cross_compiling" = yes; then |
---|
| 4790 | : |
---|
| 4791 | else |
---|
| 4792 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4793 | /* confdefs.h. */ |
---|
| 4794 | _ACEOF |
---|
| 4795 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4796 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4797 | /* end confdefs.h. */ |
---|
| 4798 | #include <ctype.h> |
---|
| 4799 | #if ((' ' & 0x0FF) == 0x020) |
---|
| 4800 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
| 4801 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
| 4802 | #else |
---|
| 4803 | # define ISLOWER(c) \ |
---|
| 4804 | (('a' <= (c) && (c) <= 'i') \ |
---|
| 4805 | || ('j' <= (c) && (c) <= 'r') \ |
---|
| 4806 | || ('s' <= (c) && (c) <= 'z')) |
---|
| 4807 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
| 4808 | #endif |
---|
| 4809 | |
---|
| 4810 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
| 4811 | int |
---|
| 4812 | main () |
---|
| 4813 | { |
---|
| 4814 | int i; |
---|
| 4815 | for (i = 0; i < 256; i++) |
---|
| 4816 | if (XOR (islower (i), ISLOWER (i)) |
---|
| 4817 | || toupper (i) != TOUPPER (i)) |
---|
| 4818 | exit(2); |
---|
| 4819 | exit (0); |
---|
| 4820 | } |
---|
| 4821 | _ACEOF |
---|
| 4822 | rm -f conftest$ac_exeext |
---|
| 4823 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4824 | (eval $ac_link) 2>&5 |
---|
| 4825 | ac_status=$? |
---|
| 4826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4827 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
---|
| 4828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4829 | (eval $ac_try) 2>&5 |
---|
| 4830 | ac_status=$? |
---|
| 4831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4832 | (exit $ac_status); }; }; then |
---|
| 4833 | : |
---|
| 4834 | else |
---|
| 4835 | echo "$as_me: program exited with status $ac_status" >&5 |
---|
| 4836 | echo "$as_me: failed program was:" >&5 |
---|
| 4837 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4838 | |
---|
| 4839 | ( exit $ac_status ) |
---|
| 4840 | ac_cv_header_stdc=no |
---|
| 4841 | fi |
---|
| 4842 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
---|
| 4843 | fi |
---|
| 4844 | fi |
---|
| 4845 | fi |
---|
| 4846 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
---|
| 4847 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
---|
| 4848 | if test $ac_cv_header_stdc = yes; then |
---|
| 4849 | |
---|
| 4850 | cat >>confdefs.h <<\_ACEOF |
---|
| 4851 | #define STDC_HEADERS 1 |
---|
| 4852 | _ACEOF |
---|
| 4853 | |
---|
| 4854 | fi |
---|
| 4855 | |
---|
| 4856 | |
---|
| 4857 | for ac_func in strftime |
---|
| 4858 | do |
---|
| 4859 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 4860 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 4861 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 4862 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 4863 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4864 | else |
---|
| 4865 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4866 | /* confdefs.h. */ |
---|
| 4867 | _ACEOF |
---|
| 4868 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4869 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4870 | /* end confdefs.h. */ |
---|
| 4871 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 4872 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 4873 | #define $ac_func innocuous_$ac_func |
---|
| 4874 | |
---|
| 4875 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 4876 | which can conflict with char $ac_func (); below. |
---|
| 4877 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 4878 | <limits.h> exists even on freestanding compilers. */ |
---|
| 4879 | |
---|
| 4880 | #ifdef __STDC__ |
---|
| 4881 | # include <limits.h> |
---|
| 4882 | #else |
---|
| 4883 | # include <assert.h> |
---|
| 4884 | #endif |
---|
| 4885 | |
---|
| 4886 | #undef $ac_func |
---|
| 4887 | |
---|
| 4888 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4889 | #ifdef __cplusplus |
---|
| 4890 | extern "C" |
---|
| 4891 | { |
---|
| 4892 | #endif |
---|
| 4893 | /* We use char because int might match the return type of a gcc2 |
---|
| 4894 | builtin and then its argument prototype would still apply. */ |
---|
| 4895 | char $ac_func (); |
---|
| 4896 | /* The GNU C library defines this for functions which it implements |
---|
| 4897 | to always fail with ENOSYS. Some functions are actually named |
---|
| 4898 | something starting with __ and the normal name is an alias. */ |
---|
| 4899 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 4900 | choke me |
---|
| 4901 | #else |
---|
| 4902 | char (*f) () = $ac_func; |
---|
| 4903 | #endif |
---|
| 4904 | #ifdef __cplusplus |
---|
| 4905 | } |
---|
| 4906 | #endif |
---|
| 4907 | |
---|
| 4908 | int |
---|
| 4909 | main () |
---|
| 4910 | { |
---|
| 4911 | return f != $ac_func; |
---|
| 4912 | ; |
---|
| 4913 | return 0; |
---|
| 4914 | } |
---|
| 4915 | _ACEOF |
---|
| 4916 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4918 | (eval $ac_link) 2>conftest.er1 |
---|
| 4919 | ac_status=$? |
---|
| 4920 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4921 | rm -f conftest.er1 |
---|
| 4922 | cat conftest.err >&5 |
---|
| 4923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4924 | (exit $ac_status); } && |
---|
| 4925 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4926 | || test ! -s conftest.err' |
---|
| 4927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4928 | (eval $ac_try) 2>&5 |
---|
| 4929 | ac_status=$? |
---|
| 4930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4931 | (exit $ac_status); }; } && |
---|
| 4932 | { ac_try='test -s conftest$ac_exeext' |
---|
| 4933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4934 | (eval $ac_try) 2>&5 |
---|
| 4935 | ac_status=$? |
---|
| 4936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4937 | (exit $ac_status); }; }; then |
---|
| 4938 | eval "$as_ac_var=yes" |
---|
| 4939 | else |
---|
| 4940 | echo "$as_me: failed program was:" >&5 |
---|
| 4941 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 4942 | |
---|
| 4943 | eval "$as_ac_var=no" |
---|
| 4944 | fi |
---|
| 4945 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 4946 | conftest$ac_exeext conftest.$ac_ext |
---|
| 4947 | fi |
---|
| 4948 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 4949 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 4950 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 4951 | cat >>confdefs.h <<_ACEOF |
---|
| 4952 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 4953 | _ACEOF |
---|
| 4954 | |
---|
| 4955 | else |
---|
| 4956 | # strftime is in -lintl on SCO UNIX. |
---|
| 4957 | echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 |
---|
| 4958 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6 |
---|
| 4959 | if test "${ac_cv_lib_intl_strftime+set}" = set; then |
---|
| 4960 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 4961 | else |
---|
| 4962 | ac_check_lib_save_LIBS=$LIBS |
---|
| 4963 | LIBS="-lintl $LIBS" |
---|
| 4964 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 4965 | /* confdefs.h. */ |
---|
| 4966 | _ACEOF |
---|
| 4967 | cat confdefs.h >>conftest.$ac_ext |
---|
| 4968 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 4969 | /* end confdefs.h. */ |
---|
| 4970 | |
---|
| 4971 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 4972 | #ifdef __cplusplus |
---|
| 4973 | extern "C" |
---|
| 4974 | #endif |
---|
| 4975 | /* We use char because int might match the return type of a gcc2 |
---|
| 4976 | builtin and then its argument prototype would still apply. */ |
---|
| 4977 | char strftime (); |
---|
| 4978 | int |
---|
| 4979 | main () |
---|
| 4980 | { |
---|
| 4981 | strftime (); |
---|
| 4982 | ; |
---|
| 4983 | return 0; |
---|
| 4984 | } |
---|
| 4985 | _ACEOF |
---|
| 4986 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 4987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 4988 | (eval $ac_link) 2>conftest.er1 |
---|
| 4989 | ac_status=$? |
---|
| 4990 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 4991 | rm -f conftest.er1 |
---|
| 4992 | cat conftest.err >&5 |
---|
| 4993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 4994 | (exit $ac_status); } && |
---|
| 4995 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 4996 | || test ! -s conftest.err' |
---|
| 4997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 4998 | (eval $ac_try) 2>&5 |
---|
| 4999 | ac_status=$? |
---|
| 5000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5001 | (exit $ac_status); }; } && |
---|
| 5002 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5004 | (eval $ac_try) 2>&5 |
---|
| 5005 | ac_status=$? |
---|
| 5006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5007 | (exit $ac_status); }; }; then |
---|
| 5008 | ac_cv_lib_intl_strftime=yes |
---|
| 5009 | else |
---|
| 5010 | echo "$as_me: failed program was:" >&5 |
---|
| 5011 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5012 | |
---|
| 5013 | ac_cv_lib_intl_strftime=no |
---|
| 5014 | fi |
---|
| 5015 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5016 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5017 | LIBS=$ac_check_lib_save_LIBS |
---|
| 5018 | fi |
---|
| 5019 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 |
---|
| 5020 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6 |
---|
| 5021 | if test $ac_cv_lib_intl_strftime = yes; then |
---|
| 5022 | cat >>confdefs.h <<\_ACEOF |
---|
| 5023 | #define HAVE_STRFTIME 1 |
---|
| 5024 | _ACEOF |
---|
| 5025 | |
---|
| 5026 | LIBS="-lintl $LIBS" |
---|
| 5027 | fi |
---|
| 5028 | |
---|
| 5029 | fi |
---|
| 5030 | done |
---|
| 5031 | |
---|
| 5032 | |
---|
| 5033 | for ac_func in vprintf |
---|
| 5034 | do |
---|
| 5035 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 5036 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 5037 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 5038 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 5039 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5040 | else |
---|
| 5041 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5042 | /* confdefs.h. */ |
---|
| 5043 | _ACEOF |
---|
| 5044 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5045 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5046 | /* end confdefs.h. */ |
---|
| 5047 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 5048 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 5049 | #define $ac_func innocuous_$ac_func |
---|
| 5050 | |
---|
| 5051 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 5052 | which can conflict with char $ac_func (); below. |
---|
| 5053 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 5054 | <limits.h> exists even on freestanding compilers. */ |
---|
| 5055 | |
---|
| 5056 | #ifdef __STDC__ |
---|
| 5057 | # include <limits.h> |
---|
| 5058 | #else |
---|
| 5059 | # include <assert.h> |
---|
| 5060 | #endif |
---|
| 5061 | |
---|
| 5062 | #undef $ac_func |
---|
| 5063 | |
---|
| 5064 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5065 | #ifdef __cplusplus |
---|
| 5066 | extern "C" |
---|
| 5067 | { |
---|
| 5068 | #endif |
---|
| 5069 | /* We use char because int might match the return type of a gcc2 |
---|
| 5070 | builtin and then its argument prototype would still apply. */ |
---|
| 5071 | char $ac_func (); |
---|
| 5072 | /* The GNU C library defines this for functions which it implements |
---|
| 5073 | to always fail with ENOSYS. Some functions are actually named |
---|
| 5074 | something starting with __ and the normal name is an alias. */ |
---|
| 5075 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 5076 | choke me |
---|
| 5077 | #else |
---|
| 5078 | char (*f) () = $ac_func; |
---|
| 5079 | #endif |
---|
| 5080 | #ifdef __cplusplus |
---|
| 5081 | } |
---|
| 5082 | #endif |
---|
| 5083 | |
---|
| 5084 | int |
---|
| 5085 | main () |
---|
| 5086 | { |
---|
| 5087 | return f != $ac_func; |
---|
| 5088 | ; |
---|
| 5089 | return 0; |
---|
| 5090 | } |
---|
| 5091 | _ACEOF |
---|
| 5092 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5094 | (eval $ac_link) 2>conftest.er1 |
---|
| 5095 | ac_status=$? |
---|
| 5096 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5097 | rm -f conftest.er1 |
---|
| 5098 | cat conftest.err >&5 |
---|
| 5099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5100 | (exit $ac_status); } && |
---|
| 5101 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5102 | || test ! -s conftest.err' |
---|
| 5103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5104 | (eval $ac_try) 2>&5 |
---|
| 5105 | ac_status=$? |
---|
| 5106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5107 | (exit $ac_status); }; } && |
---|
| 5108 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5110 | (eval $ac_try) 2>&5 |
---|
| 5111 | ac_status=$? |
---|
| 5112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5113 | (exit $ac_status); }; }; then |
---|
| 5114 | eval "$as_ac_var=yes" |
---|
| 5115 | else |
---|
| 5116 | echo "$as_me: failed program was:" >&5 |
---|
| 5117 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5118 | |
---|
| 5119 | eval "$as_ac_var=no" |
---|
| 5120 | fi |
---|
| 5121 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5122 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5123 | fi |
---|
| 5124 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 5125 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 5126 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 5127 | cat >>confdefs.h <<_ACEOF |
---|
| 5128 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 5129 | _ACEOF |
---|
| 5130 | |
---|
| 5131 | echo "$as_me:$LINENO: checking for _doprnt" >&5 |
---|
| 5132 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6 |
---|
| 5133 | if test "${ac_cv_func__doprnt+set}" = set; then |
---|
| 5134 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5135 | else |
---|
| 5136 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5137 | /* confdefs.h. */ |
---|
| 5138 | _ACEOF |
---|
| 5139 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5140 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5141 | /* end confdefs.h. */ |
---|
| 5142 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
---|
| 5143 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 5144 | #define _doprnt innocuous__doprnt |
---|
| 5145 | |
---|
| 5146 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 5147 | which can conflict with char _doprnt (); below. |
---|
| 5148 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 5149 | <limits.h> exists even on freestanding compilers. */ |
---|
| 5150 | |
---|
| 5151 | #ifdef __STDC__ |
---|
| 5152 | # include <limits.h> |
---|
| 5153 | #else |
---|
| 5154 | # include <assert.h> |
---|
| 5155 | #endif |
---|
| 5156 | |
---|
| 5157 | #undef _doprnt |
---|
| 5158 | |
---|
| 5159 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5160 | #ifdef __cplusplus |
---|
| 5161 | extern "C" |
---|
| 5162 | { |
---|
| 5163 | #endif |
---|
| 5164 | /* We use char because int might match the return type of a gcc2 |
---|
| 5165 | builtin and then its argument prototype would still apply. */ |
---|
| 5166 | char _doprnt (); |
---|
| 5167 | /* The GNU C library defines this for functions which it implements |
---|
| 5168 | to always fail with ENOSYS. Some functions are actually named |
---|
| 5169 | something starting with __ and the normal name is an alias. */ |
---|
| 5170 | #if defined (__stub__doprnt) || defined (__stub____doprnt) |
---|
| 5171 | choke me |
---|
| 5172 | #else |
---|
| 5173 | char (*f) () = _doprnt; |
---|
| 5174 | #endif |
---|
| 5175 | #ifdef __cplusplus |
---|
| 5176 | } |
---|
| 5177 | #endif |
---|
| 5178 | |
---|
| 5179 | int |
---|
| 5180 | main () |
---|
| 5181 | { |
---|
| 5182 | return f != _doprnt; |
---|
| 5183 | ; |
---|
| 5184 | return 0; |
---|
| 5185 | } |
---|
| 5186 | _ACEOF |
---|
| 5187 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5189 | (eval $ac_link) 2>conftest.er1 |
---|
| 5190 | ac_status=$? |
---|
| 5191 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5192 | rm -f conftest.er1 |
---|
| 5193 | cat conftest.err >&5 |
---|
| 5194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5195 | (exit $ac_status); } && |
---|
| 5196 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5197 | || test ! -s conftest.err' |
---|
| 5198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5199 | (eval $ac_try) 2>&5 |
---|
| 5200 | ac_status=$? |
---|
| 5201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5202 | (exit $ac_status); }; } && |
---|
| 5203 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5205 | (eval $ac_try) 2>&5 |
---|
| 5206 | ac_status=$? |
---|
| 5207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5208 | (exit $ac_status); }; }; then |
---|
| 5209 | ac_cv_func__doprnt=yes |
---|
| 5210 | else |
---|
| 5211 | echo "$as_me: failed program was:" >&5 |
---|
| 5212 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5213 | |
---|
| 5214 | ac_cv_func__doprnt=no |
---|
| 5215 | fi |
---|
| 5216 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5217 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5218 | fi |
---|
| 5219 | echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
---|
| 5220 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6 |
---|
| 5221 | if test $ac_cv_func__doprnt = yes; then |
---|
| 5222 | |
---|
| 5223 | cat >>confdefs.h <<\_ACEOF |
---|
| 5224 | #define HAVE_DOPRNT 1 |
---|
| 5225 | _ACEOF |
---|
| 5226 | |
---|
| 5227 | fi |
---|
| 5228 | |
---|
| 5229 | fi |
---|
| 5230 | done |
---|
| 5231 | |
---|
| 5232 | |
---|
| 5233 | |
---|
| 5234 | |
---|
| 5235 | |
---|
| 5236 | for ac_func in getcwd gettimeofday strstr |
---|
| 5237 | do |
---|
| 5238 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
---|
| 5239 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
---|
| 5240 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
---|
| 5241 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
---|
| 5242 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
---|
| 5243 | else |
---|
| 5244 | cat >conftest.$ac_ext <<_ACEOF |
---|
| 5245 | /* confdefs.h. */ |
---|
| 5246 | _ACEOF |
---|
| 5247 | cat confdefs.h >>conftest.$ac_ext |
---|
| 5248 | cat >>conftest.$ac_ext <<_ACEOF |
---|
| 5249 | /* end confdefs.h. */ |
---|
| 5250 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
---|
| 5251 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
---|
| 5252 | #define $ac_func innocuous_$ac_func |
---|
| 5253 | |
---|
| 5254 | /* System header to define __stub macros and hopefully few prototypes, |
---|
| 5255 | which can conflict with char $ac_func (); below. |
---|
| 5256 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
| 5257 | <limits.h> exists even on freestanding compilers. */ |
---|
| 5258 | |
---|
| 5259 | #ifdef __STDC__ |
---|
| 5260 | # include <limits.h> |
---|
| 5261 | #else |
---|
| 5262 | # include <assert.h> |
---|
| 5263 | #endif |
---|
| 5264 | |
---|
| 5265 | #undef $ac_func |
---|
| 5266 | |
---|
| 5267 | /* Override any gcc2 internal prototype to avoid an error. */ |
---|
| 5268 | #ifdef __cplusplus |
---|
| 5269 | extern "C" |
---|
| 5270 | { |
---|
| 5271 | #endif |
---|
| 5272 | /* We use char because int might match the return type of a gcc2 |
---|
| 5273 | builtin and then its argument prototype would still apply. */ |
---|
| 5274 | char $ac_func (); |
---|
| 5275 | /* The GNU C library defines this for functions which it implements |
---|
| 5276 | to always fail with ENOSYS. Some functions are actually named |
---|
| 5277 | something starting with __ and the normal name is an alias. */ |
---|
| 5278 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
---|
| 5279 | choke me |
---|
| 5280 | #else |
---|
| 5281 | char (*f) () = $ac_func; |
---|
| 5282 | #endif |
---|
| 5283 | #ifdef __cplusplus |
---|
| 5284 | } |
---|
| 5285 | #endif |
---|
| 5286 | |
---|
| 5287 | int |
---|
| 5288 | main () |
---|
| 5289 | { |
---|
| 5290 | return f != $ac_func; |
---|
| 5291 | ; |
---|
| 5292 | return 0; |
---|
| 5293 | } |
---|
| 5294 | _ACEOF |
---|
| 5295 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
| 5296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
---|
| 5297 | (eval $ac_link) 2>conftest.er1 |
---|
| 5298 | ac_status=$? |
---|
| 5299 | grep -v '^ *+' conftest.er1 >conftest.err |
---|
| 5300 | rm -f conftest.er1 |
---|
| 5301 | cat conftest.err >&5 |
---|
| 5302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5303 | (exit $ac_status); } && |
---|
| 5304 | { ac_try='test -z "$ac_c_werror_flag" |
---|
| 5305 | || test ! -s conftest.err' |
---|
| 5306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5307 | (eval $ac_try) 2>&5 |
---|
| 5308 | ac_status=$? |
---|
| 5309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5310 | (exit $ac_status); }; } && |
---|
| 5311 | { ac_try='test -s conftest$ac_exeext' |
---|
| 5312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
---|
| 5313 | (eval $ac_try) 2>&5 |
---|
| 5314 | ac_status=$? |
---|
| 5315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
---|
| 5316 | (exit $ac_status); }; }; then |
---|
| 5317 | eval "$as_ac_var=yes" |
---|
| 5318 | else |
---|
| 5319 | echo "$as_me: failed program was:" >&5 |
---|
| 5320 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
| 5321 | |
---|
| 5322 | eval "$as_ac_var=no" |
---|
| 5323 | fi |
---|
| 5324 | rm -f conftest.err conftest.$ac_objext \ |
---|
| 5325 | conftest$ac_exeext conftest.$ac_ext |
---|
| 5326 | fi |
---|
| 5327 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
---|
| 5328 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
---|
| 5329 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
---|
| 5330 | cat >>confdefs.h <<_ACEOF |
---|
| 5331 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
---|
| 5332 | _ACEOF |
---|
| 5333 | |
---|
| 5334 | fi |
---|
| 5335 | done |
---|
| 5336 | |
---|
| 5337 | |
---|
| 5338 | |
---|
| 5339 | ac_config_files="$ac_config_files Makefile" |
---|
| 5340 | cat >confcache <<\_ACEOF |
---|
| 5341 | # This file is a shell script that caches the results of configure |
---|
| 5342 | # tests run on this system so they can be shared between configure |
---|
| 5343 | # scripts and configure runs, see configure's option --config-cache. |
---|
| 5344 | # It is not useful on other systems. If it contains results you don't |
---|
| 5345 | # want to keep, you may remove or edit it. |
---|
| 5346 | # |
---|
| 5347 | # config.status only pays attention to the cache file if you give it |
---|
| 5348 | # the --recheck option to rerun configure. |
---|
| 5349 | # |
---|
| 5350 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
| 5351 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
| 5352 | # following values. |
---|
| 5353 | |
---|
| 5354 | _ACEOF |
---|
| 5355 | |
---|
| 5356 | # The following way of writing the cache mishandles newlines in values, |
---|
| 5357 | # but we know of no workaround that is simple, portable, and efficient. |
---|
| 5358 | # So, don't put newlines in cache variables' values. |
---|
| 5359 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
| 5360 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
| 5361 | { |
---|
| 5362 | (set) 2>&1 | |
---|
| 5363 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
---|
| 5364 | *ac_space=\ *) |
---|
| 5365 | # `set' does not quote correctly, so add quotes (double-quote |
---|
| 5366 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
---|
| 5367 | sed -n \ |
---|
| 5368 | "s/'/'\\\\''/g; |
---|
| 5369 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
| 5370 | ;; |
---|
| 5371 | *) |
---|
| 5372 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
| 5373 | sed -n \ |
---|
| 5374 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
---|
| 5375 | ;; |
---|
| 5376 | esac; |
---|
| 5377 | } | |
---|
| 5378 | sed ' |
---|
| 5379 | t clear |
---|
| 5380 | : clear |
---|
| 5381 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
| 5382 | t end |
---|
| 5383 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
| 5384 | : end' >>confcache |
---|
| 5385 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
---|
| 5386 | if test -w $cache_file; then |
---|
| 5387 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
---|
| 5388 | cat confcache >$cache_file |
---|
| 5389 | else |
---|
| 5390 | echo "not updating unwritable cache $cache_file" |
---|
| 5391 | fi |
---|
| 5392 | fi |
---|
| 5393 | rm -f confcache |
---|
| 5394 | |
---|
| 5395 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
| 5396 | # Let make expand exec_prefix. |
---|
| 5397 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
| 5398 | |
---|
| 5399 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
---|
| 5400 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
---|
| 5401 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
| 5402 | # (actually we leave an empty line to preserve line numbers). |
---|
| 5403 | if test "x$srcdir" = x.; then |
---|
| 5404 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
---|
| 5405 | s/:*\$(srcdir):*/:/; |
---|
| 5406 | s/:*\${srcdir}:*/:/; |
---|
| 5407 | s/:*@srcdir@:*/:/; |
---|
| 5408 | s/^\([^=]*=[ ]*\):*/\1/; |
---|
| 5409 | s/:*$//; |
---|
| 5410 | s/^[^=]*=[ ]*$//; |
---|
| 5411 | }' |
---|
| 5412 | fi |
---|
| 5413 | |
---|
| 5414 | # Transform confdefs.h into DEFS. |
---|
| 5415 | # Protect against shell expansion while executing Makefile rules. |
---|
| 5416 | # Protect against Makefile macro expansion. |
---|
| 5417 | # |
---|
| 5418 | # If the first sed substitution is executed (which looks for macros that |
---|
| 5419 | # take arguments), then we branch to the quote section. Otherwise, |
---|
| 5420 | # look for a macro that doesn't take arguments. |
---|
| 5421 | cat >confdef2opt.sed <<\_ACEOF |
---|
| 5422 | t clear |
---|
| 5423 | : clear |
---|
| 5424 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g |
---|
| 5425 | t quote |
---|
| 5426 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g |
---|
| 5427 | t quote |
---|
| 5428 | d |
---|
| 5429 | : quote |
---|
| 5430 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g |
---|
| 5431 | s,\[,\\&,g |
---|
| 5432 | s,\],\\&,g |
---|
| 5433 | s,\$,$$,g |
---|
| 5434 | p |
---|
| 5435 | _ACEOF |
---|
| 5436 | # We use echo to avoid assuming a particular line-breaking character. |
---|
| 5437 | # The extra dot is to prevent the shell from consuming trailing |
---|
| 5438 | # line-breaks from the sub-command output. A line-break within |
---|
| 5439 | # single-quotes doesn't work because, if this script is created in a |
---|
| 5440 | # platform that uses two characters for line-breaks (e.g., DOS), tr |
---|
| 5441 | # would break. |
---|
| 5442 | ac_LF_and_DOT=`echo; echo .` |
---|
| 5443 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` |
---|
| 5444 | rm -f confdef2opt.sed |
---|
| 5445 | |
---|
| 5446 | |
---|
| 5447 | ac_libobjs= |
---|
| 5448 | ac_ltlibobjs= |
---|
| 5449 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
| 5450 | # 1. Remove the extension, and $U if already installed. |
---|
| 5451 | ac_i=`echo "$ac_i" | |
---|
| 5452 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
---|
| 5453 | # 2. Add them. |
---|
| 5454 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
---|
| 5455 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
---|
| 5456 | done |
---|
| 5457 | LIBOBJS=$ac_libobjs |
---|
| 5458 | |
---|
| 5459 | LTLIBOBJS=$ac_ltlibobjs |
---|
| 5460 | |
---|
| 5461 | |
---|
| 5462 | |
---|
| 5463 | : ${CONFIG_STATUS=./config.status} |
---|
| 5464 | ac_clean_files_save=$ac_clean_files |
---|
| 5465 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
| 5466 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
---|
| 5467 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
| 5468 | cat >$CONFIG_STATUS <<_ACEOF |
---|
| 5469 | #! $SHELL |
---|
| 5470 | # Generated by $as_me. |
---|
| 5471 | # Run this file to recreate the current configuration. |
---|
| 5472 | # Compiler output produced by configure, useful for debugging |
---|
| 5473 | # configure, is in config.log if it exists. |
---|
| 5474 | |
---|
| 5475 | debug=false |
---|
| 5476 | ac_cs_recheck=false |
---|
| 5477 | ac_cs_silent=false |
---|
| 5478 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
| 5479 | _ACEOF |
---|
| 5480 | |
---|
| 5481 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5482 | ## --------------------- ## |
---|
| 5483 | ## M4sh Initialization. ## |
---|
| 5484 | ## --------------------- ## |
---|
| 5485 | |
---|
| 5486 | # Be Bourne compatible |
---|
| 5487 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
---|
| 5488 | emulate sh |
---|
| 5489 | NULLCMD=: |
---|
| 5490 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
---|
| 5491 | # is contrary to our usage. Disable this feature. |
---|
| 5492 | alias -g '${1+"$@"}'='"$@"' |
---|
| 5493 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
---|
| 5494 | set -o posix |
---|
| 5495 | fi |
---|
| 5496 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
| 5497 | |
---|
| 5498 | # Support unset when possible. |
---|
| 5499 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
---|
| 5500 | as_unset=unset |
---|
| 5501 | else |
---|
| 5502 | as_unset=false |
---|
| 5503 | fi |
---|
| 5504 | |
---|
| 5505 | |
---|
| 5506 | # Work around bugs in pre-3.0 UWIN ksh. |
---|
| 5507 | $as_unset ENV MAIL MAILPATH |
---|
| 5508 | PS1='$ ' |
---|
| 5509 | PS2='> ' |
---|
| 5510 | PS4='+ ' |
---|
| 5511 | |
---|
| 5512 | # NLS nuisances. |
---|
| 5513 | for as_var in \ |
---|
| 5514 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
---|
| 5515 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
---|
| 5516 | LC_TELEPHONE LC_TIME |
---|
| 5517 | do |
---|
| 5518 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
---|
| 5519 | eval $as_var=C; export $as_var |
---|
| 5520 | else |
---|
| 5521 | $as_unset $as_var |
---|
| 5522 | fi |
---|
| 5523 | done |
---|
| 5524 | |
---|
| 5525 | # Required to use basename. |
---|
| 5526 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 5527 | as_expr=expr |
---|
| 5528 | else |
---|
| 5529 | as_expr=false |
---|
| 5530 | fi |
---|
| 5531 | |
---|
| 5532 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
---|
| 5533 | as_basename=basename |
---|
| 5534 | else |
---|
| 5535 | as_basename=false |
---|
| 5536 | fi |
---|
| 5537 | |
---|
| 5538 | |
---|
| 5539 | # Name of the executable. |
---|
| 5540 | as_me=`$as_basename "$0" || |
---|
| 5541 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
| 5542 | X"$0" : 'X\(//\)$' \| \ |
---|
| 5543 | X"$0" : 'X\(/\)$' \| \ |
---|
| 5544 | . : '\(.\)' 2>/dev/null || |
---|
| 5545 | echo X/"$0" | |
---|
| 5546 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
---|
| 5547 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
---|
| 5548 | /^X\/\(\/\).*/{ s//\1/; q; } |
---|
| 5549 | s/.*/./; q'` |
---|
| 5550 | |
---|
| 5551 | |
---|
| 5552 | # PATH needs CR, and LINENO needs CR and PATH. |
---|
| 5553 | # Avoid depending upon Character Ranges. |
---|
| 5554 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
| 5555 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
| 5556 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
| 5557 | as_cr_digits='0123456789' |
---|
| 5558 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
| 5559 | |
---|
| 5560 | # The user is always right. |
---|
| 5561 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
| 5562 | echo "#! /bin/sh" >conf$$.sh |
---|
| 5563 | echo "exit 0" >>conf$$.sh |
---|
| 5564 | chmod +x conf$$.sh |
---|
| 5565 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
---|
| 5566 | PATH_SEPARATOR=';' |
---|
| 5567 | else |
---|
| 5568 | PATH_SEPARATOR=: |
---|
| 5569 | fi |
---|
| 5570 | rm -f conf$$.sh |
---|
| 5571 | fi |
---|
| 5572 | |
---|
| 5573 | |
---|
| 5574 | as_lineno_1=$LINENO |
---|
| 5575 | as_lineno_2=$LINENO |
---|
| 5576 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 5577 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 5578 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
---|
| 5579 | # Find who we are. Look in the path if we contain no path at all |
---|
| 5580 | # relative or not. |
---|
| 5581 | case $0 in |
---|
| 5582 | *[\\/]* ) as_myself=$0 ;; |
---|
| 5583 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 5584 | for as_dir in $PATH |
---|
| 5585 | do |
---|
| 5586 | IFS=$as_save_IFS |
---|
| 5587 | test -z "$as_dir" && as_dir=. |
---|
| 5588 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
| 5589 | done |
---|
| 5590 | |
---|
| 5591 | ;; |
---|
| 5592 | esac |
---|
| 5593 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
| 5594 | # in which case we are not to be found in the path. |
---|
| 5595 | if test "x$as_myself" = x; then |
---|
| 5596 | as_myself=$0 |
---|
| 5597 | fi |
---|
| 5598 | if test ! -f "$as_myself"; then |
---|
| 5599 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
---|
| 5600 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
---|
| 5601 | { (exit 1); exit 1; }; } |
---|
| 5602 | fi |
---|
| 5603 | case $CONFIG_SHELL in |
---|
| 5604 | '') |
---|
| 5605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
| 5606 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
| 5607 | do |
---|
| 5608 | IFS=$as_save_IFS |
---|
| 5609 | test -z "$as_dir" && as_dir=. |
---|
| 5610 | for as_base in sh bash ksh sh5; do |
---|
| 5611 | case $as_dir in |
---|
| 5612 | /*) |
---|
| 5613 | if ("$as_dir/$as_base" -c ' |
---|
| 5614 | as_lineno_1=$LINENO |
---|
| 5615 | as_lineno_2=$LINENO |
---|
| 5616 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
---|
| 5617 | test "x$as_lineno_1" != "x$as_lineno_2" && |
---|
| 5618 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
---|
| 5619 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
---|
| 5620 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
---|
| 5621 | CONFIG_SHELL=$as_dir/$as_base |
---|
| 5622 | export CONFIG_SHELL |
---|
| 5623 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
---|
| 5624 | fi;; |
---|
| 5625 | esac |
---|
| 5626 | done |
---|
| 5627 | done |
---|
| 5628 | ;; |
---|
| 5629 | esac |
---|
| 5630 | |
---|
| 5631 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
---|
| 5632 | # uniformly replaced by the line number. The first 'sed' inserts a |
---|
| 5633 | # line-number line before each line; the second 'sed' does the real |
---|
| 5634 | # work. The second script uses 'N' to pair each line-number line |
---|
| 5635 | # with the numbered line, and appends trailing '-' during |
---|
| 5636 | # substitution so that $LINENO is not a special case at line end. |
---|
| 5637 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
---|
| 5638 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
---|
| 5639 | sed '=' <$as_myself | |
---|
| 5640 | sed ' |
---|
| 5641 | N |
---|
| 5642 | s,$,-, |
---|
| 5643 | : loop |
---|
| 5644 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
---|
| 5645 | t loop |
---|
| 5646 | s,-$,, |
---|
| 5647 | s,^['$as_cr_digits']*\n,, |
---|
| 5648 | ' >$as_me.lineno && |
---|
| 5649 | chmod +x $as_me.lineno || |
---|
| 5650 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
---|
| 5651 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
---|
| 5652 | { (exit 1); exit 1; }; } |
---|
| 5653 | |
---|
| 5654 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
| 5655 | # (the dirname of $[0] is not the place where we might find the |
---|
| 5656 | # original and so on. Autoconf is especially sensible to this). |
---|
| 5657 | . ./$as_me.lineno |
---|
| 5658 | # Exit status is that of the last command. |
---|
| 5659 | exit |
---|
| 5660 | } |
---|
| 5661 | |
---|
| 5662 | |
---|
| 5663 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
---|
| 5664 | *c*,-n*) ECHO_N= ECHO_C=' |
---|
| 5665 | ' ECHO_T=' ' ;; |
---|
| 5666 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
---|
| 5667 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
---|
| 5668 | esac |
---|
| 5669 | |
---|
| 5670 | if expr a : '\(a\)' >/dev/null 2>&1; then |
---|
| 5671 | as_expr=expr |
---|
| 5672 | else |
---|
| 5673 | as_expr=false |
---|
| 5674 | fi |
---|
| 5675 | |
---|
| 5676 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 5677 | echo >conf$$.file |
---|
| 5678 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
| 5679 | # We could just check for DJGPP; but this test a) works b) is more generic |
---|
| 5680 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
---|
| 5681 | if test -f conf$$.exe; then |
---|
| 5682 | # Don't use ln at all; we don't have any links |
---|
| 5683 | as_ln_s='cp -p' |
---|
| 5684 | else |
---|
| 5685 | as_ln_s='ln -s' |
---|
| 5686 | fi |
---|
| 5687 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
| 5688 | as_ln_s=ln |
---|
| 5689 | else |
---|
| 5690 | as_ln_s='cp -p' |
---|
| 5691 | fi |
---|
| 5692 | rm -f conf$$ conf$$.exe conf$$.file |
---|
| 5693 | |
---|
| 5694 | if mkdir -p . 2>/dev/null; then |
---|
| 5695 | as_mkdir_p=: |
---|
| 5696 | else |
---|
| 5697 | test -d ./-p && rmdir ./-p |
---|
| 5698 | as_mkdir_p=false |
---|
| 5699 | fi |
---|
| 5700 | |
---|
| 5701 | as_executable_p="test -f" |
---|
| 5702 | |
---|
| 5703 | # Sed expression to map a string onto a valid CPP name. |
---|
| 5704 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 5705 | |
---|
| 5706 | # Sed expression to map a string onto a valid variable name. |
---|
| 5707 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
| 5708 | |
---|
| 5709 | |
---|
| 5710 | # IFS |
---|
| 5711 | # We need space, tab and new line, in precisely that order. |
---|
| 5712 | as_nl=' |
---|
| 5713 | ' |
---|
| 5714 | IFS=" $as_nl" |
---|
| 5715 | |
---|
| 5716 | # CDPATH. |
---|
| 5717 | $as_unset CDPATH |
---|
| 5718 | |
---|
| 5719 | exec 6>&1 |
---|
| 5720 | |
---|
| 5721 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
---|
| 5722 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
| 5723 | # values after options handling. Logging --version etc. is OK. |
---|
| 5724 | exec 5>>config.log |
---|
| 5725 | { |
---|
| 5726 | echo |
---|
| 5727 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
| 5728 | ## Running $as_me. ## |
---|
| 5729 | _ASBOX |
---|
| 5730 | } >&5 |
---|
| 5731 | cat >&5 <<_CSEOF |
---|
| 5732 | |
---|
| 5733 | This file was extended by $as_me, which was |
---|
| 5734 | generated by GNU Autoconf 2.59. Invocation command line was |
---|
| 5735 | |
---|
| 5736 | CONFIG_FILES = $CONFIG_FILES |
---|
| 5737 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
| 5738 | CONFIG_LINKS = $CONFIG_LINKS |
---|
| 5739 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
| 5740 | $ $0 $@ |
---|
| 5741 | |
---|
| 5742 | _CSEOF |
---|
| 5743 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
---|
| 5744 | echo >&5 |
---|
| 5745 | _ACEOF |
---|
| 5746 | |
---|
| 5747 | # Files that config.status was made for. |
---|
| 5748 | if test -n "$ac_config_files"; then |
---|
| 5749 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
---|
| 5750 | fi |
---|
| 5751 | |
---|
| 5752 | if test -n "$ac_config_headers"; then |
---|
| 5753 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
---|
| 5754 | fi |
---|
| 5755 | |
---|
| 5756 | if test -n "$ac_config_links"; then |
---|
| 5757 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
---|
| 5758 | fi |
---|
| 5759 | |
---|
| 5760 | if test -n "$ac_config_commands"; then |
---|
| 5761 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
---|
| 5762 | fi |
---|
| 5763 | |
---|
| 5764 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5765 | |
---|
| 5766 | ac_cs_usage="\ |
---|
| 5767 | \`$as_me' instantiates files from templates according to the |
---|
| 5768 | current configuration. |
---|
| 5769 | |
---|
| 5770 | Usage: $0 [OPTIONS] [FILE]... |
---|
| 5771 | |
---|
| 5772 | -h, --help print this help, then exit |
---|
| 5773 | -V, --version print version number, then exit |
---|
| 5774 | -q, --quiet do not print progress messages |
---|
| 5775 | -d, --debug don't remove temporary files |
---|
| 5776 | --recheck update $as_me by reconfiguring in the same conditions |
---|
| 5777 | --file=FILE[:TEMPLATE] |
---|
| 5778 | instantiate the configuration file FILE |
---|
| 5779 | |
---|
| 5780 | Configuration files: |
---|
| 5781 | $config_files |
---|
| 5782 | |
---|
| 5783 | Report bugs to <bug-autoconf@gnu.org>." |
---|
| 5784 | _ACEOF |
---|
| 5785 | |
---|
| 5786 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5787 | ac_cs_version="\\ |
---|
| 5788 | config.status |
---|
| 5789 | configured by $0, generated by GNU Autoconf 2.59, |
---|
| 5790 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
---|
| 5791 | |
---|
| 5792 | Copyright (C) 2003 Free Software Foundation, Inc. |
---|
| 5793 | This config.status script is free software; the Free Software Foundation |
---|
| 5794 | gives unlimited permission to copy, distribute and modify it." |
---|
| 5795 | srcdir=$srcdir |
---|
| 5796 | INSTALL="$INSTALL" |
---|
| 5797 | _ACEOF |
---|
| 5798 | |
---|
| 5799 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5800 | # If no file are specified by the user, then we need to provide default |
---|
| 5801 | # value. By we need to know if files were specified by the user. |
---|
| 5802 | ac_need_defaults=: |
---|
| 5803 | while test $# != 0 |
---|
| 5804 | do |
---|
| 5805 | case $1 in |
---|
| 5806 | --*=*) |
---|
| 5807 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
---|
| 5808 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
---|
| 5809 | ac_shift=: |
---|
| 5810 | ;; |
---|
| 5811 | -*) |
---|
| 5812 | ac_option=$1 |
---|
| 5813 | ac_optarg=$2 |
---|
| 5814 | ac_shift=shift |
---|
| 5815 | ;; |
---|
| 5816 | *) # This is not an option, so the user has probably given explicit |
---|
| 5817 | # arguments. |
---|
| 5818 | ac_option=$1 |
---|
| 5819 | ac_need_defaults=false;; |
---|
| 5820 | esac |
---|
| 5821 | |
---|
| 5822 | case $ac_option in |
---|
| 5823 | # Handling of the options. |
---|
| 5824 | _ACEOF |
---|
| 5825 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5826 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
| 5827 | ac_cs_recheck=: ;; |
---|
| 5828 | --version | --vers* | -V ) |
---|
| 5829 | echo "$ac_cs_version"; exit 0 ;; |
---|
| 5830 | --he | --h) |
---|
| 5831 | # Conflict between --help and --header |
---|
| 5832 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
---|
| 5833 | Try \`$0 --help' for more information." >&5 |
---|
| 5834 | echo "$as_me: error: ambiguous option: $1 |
---|
| 5835 | Try \`$0 --help' for more information." >&2;} |
---|
| 5836 | { (exit 1); exit 1; }; };; |
---|
| 5837 | --help | --hel | -h ) |
---|
| 5838 | echo "$ac_cs_usage"; exit 0 ;; |
---|
| 5839 | --debug | --d* | -d ) |
---|
| 5840 | debug=: ;; |
---|
| 5841 | --file | --fil | --fi | --f ) |
---|
| 5842 | $ac_shift |
---|
| 5843 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
---|
| 5844 | ac_need_defaults=false;; |
---|
| 5845 | --header | --heade | --head | --hea ) |
---|
| 5846 | $ac_shift |
---|
| 5847 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
---|
| 5848 | ac_need_defaults=false;; |
---|
| 5849 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
| 5850 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
| 5851 | ac_cs_silent=: ;; |
---|
| 5852 | |
---|
| 5853 | # This is an error. |
---|
| 5854 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
---|
| 5855 | Try \`$0 --help' for more information." >&5 |
---|
| 5856 | echo "$as_me: error: unrecognized option: $1 |
---|
| 5857 | Try \`$0 --help' for more information." >&2;} |
---|
| 5858 | { (exit 1); exit 1; }; } ;; |
---|
| 5859 | |
---|
| 5860 | *) ac_config_targets="$ac_config_targets $1" ;; |
---|
| 5861 | |
---|
| 5862 | esac |
---|
| 5863 | shift |
---|
| 5864 | done |
---|
| 5865 | |
---|
| 5866 | ac_configure_extra_args= |
---|
| 5867 | |
---|
| 5868 | if $ac_cs_silent; then |
---|
| 5869 | exec 6>/dev/null |
---|
| 5870 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
| 5871 | fi |
---|
| 5872 | |
---|
| 5873 | _ACEOF |
---|
| 5874 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5875 | if \$ac_cs_recheck; then |
---|
| 5876 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
---|
| 5877 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
| 5878 | fi |
---|
| 5879 | |
---|
| 5880 | _ACEOF |
---|
| 5881 | |
---|
| 5882 | |
---|
| 5883 | |
---|
| 5884 | |
---|
| 5885 | |
---|
| 5886 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 5887 | for ac_config_target in $ac_config_targets |
---|
| 5888 | do |
---|
| 5889 | case "$ac_config_target" in |
---|
| 5890 | # Handling of arguments. |
---|
| 5891 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
| 5892 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
---|
| 5893 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
---|
| 5894 | { (exit 1); exit 1; }; };; |
---|
| 5895 | esac |
---|
| 5896 | done |
---|
| 5897 | |
---|
| 5898 | # If the user did not use the arguments to specify the items to instantiate, |
---|
| 5899 | # then the envvar interface is used. Set only those that are not. |
---|
| 5900 | # We use the long form for the default assignment because of an extremely |
---|
| 5901 | # bizarre bug on SunOS 4.1.3. |
---|
| 5902 | if $ac_need_defaults; then |
---|
| 5903 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
| 5904 | fi |
---|
| 5905 | |
---|
| 5906 | # Have a temporary directory for convenience. Make it in the build tree |
---|
| 5907 | # simply because there is no reason to put it here, and in addition, |
---|
| 5908 | # creating and moving files from /tmp can sometimes cause problems. |
---|
| 5909 | # Create a temporary directory, and hook for its removal unless debugging. |
---|
| 5910 | $debug || |
---|
| 5911 | { |
---|
| 5912 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
---|
| 5913 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
---|
| 5914 | } |
---|
| 5915 | |
---|
| 5916 | # Create a (secure) tmp directory for tmp files. |
---|
| 5917 | |
---|
| 5918 | { |
---|
| 5919 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
---|
| 5920 | test -n "$tmp" && test -d "$tmp" |
---|
| 5921 | } || |
---|
| 5922 | { |
---|
| 5923 | tmp=./confstat$$-$RANDOM |
---|
| 5924 | (umask 077 && mkdir $tmp) |
---|
| 5925 | } || |
---|
| 5926 | { |
---|
| 5927 | echo "$me: cannot create a temporary directory in ." >&2 |
---|
| 5928 | { (exit 1); exit 1; } |
---|
| 5929 | } |
---|
| 5930 | |
---|
| 5931 | _ACEOF |
---|
| 5932 | |
---|
| 5933 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 5934 | |
---|
| 5935 | # |
---|
| 5936 | # CONFIG_FILES section. |
---|
| 5937 | # |
---|
| 5938 | |
---|
| 5939 | # No need to generate the scripts if there are no CONFIG_FILES. |
---|
| 5940 | # This happens for instance when ./config.status config.h |
---|
| 5941 | if test -n "\$CONFIG_FILES"; then |
---|
| 5942 | # Protect against being on the right side of a sed subst in config.status. |
---|
| 5943 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
---|
| 5944 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
---|
| 5945 | s,@SHELL@,$SHELL,;t t |
---|
| 5946 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
---|
| 5947 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
---|
| 5948 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
---|
| 5949 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
---|
| 5950 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
---|
| 5951 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
---|
| 5952 | s,@exec_prefix@,$exec_prefix,;t t |
---|
| 5953 | s,@prefix@,$prefix,;t t |
---|
| 5954 | s,@program_transform_name@,$program_transform_name,;t t |
---|
| 5955 | s,@bindir@,$bindir,;t t |
---|
| 5956 | s,@sbindir@,$sbindir,;t t |
---|
| 5957 | s,@libexecdir@,$libexecdir,;t t |
---|
| 5958 | s,@datadir@,$datadir,;t t |
---|
| 5959 | s,@sysconfdir@,$sysconfdir,;t t |
---|
| 5960 | s,@sharedstatedir@,$sharedstatedir,;t t |
---|
| 5961 | s,@localstatedir@,$localstatedir,;t t |
---|
| 5962 | s,@libdir@,$libdir,;t t |
---|
| 5963 | s,@includedir@,$includedir,;t t |
---|
| 5964 | s,@oldincludedir@,$oldincludedir,;t t |
---|
| 5965 | s,@infodir@,$infodir,;t t |
---|
| 5966 | s,@mandir@,$mandir,;t t |
---|
| 5967 | s,@build_alias@,$build_alias,;t t |
---|
| 5968 | s,@host_alias@,$host_alias,;t t |
---|
| 5969 | s,@target_alias@,$target_alias,;t t |
---|
| 5970 | s,@DEFS@,$DEFS,;t t |
---|
| 5971 | s,@ECHO_C@,$ECHO_C,;t t |
---|
| 5972 | s,@ECHO_N@,$ECHO_N,;t t |
---|
| 5973 | s,@ECHO_T@,$ECHO_T,;t t |
---|
| 5974 | s,@LIBS@,$LIBS,;t t |
---|
| 5975 | s,@glulibdir@,$glulibdir,;t t |
---|
| 5976 | s,@gluincdir@,$gluincdir,;t t |
---|
| 5977 | s,@vl2mvlibdir@,$vl2mvlibdir,;t t |
---|
| 5978 | s,@local_srcdir@,$local_srcdir,;t t |
---|
| 5979 | s,@AR@,$AR,;t t |
---|
| 5980 | s,@RANLIB@,$RANLIB,;t t |
---|
| 5981 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
---|
| 5982 | s,@AWK@,$AWK,;t t |
---|
| 5983 | s,@SED@,$SED,;t t |
---|
| 5984 | s,@build@,$build,;t t |
---|
| 5985 | s,@build_cpu@,$build_cpu,;t t |
---|
| 5986 | s,@build_vendor@,$build_vendor,;t t |
---|
| 5987 | s,@build_os@,$build_os,;t t |
---|
| 5988 | s,@host@,$host,;t t |
---|
| 5989 | s,@host_cpu@,$host_cpu,;t t |
---|
| 5990 | s,@host_vendor@,$host_vendor,;t t |
---|
| 5991 | s,@host_os@,$host_os,;t t |
---|
| 5992 | s,@target@,$target,;t t |
---|
| 5993 | s,@target_cpu@,$target_cpu,;t t |
---|
| 5994 | s,@target_vendor@,$target_vendor,;t t |
---|
| 5995 | s,@target_os@,$target_os,;t t |
---|
| 5996 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
---|
| 5997 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
---|
| 5998 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
---|
| 5999 | s,@CC@,$CC,;t t |
---|
| 6000 | s,@CFLAGS@,$CFLAGS,;t t |
---|
| 6001 | s,@LDFLAGS@,$LDFLAGS,;t t |
---|
| 6002 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
---|
| 6003 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
---|
| 6004 | s,@EXEEXT@,$EXEEXT,;t t |
---|
| 6005 | s,@OBJEXT@,$OBJEXT,;t t |
---|
| 6006 | s,@LINKER@,$LINKER,;t t |
---|
| 6007 | s,@LEX@,$LEX,;t t |
---|
| 6008 | s,@LEXLIB@,$LEXLIB,;t t |
---|
| 6009 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
---|
| 6010 | s,@LN_S@,$LN_S,;t t |
---|
| 6011 | s,@SET_MAKE@,$SET_MAKE,;t t |
---|
| 6012 | s,@YACC@,$YACC,;t t |
---|
| 6013 | s,@LIBDIRS@,$LIBDIRS,;t t |
---|
| 6014 | s,@CPP@,$CPP,;t t |
---|
| 6015 | s,@EGREP@,$EGREP,;t t |
---|
| 6016 | s,@LIBOBJS@,$LIBOBJS,;t t |
---|
| 6017 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
---|
| 6018 | CEOF |
---|
| 6019 | |
---|
| 6020 | _ACEOF |
---|
| 6021 | |
---|
| 6022 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6023 | # Split the substitutions into bite-sized pieces for seds with |
---|
| 6024 | # small command number limits, like on Digital OSF/1 and HP-UX. |
---|
| 6025 | ac_max_sed_lines=48 |
---|
| 6026 | ac_sed_frag=1 # Number of current file. |
---|
| 6027 | ac_beg=1 # First line for current file. |
---|
| 6028 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
---|
| 6029 | ac_more_lines=: |
---|
| 6030 | ac_sed_cmds= |
---|
| 6031 | while $ac_more_lines; do |
---|
| 6032 | if test $ac_beg -gt 1; then |
---|
| 6033 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 6034 | else |
---|
| 6035 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
---|
| 6036 | fi |
---|
| 6037 | if test ! -s $tmp/subs.frag; then |
---|
| 6038 | ac_more_lines=false |
---|
| 6039 | else |
---|
| 6040 | # The purpose of the label and of the branching condition is to |
---|
| 6041 | # speed up the sed processing (if there are no `@' at all, there |
---|
| 6042 | # is no need to browse any of the substitutions). |
---|
| 6043 | # These are the two extra sed commands mentioned above. |
---|
| 6044 | (echo ':t |
---|
| 6045 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
---|
| 6046 | if test -z "$ac_sed_cmds"; then |
---|
| 6047 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 6048 | else |
---|
| 6049 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
---|
| 6050 | fi |
---|
| 6051 | ac_sed_frag=`expr $ac_sed_frag + 1` |
---|
| 6052 | ac_beg=$ac_end |
---|
| 6053 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
---|
| 6054 | fi |
---|
| 6055 | done |
---|
| 6056 | if test -z "$ac_sed_cmds"; then |
---|
| 6057 | ac_sed_cmds=cat |
---|
| 6058 | fi |
---|
| 6059 | fi # test -n "$CONFIG_FILES" |
---|
| 6060 | |
---|
| 6061 | _ACEOF |
---|
| 6062 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6063 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
---|
| 6064 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
---|
| 6065 | case $ac_file in |
---|
| 6066 | - | *:- | *:-:* ) # input from stdin |
---|
| 6067 | cat >$tmp/stdin |
---|
| 6068 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 6069 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 6070 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
---|
| 6071 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
---|
| 6072 | * ) ac_file_in=$ac_file.in ;; |
---|
| 6073 | esac |
---|
| 6074 | |
---|
| 6075 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
---|
| 6076 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
---|
| 6077 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6078 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
| 6079 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
| 6080 | X"$ac_file" : 'X\(/\)' \| \ |
---|
| 6081 | . : '\(.\)' 2>/dev/null || |
---|
| 6082 | echo X"$ac_file" | |
---|
| 6083 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 6084 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 6085 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 6086 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 6087 | s/.*/./; q'` |
---|
| 6088 | { if $as_mkdir_p; then |
---|
| 6089 | mkdir -p "$ac_dir" |
---|
| 6090 | else |
---|
| 6091 | as_dir="$ac_dir" |
---|
| 6092 | as_dirs= |
---|
| 6093 | while test ! -d "$as_dir"; do |
---|
| 6094 | as_dirs="$as_dir $as_dirs" |
---|
| 6095 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
---|
| 6096 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
| 6097 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
| 6098 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
| 6099 | X"$as_dir" : 'X\(/\)' \| \ |
---|
| 6100 | . : '\(.\)' 2>/dev/null || |
---|
| 6101 | echo X"$as_dir" | |
---|
| 6102 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
---|
| 6103 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
---|
| 6104 | /^X\(\/\/\)$/{ s//\1/; q; } |
---|
| 6105 | /^X\(\/\).*/{ s//\1/; q; } |
---|
| 6106 | s/.*/./; q'` |
---|
| 6107 | done |
---|
| 6108 | test ! -n "$as_dirs" || mkdir $as_dirs |
---|
| 6109 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
---|
| 6110 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
---|
| 6111 | { (exit 1); exit 1; }; }; } |
---|
| 6112 | |
---|
| 6113 | ac_builddir=. |
---|
| 6114 | |
---|
| 6115 | if test "$ac_dir" != .; then |
---|
| 6116 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
---|
| 6117 | # A "../" for each directory in $ac_dir_suffix. |
---|
| 6118 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
---|
| 6119 | else |
---|
| 6120 | ac_dir_suffix= ac_top_builddir= |
---|
| 6121 | fi |
---|
| 6122 | |
---|
| 6123 | case $srcdir in |
---|
| 6124 | .) # No --srcdir option. We are building in place. |
---|
| 6125 | ac_srcdir=. |
---|
| 6126 | if test -z "$ac_top_builddir"; then |
---|
| 6127 | ac_top_srcdir=. |
---|
| 6128 | else |
---|
| 6129 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
---|
| 6130 | fi ;; |
---|
| 6131 | [\\/]* | ?:[\\/]* ) # Absolute path. |
---|
| 6132 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
| 6133 | ac_top_srcdir=$srcdir ;; |
---|
| 6134 | *) # Relative path. |
---|
| 6135 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
---|
| 6136 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
---|
| 6137 | esac |
---|
| 6138 | |
---|
| 6139 | # Do not use `cd foo && pwd` to compute absolute paths, because |
---|
| 6140 | # the directories may not exist. |
---|
| 6141 | case `pwd` in |
---|
| 6142 | .) ac_abs_builddir="$ac_dir";; |
---|
| 6143 | *) |
---|
| 6144 | case "$ac_dir" in |
---|
| 6145 | .) ac_abs_builddir=`pwd`;; |
---|
| 6146 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
---|
| 6147 | *) ac_abs_builddir=`pwd`/"$ac_dir";; |
---|
| 6148 | esac;; |
---|
| 6149 | esac |
---|
| 6150 | case $ac_abs_builddir in |
---|
| 6151 | .) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 6152 | *) |
---|
| 6153 | case ${ac_top_builddir}. in |
---|
| 6154 | .) ac_abs_top_builddir=$ac_abs_builddir;; |
---|
| 6155 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
---|
| 6156 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
---|
| 6157 | esac;; |
---|
| 6158 | esac |
---|
| 6159 | case $ac_abs_builddir in |
---|
| 6160 | .) ac_abs_srcdir=$ac_srcdir;; |
---|
| 6161 | *) |
---|
| 6162 | case $ac_srcdir in |
---|
| 6163 | .) ac_abs_srcdir=$ac_abs_builddir;; |
---|
| 6164 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
---|
| 6165 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
---|
| 6166 | esac;; |
---|
| 6167 | esac |
---|
| 6168 | case $ac_abs_builddir in |
---|
| 6169 | .) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 6170 | *) |
---|
| 6171 | case $ac_top_srcdir in |
---|
| 6172 | .) ac_abs_top_srcdir=$ac_abs_builddir;; |
---|
| 6173 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
---|
| 6174 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
---|
| 6175 | esac;; |
---|
| 6176 | esac |
---|
| 6177 | |
---|
| 6178 | |
---|
| 6179 | case $INSTALL in |
---|
| 6180 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
| 6181 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
---|
| 6182 | esac |
---|
| 6183 | |
---|
| 6184 | if test x"$ac_file" != x-; then |
---|
| 6185 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
---|
| 6186 | echo "$as_me: creating $ac_file" >&6;} |
---|
| 6187 | rm -f "$ac_file" |
---|
| 6188 | fi |
---|
| 6189 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
| 6190 | # use $as_me), people would be surprised to read: |
---|
| 6191 | # /* config.h. Generated by config.status. */ |
---|
| 6192 | if test x"$ac_file" = x-; then |
---|
| 6193 | configure_input= |
---|
| 6194 | else |
---|
| 6195 | configure_input="$ac_file. " |
---|
| 6196 | fi |
---|
| 6197 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
---|
| 6198 | sed 's,.*/,,'` by configure." |
---|
| 6199 | |
---|
| 6200 | # First look for the input files in the build tree, otherwise in the |
---|
| 6201 | # src tree. |
---|
| 6202 | ac_file_inputs=`IFS=: |
---|
| 6203 | for f in $ac_file_in; do |
---|
| 6204 | case $f in |
---|
| 6205 | -) echo $tmp/stdin ;; |
---|
| 6206 | [\\/$]*) |
---|
| 6207 | # Absolute (can't be DOS-style, as IFS=:) |
---|
| 6208 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 6209 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 6210 | { (exit 1); exit 1; }; } |
---|
| 6211 | echo "$f";; |
---|
| 6212 | *) # Relative |
---|
| 6213 | if test -f "$f"; then |
---|
| 6214 | # Build tree |
---|
| 6215 | echo "$f" |
---|
| 6216 | elif test -f "$srcdir/$f"; then |
---|
| 6217 | # Source tree |
---|
| 6218 | echo "$srcdir/$f" |
---|
| 6219 | else |
---|
| 6220 | # /dev/null tree |
---|
| 6221 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
---|
| 6222 | echo "$as_me: error: cannot find input file: $f" >&2;} |
---|
| 6223 | { (exit 1); exit 1; }; } |
---|
| 6224 | fi;; |
---|
| 6225 | esac |
---|
| 6226 | done` || { (exit 1); exit 1; } |
---|
| 6227 | _ACEOF |
---|
| 6228 | cat >>$CONFIG_STATUS <<_ACEOF |
---|
| 6229 | sed "$ac_vpsub |
---|
| 6230 | $extrasub |
---|
| 6231 | _ACEOF |
---|
| 6232 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6233 | :t |
---|
| 6234 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
| 6235 | s,@configure_input@,$configure_input,;t t |
---|
| 6236 | s,@srcdir@,$ac_srcdir,;t t |
---|
| 6237 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
---|
| 6238 | s,@top_srcdir@,$ac_top_srcdir,;t t |
---|
| 6239 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
---|
| 6240 | s,@builddir@,$ac_builddir,;t t |
---|
| 6241 | s,@abs_builddir@,$ac_abs_builddir,;t t |
---|
| 6242 | s,@top_builddir@,$ac_top_builddir,;t t |
---|
| 6243 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
---|
| 6244 | s,@INSTALL@,$ac_INSTALL,;t t |
---|
| 6245 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
---|
| 6246 | rm -f $tmp/stdin |
---|
| 6247 | if test x"$ac_file" != x-; then |
---|
| 6248 | mv $tmp/out $ac_file |
---|
| 6249 | else |
---|
| 6250 | cat $tmp/out |
---|
| 6251 | rm -f $tmp/out |
---|
| 6252 | fi |
---|
| 6253 | |
---|
| 6254 | done |
---|
| 6255 | _ACEOF |
---|
| 6256 | |
---|
| 6257 | cat >>$CONFIG_STATUS <<\_ACEOF |
---|
| 6258 | |
---|
| 6259 | { (exit 0); exit 0; } |
---|
| 6260 | _ACEOF |
---|
| 6261 | chmod +x $CONFIG_STATUS |
---|
| 6262 | ac_clean_files=$ac_clean_files_save |
---|
| 6263 | |
---|
| 6264 | |
---|
| 6265 | # configure is writing to config.log, and then calls config.status. |
---|
| 6266 | # config.status does its own redirection, appending to config.log. |
---|
| 6267 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
| 6268 | # by configure, so config.status won't be able to write to it; its |
---|
| 6269 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
| 6270 | # effectively closing config.log, so it can be properly (re)opened and |
---|
| 6271 | # appended to by config.status. When coming back to configure, we |
---|
| 6272 | # need to make the FD available again. |
---|
| 6273 | if test "$no_create" != yes; then |
---|
| 6274 | ac_cs_success=: |
---|
| 6275 | ac_config_status_args= |
---|
| 6276 | test "$silent" = yes && |
---|
| 6277 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
| 6278 | exec 5>/dev/null |
---|
| 6279 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
| 6280 | exec 5>>config.log |
---|
| 6281 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
| 6282 | # would make configure fail if this is the last instruction. |
---|
| 6283 | $ac_cs_success || { (exit 1); exit 1; } |
---|
| 6284 | fi |
---|
| 6285 | |
---|