vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.57. |
| 4 | # |
| 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 6 | # Free Software Foundation, Inc. |
| 7 | # This configure script is free software; the Free Software Foundation |
| 8 | # gives unlimited permission to copy, distribute and modify it. |
| 9 | ## --------------------- ## |
| 10 | ## M4sh Initialization. ## |
| 11 | ## --------------------- ## |
| 12 | |
| 13 | # Be Bourne compatible |
| 14 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 15 | emulate sh |
| 16 | NULLCMD=: |
| 17 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 18 | # is contrary to our usage. Disable this feature. |
| 19 | alias -g '${1+"$@"}'='"$@"' |
| 20 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 21 | set -o posix |
| 22 | fi |
| 23 | |
| 24 | # Support unset when possible. |
| 25 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 26 | as_unset=unset |
| 27 | else |
| 28 | as_unset=false |
| 29 | fi |
| 30 | |
| 31 | |
| 32 | # Work around bugs in pre-3.0 UWIN ksh. |
| 33 | $as_unset ENV MAIL MAILPATH |
| 34 | PS1='$ ' |
| 35 | PS2='> ' |
| 36 | PS4='+ ' |
| 37 | |
| 38 | # NLS nuisances. |
| 39 | for as_var in \ |
| 40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 | LC_TELEPHONE LC_TIME |
| 43 | do |
| 44 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 | eval $as_var=C; export $as_var |
| 46 | else |
| 47 | $as_unset $as_var |
| 48 | fi |
| 49 | done |
| 50 | |
| 51 | # Required to use basename. |
| 52 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 | as_expr=expr |
| 54 | else |
| 55 | as_expr=false |
| 56 | fi |
| 57 | |
| 58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 | as_basename=basename |
| 60 | else |
| 61 | as_basename=false |
| 62 | fi |
| 63 | |
| 64 | |
| 65 | # Name of the executable. |
| 66 | as_me=`$as_basename "$0" || |
| 67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 | X"$0" : 'X\(//\)$' \| \ |
| 69 | X"$0" : 'X\(/\)$' \| \ |
| 70 | . : '\(.\)' 2>/dev/null || |
| 71 | echo X/"$0" | |
| 72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 75 | s/.*/./; q'` |
| 76 | |
| 77 | |
| 78 | # PATH needs CR, and LINENO needs CR and PATH. |
| 79 | # Avoid depending upon Character Ranges. |
| 80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 | as_cr_digits='0123456789' |
| 84 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 | |
| 86 | # The user is always right. |
| 87 | if test "${PATH_SEPARATOR+set}" != set; then |
| 88 | echo "#! /bin/sh" >conf$$.sh |
| 89 | echo "exit 0" >>conf$$.sh |
| 90 | chmod +x conf$$.sh |
| 91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 92 | PATH_SEPARATOR=';' |
| 93 | else |
| 94 | PATH_SEPARATOR=: |
| 95 | fi |
| 96 | rm -f conf$$.sh |
| 97 | fi |
| 98 | |
| 99 | |
| 100 | as_lineno_1=$LINENO |
| 101 | as_lineno_2=$LINENO |
| 102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 | # Find who we are. Look in the path if we contain no path at all |
| 106 | # relative or not. |
| 107 | case $0 in |
| 108 | *[\\/]* ) as_myself=$0 ;; |
| 109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 | for as_dir in $PATH |
| 111 | do |
| 112 | IFS=$as_save_IFS |
| 113 | test -z "$as_dir" && as_dir=. |
| 114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 | done |
| 116 | |
| 117 | ;; |
| 118 | esac |
| 119 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 | # in which case we are not to be found in the path. |
| 121 | if test "x$as_myself" = x; then |
| 122 | as_myself=$0 |
| 123 | fi |
| 124 | if test ! -f "$as_myself"; then |
| 125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 | { (exit 1); exit 1; }; } |
| 127 | fi |
| 128 | case $CONFIG_SHELL in |
| 129 | '') |
| 130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 | do |
| 133 | IFS=$as_save_IFS |
| 134 | test -z "$as_dir" && as_dir=. |
| 135 | for as_base in sh bash ksh sh5; do |
| 136 | case $as_dir in |
| 137 | /*) |
| 138 | if ("$as_dir/$as_base" -c ' |
| 139 | as_lineno_1=$LINENO |
| 140 | as_lineno_2=$LINENO |
| 141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 | CONFIG_SHELL=$as_dir/$as_base |
| 147 | export CONFIG_SHELL |
| 148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 | fi;; |
| 150 | esac |
| 151 | done |
| 152 | done |
| 153 | ;; |
| 154 | esac |
| 155 | |
| 156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 158 | # line-number line before each line; the second 'sed' does the real |
| 159 | # work. The second script uses 'N' to pair each line-number line |
| 160 | # with the numbered line, and appends trailing '-' during |
| 161 | # substitution so that $LINENO is not a special case at line end. |
| 162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 | sed '=' <$as_myself | |
| 165 | sed ' |
| 166 | N |
| 167 | s,$,-, |
| 168 | : loop |
| 169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 | t loop |
| 171 | s,-$,, |
| 172 | s,^['$as_cr_digits']*\n,, |
| 173 | ' >$as_me.lineno && |
| 174 | chmod +x $as_me.lineno || |
| 175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 | { (exit 1); exit 1; }; } |
| 177 | |
| 178 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 179 | # (the dirname of $[0] is not the place where we might find the |
| 180 | # original and so on. Autoconf is especially sensible to this). |
| 181 | . ./$as_me.lineno |
| 182 | # Exit status is that of the last command. |
| 183 | exit |
| 184 | } |
| 185 | |
| 186 | |
| 187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 | *c*,-n*) ECHO_N= ECHO_C=' |
| 189 | ' ECHO_T=' ' ;; |
| 190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 192 | esac |
| 193 | |
| 194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 | as_expr=expr |
| 196 | else |
| 197 | as_expr=false |
| 198 | fi |
| 199 | |
| 200 | rm -f conf$$ conf$$.exe conf$$.file |
| 201 | echo >conf$$.file |
| 202 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 | if test -f conf$$.exe; then |
| 206 | # Don't use ln at all; we don't have any links |
| 207 | as_ln_s='cp -p' |
| 208 | else |
| 209 | as_ln_s='ln -s' |
| 210 | fi |
| 211 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 | as_ln_s=ln |
| 213 | else |
| 214 | as_ln_s='cp -p' |
| 215 | fi |
| 216 | rm -f conf$$ conf$$.exe conf$$.file |
| 217 | |
| 218 | if mkdir -p . 2>/dev/null; then |
| 219 | as_mkdir_p=: |
| 220 | else |
| 221 | as_mkdir_p=false |
| 222 | fi |
| 223 | |
| 224 | as_executable_p="test -f" |
| 225 | |
| 226 | # Sed expression to map a string onto a valid CPP name. |
| 227 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 228 | |
| 229 | # Sed expression to map a string onto a valid variable name. |
| 230 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 231 | |
| 232 | |
| 233 | # IFS |
| 234 | # We need space, tab and new line, in precisely that order. |
| 235 | as_nl=' |
| 236 | ' |
| 237 | IFS=" $as_nl" |
| 238 | |
| 239 | # CDPATH. |
| 240 | $as_unset CDPATH |
| 241 | |
| 242 | |
| 243 | # Name of the host. |
| 244 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 245 | # so uname gets run too. |
| 246 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 247 | |
| 248 | exec 6>&1 |
| 249 | |
| 250 | # |
| 251 | # Initializations. |
| 252 | # |
| 253 | ac_default_prefix=/usr/local |
| 254 | ac_config_libobj_dir=. |
| 255 | cross_compiling=no |
| 256 | subdirs= |
| 257 | MFLAGS= |
| 258 | MAKEFLAGS= |
| 259 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 260 | |
| 261 | # Maximum number of lines to put in a shell here document. |
| 262 | # This variable seems obsolete. It should probably be removed, and |
| 263 | # only ac_max_sed_lines should be used. |
| 264 | : ${ac_max_here_lines=38} |
| 265 | |
| 266 | # Identity of this package. |
| 267 | PACKAGE_NAME= |
| 268 | PACKAGE_TARNAME= |
| 269 | PACKAGE_VERSION= |
| 270 | PACKAGE_STRING= |
| 271 | PACKAGE_BUGREPORT= |
| 272 | |
| 273 | ac_unique_file="libasn1parser/asn1p_y.y" |
| 274 | # Factoring default headers for most tests. |
| 275 | ac_includes_default="\ |
| 276 | #include <stdio.h> |
| 277 | #if HAVE_SYS_TYPES_H |
| 278 | # include <sys/types.h> |
| 279 | #endif |
| 280 | #if HAVE_SYS_STAT_H |
| 281 | # include <sys/stat.h> |
| 282 | #endif |
| 283 | #if STDC_HEADERS |
| 284 | # include <stdlib.h> |
| 285 | # include <stddef.h> |
| 286 | #else |
| 287 | # if HAVE_STDLIB_H |
| 288 | # include <stdlib.h> |
| 289 | # endif |
| 290 | #endif |
| 291 | #if HAVE_STRING_H |
| 292 | # if !STDC_HEADERS && HAVE_MEMORY_H |
| 293 | # include <memory.h> |
| 294 | # endif |
| 295 | # include <string.h> |
| 296 | #endif |
| 297 | #if HAVE_STRINGS_H |
| 298 | # include <strings.h> |
| 299 | #endif |
| 300 | #if HAVE_INTTYPES_H |
| 301 | # include <inttypes.h> |
| 302 | #else |
| 303 | # if HAVE_STDINT_H |
| 304 | # include <stdint.h> |
| 305 | # endif |
| 306 | #endif |
| 307 | #if HAVE_UNISTD_H |
| 308 | # include <unistd.h> |
| 309 | #endif" |
| 310 | |
| 311 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 PACKAGE VERSION EXEEXT OBJEXT ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh INSTALL_STRIP_PROGRAM AWK SET_MAKE AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH DEPDIR PATH MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC am__include am__quote CCDEPMODE LN_S LIBTOOL CONFIGURE_DEPENDS CPP YACC LEX LEXLIB LEX_OUTPUT_ROOT AR ADD_CFLAGS EGREP LIBOBJS LTLIBOBJS' |
| 312 | ac_subst_files='' |
| 313 | |
| 314 | # Initialize some variables set by options. |
| 315 | ac_init_help= |
| 316 | ac_init_version=false |
| 317 | # The variables have the same names as the options, with |
| 318 | # dashes changed to underlines. |
| 319 | cache_file=/dev/null |
| 320 | exec_prefix=NONE |
| 321 | no_create= |
| 322 | no_recursion= |
| 323 | prefix=NONE |
| 324 | program_prefix=NONE |
| 325 | program_suffix=NONE |
| 326 | program_transform_name=s,x,x, |
| 327 | silent= |
| 328 | site= |
| 329 | srcdir= |
| 330 | verbose= |
| 331 | x_includes=NONE |
| 332 | x_libraries=NONE |
| 333 | |
| 334 | # Installation directory options. |
| 335 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 336 | # and all the variables that are supposed to be based on exec_prefix |
| 337 | # by default will actually change. |
| 338 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 339 | bindir='${exec_prefix}/bin' |
| 340 | sbindir='${exec_prefix}/sbin' |
| 341 | libexecdir='${exec_prefix}/libexec' |
| 342 | datadir='${prefix}/share' |
| 343 | sysconfdir='${prefix}/etc' |
| 344 | sharedstatedir='${prefix}/com' |
| 345 | localstatedir='${prefix}/var' |
| 346 | libdir='${exec_prefix}/lib' |
| 347 | includedir='${prefix}/include' |
| 348 | oldincludedir='/usr/include' |
| 349 | infodir='${prefix}/info' |
| 350 | mandir='${prefix}/man' |
| 351 | |
| 352 | ac_prev= |
| 353 | for ac_option |
| 354 | do |
| 355 | # If the previous option needs an argument, assign it. |
| 356 | if test -n "$ac_prev"; then |
| 357 | eval "$ac_prev=\$ac_option" |
| 358 | ac_prev= |
| 359 | continue |
| 360 | fi |
| 361 | |
| 362 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 363 | |
| 364 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 365 | |
| 366 | case $ac_option in |
| 367 | |
| 368 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 369 | ac_prev=bindir ;; |
| 370 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 371 | bindir=$ac_optarg ;; |
| 372 | |
| 373 | -build | --build | --buil | --bui | --bu) |
| 374 | ac_prev=build_alias ;; |
| 375 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 376 | build_alias=$ac_optarg ;; |
| 377 | |
| 378 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 379 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 380 | ac_prev=cache_file ;; |
| 381 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 382 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 383 | cache_file=$ac_optarg ;; |
| 384 | |
| 385 | --config-cache | -C) |
| 386 | cache_file=config.cache ;; |
| 387 | |
| 388 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 389 | ac_prev=datadir ;; |
| 390 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 391 | | --da=*) |
| 392 | datadir=$ac_optarg ;; |
| 393 | |
| 394 | -disable-* | --disable-*) |
| 395 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 396 | # Reject names that are not valid shell variable names. |
| 397 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 398 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 399 | { (exit 1); exit 1; }; } |
| 400 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 401 | eval "enable_$ac_feature=no" ;; |
| 402 | |
| 403 | -enable-* | --enable-*) |
| 404 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 405 | # Reject names that are not valid shell variable names. |
| 406 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 407 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 408 | { (exit 1); exit 1; }; } |
| 409 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 410 | case $ac_option in |
| 411 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 412 | *) ac_optarg=yes ;; |
| 413 | esac |
| 414 | eval "enable_$ac_feature='$ac_optarg'" ;; |
| 415 | |
| 416 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 417 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 418 | | --exec | --exe | --ex) |
| 419 | ac_prev=exec_prefix ;; |
| 420 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 421 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 422 | | --exec=* | --exe=* | --ex=*) |
| 423 | exec_prefix=$ac_optarg ;; |
| 424 | |
| 425 | -gas | --gas | --ga | --g) |
| 426 | # Obsolete; use --with-gas. |
| 427 | with_gas=yes ;; |
| 428 | |
| 429 | -help | --help | --hel | --he | -h) |
| 430 | ac_init_help=long ;; |
| 431 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 432 | ac_init_help=recursive ;; |
| 433 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 434 | ac_init_help=short ;; |
| 435 | |
| 436 | -host | --host | --hos | --ho) |
| 437 | ac_prev=host_alias ;; |
| 438 | -host=* | --host=* | --hos=* | --ho=*) |
| 439 | host_alias=$ac_optarg ;; |
| 440 | |
| 441 | -includedir | --includedir | --includedi | --included | --include \ |
| 442 | | --includ | --inclu | --incl | --inc) |
| 443 | ac_prev=includedir ;; |
| 444 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 445 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 446 | includedir=$ac_optarg ;; |
| 447 | |
| 448 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 449 | ac_prev=infodir ;; |
| 450 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 451 | infodir=$ac_optarg ;; |
| 452 | |
| 453 | -libdir | --libdir | --libdi | --libd) |
| 454 | ac_prev=libdir ;; |
| 455 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 456 | libdir=$ac_optarg ;; |
| 457 | |
| 458 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 459 | | --libexe | --libex | --libe) |
| 460 | ac_prev=libexecdir ;; |
| 461 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 462 | | --libexe=* | --libex=* | --libe=*) |
| 463 | libexecdir=$ac_optarg ;; |
| 464 | |
| 465 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 466 | | --localstate | --localstat | --localsta | --localst \ |
| 467 | | --locals | --local | --loca | --loc | --lo) |
| 468 | ac_prev=localstatedir ;; |
| 469 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 470 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 471 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 472 | localstatedir=$ac_optarg ;; |
| 473 | |
| 474 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 475 | ac_prev=mandir ;; |
| 476 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 477 | mandir=$ac_optarg ;; |
| 478 | |
| 479 | -nfp | --nfp | --nf) |
| 480 | # Obsolete; use --without-fp. |
| 481 | with_fp=no ;; |
| 482 | |
| 483 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 484 | | --no-cr | --no-c | -n) |
| 485 | no_create=yes ;; |
| 486 | |
| 487 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 488 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 489 | no_recursion=yes ;; |
| 490 | |
| 491 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 492 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 493 | | --oldin | --oldi | --old | --ol | --o) |
| 494 | ac_prev=oldincludedir ;; |
| 495 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 496 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 497 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 498 | oldincludedir=$ac_optarg ;; |
| 499 | |
| 500 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 501 | ac_prev=prefix ;; |
| 502 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 503 | prefix=$ac_optarg ;; |
| 504 | |
| 505 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 506 | | --program-pre | --program-pr | --program-p) |
| 507 | ac_prev=program_prefix ;; |
| 508 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 509 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 510 | program_prefix=$ac_optarg ;; |
| 511 | |
| 512 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 513 | | --program-suf | --program-su | --program-s) |
| 514 | ac_prev=program_suffix ;; |
| 515 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 516 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 517 | program_suffix=$ac_optarg ;; |
| 518 | |
| 519 | -program-transform-name | --program-transform-name \ |
| 520 | | --program-transform-nam | --program-transform-na \ |
| 521 | | --program-transform-n | --program-transform- \ |
| 522 | | --program-transform | --program-transfor \ |
| 523 | | --program-transfo | --program-transf \ |
| 524 | | --program-trans | --program-tran \ |
| 525 | | --progr-tra | --program-tr | --program-t) |
| 526 | ac_prev=program_transform_name ;; |
| 527 | -program-transform-name=* | --program-transform-name=* \ |
| 528 | | --program-transform-nam=* | --program-transform-na=* \ |
| 529 | | --program-transform-n=* | --program-transform-=* \ |
| 530 | | --program-transform=* | --program-transfor=* \ |
| 531 | | --program-transfo=* | --program-transf=* \ |
| 532 | | --program-trans=* | --program-tran=* \ |
| 533 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 534 | program_transform_name=$ac_optarg ;; |
| 535 | |
| 536 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 537 | | -silent | --silent | --silen | --sile | --sil) |
| 538 | silent=yes ;; |
| 539 | |
| 540 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 541 | ac_prev=sbindir ;; |
| 542 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 543 | | --sbi=* | --sb=*) |
| 544 | sbindir=$ac_optarg ;; |
| 545 | |
| 546 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 547 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 548 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 549 | | --sha | --sh) |
| 550 | ac_prev=sharedstatedir ;; |
| 551 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 552 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 553 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 554 | | --sha=* | --sh=*) |
| 555 | sharedstatedir=$ac_optarg ;; |
| 556 | |
| 557 | -site | --site | --sit) |
| 558 | ac_prev=site ;; |
| 559 | -site=* | --site=* | --sit=*) |
| 560 | site=$ac_optarg ;; |
| 561 | |
| 562 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 563 | ac_prev=srcdir ;; |
| 564 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 565 | srcdir=$ac_optarg ;; |
| 566 | |
| 567 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 568 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 569 | ac_prev=sysconfdir ;; |
| 570 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 571 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 572 | sysconfdir=$ac_optarg ;; |
| 573 | |
| 574 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 575 | ac_prev=target_alias ;; |
| 576 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 577 | target_alias=$ac_optarg ;; |
| 578 | |
| 579 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 580 | verbose=yes ;; |
| 581 | |
| 582 | -version | --version | --versio | --versi | --vers | -V) |
| 583 | ac_init_version=: ;; |
| 584 | |
| 585 | -with-* | --with-*) |
| 586 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 587 | # Reject names that are not valid shell variable names. |
| 588 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 589 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 590 | { (exit 1); exit 1; }; } |
| 591 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 592 | case $ac_option in |
| 593 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 594 | *) ac_optarg=yes ;; |
| 595 | esac |
| 596 | eval "with_$ac_package='$ac_optarg'" ;; |
| 597 | |
| 598 | -without-* | --without-*) |
| 599 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 600 | # Reject names that are not valid shell variable names. |
| 601 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 602 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 603 | { (exit 1); exit 1; }; } |
| 604 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 605 | eval "with_$ac_package=no" ;; |
| 606 | |
| 607 | --x) |
| 608 | # Obsolete; use --with-x. |
| 609 | with_x=yes ;; |
| 610 | |
| 611 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 612 | | --x-incl | --x-inc | --x-in | --x-i) |
| 613 | ac_prev=x_includes ;; |
| 614 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 615 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 616 | x_includes=$ac_optarg ;; |
| 617 | |
| 618 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 619 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 620 | ac_prev=x_libraries ;; |
| 621 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 622 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 623 | x_libraries=$ac_optarg ;; |
| 624 | |
| 625 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
| 626 | Try \`$0 --help' for more information." >&2 |
| 627 | { (exit 1); exit 1; }; } |
| 628 | ;; |
| 629 | |
| 630 | *=*) |
| 631 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 632 | # Reject names that are not valid shell variable names. |
| 633 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 634 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 635 | { (exit 1); exit 1; }; } |
| 636 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 637 | eval "$ac_envvar='$ac_optarg'" |
| 638 | export $ac_envvar ;; |
| 639 | |
| 640 | *) |
| 641 | # FIXME: should be removed in autoconf 3.0. |
| 642 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 643 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 644 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 645 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 646 | ;; |
| 647 | |
| 648 | esac |
| 649 | done |
| 650 | |
| 651 | if test -n "$ac_prev"; then |
| 652 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 653 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
| 654 | { (exit 1); exit 1; }; } |
| 655 | fi |
| 656 | |
| 657 | # Be sure to have absolute paths. |
| 658 | for ac_var in exec_prefix prefix |
| 659 | do |
| 660 | eval ac_val=$`echo $ac_var` |
| 661 | case $ac_val in |
| 662 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 663 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 664 | { (exit 1); exit 1; }; };; |
| 665 | esac |
| 666 | done |
| 667 | |
| 668 | # Be sure to have absolute paths. |
| 669 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 670 | localstatedir libdir includedir oldincludedir infodir mandir |
| 671 | do |
| 672 | eval ac_val=$`echo $ac_var` |
| 673 | case $ac_val in |
| 674 | [\\/$]* | ?:[\\/]* ) ;; |
| 675 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 676 | { (exit 1); exit 1; }; };; |
| 677 | esac |
| 678 | done |
| 679 | |
| 680 | # There might be people who depend on the old broken behavior: `$host' |
| 681 | # used to hold the argument of --host etc. |
| 682 | # FIXME: To remove some day. |
| 683 | build=$build_alias |
| 684 | host=$host_alias |
| 685 | target=$target_alias |
| 686 | |
| 687 | # FIXME: To remove some day. |
| 688 | if test "x$host_alias" != x; then |
| 689 | if test "x$build_alias" = x; then |
| 690 | cross_compiling=maybe |
| 691 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 692 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 693 | elif test "x$build_alias" != "x$host_alias"; then |
| 694 | cross_compiling=yes |
| 695 | fi |
| 696 | fi |
| 697 | |
| 698 | ac_tool_prefix= |
| 699 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 700 | |
| 701 | test "$silent" = yes && exec 6>/dev/null |
| 702 | |
| 703 | |
| 704 | # Find the source files, if location was not specified. |
| 705 | if test -z "$srcdir"; then |
| 706 | ac_srcdir_defaulted=yes |
| 707 | # Try the directory containing this script, then its parent. |
| 708 | ac_confdir=`(dirname "$0") 2>/dev/null || |
| 709 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 710 | X"$0" : 'X\(//\)[^/]' \| \ |
| 711 | X"$0" : 'X\(//\)$' \| \ |
| 712 | X"$0" : 'X\(/\)' \| \ |
| 713 | . : '\(.\)' 2>/dev/null || |
| 714 | echo X"$0" | |
| 715 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 716 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 717 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 718 | /^X\(\/\).*/{ s//\1/; q; } |
| 719 | s/.*/./; q'` |
| 720 | srcdir=$ac_confdir |
| 721 | if test ! -r $srcdir/$ac_unique_file; then |
| 722 | srcdir=.. |
| 723 | fi |
| 724 | else |
| 725 | ac_srcdir_defaulted=no |
| 726 | fi |
| 727 | if test ! -r $srcdir/$ac_unique_file; then |
| 728 | if test "$ac_srcdir_defaulted" = yes; then |
| 729 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 730 | { (exit 1); exit 1; }; } |
| 731 | else |
| 732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 733 | { (exit 1); exit 1; }; } |
| 734 | fi |
| 735 | fi |
| 736 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 737 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 738 | { (exit 1); exit 1; }; } |
| 739 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 740 | ac_env_build_alias_set=${build_alias+set} |
| 741 | ac_env_build_alias_value=$build_alias |
| 742 | ac_cv_env_build_alias_set=${build_alias+set} |
| 743 | ac_cv_env_build_alias_value=$build_alias |
| 744 | ac_env_host_alias_set=${host_alias+set} |
| 745 | ac_env_host_alias_value=$host_alias |
| 746 | ac_cv_env_host_alias_set=${host_alias+set} |
| 747 | ac_cv_env_host_alias_value=$host_alias |
| 748 | ac_env_target_alias_set=${target_alias+set} |
| 749 | ac_env_target_alias_value=$target_alias |
| 750 | ac_cv_env_target_alias_set=${target_alias+set} |
| 751 | ac_cv_env_target_alias_value=$target_alias |
| 752 | ac_env_CC_set=${CC+set} |
| 753 | ac_env_CC_value=$CC |
| 754 | ac_cv_env_CC_set=${CC+set} |
| 755 | ac_cv_env_CC_value=$CC |
| 756 | ac_env_CFLAGS_set=${CFLAGS+set} |
| 757 | ac_env_CFLAGS_value=$CFLAGS |
| 758 | ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 759 | ac_cv_env_CFLAGS_value=$CFLAGS |
| 760 | ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 761 | ac_env_LDFLAGS_value=$LDFLAGS |
| 762 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 763 | ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 764 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 765 | ac_env_CPPFLAGS_value=$CPPFLAGS |
| 766 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 767 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 768 | ac_env_CPP_set=${CPP+set} |
| 769 | ac_env_CPP_value=$CPP |
| 770 | ac_cv_env_CPP_set=${CPP+set} |
| 771 | ac_cv_env_CPP_value=$CPP |
| 772 | |
| 773 | # |
| 774 | # Report the --help message. |
| 775 | # |
| 776 | if test "$ac_init_help" = "long"; then |
| 777 | # Omit some internal or obsolete options to make the list less imposing. |
| 778 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 779 | cat <<_ACEOF |
| 780 | \`configure' configures this package to adapt to many kinds of systems. |
| 781 | |
| 782 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 783 | |
| 784 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 785 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 786 | |
| 787 | Defaults for the options are specified in brackets. |
| 788 | |
| 789 | Configuration: |
| 790 | -h, --help display this help and exit |
| 791 | --help=short display options specific to this package |
| 792 | --help=recursive display the short help of all the included packages |
| 793 | -V, --version display version information and exit |
| 794 | -q, --quiet, --silent do not print \`checking...' messages |
| 795 | --cache-file=FILE cache test results in FILE [disabled] |
| 796 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 797 | -n, --no-create do not create output files |
| 798 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 799 | |
| 800 | _ACEOF |
| 801 | |
| 802 | cat <<_ACEOF |
| 803 | Installation directories: |
| 804 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 805 | [$ac_default_prefix] |
| 806 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 807 | [PREFIX] |
| 808 | |
| 809 | By default, \`make install' will install all the files in |
| 810 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 811 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 812 | for instance \`--prefix=\$HOME'. |
| 813 | |
| 814 | For better control, use the options below. |
| 815 | |
| 816 | Fine tuning of the installation directories: |
| 817 | --bindir=DIR user executables [EPREFIX/bin] |
| 818 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 819 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 820 | --datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 821 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 822 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 823 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 824 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 825 | --includedir=DIR C header files [PREFIX/include] |
| 826 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 827 | --infodir=DIR info documentation [PREFIX/info] |
| 828 | --mandir=DIR man documentation [PREFIX/man] |
| 829 | _ACEOF |
| 830 | |
| 831 | cat <<\_ACEOF |
| 832 | |
| 833 | Program names: |
| 834 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 835 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 836 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 837 | |
| 838 | System types: |
| 839 | --build=BUILD configure for building on BUILD [guessed] |
| 840 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 841 | --target=TARGET configure for building compilers for TARGET [HOST] |
| 842 | _ACEOF |
| 843 | fi |
| 844 | |
| 845 | if test -n "$ac_init_help"; then |
| 846 | |
| 847 | cat <<\_ACEOF |
| 848 | |
| 849 | Optional Features: |
| 850 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 851 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 852 | --disable-dependency-tracking Speeds up one-time builds |
| 853 | --enable-dependency-tracking Do not reject slow dependency extractors |
| 854 | --enable-maintainer-mode enable make rules and dependencies not useful |
| 855 | (and sometimes confusing) to the casual installer |
| 856 | --enable-shared=PKGS build shared libraries default=yes |
| 857 | --enable-static=PKGS build static libraries default=yes |
| 858 | --enable-fast-install=PKGS optimize for fast installation default=yes |
| 859 | --disable-libtool-lock avoid locking (might break parallel builds) |
| 860 | --disable-autoconf disable automatic generation of configure script |
| 861 | --enable-Werror abort compilation after any C compiler warning |
| 862 | |
| 863 | Optional Packages: |
| 864 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 865 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 866 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 867 | |
| 868 | Some influential environment variables: |
| 869 | CC C compiler command |
| 870 | CFLAGS C compiler flags |
| 871 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 872 | nonstandard directory <lib dir> |
| 873 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 874 | headers in a nonstandard directory <include dir> |
| 875 | CPP C preprocessor |
| 876 | |
| 877 | Use these variables to override the choices made by `configure' or to help |
| 878 | it to find libraries and programs with nonstandard names/locations. |
| 879 | |
| 880 | _ACEOF |
| 881 | fi |
| 882 | |
| 883 | if test "$ac_init_help" = "recursive"; then |
| 884 | # If there are subdirs, report their specific --help. |
| 885 | ac_popdir=`pwd` |
| 886 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 887 | test -d $ac_dir || continue |
| 888 | ac_builddir=. |
| 889 | |
| 890 | if test "$ac_dir" != .; then |
| 891 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 892 | # A "../" for each directory in $ac_dir_suffix. |
| 893 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 894 | else |
| 895 | ac_dir_suffix= ac_top_builddir= |
| 896 | fi |
| 897 | |
| 898 | case $srcdir in |
| 899 | .) # No --srcdir option. We are building in place. |
| 900 | ac_srcdir=. |
| 901 | if test -z "$ac_top_builddir"; then |
| 902 | ac_top_srcdir=. |
| 903 | else |
| 904 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 905 | fi ;; |
| 906 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 907 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 908 | ac_top_srcdir=$srcdir ;; |
| 909 | *) # Relative path. |
| 910 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 911 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 912 | esac |
| 913 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 914 | # absolute. |
| 915 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 916 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 917 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 918 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 919 | |
| 920 | cd $ac_dir |
| 921 | # Check for guested configure; otherwise get Cygnus style configure. |
| 922 | if test -f $ac_srcdir/configure.gnu; then |
| 923 | echo |
| 924 | $SHELL $ac_srcdir/configure.gnu --help=recursive |
| 925 | elif test -f $ac_srcdir/configure; then |
| 926 | echo |
| 927 | $SHELL $ac_srcdir/configure --help=recursive |
| 928 | elif test -f $ac_srcdir/configure.ac || |
| 929 | test -f $ac_srcdir/configure.in; then |
| 930 | echo |
| 931 | $ac_configure --help |
| 932 | else |
| 933 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 934 | fi |
| 935 | cd $ac_popdir |
| 936 | done |
| 937 | fi |
| 938 | |
| 939 | test -n "$ac_init_help" && exit 0 |
| 940 | if $ac_init_version; then |
| 941 | cat <<\_ACEOF |
| 942 | |
| 943 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
| 944 | Free Software Foundation, Inc. |
| 945 | This configure script is free software; the Free Software Foundation |
| 946 | gives unlimited permission to copy, distribute and modify it. |
| 947 | _ACEOF |
| 948 | exit 0 |
| 949 | fi |
| 950 | exec 5>config.log |
| 951 | cat >&5 <<_ACEOF |
| 952 | This file contains any messages produced by compilers while |
| 953 | running configure, to aid debugging if configure makes a mistake. |
| 954 | |
| 955 | It was created by $as_me, which was |
| 956 | generated by GNU Autoconf 2.57. Invocation command line was |
| 957 | |
| 958 | $ $0 $@ |
| 959 | |
| 960 | _ACEOF |
| 961 | { |
| 962 | cat <<_ASUNAME |
| 963 | ## --------- ## |
| 964 | ## Platform. ## |
| 965 | ## --------- ## |
| 966 | |
| 967 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 968 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 969 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 970 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 971 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 972 | |
| 973 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 974 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 975 | |
| 976 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 977 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 978 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 979 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 980 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 981 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 982 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 983 | |
| 984 | _ASUNAME |
| 985 | |
| 986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 987 | for as_dir in $PATH |
| 988 | do |
| 989 | IFS=$as_save_IFS |
| 990 | test -z "$as_dir" && as_dir=. |
| 991 | echo "PATH: $as_dir" |
| 992 | done |
| 993 | |
| 994 | } >&5 |
| 995 | |
| 996 | cat >&5 <<_ACEOF |
| 997 | |
| 998 | |
| 999 | ## ----------- ## |
| 1000 | ## Core tests. ## |
| 1001 | ## ----------- ## |
| 1002 | |
| 1003 | _ACEOF |
| 1004 | |
| 1005 | |
| 1006 | # Keep a trace of the command line. |
| 1007 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 1008 | # Strip out --silent because we don't want to record it for future runs. |
| 1009 | # Also quote any args containing shell meta-characters. |
| 1010 | # Make two passes to allow for proper duplicate-argument suppression. |
| 1011 | ac_configure_args= |
| 1012 | ac_configure_args0= |
| 1013 | ac_configure_args1= |
| 1014 | ac_sep= |
| 1015 | ac_must_keep_next=false |
| 1016 | for ac_pass in 1 2 |
| 1017 | do |
| 1018 | for ac_arg |
| 1019 | do |
| 1020 | case $ac_arg in |
| 1021 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 1022 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1023 | | -silent | --silent | --silen | --sile | --sil) |
| 1024 | continue ;; |
| 1025 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1026 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1027 | esac |
| 1028 | case $ac_pass in |
| 1029 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 1030 | 2) |
| 1031 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 1032 | if test $ac_must_keep_next = true; then |
| 1033 | ac_must_keep_next=false # Got value, back to normal. |
| 1034 | else |
| 1035 | case $ac_arg in |
| 1036 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 1037 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 1038 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1039 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 1040 | case "$ac_configure_args0 " in |
| 1041 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1042 | esac |
| 1043 | ;; |
| 1044 | -* ) ac_must_keep_next=true ;; |
| 1045 | esac |
| 1046 | fi |
| 1047 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1048 | # Get rid of the leading space. |
| 1049 | ac_sep=" " |
| 1050 | ;; |
| 1051 | esac |
| 1052 | done |
| 1053 | done |
| 1054 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1055 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1056 | |
| 1057 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 1058 | # config.log. We remove comments because anyway the quotes in there |
| 1059 | # would cause problems or look ugly. |
| 1060 | # WARNING: Be sure not to use single quotes in there, as some shells, |
| 1061 | # such as our DU 5.0 friend, will then `close' the trap. |
| 1062 | trap 'exit_status=$? |
| 1063 | # Save into config.log some information that might help in debugging. |
| 1064 | { |
| 1065 | echo |
| 1066 | |
| 1067 | cat <<\_ASBOX |
| 1068 | ## ---------------- ## |
| 1069 | ## Cache variables. ## |
| 1070 | ## ---------------- ## |
| 1071 | _ASBOX |
| 1072 | echo |
| 1073 | # The following way of writing the cache mishandles newlines in values, |
| 1074 | { |
| 1075 | (set) 2>&1 | |
| 1076 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1077 | *ac_space=\ *) |
| 1078 | sed -n \ |
| 1079 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1080 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1081 | ;; |
| 1082 | *) |
| 1083 | sed -n \ |
| 1084 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1085 | ;; |
| 1086 | esac; |
| 1087 | } |
| 1088 | echo |
| 1089 | |
| 1090 | cat <<\_ASBOX |
| 1091 | ## ----------------- ## |
| 1092 | ## Output variables. ## |
| 1093 | ## ----------------- ## |
| 1094 | _ASBOX |
| 1095 | echo |
| 1096 | for ac_var in $ac_subst_vars |
| 1097 | do |
| 1098 | eval ac_val=$`echo $ac_var` |
| 1099 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1100 | done | sort |
| 1101 | echo |
| 1102 | |
| 1103 | if test -n "$ac_subst_files"; then |
| 1104 | cat <<\_ASBOX |
| 1105 | ## ------------- ## |
| 1106 | ## Output files. ## |
| 1107 | ## ------------- ## |
| 1108 | _ASBOX |
| 1109 | echo |
| 1110 | for ac_var in $ac_subst_files |
| 1111 | do |
| 1112 | eval ac_val=$`echo $ac_var` |
| 1113 | echo "$ac_var='"'"'$ac_val'"'"'" |
| 1114 | done | sort |
| 1115 | echo |
| 1116 | fi |
| 1117 | |
| 1118 | if test -s confdefs.h; then |
| 1119 | cat <<\_ASBOX |
| 1120 | ## ----------- ## |
| 1121 | ## confdefs.h. ## |
| 1122 | ## ----------- ## |
| 1123 | _ASBOX |
| 1124 | echo |
| 1125 | sed "/^$/d" confdefs.h | sort |
| 1126 | echo |
| 1127 | fi |
| 1128 | test "$ac_signal" != 0 && |
| 1129 | echo "$as_me: caught signal $ac_signal" |
| 1130 | echo "$as_me: exit $exit_status" |
| 1131 | } >&5 |
| 1132 | rm -f core core.* *.core && |
| 1133 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1134 | exit $exit_status |
| 1135 | ' 0 |
| 1136 | for ac_signal in 1 2 13 15; do |
| 1137 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1138 | done |
| 1139 | ac_signal=0 |
| 1140 | |
| 1141 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1142 | rm -rf conftest* confdefs.h |
| 1143 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1144 | echo >confdefs.h |
| 1145 | |
| 1146 | # Predefined preprocessor variables. |
| 1147 | |
| 1148 | cat >>confdefs.h <<_ACEOF |
| 1149 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 1150 | _ACEOF |
| 1151 | |
| 1152 | |
| 1153 | cat >>confdefs.h <<_ACEOF |
| 1154 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1155 | _ACEOF |
| 1156 | |
| 1157 | |
| 1158 | cat >>confdefs.h <<_ACEOF |
| 1159 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1160 | _ACEOF |
| 1161 | |
| 1162 | |
| 1163 | cat >>confdefs.h <<_ACEOF |
| 1164 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 1165 | _ACEOF |
| 1166 | |
| 1167 | |
| 1168 | cat >>confdefs.h <<_ACEOF |
| 1169 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1170 | _ACEOF |
| 1171 | |
| 1172 | |
| 1173 | # Let the site file select an alternate cache file if it wants to. |
| 1174 | # Prefer explicitly selected file to automatically selected ones. |
| 1175 | if test -z "$CONFIG_SITE"; then |
| 1176 | if test "x$prefix" != xNONE; then |
| 1177 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1178 | else |
| 1179 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1180 | fi |
| 1181 | fi |
| 1182 | for ac_site_file in $CONFIG_SITE; do |
| 1183 | if test -r "$ac_site_file"; then |
| 1184 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1185 | echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1186 | sed 's/^/| /' "$ac_site_file" >&5 |
| 1187 | . "$ac_site_file" |
| 1188 | fi |
| 1189 | done |
| 1190 | |
| 1191 | if test -r "$cache_file"; then |
| 1192 | # Some versions of bash will fail to source /dev/null (special |
| 1193 | # files actually), so we avoid doing that. |
| 1194 | if test -f "$cache_file"; then |
| 1195 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1196 | echo "$as_me: loading cache $cache_file" >&6;} |
| 1197 | case $cache_file in |
| 1198 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1199 | *) . ./$cache_file;; |
| 1200 | esac |
| 1201 | fi |
| 1202 | else |
| 1203 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1204 | echo "$as_me: creating cache $cache_file" >&6;} |
| 1205 | >$cache_file |
| 1206 | fi |
| 1207 | |
| 1208 | # Check that the precious variables saved in the cache have kept the same |
| 1209 | # value. |
| 1210 | ac_cache_corrupted=false |
| 1211 | for ac_var in `(set) 2>&1 | |
| 1212 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1213 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1214 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 1215 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1216 | eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1217 | case $ac_old_set,$ac_new_set in |
| 1218 | set,) |
| 1219 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1220 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1221 | ac_cache_corrupted=: ;; |
| 1222 | ,set) |
| 1223 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1224 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1225 | ac_cache_corrupted=: ;; |
| 1226 | ,);; |
| 1227 | *) |
| 1228 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1229 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1230 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1231 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1232 | echo "$as_me: former value: $ac_old_val" >&2;} |
| 1233 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1234 | echo "$as_me: current value: $ac_new_val" >&2;} |
| 1235 | ac_cache_corrupted=: |
| 1236 | fi;; |
| 1237 | esac |
| 1238 | # Pass precious variables to config.status. |
| 1239 | if test "$ac_new_set" = set; then |
| 1240 | case $ac_new_val in |
| 1241 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1242 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1243 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 1244 | esac |
| 1245 | case " $ac_configure_args " in |
| 1246 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1247 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1248 | esac |
| 1249 | fi |
| 1250 | done |
| 1251 | if $ac_cache_corrupted; then |
| 1252 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1253 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1254 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1255 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1256 | { (exit 1); exit 1; }; } |
| 1257 | fi |
| 1258 | |
| 1259 | ac_ext=c |
| 1260 | ac_cpp='$CPP $CPPFLAGS' |
| 1261 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1262 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1263 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1264 | |
| 1265 | |
| 1266 | |
| 1267 | |
| 1268 | |
| 1269 | |
| 1270 | |
| 1271 | |
| 1272 | |
| 1273 | |
| 1274 | |
| 1275 | |
| 1276 | |
| 1277 | |
| 1278 | |
| 1279 | |
| 1280 | |
| 1281 | |
| 1282 | |
| 1283 | ac_aux_dir= |
| 1284 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do |
| 1285 | if test -f $ac_dir/install-sh; then |
| 1286 | ac_aux_dir=$ac_dir |
| 1287 | ac_install_sh="$ac_aux_dir/install-sh -c" |
| 1288 | break |
| 1289 | elif test -f $ac_dir/install.sh; then |
| 1290 | ac_aux_dir=$ac_dir |
| 1291 | ac_install_sh="$ac_aux_dir/install.sh -c" |
| 1292 | break |
| 1293 | elif test -f $ac_dir/shtool; then |
| 1294 | ac_aux_dir=$ac_dir |
| 1295 | ac_install_sh="$ac_aux_dir/shtool install -c" |
| 1296 | break |
| 1297 | fi |
| 1298 | done |
| 1299 | if test -z "$ac_aux_dir"; then |
| 1300 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
| 1301 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
| 1302 | { (exit 1); exit 1; }; } |
| 1303 | fi |
| 1304 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
| 1305 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" |
| 1306 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. |
| 1307 | |
| 1308 | # Make sure we can run config.sub. |
| 1309 | $ac_config_sub sun4 >/dev/null 2>&1 || |
| 1310 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 |
| 1311 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} |
| 1312 | { (exit 1); exit 1; }; } |
| 1313 | |
| 1314 | echo "$as_me:$LINENO: checking build system type" >&5 |
| 1315 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 |
| 1316 | if test "${ac_cv_build+set}" = set; then |
| 1317 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1318 | else |
| 1319 | ac_cv_build_alias=$build_alias |
| 1320 | test -z "$ac_cv_build_alias" && |
| 1321 | ac_cv_build_alias=`$ac_config_guess` |
| 1322 | test -z "$ac_cv_build_alias" && |
| 1323 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
| 1324 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
| 1325 | { (exit 1); exit 1; }; } |
| 1326 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || |
| 1327 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 |
| 1328 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} |
| 1329 | { (exit 1); exit 1; }; } |
| 1330 | |
| 1331 | fi |
| 1332 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
| 1333 | echo "${ECHO_T}$ac_cv_build" >&6 |
| 1334 | build=$ac_cv_build |
| 1335 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1336 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1337 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1338 | |
| 1339 | |
| 1340 | echo "$as_me:$LINENO: checking host system type" >&5 |
| 1341 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 |
| 1342 | if test "${ac_cv_host+set}" = set; then |
| 1343 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1344 | else |
| 1345 | ac_cv_host_alias=$host_alias |
| 1346 | test -z "$ac_cv_host_alias" && |
| 1347 | ac_cv_host_alias=$ac_cv_build_alias |
| 1348 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || |
| 1349 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 |
| 1350 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} |
| 1351 | { (exit 1); exit 1; }; } |
| 1352 | |
| 1353 | fi |
| 1354 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
| 1355 | echo "${ECHO_T}$ac_cv_host" >&6 |
| 1356 | host=$ac_cv_host |
| 1357 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1358 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1359 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1360 | |
| 1361 | |
| 1362 | echo "$as_me:$LINENO: checking target system type" >&5 |
| 1363 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 |
| 1364 | if test "${ac_cv_target+set}" = set; then |
| 1365 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1366 | else |
| 1367 | ac_cv_target_alias=$target_alias |
| 1368 | test "x$ac_cv_target_alias" = "x" && |
| 1369 | ac_cv_target_alias=$ac_cv_host_alias |
| 1370 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || |
| 1371 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 |
| 1372 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} |
| 1373 | { (exit 1); exit 1; }; } |
| 1374 | |
| 1375 | fi |
| 1376 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
| 1377 | echo "${ECHO_T}$ac_cv_target" >&6 |
| 1378 | target=$ac_cv_target |
| 1379 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` |
| 1380 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` |
| 1381 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` |
| 1382 | |
| 1383 | |
| 1384 | # The aliases save the names the user supplied, while $host etc. |
| 1385 | # will get canonicalized. |
| 1386 | test -n "$target_alias" && |
| 1387 | test "$program_prefix$program_suffix$program_transform_name" = \ |
| 1388 | NONENONEs,x,x, && |
| 1389 | program_prefix=${target_alias}- |
| 1390 | |
| 1391 | # Find a good install program. We prefer a C program (faster), |
| 1392 | # so one script is as good as another. But avoid the broken or |
| 1393 | # incompatible versions: |
| 1394 | # SysV /etc/install, /usr/sbin/install |
| 1395 | # SunOS /usr/etc/install |
| 1396 | # IRIX /sbin/install |
| 1397 | # AIX /bin/install |
| 1398 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 1399 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 1400 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 1401 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 1402 | # ./install, which can be erroneously created by make from ./install.sh. |
| 1403 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 1404 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 1405 | if test -z "$INSTALL"; then |
| 1406 | if test "${ac_cv_path_install+set}" = set; then |
| 1407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1408 | else |
| 1409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1410 | for as_dir in $PATH |
| 1411 | do |
| 1412 | IFS=$as_save_IFS |
| 1413 | test -z "$as_dir" && as_dir=. |
| 1414 | # Account for people who put trailing slashes in PATH elements. |
| 1415 | case $as_dir/ in |
| 1416 | ./ | .// | /cC/* | \ |
| 1417 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 1418 | /usr/ucb/* ) ;; |
| 1419 | *) |
| 1420 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 1421 | # Don't use installbsd from OSF since it installs stuff as root |
| 1422 | # by default. |
| 1423 | for ac_prog in ginstall scoinst install; do |
| 1424 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1425 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 1426 | if test $ac_prog = install && |
| 1427 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1428 | # AIX install. It has an incompatible calling convention. |
| 1429 | : |
| 1430 | elif test $ac_prog = install && |
| 1431 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 1432 | # program-specific install script used by HP pwplus--don't use. |
| 1433 | : |
| 1434 | else |
| 1435 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 1436 | break 3 |
| 1437 | fi |
| 1438 | fi |
| 1439 | done |
| 1440 | done |
| 1441 | ;; |
| 1442 | esac |
| 1443 | done |
| 1444 | |
| 1445 | |
| 1446 | fi |
| 1447 | if test "${ac_cv_path_install+set}" = set; then |
| 1448 | INSTALL=$ac_cv_path_install |
| 1449 | else |
| 1450 | # As a last resort, use the slow shell script. We don't cache a |
| 1451 | # path for INSTALL within a source directory, because that will |
| 1452 | # break other packages using the cache if that directory is |
| 1453 | # removed, or if the path is relative. |
| 1454 | INSTALL=$ac_install_sh |
| 1455 | fi |
| 1456 | fi |
| 1457 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 1458 | echo "${ECHO_T}$INSTALL" >&6 |
| 1459 | |
| 1460 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 1461 | # It thinks the first close brace ends the variable substitution. |
| 1462 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 1463 | |
| 1464 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 1465 | |
| 1466 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 1467 | |
| 1468 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
| 1469 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
| 1470 | # Just in case |
| 1471 | sleep 1 |
| 1472 | echo timestamp > conftest.file |
| 1473 | # Do `set' in a subshell so we don't clobber the current shell's |
| 1474 | # arguments. Must try -L first in case configure is actually a |
| 1475 | # symlink; some systems play weird games with the mod time of symlinks |
| 1476 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 1477 | # directory). |
| 1478 | if ( |
| 1479 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
| 1480 | if test "$*" = "X"; then |
| 1481 | # -L didn't work. |
| 1482 | set X `ls -t $srcdir/configure conftest.file` |
| 1483 | fi |
| 1484 | rm -f conftest.file |
| 1485 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 1486 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 1487 | |
| 1488 | # If neither matched, then we have a broken ls. This can happen |
| 1489 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 1490 | # broken ls alias from the environment. This has actually |
| 1491 | # happened. Such a system could not be considered "sane". |
| 1492 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
| 1493 | alias in your environment" >&5 |
| 1494 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
| 1495 | alias in your environment" >&2;} |
| 1496 | { (exit 1); exit 1; }; } |
| 1497 | fi |
| 1498 | |
| 1499 | test "$2" = conftest.file |
| 1500 | ) |
| 1501 | then |
| 1502 | # Ok. |
| 1503 | : |
| 1504 | else |
| 1505 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
| 1506 | Check your system clock" >&5 |
| 1507 | echo "$as_me: error: newly created file is older than distributed files! |
| 1508 | Check your system clock" >&2;} |
| 1509 | { (exit 1); exit 1; }; } |
| 1510 | fi |
| 1511 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1512 | echo "${ECHO_T}yes" >&6 |
| 1513 | test "$program_prefix" != NONE && |
| 1514 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
| 1515 | # Use a double $ so make ignores it. |
| 1516 | test "$program_suffix" != NONE && |
| 1517 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
| 1518 | # Double any \ or $. echo might interpret backslashes. |
| 1519 | # By default was `s,x,x', remove it if useless. |
| 1520 | cat <<\_ACEOF >conftest.sed |
| 1521 | s/[\\$]/&&/g;s/;s,x,x,$// |
| 1522 | _ACEOF |
| 1523 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
| 1524 | rm conftest.sed |
| 1525 | |
| 1526 | |
| 1527 | # expand $ac_aux_dir to an absolute path |
| 1528 | am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd` |
| 1529 | |
| 1530 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
| 1531 | # Use eval to expand $SHELL |
| 1532 | if eval "$MISSING --run true"; then |
| 1533 | am_missing_run="$MISSING --run " |
| 1534 | else |
| 1535 | am_missing_run= |
| 1536 | am_backtick='`' |
| 1537 | { echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5 |
| 1538 | echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;} |
| 1539 | fi |
| 1540 | |
| 1541 | for ac_prog in gawk mawk nawk awk |
| 1542 | do |
| 1543 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1544 | set dummy $ac_prog; ac_word=$2 |
| 1545 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1546 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1547 | if test "${ac_cv_prog_AWK+set}" = set; then |
| 1548 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1549 | else |
| 1550 | if test -n "$AWK"; then |
| 1551 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 1552 | else |
| 1553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1554 | for as_dir in $PATH |
| 1555 | do |
| 1556 | IFS=$as_save_IFS |
| 1557 | test -z "$as_dir" && as_dir=. |
| 1558 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1559 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1560 | ac_cv_prog_AWK="$ac_prog" |
| 1561 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1562 | break 2 |
| 1563 | fi |
| 1564 | done |
| 1565 | done |
| 1566 | |
| 1567 | fi |
| 1568 | fi |
| 1569 | AWK=$ac_cv_prog_AWK |
| 1570 | if test -n "$AWK"; then |
| 1571 | echo "$as_me:$LINENO: result: $AWK" >&5 |
| 1572 | echo "${ECHO_T}$AWK" >&6 |
| 1573 | else |
| 1574 | echo "$as_me:$LINENO: result: no" >&5 |
| 1575 | echo "${ECHO_T}no" >&6 |
| 1576 | fi |
| 1577 | |
| 1578 | test -n "$AWK" && break |
| 1579 | done |
| 1580 | |
| 1581 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 1582 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 1583 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 1584 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 1585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1586 | else |
| 1587 | cat >conftest.make <<\_ACEOF |
| 1588 | all: |
| 1589 | @echo 'ac_maketemp="$(MAKE)"' |
| 1590 | _ACEOF |
| 1591 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 1592 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 1593 | if test -n "$ac_maketemp"; then |
| 1594 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 1595 | else |
| 1596 | eval ac_cv_prog_make_${ac_make}_set=no |
| 1597 | fi |
| 1598 | rm -f conftest.make |
| 1599 | fi |
| 1600 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 1601 | echo "$as_me:$LINENO: result: yes" >&5 |
| 1602 | echo "${ECHO_T}yes" >&6 |
| 1603 | SET_MAKE= |
| 1604 | else |
| 1605 | echo "$as_me:$LINENO: result: no" >&5 |
| 1606 | echo "${ECHO_T}no" >&6 |
| 1607 | SET_MAKE="MAKE=${MAKE-make}" |
| 1608 | fi |
| 1609 | |
| 1610 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. |
| 1611 | if test "${enable_dependency_tracking+set}" = set; then |
| 1612 | enableval="$enable_dependency_tracking" |
| 1613 | |
| 1614 | fi; |
| 1615 | if test "x$enable_dependency_tracking" != xno; then |
| 1616 | am_depcomp="$ac_aux_dir/depcomp" |
| 1617 | AMDEPBACKSLASH='\' |
| 1618 | fi |
| 1619 | |
| 1620 | |
| 1621 | if test "x$enable_dependency_tracking" != xno; then |
| 1622 | AMDEP_TRUE= |
| 1623 | AMDEP_FALSE='#' |
| 1624 | else |
| 1625 | AMDEP_TRUE='#' |
| 1626 | AMDEP_FALSE= |
| 1627 | fi |
| 1628 | |
| 1629 | |
| 1630 | |
| 1631 | |
| 1632 | rm -f .deps 2>/dev/null |
| 1633 | mkdir .deps 2>/dev/null |
| 1634 | if test -d .deps; then |
| 1635 | DEPDIR=.deps |
| 1636 | else |
| 1637 | # MS-DOS does not allow filenames that begin with a dot. |
| 1638 | DEPDIR=_deps |
| 1639 | fi |
| 1640 | rmdir .deps 2>/dev/null |
| 1641 | |
| 1642 | |
| 1643 | # test to see if srcdir already configured |
| 1644 | if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && |
| 1645 | test -f $srcdir/config.status; then |
| 1646 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
| 1647 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
| 1648 | { (exit 1); exit 1; }; } |
| 1649 | fi |
| 1650 | |
| 1651 | # Define the identity of the package. |
| 1652 | PACKAGE=asn1c |
vlm | 97986e4 | 2004-06-05 08:47:18 +0000 | [diff] [blame] | 1653 | VERSION=0.8.11 |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1654 | |
| 1655 | cat >>confdefs.h <<_ACEOF |
| 1656 | #define PACKAGE "$PACKAGE" |
| 1657 | _ACEOF |
| 1658 | |
| 1659 | |
| 1660 | cat >>confdefs.h <<_ACEOF |
| 1661 | #define VERSION "$VERSION" |
| 1662 | _ACEOF |
| 1663 | |
| 1664 | |
| 1665 | # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow |
| 1666 | # the ones we care about. |
| 1667 | |
| 1668 | # Autoconf 2.50 always computes EXEEXT. However we need to be |
| 1669 | # compatible with 2.13, for now. So we always define EXEEXT, but we |
| 1670 | # don't compute it. |
| 1671 | |
| 1672 | # Similar for OBJEXT -- only we only use OBJEXT if the user actually |
| 1673 | # requests that it be used. This is a bit dumb. |
| 1674 | : ${OBJEXT=o} |
| 1675 | |
| 1676 | |
| 1677 | # Some tools Automake needs. |
| 1678 | |
| 1679 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"} |
| 1680 | |
| 1681 | |
| 1682 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 1683 | |
| 1684 | |
| 1685 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"} |
| 1686 | |
| 1687 | |
| 1688 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 1689 | |
| 1690 | |
| 1691 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 1692 | |
| 1693 | |
| 1694 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 1695 | |
| 1696 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
| 1697 | |
| 1698 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
| 1699 | |
| 1700 | # We need awk for the "check" target. The system "awk" is bad on |
| 1701 | # some platforms. |
| 1702 | |
| 1703 | |
| 1704 | |
| 1705 | |
| 1706 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
| 1707 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 |
| 1708 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
| 1709 | if test "${enable_maintainer_mode+set}" = set; then |
| 1710 | enableval="$enable_maintainer_mode" |
| 1711 | USE_MAINTAINER_MODE=$enableval |
| 1712 | else |
| 1713 | USE_MAINTAINER_MODE=no |
| 1714 | fi; |
| 1715 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
| 1716 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 |
| 1717 | |
| 1718 | |
| 1719 | if test $USE_MAINTAINER_MODE = yes; then |
| 1720 | MAINTAINER_MODE_TRUE= |
| 1721 | MAINTAINER_MODE_FALSE='#' |
| 1722 | else |
| 1723 | MAINTAINER_MODE_TRUE='#' |
| 1724 | MAINTAINER_MODE_FALSE= |
| 1725 | fi |
| 1726 | MAINT=$MAINTAINER_MODE_TRUE |
| 1727 | |
| 1728 | |
| 1729 | |
| 1730 | # Check whether --enable-shared or --disable-shared was given. |
| 1731 | if test "${enable_shared+set}" = set; then |
| 1732 | enableval="$enable_shared" |
| 1733 | p=${PACKAGE-default} |
| 1734 | case "$enableval" in |
| 1735 | yes) enable_shared=yes ;; |
| 1736 | no) enable_shared=no ;; |
| 1737 | *) |
| 1738 | enable_shared=no |
| 1739 | # Look at the argument we got. We use all the common list separators. |
| 1740 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1741 | for pkg in $enableval; do |
| 1742 | if test "X$pkg" = "X$p"; then |
| 1743 | enable_shared=yes |
| 1744 | fi |
| 1745 | done |
| 1746 | IFS="$ac_save_ifs" |
| 1747 | ;; |
| 1748 | esac |
| 1749 | else |
| 1750 | enable_shared=yes |
| 1751 | fi; |
| 1752 | # Check whether --enable-static or --disable-static was given. |
| 1753 | if test "${enable_static+set}" = set; then |
| 1754 | enableval="$enable_static" |
| 1755 | p=${PACKAGE-default} |
| 1756 | case "$enableval" in |
| 1757 | yes) enable_static=yes ;; |
| 1758 | no) enable_static=no ;; |
| 1759 | *) |
| 1760 | enable_static=no |
| 1761 | # Look at the argument we got. We use all the common list separators. |
| 1762 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1763 | for pkg in $enableval; do |
| 1764 | if test "X$pkg" = "X$p"; then |
| 1765 | enable_static=yes |
| 1766 | fi |
| 1767 | done |
| 1768 | IFS="$ac_save_ifs" |
| 1769 | ;; |
| 1770 | esac |
| 1771 | else |
| 1772 | enable_static=yes |
| 1773 | fi; |
| 1774 | # Check whether --enable-fast-install or --disable-fast-install was given. |
| 1775 | if test "${enable_fast_install+set}" = set; then |
| 1776 | enableval="$enable_fast_install" |
| 1777 | p=${PACKAGE-default} |
| 1778 | case "$enableval" in |
| 1779 | yes) enable_fast_install=yes ;; |
| 1780 | no) enable_fast_install=no ;; |
| 1781 | *) |
| 1782 | enable_fast_install=no |
| 1783 | # Look at the argument we got. We use all the common list separators. |
| 1784 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," |
| 1785 | for pkg in $enableval; do |
| 1786 | if test "X$pkg" = "X$p"; then |
| 1787 | enable_fast_install=yes |
| 1788 | fi |
| 1789 | done |
| 1790 | IFS="$ac_save_ifs" |
| 1791 | ;; |
| 1792 | esac |
| 1793 | else |
| 1794 | enable_fast_install=yes |
| 1795 | fi; |
| 1796 | if test -n "$ac_tool_prefix"; then |
| 1797 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 1798 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 1799 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1801 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
| 1802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1803 | else |
| 1804 | if test -n "$RANLIB"; then |
| 1805 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 1806 | else |
| 1807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1808 | for as_dir in $PATH |
| 1809 | do |
| 1810 | IFS=$as_save_IFS |
| 1811 | test -z "$as_dir" && as_dir=. |
| 1812 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1813 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1814 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 1815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1816 | break 2 |
| 1817 | fi |
| 1818 | done |
| 1819 | done |
| 1820 | |
| 1821 | fi |
| 1822 | fi |
| 1823 | RANLIB=$ac_cv_prog_RANLIB |
| 1824 | if test -n "$RANLIB"; then |
| 1825 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
| 1826 | echo "${ECHO_T}$RANLIB" >&6 |
| 1827 | else |
| 1828 | echo "$as_me:$LINENO: result: no" >&5 |
| 1829 | echo "${ECHO_T}no" >&6 |
| 1830 | fi |
| 1831 | |
| 1832 | fi |
| 1833 | if test -z "$ac_cv_prog_RANLIB"; then |
| 1834 | ac_ct_RANLIB=$RANLIB |
| 1835 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 1836 | set dummy ranlib; ac_word=$2 |
| 1837 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1838 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1839 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
| 1840 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1841 | else |
| 1842 | if test -n "$ac_ct_RANLIB"; then |
| 1843 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 1844 | else |
| 1845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1846 | for as_dir in $PATH |
| 1847 | do |
| 1848 | IFS=$as_save_IFS |
| 1849 | test -z "$as_dir" && as_dir=. |
| 1850 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1851 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1852 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 1853 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1854 | break 2 |
| 1855 | fi |
| 1856 | done |
| 1857 | done |
| 1858 | |
| 1859 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
| 1860 | fi |
| 1861 | fi |
| 1862 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 1863 | if test -n "$ac_ct_RANLIB"; then |
| 1864 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
| 1865 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
| 1866 | else |
| 1867 | echo "$as_me:$LINENO: result: no" >&5 |
| 1868 | echo "${ECHO_T}no" >&6 |
| 1869 | fi |
| 1870 | |
| 1871 | RANLIB=$ac_ct_RANLIB |
| 1872 | else |
| 1873 | RANLIB="$ac_cv_prog_RANLIB" |
| 1874 | fi |
| 1875 | |
| 1876 | |
| 1877 | ac_config_commands="$ac_config_commands default-1" |
| 1878 | |
| 1879 | am_make=${MAKE-make} |
| 1880 | cat > confinc << 'END' |
| 1881 | doit: |
| 1882 | @echo done |
| 1883 | END |
| 1884 | # If we don't find an include directive, just comment out the code. |
| 1885 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
| 1886 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 |
| 1887 | am__include='#' |
| 1888 | am__quote= |
| 1889 | _am_result=none |
| 1890 | # First try GNU make style include. |
| 1891 | echo "include confinc" > confmf |
| 1892 | # We grep out `Entering directory' and `Leaving directory' |
| 1893 | # messages which can occur if `w' ends up in MAKEFLAGS. |
| 1894 | # In particular we don't look at `^make:' because GNU make might |
| 1895 | # be invoked under some other name (usually "gmake"), in which |
| 1896 | # case it prints its new name instead of `make'. |
| 1897 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then |
| 1898 | am__include=include |
| 1899 | am__quote= |
| 1900 | _am_result=GNU |
| 1901 | fi |
| 1902 | # Now try BSD make style include. |
| 1903 | if test "$am__include" = "#"; then |
| 1904 | echo '.include "confinc"' > confmf |
| 1905 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
| 1906 | am__include=.include |
| 1907 | am__quote='"' |
| 1908 | _am_result=BSD |
| 1909 | fi |
| 1910 | fi |
| 1911 | |
| 1912 | |
| 1913 | echo "$as_me:$LINENO: result: $_am_result" >&5 |
| 1914 | echo "${ECHO_T}$_am_result" >&6 |
| 1915 | rm -f confinc confmf |
| 1916 | |
| 1917 | ac_ext=c |
| 1918 | ac_cpp='$CPP $CPPFLAGS' |
| 1919 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1920 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1921 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1922 | if test -n "$ac_tool_prefix"; then |
| 1923 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1924 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1925 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1926 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1927 | if test "${ac_cv_prog_CC+set}" = set; then |
| 1928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1929 | else |
| 1930 | if test -n "$CC"; then |
| 1931 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1932 | else |
| 1933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1934 | for as_dir in $PATH |
| 1935 | do |
| 1936 | IFS=$as_save_IFS |
| 1937 | test -z "$as_dir" && as_dir=. |
| 1938 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1939 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1940 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1941 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1942 | break 2 |
| 1943 | fi |
| 1944 | done |
| 1945 | done |
| 1946 | |
| 1947 | fi |
| 1948 | fi |
| 1949 | CC=$ac_cv_prog_CC |
| 1950 | if test -n "$CC"; then |
| 1951 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 1952 | echo "${ECHO_T}$CC" >&6 |
| 1953 | else |
| 1954 | echo "$as_me:$LINENO: result: no" >&5 |
| 1955 | echo "${ECHO_T}no" >&6 |
| 1956 | fi |
| 1957 | |
| 1958 | fi |
| 1959 | if test -z "$ac_cv_prog_CC"; then |
| 1960 | ac_ct_CC=$CC |
| 1961 | # Extract the first word of "gcc", so it can be a program name with args. |
| 1962 | set dummy gcc; ac_word=$2 |
| 1963 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1965 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1967 | else |
| 1968 | if test -n "$ac_ct_CC"; then |
| 1969 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1970 | else |
| 1971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1972 | for as_dir in $PATH |
| 1973 | do |
| 1974 | IFS=$as_save_IFS |
| 1975 | test -z "$as_dir" && as_dir=. |
| 1976 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 1977 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1978 | ac_cv_prog_ac_ct_CC="gcc" |
| 1979 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1980 | break 2 |
| 1981 | fi |
| 1982 | done |
| 1983 | done |
| 1984 | |
| 1985 | fi |
| 1986 | fi |
| 1987 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1988 | if test -n "$ac_ct_CC"; then |
| 1989 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1990 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1991 | else |
| 1992 | echo "$as_me:$LINENO: result: no" >&5 |
| 1993 | echo "${ECHO_T}no" >&6 |
| 1994 | fi |
| 1995 | |
| 1996 | CC=$ac_ct_CC |
| 1997 | else |
| 1998 | CC="$ac_cv_prog_CC" |
| 1999 | fi |
| 2000 | |
| 2001 | if test -z "$CC"; then |
| 2002 | if test -n "$ac_tool_prefix"; then |
| 2003 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 2004 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 2005 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2006 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2007 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2008 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2009 | else |
| 2010 | if test -n "$CC"; then |
| 2011 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2012 | else |
| 2013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2014 | for as_dir in $PATH |
| 2015 | do |
| 2016 | IFS=$as_save_IFS |
| 2017 | test -z "$as_dir" && as_dir=. |
| 2018 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2019 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2020 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 2021 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2022 | break 2 |
| 2023 | fi |
| 2024 | done |
| 2025 | done |
| 2026 | |
| 2027 | fi |
| 2028 | fi |
| 2029 | CC=$ac_cv_prog_CC |
| 2030 | if test -n "$CC"; then |
| 2031 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2032 | echo "${ECHO_T}$CC" >&6 |
| 2033 | else |
| 2034 | echo "$as_me:$LINENO: result: no" >&5 |
| 2035 | echo "${ECHO_T}no" >&6 |
| 2036 | fi |
| 2037 | |
| 2038 | fi |
| 2039 | if test -z "$ac_cv_prog_CC"; then |
| 2040 | ac_ct_CC=$CC |
| 2041 | # Extract the first word of "cc", so it can be a program name with args. |
| 2042 | set dummy cc; ac_word=$2 |
| 2043 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2044 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2045 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2046 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2047 | else |
| 2048 | if test -n "$ac_ct_CC"; then |
| 2049 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2050 | else |
| 2051 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2052 | for as_dir in $PATH |
| 2053 | do |
| 2054 | IFS=$as_save_IFS |
| 2055 | test -z "$as_dir" && as_dir=. |
| 2056 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2057 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2058 | ac_cv_prog_ac_ct_CC="cc" |
| 2059 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2060 | break 2 |
| 2061 | fi |
| 2062 | done |
| 2063 | done |
| 2064 | |
| 2065 | fi |
| 2066 | fi |
| 2067 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2068 | if test -n "$ac_ct_CC"; then |
| 2069 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2070 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2071 | else |
| 2072 | echo "$as_me:$LINENO: result: no" >&5 |
| 2073 | echo "${ECHO_T}no" >&6 |
| 2074 | fi |
| 2075 | |
| 2076 | CC=$ac_ct_CC |
| 2077 | else |
| 2078 | CC="$ac_cv_prog_CC" |
| 2079 | fi |
| 2080 | |
| 2081 | fi |
| 2082 | if test -z "$CC"; then |
| 2083 | # Extract the first word of "cc", so it can be a program name with args. |
| 2084 | set dummy cc; ac_word=$2 |
| 2085 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2086 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2087 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2088 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2089 | else |
| 2090 | if test -n "$CC"; then |
| 2091 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2092 | else |
| 2093 | ac_prog_rejected=no |
| 2094 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2095 | for as_dir in $PATH |
| 2096 | do |
| 2097 | IFS=$as_save_IFS |
| 2098 | test -z "$as_dir" && as_dir=. |
| 2099 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2100 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2101 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2102 | ac_prog_rejected=yes |
| 2103 | continue |
| 2104 | fi |
| 2105 | ac_cv_prog_CC="cc" |
| 2106 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2107 | break 2 |
| 2108 | fi |
| 2109 | done |
| 2110 | done |
| 2111 | |
| 2112 | if test $ac_prog_rejected = yes; then |
| 2113 | # We found a bogon in the path, so make sure we never use it. |
| 2114 | set dummy $ac_cv_prog_CC |
| 2115 | shift |
| 2116 | if test $# != 0; then |
| 2117 | # We chose a different compiler from the bogus one. |
| 2118 | # However, it has the same basename, so the bogon will be chosen |
| 2119 | # first if we set CC to just the basename; use the full file name. |
| 2120 | shift |
| 2121 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 2122 | fi |
| 2123 | fi |
| 2124 | fi |
| 2125 | fi |
| 2126 | CC=$ac_cv_prog_CC |
| 2127 | if test -n "$CC"; then |
| 2128 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2129 | echo "${ECHO_T}$CC" >&6 |
| 2130 | else |
| 2131 | echo "$as_me:$LINENO: result: no" >&5 |
| 2132 | echo "${ECHO_T}no" >&6 |
| 2133 | fi |
| 2134 | |
| 2135 | fi |
| 2136 | if test -z "$CC"; then |
| 2137 | if test -n "$ac_tool_prefix"; then |
| 2138 | for ac_prog in cl |
| 2139 | do |
| 2140 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2141 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 2142 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2143 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2144 | if test "${ac_cv_prog_CC+set}" = set; then |
| 2145 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2146 | else |
| 2147 | if test -n "$CC"; then |
| 2148 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2149 | else |
| 2150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2151 | for as_dir in $PATH |
| 2152 | do |
| 2153 | IFS=$as_save_IFS |
| 2154 | test -z "$as_dir" && as_dir=. |
| 2155 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2156 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2157 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 2158 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2159 | break 2 |
| 2160 | fi |
| 2161 | done |
| 2162 | done |
| 2163 | |
| 2164 | fi |
| 2165 | fi |
| 2166 | CC=$ac_cv_prog_CC |
| 2167 | if test -n "$CC"; then |
| 2168 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 2169 | echo "${ECHO_T}$CC" >&6 |
| 2170 | else |
| 2171 | echo "$as_me:$LINENO: result: no" >&5 |
| 2172 | echo "${ECHO_T}no" >&6 |
| 2173 | fi |
| 2174 | |
| 2175 | test -n "$CC" && break |
| 2176 | done |
| 2177 | fi |
| 2178 | if test -z "$CC"; then |
| 2179 | ac_ct_CC=$CC |
| 2180 | for ac_prog in cl |
| 2181 | do |
| 2182 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 2183 | set dummy $ac_prog; ac_word=$2 |
| 2184 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 2185 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 2186 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 2187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2188 | else |
| 2189 | if test -n "$ac_ct_CC"; then |
| 2190 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2191 | else |
| 2192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2193 | for as_dir in $PATH |
| 2194 | do |
| 2195 | IFS=$as_save_IFS |
| 2196 | test -z "$as_dir" && as_dir=. |
| 2197 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 2198 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 2199 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 2200 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 2201 | break 2 |
| 2202 | fi |
| 2203 | done |
| 2204 | done |
| 2205 | |
| 2206 | fi |
| 2207 | fi |
| 2208 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2209 | if test -n "$ac_ct_CC"; then |
| 2210 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 2211 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 2212 | else |
| 2213 | echo "$as_me:$LINENO: result: no" >&5 |
| 2214 | echo "${ECHO_T}no" >&6 |
| 2215 | fi |
| 2216 | |
| 2217 | test -n "$ac_ct_CC" && break |
| 2218 | done |
| 2219 | |
| 2220 | CC=$ac_ct_CC |
| 2221 | fi |
| 2222 | |
| 2223 | fi |
| 2224 | |
| 2225 | |
| 2226 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 2227 | See \`config.log' for more details." >&5 |
| 2228 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 2229 | See \`config.log' for more details." >&2;} |
| 2230 | { (exit 1); exit 1; }; } |
| 2231 | |
| 2232 | # Provide some information about the compiler. |
| 2233 | echo "$as_me:$LINENO:" \ |
| 2234 | "checking for C compiler version" >&5 |
| 2235 | ac_compiler=`set X $ac_compile; echo $2` |
| 2236 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 2237 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 2238 | ac_status=$? |
| 2239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2240 | (exit $ac_status); } |
| 2241 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 2242 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 2243 | ac_status=$? |
| 2244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2245 | (exit $ac_status); } |
| 2246 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 2247 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 2248 | ac_status=$? |
| 2249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2250 | (exit $ac_status); } |
| 2251 | |
| 2252 | cat >conftest.$ac_ext <<_ACEOF |
| 2253 | #line $LINENO "configure" |
| 2254 | /* confdefs.h. */ |
| 2255 | _ACEOF |
| 2256 | cat confdefs.h >>conftest.$ac_ext |
| 2257 | cat >>conftest.$ac_ext <<_ACEOF |
| 2258 | /* end confdefs.h. */ |
| 2259 | |
| 2260 | int |
| 2261 | main () |
| 2262 | { |
| 2263 | |
| 2264 | ; |
| 2265 | return 0; |
| 2266 | } |
| 2267 | _ACEOF |
| 2268 | ac_clean_files_save=$ac_clean_files |
| 2269 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 2270 | # Try to create an executable without -o first, disregard a.out. |
| 2271 | # It will help us diagnose broken compilers, and finding out an intuition |
| 2272 | # of exeext. |
| 2273 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
| 2274 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 |
| 2275 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 2276 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 2277 | (eval $ac_link_default) 2>&5 |
| 2278 | ac_status=$? |
| 2279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2280 | (exit $ac_status); }; then |
| 2281 | # Find the output, starting from the most likely. This scheme is |
| 2282 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 2283 | # resort. |
| 2284 | |
| 2285 | # Be careful to initialize this variable, since it used to be cached. |
| 2286 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 2287 | ac_cv_exeext= |
| 2288 | # b.out is created by i960 compilers. |
| 2289 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 2290 | do |
| 2291 | test -f "$ac_file" || continue |
| 2292 | case $ac_file in |
| 2293 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 2294 | ;; |
| 2295 | conftest.$ac_ext ) |
| 2296 | # This is the source file. |
| 2297 | ;; |
| 2298 | [ab].out ) |
| 2299 | # We found the default executable, but exeext='' is most |
| 2300 | # certainly right. |
| 2301 | break;; |
| 2302 | *.* ) |
| 2303 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2304 | # FIXME: I believe we export ac_cv_exeext for Libtool, |
| 2305 | # but it would be cool to find out if it's true. Does anybody |
| 2306 | # maintain Libtool? --akim. |
| 2307 | export ac_cv_exeext |
| 2308 | break;; |
| 2309 | * ) |
| 2310 | break;; |
| 2311 | esac |
| 2312 | done |
| 2313 | else |
| 2314 | echo "$as_me: failed program was:" >&5 |
| 2315 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2316 | |
| 2317 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 2318 | See \`config.log' for more details." >&5 |
| 2319 | echo "$as_me: error: C compiler cannot create executables |
| 2320 | See \`config.log' for more details." >&2;} |
| 2321 | { (exit 77); exit 77; }; } |
| 2322 | fi |
| 2323 | |
| 2324 | ac_exeext=$ac_cv_exeext |
| 2325 | echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 2326 | echo "${ECHO_T}$ac_file" >&6 |
| 2327 | |
| 2328 | # Check the compiler produces executables we can run. If not, either |
| 2329 | # the compiler is broken, or we cross compile. |
| 2330 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 2331 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 2332 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 2333 | # If not cross compiling, check that we can run a simple program. |
| 2334 | if test "$cross_compiling" != yes; then |
| 2335 | if { ac_try='./$ac_file' |
| 2336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2337 | (eval $ac_try) 2>&5 |
| 2338 | ac_status=$? |
| 2339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2340 | (exit $ac_status); }; }; then |
| 2341 | cross_compiling=no |
| 2342 | else |
| 2343 | if test "$cross_compiling" = maybe; then |
| 2344 | cross_compiling=yes |
| 2345 | else |
| 2346 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 2347 | If you meant to cross compile, use \`--host'. |
| 2348 | See \`config.log' for more details." >&5 |
| 2349 | echo "$as_me: error: cannot run C compiled programs. |
| 2350 | If you meant to cross compile, use \`--host'. |
| 2351 | See \`config.log' for more details." >&2;} |
| 2352 | { (exit 1); exit 1; }; } |
| 2353 | fi |
| 2354 | fi |
| 2355 | fi |
| 2356 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2357 | echo "${ECHO_T}yes" >&6 |
| 2358 | |
| 2359 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 2360 | ac_clean_files=$ac_clean_files_save |
| 2361 | # Check the compiler produces executables we can run. If not, either |
| 2362 | # the compiler is broken, or we cross compile. |
| 2363 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 2364 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 2365 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 2366 | echo "${ECHO_T}$cross_compiling" >&6 |
| 2367 | |
| 2368 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 2369 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 2370 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2371 | (eval $ac_link) 2>&5 |
| 2372 | ac_status=$? |
| 2373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2374 | (exit $ac_status); }; then |
| 2375 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 2376 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 2377 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 2378 | # `rm'. |
| 2379 | for ac_file in conftest.exe conftest conftest.*; do |
| 2380 | test -f "$ac_file" || continue |
| 2381 | case $ac_file in |
| 2382 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 2383 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 2384 | export ac_cv_exeext |
| 2385 | break;; |
| 2386 | * ) break;; |
| 2387 | esac |
| 2388 | done |
| 2389 | else |
| 2390 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 2391 | See \`config.log' for more details." >&5 |
| 2392 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 2393 | See \`config.log' for more details." >&2;} |
| 2394 | { (exit 1); exit 1; }; } |
| 2395 | fi |
| 2396 | |
| 2397 | rm -f conftest$ac_cv_exeext |
| 2398 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 2399 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 2400 | |
| 2401 | rm -f conftest.$ac_ext |
| 2402 | EXEEXT=$ac_cv_exeext |
| 2403 | ac_exeext=$EXEEXT |
| 2404 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 2405 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 2406 | if test "${ac_cv_objext+set}" = set; then |
| 2407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2408 | else |
| 2409 | cat >conftest.$ac_ext <<_ACEOF |
| 2410 | #line $LINENO "configure" |
| 2411 | /* confdefs.h. */ |
| 2412 | _ACEOF |
| 2413 | cat confdefs.h >>conftest.$ac_ext |
| 2414 | cat >>conftest.$ac_ext <<_ACEOF |
| 2415 | /* end confdefs.h. */ |
| 2416 | |
| 2417 | int |
| 2418 | main () |
| 2419 | { |
| 2420 | |
| 2421 | ; |
| 2422 | return 0; |
| 2423 | } |
| 2424 | _ACEOF |
| 2425 | rm -f conftest.o conftest.obj |
| 2426 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2427 | (eval $ac_compile) 2>&5 |
| 2428 | ac_status=$? |
| 2429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2430 | (exit $ac_status); }; then |
| 2431 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 2432 | case $ac_file in |
| 2433 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 2434 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 2435 | break;; |
| 2436 | esac |
| 2437 | done |
| 2438 | else |
| 2439 | echo "$as_me: failed program was:" >&5 |
| 2440 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2441 | |
| 2442 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 2443 | See \`config.log' for more details." >&5 |
| 2444 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 2445 | See \`config.log' for more details." >&2;} |
| 2446 | { (exit 1); exit 1; }; } |
| 2447 | fi |
| 2448 | |
| 2449 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 2450 | fi |
| 2451 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 2452 | echo "${ECHO_T}$ac_cv_objext" >&6 |
| 2453 | OBJEXT=$ac_cv_objext |
| 2454 | ac_objext=$OBJEXT |
| 2455 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 2456 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 2457 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 2458 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2459 | else |
| 2460 | cat >conftest.$ac_ext <<_ACEOF |
| 2461 | #line $LINENO "configure" |
| 2462 | /* confdefs.h. */ |
| 2463 | _ACEOF |
| 2464 | cat confdefs.h >>conftest.$ac_ext |
| 2465 | cat >>conftest.$ac_ext <<_ACEOF |
| 2466 | /* end confdefs.h. */ |
| 2467 | |
| 2468 | int |
| 2469 | main () |
| 2470 | { |
| 2471 | #ifndef __GNUC__ |
| 2472 | choke me |
| 2473 | #endif |
| 2474 | |
| 2475 | ; |
| 2476 | return 0; |
| 2477 | } |
| 2478 | _ACEOF |
| 2479 | rm -f conftest.$ac_objext |
| 2480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2481 | (eval $ac_compile) 2>&5 |
| 2482 | ac_status=$? |
| 2483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2484 | (exit $ac_status); } && |
| 2485 | { ac_try='test -s conftest.$ac_objext' |
| 2486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2487 | (eval $ac_try) 2>&5 |
| 2488 | ac_status=$? |
| 2489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2490 | (exit $ac_status); }; }; then |
| 2491 | ac_compiler_gnu=yes |
| 2492 | else |
| 2493 | echo "$as_me: failed program was:" >&5 |
| 2494 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2495 | |
| 2496 | ac_compiler_gnu=no |
| 2497 | fi |
| 2498 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2499 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 2500 | |
| 2501 | fi |
| 2502 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 2503 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 2504 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 2505 | ac_test_CFLAGS=${CFLAGS+set} |
| 2506 | ac_save_CFLAGS=$CFLAGS |
| 2507 | CFLAGS="-g" |
| 2508 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 2509 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 2510 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 2511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2512 | else |
| 2513 | cat >conftest.$ac_ext <<_ACEOF |
| 2514 | #line $LINENO "configure" |
| 2515 | /* confdefs.h. */ |
| 2516 | _ACEOF |
| 2517 | cat confdefs.h >>conftest.$ac_ext |
| 2518 | cat >>conftest.$ac_ext <<_ACEOF |
| 2519 | /* end confdefs.h. */ |
| 2520 | |
| 2521 | int |
| 2522 | main () |
| 2523 | { |
| 2524 | |
| 2525 | ; |
| 2526 | return 0; |
| 2527 | } |
| 2528 | _ACEOF |
| 2529 | rm -f conftest.$ac_objext |
| 2530 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2531 | (eval $ac_compile) 2>&5 |
| 2532 | ac_status=$? |
| 2533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2534 | (exit $ac_status); } && |
| 2535 | { ac_try='test -s conftest.$ac_objext' |
| 2536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2537 | (eval $ac_try) 2>&5 |
| 2538 | ac_status=$? |
| 2539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2540 | (exit $ac_status); }; }; then |
| 2541 | ac_cv_prog_cc_g=yes |
| 2542 | else |
| 2543 | echo "$as_me: failed program was:" >&5 |
| 2544 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2545 | |
| 2546 | ac_cv_prog_cc_g=no |
| 2547 | fi |
| 2548 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2549 | fi |
| 2550 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 2551 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 2552 | if test "$ac_test_CFLAGS" = set; then |
| 2553 | CFLAGS=$ac_save_CFLAGS |
| 2554 | elif test $ac_cv_prog_cc_g = yes; then |
| 2555 | if test "$GCC" = yes; then |
| 2556 | CFLAGS="-g -O2" |
| 2557 | else |
| 2558 | CFLAGS="-g" |
| 2559 | fi |
| 2560 | else |
| 2561 | if test "$GCC" = yes; then |
| 2562 | CFLAGS="-O2" |
| 2563 | else |
| 2564 | CFLAGS= |
| 2565 | fi |
| 2566 | fi |
| 2567 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 2568 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 2569 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 2570 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2571 | else |
| 2572 | ac_cv_prog_cc_stdc=no |
| 2573 | ac_save_CC=$CC |
| 2574 | cat >conftest.$ac_ext <<_ACEOF |
| 2575 | #line $LINENO "configure" |
| 2576 | /* confdefs.h. */ |
| 2577 | _ACEOF |
| 2578 | cat confdefs.h >>conftest.$ac_ext |
| 2579 | cat >>conftest.$ac_ext <<_ACEOF |
| 2580 | /* end confdefs.h. */ |
| 2581 | #include <stdarg.h> |
| 2582 | #include <stdio.h> |
| 2583 | #include <sys/types.h> |
| 2584 | #include <sys/stat.h> |
| 2585 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 2586 | struct buf { int x; }; |
| 2587 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 2588 | static char *e (p, i) |
| 2589 | char **p; |
| 2590 | int i; |
| 2591 | { |
| 2592 | return p[i]; |
| 2593 | } |
| 2594 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 2595 | { |
| 2596 | char *s; |
| 2597 | va_list v; |
| 2598 | va_start (v,p); |
| 2599 | s = g (p, va_arg (v,int)); |
| 2600 | va_end (v); |
| 2601 | return s; |
| 2602 | } |
| 2603 | int test (int i, double x); |
| 2604 | struct s1 {int (*f) (int a);}; |
| 2605 | struct s2 {int (*f) (double a);}; |
| 2606 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 2607 | int argc; |
| 2608 | char **argv; |
| 2609 | int |
| 2610 | main () |
| 2611 | { |
| 2612 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 2613 | ; |
| 2614 | return 0; |
| 2615 | } |
| 2616 | _ACEOF |
| 2617 | # Don't try gcc -ansi; that turns off useful extensions and |
| 2618 | # breaks some systems' header files. |
| 2619 | # AIX -qlanglvl=ansi |
| 2620 | # Ultrix and OSF/1 -std1 |
| 2621 | # HP-UX 10.20 and later -Ae |
| 2622 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 2623 | # SVR4 -Xc -D__EXTENSIONS__ |
| 2624 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 2625 | do |
| 2626 | CC="$ac_save_CC $ac_arg" |
| 2627 | rm -f conftest.$ac_objext |
| 2628 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2629 | (eval $ac_compile) 2>&5 |
| 2630 | ac_status=$? |
| 2631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2632 | (exit $ac_status); } && |
| 2633 | { ac_try='test -s conftest.$ac_objext' |
| 2634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2635 | (eval $ac_try) 2>&5 |
| 2636 | ac_status=$? |
| 2637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2638 | (exit $ac_status); }; }; then |
| 2639 | ac_cv_prog_cc_stdc=$ac_arg |
| 2640 | break |
| 2641 | else |
| 2642 | echo "$as_me: failed program was:" >&5 |
| 2643 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2644 | |
| 2645 | fi |
| 2646 | rm -f conftest.$ac_objext |
| 2647 | done |
| 2648 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 2649 | CC=$ac_save_CC |
| 2650 | |
| 2651 | fi |
| 2652 | |
| 2653 | case "x$ac_cv_prog_cc_stdc" in |
| 2654 | x|xno) |
| 2655 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 2656 | echo "${ECHO_T}none needed" >&6 ;; |
| 2657 | *) |
| 2658 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2659 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2660 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2661 | esac |
| 2662 | |
| 2663 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 2664 | # in C++ we need to declare it. In case someone uses the same compiler |
| 2665 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 2666 | # the declaration of exit, since it's the most demanding environment. |
| 2667 | cat >conftest.$ac_ext <<_ACEOF |
| 2668 | #ifndef __cplusplus |
| 2669 | choke me |
| 2670 | #endif |
| 2671 | _ACEOF |
| 2672 | rm -f conftest.$ac_objext |
| 2673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2674 | (eval $ac_compile) 2>&5 |
| 2675 | ac_status=$? |
| 2676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2677 | (exit $ac_status); } && |
| 2678 | { ac_try='test -s conftest.$ac_objext' |
| 2679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2680 | (eval $ac_try) 2>&5 |
| 2681 | ac_status=$? |
| 2682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2683 | (exit $ac_status); }; }; then |
| 2684 | for ac_declaration in \ |
| 2685 | ''\ |
| 2686 | '#include <stdlib.h>' \ |
| 2687 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2688 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 2689 | 'extern "C" void exit (int) throw ();' \ |
| 2690 | 'extern "C" void exit (int);' \ |
| 2691 | 'void exit (int);' |
| 2692 | do |
| 2693 | cat >conftest.$ac_ext <<_ACEOF |
| 2694 | #line $LINENO "configure" |
| 2695 | /* confdefs.h. */ |
| 2696 | _ACEOF |
| 2697 | cat confdefs.h >>conftest.$ac_ext |
| 2698 | cat >>conftest.$ac_ext <<_ACEOF |
| 2699 | /* end confdefs.h. */ |
| 2700 | #include <stdlib.h> |
| 2701 | $ac_declaration |
| 2702 | int |
| 2703 | main () |
| 2704 | { |
| 2705 | exit (42); |
| 2706 | ; |
| 2707 | return 0; |
| 2708 | } |
| 2709 | _ACEOF |
| 2710 | rm -f conftest.$ac_objext |
| 2711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2712 | (eval $ac_compile) 2>&5 |
| 2713 | ac_status=$? |
| 2714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2715 | (exit $ac_status); } && |
| 2716 | { ac_try='test -s conftest.$ac_objext' |
| 2717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2718 | (eval $ac_try) 2>&5 |
| 2719 | ac_status=$? |
| 2720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2721 | (exit $ac_status); }; }; then |
| 2722 | : |
| 2723 | else |
| 2724 | echo "$as_me: failed program was:" >&5 |
| 2725 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2726 | |
| 2727 | continue |
| 2728 | fi |
| 2729 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2730 | cat >conftest.$ac_ext <<_ACEOF |
| 2731 | #line $LINENO "configure" |
| 2732 | /* confdefs.h. */ |
| 2733 | _ACEOF |
| 2734 | cat confdefs.h >>conftest.$ac_ext |
| 2735 | cat >>conftest.$ac_ext <<_ACEOF |
| 2736 | /* end confdefs.h. */ |
| 2737 | $ac_declaration |
| 2738 | int |
| 2739 | main () |
| 2740 | { |
| 2741 | exit (42); |
| 2742 | ; |
| 2743 | return 0; |
| 2744 | } |
| 2745 | _ACEOF |
| 2746 | rm -f conftest.$ac_objext |
| 2747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2748 | (eval $ac_compile) 2>&5 |
| 2749 | ac_status=$? |
| 2750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2751 | (exit $ac_status); } && |
| 2752 | { ac_try='test -s conftest.$ac_objext' |
| 2753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2754 | (eval $ac_try) 2>&5 |
| 2755 | ac_status=$? |
| 2756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2757 | (exit $ac_status); }; }; then |
| 2758 | break |
| 2759 | else |
| 2760 | echo "$as_me: failed program was:" >&5 |
| 2761 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2762 | |
| 2763 | fi |
| 2764 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2765 | done |
| 2766 | rm -f conftest* |
| 2767 | if test -n "$ac_declaration"; then |
| 2768 | echo '#ifdef __cplusplus' >>confdefs.h |
| 2769 | echo $ac_declaration >>confdefs.h |
| 2770 | echo '#endif' >>confdefs.h |
| 2771 | fi |
| 2772 | |
| 2773 | else |
| 2774 | echo "$as_me: failed program was:" >&5 |
| 2775 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2776 | |
| 2777 | fi |
| 2778 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 2779 | ac_ext=c |
| 2780 | ac_cpp='$CPP $CPPFLAGS' |
| 2781 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2782 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2783 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2784 | |
| 2785 | depcc="$CC" am_compiler_list= |
| 2786 | |
| 2787 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 2788 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 2789 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 2790 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2791 | else |
| 2792 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 2793 | # We make a subdir and do the tests there. Otherwise we can end up |
| 2794 | # making bogus files that we don't know about and never remove. For |
| 2795 | # instance it was reported that on HP-UX the gcc test will end up |
| 2796 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 2797 | # in D'. |
| 2798 | mkdir conftest.dir |
| 2799 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 2800 | # using a relative directory. |
| 2801 | cp "$am_depcomp" conftest.dir |
| 2802 | cd conftest.dir |
| 2803 | |
| 2804 | am_cv_CC_dependencies_compiler_type=none |
| 2805 | if test "$am_compiler_list" = ""; then |
| 2806 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 2807 | fi |
| 2808 | for depmode in $am_compiler_list; do |
| 2809 | # We need to recreate these files for each test, as the compiler may |
| 2810 | # overwrite some of them when testing with obscure command lines. |
| 2811 | # This happens at least with the AIX C compiler. |
| 2812 | echo '#include "conftest.h"' > conftest.c |
| 2813 | echo 'int i;' > conftest.h |
| 2814 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 2815 | |
| 2816 | case $depmode in |
| 2817 | nosideeffect) |
| 2818 | # after this tag, mechanisms are not by side-effect, so they'll |
| 2819 | # only be used when explicitly requested |
| 2820 | if test "x$enable_dependency_tracking" = xyes; then |
| 2821 | continue |
| 2822 | else |
| 2823 | break |
| 2824 | fi |
| 2825 | ;; |
| 2826 | none) break ;; |
| 2827 | esac |
| 2828 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 2829 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 2830 | # handle `-M -o', and we need to detect this. |
| 2831 | if depmode=$depmode \ |
| 2832 | source=conftest.c object=conftest.o \ |
| 2833 | depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 2834 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| 2835 | grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 2836 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 2837 | am_cv_CC_dependencies_compiler_type=$depmode |
| 2838 | break |
| 2839 | fi |
| 2840 | done |
| 2841 | |
| 2842 | cd .. |
| 2843 | rm -rf conftest.dir |
| 2844 | else |
| 2845 | am_cv_CC_dependencies_compiler_type=none |
| 2846 | fi |
| 2847 | |
| 2848 | fi |
| 2849 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 2850 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 2851 | CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" |
| 2852 | |
| 2853 | |
| 2854 | |
| 2855 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
| 2856 | if test "${with_gnu_ld+set}" = set; then |
| 2857 | withval="$with_gnu_ld" |
| 2858 | test "$withval" = no || with_gnu_ld=yes |
| 2859 | else |
| 2860 | with_gnu_ld=no |
| 2861 | fi; |
| 2862 | ac_prog=ld |
| 2863 | if test "$ac_cv_c_compiler_gnu" = yes; then |
| 2864 | # Check if gcc -print-prog-name=ld gives a path. |
| 2865 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
| 2866 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 |
| 2867 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
| 2868 | case "$ac_prog" in |
| 2869 | # Accept absolute paths. |
| 2870 | [\\/]* | [A-Za-z]:[\\/]*) |
| 2871 | re_direlt='/[^/][^/]*/\.\./' |
| 2872 | # Canonicalize the path of ld |
| 2873 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 2874 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 2875 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 2876 | done |
| 2877 | test -z "$LD" && LD="$ac_prog" |
| 2878 | ;; |
| 2879 | "") |
| 2880 | # If it fails, then pretend we aren't using GCC. |
| 2881 | ac_prog=ld |
| 2882 | ;; |
| 2883 | *) |
| 2884 | # If it is relative, then search for the first ld in PATH. |
| 2885 | with_gnu_ld=unknown |
| 2886 | ;; |
| 2887 | esac |
| 2888 | elif test "$with_gnu_ld" = yes; then |
| 2889 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
| 2890 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 |
| 2891 | else |
| 2892 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
| 2893 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 |
| 2894 | fi |
| 2895 | if test "${ac_cv_path_LD+set}" = set; then |
| 2896 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2897 | else |
| 2898 | if test -z "$LD"; then |
| 2899 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 2900 | for ac_dir in $PATH; do |
| 2901 | test -z "$ac_dir" && ac_dir=. |
| 2902 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 2903 | ac_cv_path_LD="$ac_dir/$ac_prog" |
| 2904 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 2905 | # but apparently some GNU ld's only accept -v. |
| 2906 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 2907 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
| 2908 | test "$with_gnu_ld" != no && break |
| 2909 | else |
| 2910 | test "$with_gnu_ld" != yes && break |
| 2911 | fi |
| 2912 | fi |
| 2913 | done |
| 2914 | IFS="$ac_save_ifs" |
| 2915 | else |
| 2916 | ac_cv_path_LD="$LD" # Let the user override the test with a path. |
| 2917 | fi |
| 2918 | fi |
| 2919 | |
| 2920 | LD="$ac_cv_path_LD" |
| 2921 | if test -n "$LD"; then |
| 2922 | echo "$as_me:$LINENO: result: $LD" >&5 |
| 2923 | echo "${ECHO_T}$LD" >&6 |
| 2924 | else |
| 2925 | echo "$as_me:$LINENO: result: no" >&5 |
| 2926 | echo "${ECHO_T}no" >&6 |
| 2927 | fi |
| 2928 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
| 2929 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
| 2930 | { (exit 1); exit 1; }; } |
| 2931 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
| 2932 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 |
| 2933 | if test "${ac_cv_prog_gnu_ld+set}" = set; then |
| 2934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2935 | else |
| 2936 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 2937 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then |
| 2938 | ac_cv_prog_gnu_ld=yes |
| 2939 | else |
| 2940 | ac_cv_prog_gnu_ld=no |
| 2941 | fi |
| 2942 | fi |
| 2943 | echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_ld" >&5 |
| 2944 | echo "${ECHO_T}$ac_cv_prog_gnu_ld" >&6 |
| 2945 | |
| 2946 | |
| 2947 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
| 2948 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 |
| 2949 | if test "${ac_cv_path_NM+set}" = set; then |
| 2950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2951 | else |
| 2952 | if test -n "$NM"; then |
| 2953 | # Let the user override the test. |
| 2954 | ac_cv_path_NM="$NM" |
| 2955 | else |
| 2956 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 2957 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
| 2958 | test -z "$ac_dir" && ac_dir=. |
| 2959 | if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then |
| 2960 | # Check to see if the nm accepts a BSD-compat flag. |
| 2961 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
| 2962 | # nm: unknown option "B" ignored |
| 2963 | if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 2964 | ac_cv_path_NM="$ac_dir/nm -B" |
| 2965 | break |
| 2966 | elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
| 2967 | ac_cv_path_NM="$ac_dir/nm -p" |
| 2968 | break |
| 2969 | else |
| 2970 | ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but |
| 2971 | continue # so that we can try to find one that supports BSD flags |
| 2972 | fi |
| 2973 | fi |
| 2974 | done |
| 2975 | IFS="$ac_save_ifs" |
| 2976 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm |
| 2977 | fi |
| 2978 | fi |
| 2979 | |
| 2980 | NM="$ac_cv_path_NM" |
| 2981 | echo "$as_me:$LINENO: result: $NM" >&5 |
| 2982 | echo "${ECHO_T}$NM" >&6 |
| 2983 | |
| 2984 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 2985 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 2986 | LN_S=$as_ln_s |
| 2987 | if test "$LN_S" = "ln -s"; then |
| 2988 | echo "$as_me:$LINENO: result: yes" >&5 |
| 2989 | echo "${ECHO_T}yes" >&6 |
| 2990 | else |
| 2991 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 2992 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 2993 | fi |
| 2994 | |
| 2995 | |
| 2996 | |
| 2997 | case "$target" in |
| 2998 | NONE) lt_target="$host" ;; |
| 2999 | *) lt_target="$target" ;; |
| 3000 | esac |
| 3001 | |
| 3002 | # Check for any special flags to pass to ltconfig. |
| 3003 | libtool_flags="--cache-file=$cache_file" |
| 3004 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
| 3005 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" |
| 3006 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
| 3007 | test "$ac_cv_c_compiler_gnu" = yes && libtool_flags="$libtool_flags --with-gcc" |
| 3008 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" |
| 3009 | |
| 3010 | |
| 3011 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
| 3012 | if test "${enable_libtool_lock+set}" = set; then |
| 3013 | enableval="$enable_libtool_lock" |
| 3014 | |
| 3015 | fi; |
| 3016 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
| 3017 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" |
| 3018 | |
| 3019 | # Some flags need to be propagated to the compiler or linker for good |
| 3020 | # libtool support. |
| 3021 | case "$lt_target" in |
| 3022 | *-*-irix6*) |
| 3023 | # Find out which ABI we are using. |
| 3024 | echo '#line 3024 "configure"' > conftest.$ac_ext |
| 3025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3026 | (eval $ac_compile) 2>&5 |
| 3027 | ac_status=$? |
| 3028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3029 | (exit $ac_status); }; then |
| 3030 | case "`/usr/bin/file conftest.o`" in |
| 3031 | *32-bit*) |
| 3032 | LD="${LD-ld} -32" |
| 3033 | ;; |
| 3034 | *N32*) |
| 3035 | LD="${LD-ld} -n32" |
| 3036 | ;; |
| 3037 | *64-bit*) |
| 3038 | LD="${LD-ld} -64" |
| 3039 | ;; |
| 3040 | esac |
| 3041 | fi |
| 3042 | rm -rf conftest* |
| 3043 | ;; |
| 3044 | |
| 3045 | *-*-sco3.2v5*) |
| 3046 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
| 3047 | SAVE_CFLAGS="$CFLAGS" |
| 3048 | CFLAGS="$CFLAGS -belf" |
| 3049 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
| 3050 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 |
| 3051 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
| 3052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3053 | else |
| 3054 | cat >conftest.$ac_ext <<_ACEOF |
| 3055 | #line $LINENO "configure" |
| 3056 | /* confdefs.h. */ |
| 3057 | _ACEOF |
| 3058 | cat confdefs.h >>conftest.$ac_ext |
| 3059 | cat >>conftest.$ac_ext <<_ACEOF |
| 3060 | /* end confdefs.h. */ |
| 3061 | |
| 3062 | int |
| 3063 | main () |
| 3064 | { |
| 3065 | |
| 3066 | ; |
| 3067 | return 0; |
| 3068 | } |
| 3069 | _ACEOF |
| 3070 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 3071 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 3072 | (eval $ac_link) 2>&5 |
| 3073 | ac_status=$? |
| 3074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3075 | (exit $ac_status); } && |
| 3076 | { ac_try='test -s conftest$ac_exeext' |
| 3077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3078 | (eval $ac_try) 2>&5 |
| 3079 | ac_status=$? |
| 3080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3081 | (exit $ac_status); }; }; then |
| 3082 | lt_cv_cc_needs_belf=yes |
| 3083 | else |
| 3084 | echo "$as_me: failed program was:" >&5 |
| 3085 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3086 | |
| 3087 | lt_cv_cc_needs_belf=no |
| 3088 | fi |
| 3089 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 3090 | fi |
| 3091 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
| 3092 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 |
| 3093 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
| 3094 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
| 3095 | CFLAGS="$SAVE_CFLAGS" |
| 3096 | fi |
| 3097 | ;; |
| 3098 | |
| 3099 | |
| 3100 | esac |
| 3101 | |
| 3102 | |
| 3103 | # Save cache, so that ltconfig can load it |
| 3104 | cat >confcache <<\_ACEOF |
| 3105 | # This file is a shell script that caches the results of configure |
| 3106 | # tests run on this system so they can be shared between configure |
| 3107 | # scripts and configure runs, see configure's option --config-cache. |
| 3108 | # It is not useful on other systems. If it contains results you don't |
| 3109 | # want to keep, you may remove or edit it. |
| 3110 | # |
| 3111 | # config.status only pays attention to the cache file if you give it |
| 3112 | # the --recheck option to rerun configure. |
| 3113 | # |
| 3114 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 3115 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 3116 | # following values. |
| 3117 | |
| 3118 | _ACEOF |
| 3119 | |
| 3120 | # The following way of writing the cache mishandles newlines in values, |
| 3121 | # but we know of no workaround that is simple, portable, and efficient. |
| 3122 | # So, don't put newlines in cache variables' values. |
| 3123 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 3124 | # and sets the high bit in the cache file unless we assign to the vars. |
| 3125 | { |
| 3126 | (set) 2>&1 | |
| 3127 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 3128 | *ac_space=\ *) |
| 3129 | # `set' does not quote correctly, so add quotes (double-quote |
| 3130 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 3131 | sed -n \ |
| 3132 | "s/'/'\\\\''/g; |
| 3133 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 3134 | ;; |
| 3135 | *) |
| 3136 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 3137 | sed -n \ |
| 3138 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 3139 | ;; |
| 3140 | esac; |
| 3141 | } | |
| 3142 | sed ' |
| 3143 | t clear |
| 3144 | : clear |
| 3145 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 3146 | t end |
| 3147 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 3148 | : end' >>confcache |
| 3149 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 3150 | if test -w $cache_file; then |
| 3151 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 3152 | cat confcache >$cache_file |
| 3153 | else |
| 3154 | echo "not updating unwritable cache $cache_file" |
| 3155 | fi |
| 3156 | fi |
| 3157 | rm -f confcache |
| 3158 | |
| 3159 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
| 3160 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
| 3161 | LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
| 3162 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ |
| 3163 | DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ |
| 3164 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
| 3165 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ |
| 3166 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
| 3167 | echo "$as_me: error: libtool configure failed" >&2;} |
| 3168 | { (exit 1); exit 1; }; } |
| 3169 | |
| 3170 | # Reload cache, that may have been modified by ltconfig |
| 3171 | if test -r "$cache_file"; then |
| 3172 | # Some versions of bash will fail to source /dev/null (special |
| 3173 | # files actually), so we avoid doing that. |
| 3174 | if test -f "$cache_file"; then |
| 3175 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 3176 | echo "$as_me: loading cache $cache_file" >&6;} |
| 3177 | case $cache_file in |
| 3178 | [\\/]* | ?:[\\/]* ) . $cache_file;; |
| 3179 | *) . ./$cache_file;; |
| 3180 | esac |
| 3181 | fi |
| 3182 | else |
| 3183 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 3184 | echo "$as_me: creating cache $cache_file" >&6;} |
| 3185 | >$cache_file |
| 3186 | fi |
| 3187 | |
| 3188 | |
| 3189 | # This can be used to rebuild libtool when needed |
| 3190 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" |
| 3191 | |
| 3192 | # Always use our own libtool. |
| 3193 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
| 3194 | |
| 3195 | # Redirect the config.log output again, so that the ltconfig log is not |
| 3196 | # clobbered by the next message. |
| 3197 | exec 5>>./config.log |
| 3198 | |
| 3199 | |
| 3200 | # Check whether --enable-autoconf or --disable-autoconf was given. |
| 3201 | if test "${enable_autoconf+set}" = set; then |
| 3202 | enableval="$enable_autoconf" |
| 3203 | enable_autoconf=$enableval |
| 3204 | else |
| 3205 | enable_autoconf=yes |
| 3206 | |
| 3207 | fi; |
| 3208 | # Extract the first word of "autoconf", so it can be a program name with args. |
| 3209 | set dummy autoconf; ac_word=$2 |
| 3210 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3212 | if test "${ac_cv_path_AUTOCONF+set}" = set; then |
| 3213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3214 | else |
| 3215 | case $AUTOCONF in |
| 3216 | [\\/]* | ?:[\\/]*) |
| 3217 | ac_cv_path_AUTOCONF="$AUTOCONF" # Let the user override the test with a path. |
| 3218 | ;; |
| 3219 | *) |
| 3220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3221 | for as_dir in $PATH |
| 3222 | do |
| 3223 | IFS=$as_save_IFS |
| 3224 | test -z "$as_dir" && as_dir=. |
| 3225 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3226 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3227 | ac_cv_path_AUTOCONF="$as_dir/$ac_word$ac_exec_ext" |
| 3228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3229 | break 2 |
| 3230 | fi |
| 3231 | done |
| 3232 | done |
| 3233 | |
| 3234 | test -z "$ac_cv_path_AUTOCONF" && ac_cv_path_AUTOCONF="@echo autoconf not available" |
| 3235 | ;; |
| 3236 | esac |
| 3237 | fi |
| 3238 | AUTOCONF=$ac_cv_path_AUTOCONF |
| 3239 | |
| 3240 | if test -n "$AUTOCONF"; then |
| 3241 | echo "$as_me:$LINENO: result: $AUTOCONF" >&5 |
| 3242 | echo "${ECHO_T}$AUTOCONF" >&6 |
| 3243 | else |
| 3244 | echo "$as_me:$LINENO: result: no" >&5 |
| 3245 | echo "${ECHO_T}no" >&6 |
| 3246 | fi |
| 3247 | |
| 3248 | # Extract the first word of "autoheader", so it can be a program name with args. |
| 3249 | set dummy autoheader; ac_word=$2 |
| 3250 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3251 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3252 | if test "${ac_cv_path_AUTOHEADER+set}" = set; then |
| 3253 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3254 | else |
| 3255 | case $AUTOHEADER in |
| 3256 | [\\/]* | ?:[\\/]*) |
| 3257 | ac_cv_path_AUTOHEADER="$AUTOHEADER" # Let the user override the test with a path. |
| 3258 | ;; |
| 3259 | *) |
| 3260 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3261 | for as_dir in $PATH |
| 3262 | do |
| 3263 | IFS=$as_save_IFS |
| 3264 | test -z "$as_dir" && as_dir=. |
| 3265 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3266 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3267 | ac_cv_path_AUTOHEADER="$as_dir/$ac_word$ac_exec_ext" |
| 3268 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3269 | break 2 |
| 3270 | fi |
| 3271 | done |
| 3272 | done |
| 3273 | |
| 3274 | test -z "$ac_cv_path_AUTOHEADER" && ac_cv_path_AUTOHEADER="@echo autoheader not available" |
| 3275 | ;; |
| 3276 | esac |
| 3277 | fi |
| 3278 | AUTOHEADER=$ac_cv_path_AUTOHEADER |
| 3279 | |
| 3280 | if test -n "$AUTOHEADER"; then |
| 3281 | echo "$as_me:$LINENO: result: $AUTOHEADER" >&5 |
| 3282 | echo "${ECHO_T}$AUTOHEADER" >&6 |
| 3283 | else |
| 3284 | echo "$as_me:$LINENO: result: no" >&5 |
| 3285 | echo "${ECHO_T}no" >&6 |
| 3286 | fi |
| 3287 | |
| 3288 | if test -z "$AUTOCONF"; then enable_autoconf=no ; fi |
| 3289 | if test -z "$AUTOHEADER"; then enable_autoconf=no ; fi |
| 3290 | if test x$enable_autoconf = xyes; then |
| 3291 | CONFIGURE_DEPENDS="configure.in aclocal.m4" |
| 3292 | fi |
| 3293 | |
| 3294 | |
| 3295 | ac_ext=c |
| 3296 | ac_cpp='$CPP $CPPFLAGS' |
| 3297 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3298 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3299 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3300 | if test -n "$ac_tool_prefix"; then |
| 3301 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3302 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3303 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3304 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3305 | if test "${ac_cv_prog_CC+set}" = set; then |
| 3306 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3307 | else |
| 3308 | if test -n "$CC"; then |
| 3309 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3310 | else |
| 3311 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3312 | for as_dir in $PATH |
| 3313 | do |
| 3314 | IFS=$as_save_IFS |
| 3315 | test -z "$as_dir" && as_dir=. |
| 3316 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3317 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3318 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3319 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3320 | break 2 |
| 3321 | fi |
| 3322 | done |
| 3323 | done |
| 3324 | |
| 3325 | fi |
| 3326 | fi |
| 3327 | CC=$ac_cv_prog_CC |
| 3328 | if test -n "$CC"; then |
| 3329 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 3330 | echo "${ECHO_T}$CC" >&6 |
| 3331 | else |
| 3332 | echo "$as_me:$LINENO: result: no" >&5 |
| 3333 | echo "${ECHO_T}no" >&6 |
| 3334 | fi |
| 3335 | |
| 3336 | fi |
| 3337 | if test -z "$ac_cv_prog_CC"; then |
| 3338 | ac_ct_CC=$CC |
| 3339 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3340 | set dummy gcc; ac_word=$2 |
| 3341 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3343 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 3344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3345 | else |
| 3346 | if test -n "$ac_ct_CC"; then |
| 3347 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3348 | else |
| 3349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3350 | for as_dir in $PATH |
| 3351 | do |
| 3352 | IFS=$as_save_IFS |
| 3353 | test -z "$as_dir" && as_dir=. |
| 3354 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3355 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3356 | ac_cv_prog_ac_ct_CC="gcc" |
| 3357 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3358 | break 2 |
| 3359 | fi |
| 3360 | done |
| 3361 | done |
| 3362 | |
| 3363 | fi |
| 3364 | fi |
| 3365 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3366 | if test -n "$ac_ct_CC"; then |
| 3367 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3368 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 3369 | else |
| 3370 | echo "$as_me:$LINENO: result: no" >&5 |
| 3371 | echo "${ECHO_T}no" >&6 |
| 3372 | fi |
| 3373 | |
| 3374 | CC=$ac_ct_CC |
| 3375 | else |
| 3376 | CC="$ac_cv_prog_CC" |
| 3377 | fi |
| 3378 | |
| 3379 | if test -z "$CC"; then |
| 3380 | if test -n "$ac_tool_prefix"; then |
| 3381 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3382 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3383 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3384 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3385 | if test "${ac_cv_prog_CC+set}" = set; then |
| 3386 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3387 | else |
| 3388 | if test -n "$CC"; then |
| 3389 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3390 | else |
| 3391 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3392 | for as_dir in $PATH |
| 3393 | do |
| 3394 | IFS=$as_save_IFS |
| 3395 | test -z "$as_dir" && as_dir=. |
| 3396 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3397 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3398 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3399 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3400 | break 2 |
| 3401 | fi |
| 3402 | done |
| 3403 | done |
| 3404 | |
| 3405 | fi |
| 3406 | fi |
| 3407 | CC=$ac_cv_prog_CC |
| 3408 | if test -n "$CC"; then |
| 3409 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 3410 | echo "${ECHO_T}$CC" >&6 |
| 3411 | else |
| 3412 | echo "$as_me:$LINENO: result: no" >&5 |
| 3413 | echo "${ECHO_T}no" >&6 |
| 3414 | fi |
| 3415 | |
| 3416 | fi |
| 3417 | if test -z "$ac_cv_prog_CC"; then |
| 3418 | ac_ct_CC=$CC |
| 3419 | # Extract the first word of "cc", so it can be a program name with args. |
| 3420 | set dummy cc; ac_word=$2 |
| 3421 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3422 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3423 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 3424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3425 | else |
| 3426 | if test -n "$ac_ct_CC"; then |
| 3427 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3428 | else |
| 3429 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3430 | for as_dir in $PATH |
| 3431 | do |
| 3432 | IFS=$as_save_IFS |
| 3433 | test -z "$as_dir" && as_dir=. |
| 3434 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3435 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3436 | ac_cv_prog_ac_ct_CC="cc" |
| 3437 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3438 | break 2 |
| 3439 | fi |
| 3440 | done |
| 3441 | done |
| 3442 | |
| 3443 | fi |
| 3444 | fi |
| 3445 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3446 | if test -n "$ac_ct_CC"; then |
| 3447 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3448 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 3449 | else |
| 3450 | echo "$as_me:$LINENO: result: no" >&5 |
| 3451 | echo "${ECHO_T}no" >&6 |
| 3452 | fi |
| 3453 | |
| 3454 | CC=$ac_ct_CC |
| 3455 | else |
| 3456 | CC="$ac_cv_prog_CC" |
| 3457 | fi |
| 3458 | |
| 3459 | fi |
| 3460 | if test -z "$CC"; then |
| 3461 | # Extract the first word of "cc", so it can be a program name with args. |
| 3462 | set dummy cc; ac_word=$2 |
| 3463 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3464 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3465 | if test "${ac_cv_prog_CC+set}" = set; then |
| 3466 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3467 | else |
| 3468 | if test -n "$CC"; then |
| 3469 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3470 | else |
| 3471 | ac_prog_rejected=no |
| 3472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3473 | for as_dir in $PATH |
| 3474 | do |
| 3475 | IFS=$as_save_IFS |
| 3476 | test -z "$as_dir" && as_dir=. |
| 3477 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3478 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3479 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3480 | ac_prog_rejected=yes |
| 3481 | continue |
| 3482 | fi |
| 3483 | ac_cv_prog_CC="cc" |
| 3484 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3485 | break 2 |
| 3486 | fi |
| 3487 | done |
| 3488 | done |
| 3489 | |
| 3490 | if test $ac_prog_rejected = yes; then |
| 3491 | # We found a bogon in the path, so make sure we never use it. |
| 3492 | set dummy $ac_cv_prog_CC |
| 3493 | shift |
| 3494 | if test $# != 0; then |
| 3495 | # We chose a different compiler from the bogus one. |
| 3496 | # However, it has the same basename, so the bogon will be chosen |
| 3497 | # first if we set CC to just the basename; use the full file name. |
| 3498 | shift |
| 3499 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3500 | fi |
| 3501 | fi |
| 3502 | fi |
| 3503 | fi |
| 3504 | CC=$ac_cv_prog_CC |
| 3505 | if test -n "$CC"; then |
| 3506 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 3507 | echo "${ECHO_T}$CC" >&6 |
| 3508 | else |
| 3509 | echo "$as_me:$LINENO: result: no" >&5 |
| 3510 | echo "${ECHO_T}no" >&6 |
| 3511 | fi |
| 3512 | |
| 3513 | fi |
| 3514 | if test -z "$CC"; then |
| 3515 | if test -n "$ac_tool_prefix"; then |
| 3516 | for ac_prog in cl |
| 3517 | do |
| 3518 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3519 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3520 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3521 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3522 | if test "${ac_cv_prog_CC+set}" = set; then |
| 3523 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3524 | else |
| 3525 | if test -n "$CC"; then |
| 3526 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3527 | else |
| 3528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3529 | for as_dir in $PATH |
| 3530 | do |
| 3531 | IFS=$as_save_IFS |
| 3532 | test -z "$as_dir" && as_dir=. |
| 3533 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3534 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3535 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3536 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3537 | break 2 |
| 3538 | fi |
| 3539 | done |
| 3540 | done |
| 3541 | |
| 3542 | fi |
| 3543 | fi |
| 3544 | CC=$ac_cv_prog_CC |
| 3545 | if test -n "$CC"; then |
| 3546 | echo "$as_me:$LINENO: result: $CC" >&5 |
| 3547 | echo "${ECHO_T}$CC" >&6 |
| 3548 | else |
| 3549 | echo "$as_me:$LINENO: result: no" >&5 |
| 3550 | echo "${ECHO_T}no" >&6 |
| 3551 | fi |
| 3552 | |
| 3553 | test -n "$CC" && break |
| 3554 | done |
| 3555 | fi |
| 3556 | if test -z "$CC"; then |
| 3557 | ac_ct_CC=$CC |
| 3558 | for ac_prog in cl |
| 3559 | do |
| 3560 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3561 | set dummy $ac_prog; ac_word=$2 |
| 3562 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 3563 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 3564 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 3565 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3566 | else |
| 3567 | if test -n "$ac_ct_CC"; then |
| 3568 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3569 | else |
| 3570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3571 | for as_dir in $PATH |
| 3572 | do |
| 3573 | IFS=$as_save_IFS |
| 3574 | test -z "$as_dir" && as_dir=. |
| 3575 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3576 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 3577 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3578 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3579 | break 2 |
| 3580 | fi |
| 3581 | done |
| 3582 | done |
| 3583 | |
| 3584 | fi |
| 3585 | fi |
| 3586 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3587 | if test -n "$ac_ct_CC"; then |
| 3588 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 3589 | echo "${ECHO_T}$ac_ct_CC" >&6 |
| 3590 | else |
| 3591 | echo "$as_me:$LINENO: result: no" >&5 |
| 3592 | echo "${ECHO_T}no" >&6 |
| 3593 | fi |
| 3594 | |
| 3595 | test -n "$ac_ct_CC" && break |
| 3596 | done |
| 3597 | |
| 3598 | CC=$ac_ct_CC |
| 3599 | fi |
| 3600 | |
| 3601 | fi |
| 3602 | |
| 3603 | |
| 3604 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 3605 | See \`config.log' for more details." >&5 |
| 3606 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 3607 | See \`config.log' for more details." >&2;} |
| 3608 | { (exit 1); exit 1; }; } |
| 3609 | |
| 3610 | # Provide some information about the compiler. |
| 3611 | echo "$as_me:$LINENO:" \ |
| 3612 | "checking for C compiler version" >&5 |
| 3613 | ac_compiler=`set X $ac_compile; echo $2` |
| 3614 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 3615 | (eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 3616 | ac_status=$? |
| 3617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3618 | (exit $ac_status); } |
| 3619 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 3620 | (eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 3621 | ac_status=$? |
| 3622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3623 | (exit $ac_status); } |
| 3624 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 3625 | (eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 3626 | ac_status=$? |
| 3627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3628 | (exit $ac_status); } |
| 3629 | |
| 3630 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 3631 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 3632 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 3633 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3634 | else |
| 3635 | cat >conftest.$ac_ext <<_ACEOF |
| 3636 | #line $LINENO "configure" |
| 3637 | /* confdefs.h. */ |
| 3638 | _ACEOF |
| 3639 | cat confdefs.h >>conftest.$ac_ext |
| 3640 | cat >>conftest.$ac_ext <<_ACEOF |
| 3641 | /* end confdefs.h. */ |
| 3642 | |
| 3643 | int |
| 3644 | main () |
| 3645 | { |
| 3646 | #ifndef __GNUC__ |
| 3647 | choke me |
| 3648 | #endif |
| 3649 | |
| 3650 | ; |
| 3651 | return 0; |
| 3652 | } |
| 3653 | _ACEOF |
| 3654 | rm -f conftest.$ac_objext |
| 3655 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3656 | (eval $ac_compile) 2>&5 |
| 3657 | ac_status=$? |
| 3658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3659 | (exit $ac_status); } && |
| 3660 | { ac_try='test -s conftest.$ac_objext' |
| 3661 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3662 | (eval $ac_try) 2>&5 |
| 3663 | ac_status=$? |
| 3664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3665 | (exit $ac_status); }; }; then |
| 3666 | ac_compiler_gnu=yes |
| 3667 | else |
| 3668 | echo "$as_me: failed program was:" >&5 |
| 3669 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3670 | |
| 3671 | ac_compiler_gnu=no |
| 3672 | fi |
| 3673 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3674 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3675 | |
| 3676 | fi |
| 3677 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 3678 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 3679 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 3680 | ac_test_CFLAGS=${CFLAGS+set} |
| 3681 | ac_save_CFLAGS=$CFLAGS |
| 3682 | CFLAGS="-g" |
| 3683 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 3684 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 3685 | if test "${ac_cv_prog_cc_g+set}" = set; then |
| 3686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3687 | else |
| 3688 | cat >conftest.$ac_ext <<_ACEOF |
| 3689 | #line $LINENO "configure" |
| 3690 | /* confdefs.h. */ |
| 3691 | _ACEOF |
| 3692 | cat confdefs.h >>conftest.$ac_ext |
| 3693 | cat >>conftest.$ac_ext <<_ACEOF |
| 3694 | /* end confdefs.h. */ |
| 3695 | |
| 3696 | int |
| 3697 | main () |
| 3698 | { |
| 3699 | |
| 3700 | ; |
| 3701 | return 0; |
| 3702 | } |
| 3703 | _ACEOF |
| 3704 | rm -f conftest.$ac_objext |
| 3705 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3706 | (eval $ac_compile) 2>&5 |
| 3707 | ac_status=$? |
| 3708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3709 | (exit $ac_status); } && |
| 3710 | { ac_try='test -s conftest.$ac_objext' |
| 3711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3712 | (eval $ac_try) 2>&5 |
| 3713 | ac_status=$? |
| 3714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3715 | (exit $ac_status); }; }; then |
| 3716 | ac_cv_prog_cc_g=yes |
| 3717 | else |
| 3718 | echo "$as_me: failed program was:" >&5 |
| 3719 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3720 | |
| 3721 | ac_cv_prog_cc_g=no |
| 3722 | fi |
| 3723 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3724 | fi |
| 3725 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 3726 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 3727 | if test "$ac_test_CFLAGS" = set; then |
| 3728 | CFLAGS=$ac_save_CFLAGS |
| 3729 | elif test $ac_cv_prog_cc_g = yes; then |
| 3730 | if test "$GCC" = yes; then |
| 3731 | CFLAGS="-g -O2" |
| 3732 | else |
| 3733 | CFLAGS="-g" |
| 3734 | fi |
| 3735 | else |
| 3736 | if test "$GCC" = yes; then |
| 3737 | CFLAGS="-O2" |
| 3738 | else |
| 3739 | CFLAGS= |
| 3740 | fi |
| 3741 | fi |
| 3742 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 3743 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 3744 | if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 3745 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3746 | else |
| 3747 | ac_cv_prog_cc_stdc=no |
| 3748 | ac_save_CC=$CC |
| 3749 | cat >conftest.$ac_ext <<_ACEOF |
| 3750 | #line $LINENO "configure" |
| 3751 | /* confdefs.h. */ |
| 3752 | _ACEOF |
| 3753 | cat confdefs.h >>conftest.$ac_ext |
| 3754 | cat >>conftest.$ac_ext <<_ACEOF |
| 3755 | /* end confdefs.h. */ |
| 3756 | #include <stdarg.h> |
| 3757 | #include <stdio.h> |
| 3758 | #include <sys/types.h> |
| 3759 | #include <sys/stat.h> |
| 3760 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3761 | struct buf { int x; }; |
| 3762 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3763 | static char *e (p, i) |
| 3764 | char **p; |
| 3765 | int i; |
| 3766 | { |
| 3767 | return p[i]; |
| 3768 | } |
| 3769 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3770 | { |
| 3771 | char *s; |
| 3772 | va_list v; |
| 3773 | va_start (v,p); |
| 3774 | s = g (p, va_arg (v,int)); |
| 3775 | va_end (v); |
| 3776 | return s; |
| 3777 | } |
| 3778 | int test (int i, double x); |
| 3779 | struct s1 {int (*f) (int a);}; |
| 3780 | struct s2 {int (*f) (double a);}; |
| 3781 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3782 | int argc; |
| 3783 | char **argv; |
| 3784 | int |
| 3785 | main () |
| 3786 | { |
| 3787 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3788 | ; |
| 3789 | return 0; |
| 3790 | } |
| 3791 | _ACEOF |
| 3792 | # Don't try gcc -ansi; that turns off useful extensions and |
| 3793 | # breaks some systems' header files. |
| 3794 | # AIX -qlanglvl=ansi |
| 3795 | # Ultrix and OSF/1 -std1 |
| 3796 | # HP-UX 10.20 and later -Ae |
| 3797 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
| 3798 | # SVR4 -Xc -D__EXTENSIONS__ |
| 3799 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 3800 | do |
| 3801 | CC="$ac_save_CC $ac_arg" |
| 3802 | rm -f conftest.$ac_objext |
| 3803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3804 | (eval $ac_compile) 2>&5 |
| 3805 | ac_status=$? |
| 3806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3807 | (exit $ac_status); } && |
| 3808 | { ac_try='test -s conftest.$ac_objext' |
| 3809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3810 | (eval $ac_try) 2>&5 |
| 3811 | ac_status=$? |
| 3812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3813 | (exit $ac_status); }; }; then |
| 3814 | ac_cv_prog_cc_stdc=$ac_arg |
| 3815 | break |
| 3816 | else |
| 3817 | echo "$as_me: failed program was:" >&5 |
| 3818 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3819 | |
| 3820 | fi |
| 3821 | rm -f conftest.$ac_objext |
| 3822 | done |
| 3823 | rm -f conftest.$ac_ext conftest.$ac_objext |
| 3824 | CC=$ac_save_CC |
| 3825 | |
| 3826 | fi |
| 3827 | |
| 3828 | case "x$ac_cv_prog_cc_stdc" in |
| 3829 | x|xno) |
| 3830 | echo "$as_me:$LINENO: result: none needed" >&5 |
| 3831 | echo "${ECHO_T}none needed" >&6 ;; |
| 3832 | *) |
| 3833 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 3834 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 3835 | CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 3836 | esac |
| 3837 | |
| 3838 | # Some people use a C++ compiler to compile C. Since we use `exit', |
| 3839 | # in C++ we need to declare it. In case someone uses the same compiler |
| 3840 | # for both compiling C and C++ we need to have the C++ compiler decide |
| 3841 | # the declaration of exit, since it's the most demanding environment. |
| 3842 | cat >conftest.$ac_ext <<_ACEOF |
| 3843 | #ifndef __cplusplus |
| 3844 | choke me |
| 3845 | #endif |
| 3846 | _ACEOF |
| 3847 | rm -f conftest.$ac_objext |
| 3848 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3849 | (eval $ac_compile) 2>&5 |
| 3850 | ac_status=$? |
| 3851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3852 | (exit $ac_status); } && |
| 3853 | { ac_try='test -s conftest.$ac_objext' |
| 3854 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3855 | (eval $ac_try) 2>&5 |
| 3856 | ac_status=$? |
| 3857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3858 | (exit $ac_status); }; }; then |
| 3859 | for ac_declaration in \ |
| 3860 | ''\ |
| 3861 | '#include <stdlib.h>' \ |
| 3862 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 3863 | 'extern "C" void std::exit (int); using std::exit;' \ |
| 3864 | 'extern "C" void exit (int) throw ();' \ |
| 3865 | 'extern "C" void exit (int);' \ |
| 3866 | 'void exit (int);' |
| 3867 | do |
| 3868 | cat >conftest.$ac_ext <<_ACEOF |
| 3869 | #line $LINENO "configure" |
| 3870 | /* confdefs.h. */ |
| 3871 | _ACEOF |
| 3872 | cat confdefs.h >>conftest.$ac_ext |
| 3873 | cat >>conftest.$ac_ext <<_ACEOF |
| 3874 | /* end confdefs.h. */ |
| 3875 | #include <stdlib.h> |
| 3876 | $ac_declaration |
| 3877 | int |
| 3878 | main () |
| 3879 | { |
| 3880 | exit (42); |
| 3881 | ; |
| 3882 | return 0; |
| 3883 | } |
| 3884 | _ACEOF |
| 3885 | rm -f conftest.$ac_objext |
| 3886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3887 | (eval $ac_compile) 2>&5 |
| 3888 | ac_status=$? |
| 3889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3890 | (exit $ac_status); } && |
| 3891 | { ac_try='test -s conftest.$ac_objext' |
| 3892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3893 | (eval $ac_try) 2>&5 |
| 3894 | ac_status=$? |
| 3895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3896 | (exit $ac_status); }; }; then |
| 3897 | : |
| 3898 | else |
| 3899 | echo "$as_me: failed program was:" >&5 |
| 3900 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3901 | |
| 3902 | continue |
| 3903 | fi |
| 3904 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3905 | cat >conftest.$ac_ext <<_ACEOF |
| 3906 | #line $LINENO "configure" |
| 3907 | /* confdefs.h. */ |
| 3908 | _ACEOF |
| 3909 | cat confdefs.h >>conftest.$ac_ext |
| 3910 | cat >>conftest.$ac_ext <<_ACEOF |
| 3911 | /* end confdefs.h. */ |
| 3912 | $ac_declaration |
| 3913 | int |
| 3914 | main () |
| 3915 | { |
| 3916 | exit (42); |
| 3917 | ; |
| 3918 | return 0; |
| 3919 | } |
| 3920 | _ACEOF |
| 3921 | rm -f conftest.$ac_objext |
| 3922 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 3923 | (eval $ac_compile) 2>&5 |
| 3924 | ac_status=$? |
| 3925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3926 | (exit $ac_status); } && |
| 3927 | { ac_try='test -s conftest.$ac_objext' |
| 3928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 3929 | (eval $ac_try) 2>&5 |
| 3930 | ac_status=$? |
| 3931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 3932 | (exit $ac_status); }; }; then |
| 3933 | break |
| 3934 | else |
| 3935 | echo "$as_me: failed program was:" >&5 |
| 3936 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3937 | |
| 3938 | fi |
| 3939 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3940 | done |
| 3941 | rm -f conftest* |
| 3942 | if test -n "$ac_declaration"; then |
| 3943 | echo '#ifdef __cplusplus' >>confdefs.h |
| 3944 | echo $ac_declaration >>confdefs.h |
| 3945 | echo '#endif' >>confdefs.h |
| 3946 | fi |
| 3947 | |
| 3948 | else |
| 3949 | echo "$as_me: failed program was:" >&5 |
| 3950 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3951 | |
| 3952 | fi |
| 3953 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 3954 | ac_ext=c |
| 3955 | ac_cpp='$CPP $CPPFLAGS' |
| 3956 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3957 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3958 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3959 | |
| 3960 | depcc="$CC" am_compiler_list= |
| 3961 | |
| 3962 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
| 3963 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 |
| 3964 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
| 3965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 3966 | else |
| 3967 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 3968 | # We make a subdir and do the tests there. Otherwise we can end up |
| 3969 | # making bogus files that we don't know about and never remove. For |
| 3970 | # instance it was reported that on HP-UX the gcc test will end up |
| 3971 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 3972 | # in D'. |
| 3973 | mkdir conftest.dir |
| 3974 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 3975 | # using a relative directory. |
| 3976 | cp "$am_depcomp" conftest.dir |
| 3977 | cd conftest.dir |
| 3978 | |
| 3979 | am_cv_CC_dependencies_compiler_type=none |
| 3980 | if test "$am_compiler_list" = ""; then |
| 3981 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 3982 | fi |
| 3983 | for depmode in $am_compiler_list; do |
| 3984 | # We need to recreate these files for each test, as the compiler may |
| 3985 | # overwrite some of them when testing with obscure command lines. |
| 3986 | # This happens at least with the AIX C compiler. |
| 3987 | echo '#include "conftest.h"' > conftest.c |
| 3988 | echo 'int i;' > conftest.h |
| 3989 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf |
| 3990 | |
| 3991 | case $depmode in |
| 3992 | nosideeffect) |
| 3993 | # after this tag, mechanisms are not by side-effect, so they'll |
| 3994 | # only be used when explicitly requested |
| 3995 | if test "x$enable_dependency_tracking" = xyes; then |
| 3996 | continue |
| 3997 | else |
| 3998 | break |
| 3999 | fi |
| 4000 | ;; |
| 4001 | none) break ;; |
| 4002 | esac |
| 4003 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 4004 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 4005 | # handle `-M -o', and we need to detect this. |
| 4006 | if depmode=$depmode \ |
| 4007 | source=conftest.c object=conftest.o \ |
| 4008 | depfile=conftest.Po tmpdepfile=conftest.TPo \ |
| 4009 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && |
| 4010 | grep conftest.h conftest.Po > /dev/null 2>&1 && |
| 4011 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 4012 | am_cv_CC_dependencies_compiler_type=$depmode |
| 4013 | break |
| 4014 | fi |
| 4015 | done |
| 4016 | |
| 4017 | cd .. |
| 4018 | rm -rf conftest.dir |
| 4019 | else |
| 4020 | am_cv_CC_dependencies_compiler_type=none |
| 4021 | fi |
| 4022 | |
| 4023 | fi |
| 4024 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 4025 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 |
| 4026 | CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type" |
| 4027 | |
| 4028 | |
| 4029 | ac_ext=c |
| 4030 | ac_cpp='$CPP $CPPFLAGS' |
| 4031 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4032 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4033 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4034 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
| 4035 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
| 4036 | # On Suns, sometimes $CPP names a directory. |
| 4037 | if test -n "$CPP" && test -d "$CPP"; then |
| 4038 | CPP= |
| 4039 | fi |
| 4040 | if test -z "$CPP"; then |
| 4041 | if test "${ac_cv_prog_CPP+set}" = set; then |
| 4042 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4043 | else |
| 4044 | # Double quotes because CPP needs to be expanded |
| 4045 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4046 | do |
| 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 | #line $LINENO "configure" |
| 4058 | /* confdefs.h. */ |
| 4059 | _ACEOF |
| 4060 | cat confdefs.h >>conftest.$ac_ext |
| 4061 | cat >>conftest.$ac_ext <<_ACEOF |
| 4062 | /* end confdefs.h. */ |
| 4063 | #ifdef __STDC__ |
| 4064 | # include <limits.h> |
| 4065 | #else |
| 4066 | # include <assert.h> |
| 4067 | #endif |
| 4068 | Syntax error |
| 4069 | _ACEOF |
| 4070 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4071 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4072 | ac_status=$? |
| 4073 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4074 | rm -f conftest.er1 |
| 4075 | cat conftest.err >&5 |
| 4076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4077 | (exit $ac_status); } >/dev/null; then |
| 4078 | if test -s conftest.err; then |
| 4079 | ac_cpp_err=$ac_c_preproc_warn_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 | #line $LINENO "configure" |
| 4101 | /* confdefs.h. */ |
| 4102 | _ACEOF |
| 4103 | cat confdefs.h >>conftest.$ac_ext |
| 4104 | cat >>conftest.$ac_ext <<_ACEOF |
| 4105 | /* end confdefs.h. */ |
| 4106 | #include <ac_nonexistent.h> |
| 4107 | _ACEOF |
| 4108 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4109 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4110 | ac_status=$? |
| 4111 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4112 | rm -f conftest.er1 |
| 4113 | cat conftest.err >&5 |
| 4114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4115 | (exit $ac_status); } >/dev/null; then |
| 4116 | if test -s conftest.err; then |
| 4117 | ac_cpp_err=$ac_c_preproc_warn_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 | break |
| 4142 | fi |
| 4143 | |
| 4144 | done |
| 4145 | ac_cv_prog_CPP=$CPP |
| 4146 | |
| 4147 | fi |
| 4148 | CPP=$ac_cv_prog_CPP |
| 4149 | else |
| 4150 | ac_cv_prog_CPP=$CPP |
| 4151 | fi |
| 4152 | echo "$as_me:$LINENO: result: $CPP" >&5 |
| 4153 | echo "${ECHO_T}$CPP" >&6 |
| 4154 | ac_preproc_ok=false |
| 4155 | for ac_c_preproc_warn_flag in '' yes |
| 4156 | do |
| 4157 | # Use a header file that comes with gcc, so configuring glibc |
| 4158 | # with a fresh cross-compiler works. |
| 4159 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4160 | # <limits.h> exists even on freestanding compilers. |
| 4161 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4162 | # not just through cpp. "Syntax error" is here to catch this case. |
| 4163 | cat >conftest.$ac_ext <<_ACEOF |
| 4164 | #line $LINENO "configure" |
| 4165 | /* confdefs.h. */ |
| 4166 | _ACEOF |
| 4167 | cat confdefs.h >>conftest.$ac_ext |
| 4168 | cat >>conftest.$ac_ext <<_ACEOF |
| 4169 | /* end confdefs.h. */ |
| 4170 | #ifdef __STDC__ |
| 4171 | # include <limits.h> |
| 4172 | #else |
| 4173 | # include <assert.h> |
| 4174 | #endif |
| 4175 | Syntax error |
| 4176 | _ACEOF |
| 4177 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4178 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4179 | ac_status=$? |
| 4180 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4181 | rm -f conftest.er1 |
| 4182 | cat conftest.err >&5 |
| 4183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4184 | (exit $ac_status); } >/dev/null; then |
| 4185 | if test -s conftest.err; then |
| 4186 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4187 | else |
| 4188 | ac_cpp_err= |
| 4189 | fi |
| 4190 | else |
| 4191 | ac_cpp_err=yes |
| 4192 | fi |
| 4193 | if test -z "$ac_cpp_err"; then |
| 4194 | : |
| 4195 | else |
| 4196 | echo "$as_me: failed program was:" >&5 |
| 4197 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4198 | |
| 4199 | # Broken: fails on valid input. |
| 4200 | continue |
| 4201 | fi |
| 4202 | rm -f conftest.err conftest.$ac_ext |
| 4203 | |
| 4204 | # OK, works on sane cases. Now check whether non-existent headers |
| 4205 | # can be detected and how. |
| 4206 | cat >conftest.$ac_ext <<_ACEOF |
| 4207 | #line $LINENO "configure" |
| 4208 | /* confdefs.h. */ |
| 4209 | _ACEOF |
| 4210 | cat confdefs.h >>conftest.$ac_ext |
| 4211 | cat >>conftest.$ac_ext <<_ACEOF |
| 4212 | /* end confdefs.h. */ |
| 4213 | #include <ac_nonexistent.h> |
| 4214 | _ACEOF |
| 4215 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 4216 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 4217 | ac_status=$? |
| 4218 | grep -v '^ *+' conftest.er1 >conftest.err |
| 4219 | rm -f conftest.er1 |
| 4220 | cat conftest.err >&5 |
| 4221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4222 | (exit $ac_status); } >/dev/null; then |
| 4223 | if test -s conftest.err; then |
| 4224 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 4225 | else |
| 4226 | ac_cpp_err= |
| 4227 | fi |
| 4228 | else |
| 4229 | ac_cpp_err=yes |
| 4230 | fi |
| 4231 | if test -z "$ac_cpp_err"; then |
| 4232 | # Broken: success on invalid input. |
| 4233 | continue |
| 4234 | else |
| 4235 | echo "$as_me: failed program was:" >&5 |
| 4236 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4237 | |
| 4238 | # Passes both tests. |
| 4239 | ac_preproc_ok=: |
| 4240 | break |
| 4241 | fi |
| 4242 | rm -f conftest.err conftest.$ac_ext |
| 4243 | |
| 4244 | done |
| 4245 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4246 | rm -f conftest.err conftest.$ac_ext |
| 4247 | if $ac_preproc_ok; then |
| 4248 | : |
| 4249 | else |
| 4250 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
| 4251 | See \`config.log' for more details." >&5 |
| 4252 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
| 4253 | See \`config.log' for more details." >&2;} |
| 4254 | { (exit 1); exit 1; }; } |
| 4255 | fi |
| 4256 | |
| 4257 | ac_ext=c |
| 4258 | ac_cpp='$CPP $CPPFLAGS' |
| 4259 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4260 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4261 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4262 | |
| 4263 | # Find a good install program. We prefer a C program (faster), |
| 4264 | # so one script is as good as another. But avoid the broken or |
| 4265 | # incompatible versions: |
| 4266 | # SysV /etc/install, /usr/sbin/install |
| 4267 | # SunOS /usr/etc/install |
| 4268 | # IRIX /sbin/install |
| 4269 | # AIX /bin/install |
| 4270 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 4271 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 4272 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 4273 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 4274 | # ./install, which can be erroneously created by make from ./install.sh. |
| 4275 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
| 4276 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 |
| 4277 | if test -z "$INSTALL"; then |
| 4278 | if test "${ac_cv_path_install+set}" = set; then |
| 4279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4280 | else |
| 4281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4282 | for as_dir in $PATH |
| 4283 | do |
| 4284 | IFS=$as_save_IFS |
| 4285 | test -z "$as_dir" && as_dir=. |
| 4286 | # Account for people who put trailing slashes in PATH elements. |
| 4287 | case $as_dir/ in |
| 4288 | ./ | .// | /cC/* | \ |
| 4289 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 4290 | /usr/ucb/* ) ;; |
| 4291 | *) |
| 4292 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 4293 | # Don't use installbsd from OSF since it installs stuff as root |
| 4294 | # by default. |
| 4295 | for ac_prog in ginstall scoinst install; do |
| 4296 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4297 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
| 4298 | if test $ac_prog = install && |
| 4299 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4300 | # AIX install. It has an incompatible calling convention. |
| 4301 | : |
| 4302 | elif test $ac_prog = install && |
| 4303 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 4304 | # program-specific install script used by HP pwplus--don't use. |
| 4305 | : |
| 4306 | else |
| 4307 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 4308 | break 3 |
| 4309 | fi |
| 4310 | fi |
| 4311 | done |
| 4312 | done |
| 4313 | ;; |
| 4314 | esac |
| 4315 | done |
| 4316 | |
| 4317 | |
| 4318 | fi |
| 4319 | if test "${ac_cv_path_install+set}" = set; then |
| 4320 | INSTALL=$ac_cv_path_install |
| 4321 | else |
| 4322 | # As a last resort, use the slow shell script. We don't cache a |
| 4323 | # path for INSTALL within a source directory, because that will |
| 4324 | # break other packages using the cache if that directory is |
| 4325 | # removed, or if the path is relative. |
| 4326 | INSTALL=$ac_install_sh |
| 4327 | fi |
| 4328 | fi |
| 4329 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
| 4330 | echo "${ECHO_T}$INSTALL" >&6 |
| 4331 | |
| 4332 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 4333 | # It thinks the first close brace ends the variable substitution. |
| 4334 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 4335 | |
| 4336 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 4337 | |
| 4338 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 4339 | |
| 4340 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
| 4341 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 |
| 4342 | LN_S=$as_ln_s |
| 4343 | if test "$LN_S" = "ln -s"; then |
| 4344 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4345 | echo "${ECHO_T}yes" >&6 |
| 4346 | else |
| 4347 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
| 4348 | echo "${ECHO_T}no, using $LN_S" >&6 |
| 4349 | fi |
| 4350 | |
| 4351 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 4352 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 |
| 4353 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
| 4354 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
| 4355 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4356 | else |
| 4357 | cat >conftest.make <<\_ACEOF |
| 4358 | all: |
| 4359 | @echo 'ac_maketemp="$(MAKE)"' |
| 4360 | _ACEOF |
| 4361 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 4362 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
| 4363 | if test -n "$ac_maketemp"; then |
| 4364 | eval ac_cv_prog_make_${ac_make}_set=yes |
| 4365 | else |
| 4366 | eval ac_cv_prog_make_${ac_make}_set=no |
| 4367 | fi |
| 4368 | rm -f conftest.make |
| 4369 | fi |
| 4370 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then |
| 4371 | echo "$as_me:$LINENO: result: yes" >&5 |
| 4372 | echo "${ECHO_T}yes" >&6 |
| 4373 | SET_MAKE= |
| 4374 | else |
| 4375 | echo "$as_me:$LINENO: result: no" >&5 |
| 4376 | echo "${ECHO_T}no" >&6 |
| 4377 | SET_MAKE="MAKE=${MAKE-make}" |
| 4378 | fi |
| 4379 | |
| 4380 | for ac_prog in 'bison -y' byacc |
| 4381 | do |
| 4382 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4383 | set dummy $ac_prog; ac_word=$2 |
| 4384 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4385 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4386 | if test "${ac_cv_prog_YACC+set}" = set; then |
| 4387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4388 | else |
| 4389 | if test -n "$YACC"; then |
| 4390 | ac_cv_prog_YACC="$YACC" # Let the user override the test. |
| 4391 | else |
| 4392 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4393 | for as_dir in $PATH |
| 4394 | do |
| 4395 | IFS=$as_save_IFS |
| 4396 | test -z "$as_dir" && as_dir=. |
| 4397 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4398 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4399 | ac_cv_prog_YACC="$ac_prog" |
| 4400 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4401 | break 2 |
| 4402 | fi |
| 4403 | done |
| 4404 | done |
| 4405 | |
| 4406 | fi |
| 4407 | fi |
| 4408 | YACC=$ac_cv_prog_YACC |
| 4409 | if test -n "$YACC"; then |
| 4410 | echo "$as_me:$LINENO: result: $YACC" >&5 |
| 4411 | echo "${ECHO_T}$YACC" >&6 |
| 4412 | else |
| 4413 | echo "$as_me:$LINENO: result: no" >&5 |
| 4414 | echo "${ECHO_T}no" >&6 |
| 4415 | fi |
| 4416 | |
| 4417 | test -n "$YACC" && break |
| 4418 | done |
| 4419 | test -n "$YACC" || YACC="yacc" |
| 4420 | |
| 4421 | |
| 4422 | for ac_prog in flex lex |
| 4423 | do |
| 4424 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4425 | set dummy $ac_prog; ac_word=$2 |
| 4426 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4427 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4428 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 4429 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4430 | else |
| 4431 | if test -n "$LEX"; then |
| 4432 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 4433 | else |
| 4434 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4435 | for as_dir in $PATH |
| 4436 | do |
| 4437 | IFS=$as_save_IFS |
| 4438 | test -z "$as_dir" && as_dir=. |
| 4439 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4440 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4441 | ac_cv_prog_LEX="$ac_prog" |
| 4442 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4443 | break 2 |
| 4444 | fi |
| 4445 | done |
| 4446 | done |
| 4447 | |
| 4448 | fi |
| 4449 | fi |
| 4450 | LEX=$ac_cv_prog_LEX |
| 4451 | if test -n "$LEX"; then |
| 4452 | echo "$as_me:$LINENO: result: $LEX" >&5 |
| 4453 | echo "${ECHO_T}$LEX" >&6 |
| 4454 | else |
| 4455 | echo "$as_me:$LINENO: result: no" >&5 |
| 4456 | echo "${ECHO_T}no" >&6 |
| 4457 | fi |
| 4458 | |
| 4459 | test -n "$LEX" && break |
| 4460 | done |
| 4461 | test -n "$LEX" || LEX="${am_missing_run}flex" |
| 4462 | |
| 4463 | for ac_prog in flex lex |
| 4464 | do |
| 4465 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4466 | set dummy $ac_prog; ac_word=$2 |
| 4467 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4468 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4469 | if test "${ac_cv_prog_LEX+set}" = set; then |
| 4470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4471 | else |
| 4472 | if test -n "$LEX"; then |
| 4473 | ac_cv_prog_LEX="$LEX" # Let the user override the test. |
| 4474 | else |
| 4475 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4476 | for as_dir in $PATH |
| 4477 | do |
| 4478 | IFS=$as_save_IFS |
| 4479 | test -z "$as_dir" && as_dir=. |
| 4480 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4481 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4482 | ac_cv_prog_LEX="$ac_prog" |
| 4483 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4484 | break 2 |
| 4485 | fi |
| 4486 | done |
| 4487 | done |
| 4488 | |
| 4489 | fi |
| 4490 | fi |
| 4491 | LEX=$ac_cv_prog_LEX |
| 4492 | if test -n "$LEX"; then |
| 4493 | echo "$as_me:$LINENO: result: $LEX" >&5 |
| 4494 | echo "${ECHO_T}$LEX" >&6 |
| 4495 | else |
| 4496 | echo "$as_me:$LINENO: result: no" >&5 |
| 4497 | echo "${ECHO_T}no" >&6 |
| 4498 | fi |
| 4499 | |
| 4500 | test -n "$LEX" && break |
| 4501 | done |
| 4502 | test -n "$LEX" || LEX=":" |
| 4503 | |
| 4504 | if test -z "$LEXLIB" |
| 4505 | then |
| 4506 | echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 |
| 4507 | echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 |
| 4508 | if test "${ac_cv_lib_fl_yywrap+set}" = set; then |
| 4509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4510 | else |
| 4511 | ac_check_lib_save_LIBS=$LIBS |
| 4512 | LIBS="-lfl $LIBS" |
| 4513 | cat >conftest.$ac_ext <<_ACEOF |
| 4514 | #line $LINENO "configure" |
| 4515 | /* confdefs.h. */ |
| 4516 | _ACEOF |
| 4517 | cat confdefs.h >>conftest.$ac_ext |
| 4518 | cat >>conftest.$ac_ext <<_ACEOF |
| 4519 | /* end confdefs.h. */ |
| 4520 | |
| 4521 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4522 | #ifdef __cplusplus |
| 4523 | extern "C" |
| 4524 | #endif |
| 4525 | /* We use char because int might match the return type of a gcc2 |
| 4526 | builtin and then its argument prototype would still apply. */ |
| 4527 | char yywrap (); |
| 4528 | int |
| 4529 | main () |
| 4530 | { |
| 4531 | yywrap (); |
| 4532 | ; |
| 4533 | return 0; |
| 4534 | } |
| 4535 | _ACEOF |
| 4536 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4538 | (eval $ac_link) 2>&5 |
| 4539 | ac_status=$? |
| 4540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4541 | (exit $ac_status); } && |
| 4542 | { ac_try='test -s conftest$ac_exeext' |
| 4543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4544 | (eval $ac_try) 2>&5 |
| 4545 | ac_status=$? |
| 4546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4547 | (exit $ac_status); }; }; then |
| 4548 | ac_cv_lib_fl_yywrap=yes |
| 4549 | else |
| 4550 | echo "$as_me: failed program was:" >&5 |
| 4551 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4552 | |
| 4553 | ac_cv_lib_fl_yywrap=no |
| 4554 | fi |
| 4555 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4556 | LIBS=$ac_check_lib_save_LIBS |
| 4557 | fi |
| 4558 | echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 |
| 4559 | echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 |
| 4560 | if test $ac_cv_lib_fl_yywrap = yes; then |
| 4561 | LEXLIB="-lfl" |
| 4562 | else |
| 4563 | echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 |
| 4564 | echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 |
| 4565 | if test "${ac_cv_lib_l_yywrap+set}" = set; then |
| 4566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4567 | else |
| 4568 | ac_check_lib_save_LIBS=$LIBS |
| 4569 | LIBS="-ll $LIBS" |
| 4570 | cat >conftest.$ac_ext <<_ACEOF |
| 4571 | #line $LINENO "configure" |
| 4572 | /* confdefs.h. */ |
| 4573 | _ACEOF |
| 4574 | cat confdefs.h >>conftest.$ac_ext |
| 4575 | cat >>conftest.$ac_ext <<_ACEOF |
| 4576 | /* end confdefs.h. */ |
| 4577 | |
| 4578 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 4579 | #ifdef __cplusplus |
| 4580 | extern "C" |
| 4581 | #endif |
| 4582 | /* We use char because int might match the return type of a gcc2 |
| 4583 | builtin and then its argument prototype would still apply. */ |
| 4584 | char yywrap (); |
| 4585 | int |
| 4586 | main () |
| 4587 | { |
| 4588 | yywrap (); |
| 4589 | ; |
| 4590 | return 0; |
| 4591 | } |
| 4592 | _ACEOF |
| 4593 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4594 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4595 | (eval $ac_link) 2>&5 |
| 4596 | ac_status=$? |
| 4597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4598 | (exit $ac_status); } && |
| 4599 | { ac_try='test -s conftest$ac_exeext' |
| 4600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4601 | (eval $ac_try) 2>&5 |
| 4602 | ac_status=$? |
| 4603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4604 | (exit $ac_status); }; }; then |
| 4605 | ac_cv_lib_l_yywrap=yes |
| 4606 | else |
| 4607 | echo "$as_me: failed program was:" >&5 |
| 4608 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4609 | |
| 4610 | ac_cv_lib_l_yywrap=no |
| 4611 | fi |
| 4612 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4613 | LIBS=$ac_check_lib_save_LIBS |
| 4614 | fi |
| 4615 | echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 |
| 4616 | echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 |
| 4617 | if test $ac_cv_lib_l_yywrap = yes; then |
| 4618 | LEXLIB="-ll" |
| 4619 | fi |
| 4620 | |
| 4621 | fi |
| 4622 | |
| 4623 | fi |
| 4624 | |
| 4625 | if test "x$LEX" != "x:"; then |
| 4626 | echo "$as_me:$LINENO: checking lex output file root" >&5 |
| 4627 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 |
| 4628 | if test "${ac_cv_prog_lex_root+set}" = set; then |
| 4629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4630 | else |
| 4631 | # The minimal lex program is just a single line: %%. But some broken lexes |
| 4632 | # (Solaris, I think it was) want two %% lines, so accommodate them. |
| 4633 | cat >conftest.l <<_ACEOF |
| 4634 | %% |
| 4635 | %% |
| 4636 | _ACEOF |
| 4637 | { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 |
| 4638 | (eval $LEX conftest.l) 2>&5 |
| 4639 | ac_status=$? |
| 4640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4641 | (exit $ac_status); } |
| 4642 | if test -f lex.yy.c; then |
| 4643 | ac_cv_prog_lex_root=lex.yy |
| 4644 | elif test -f lexyy.c; then |
| 4645 | ac_cv_prog_lex_root=lexyy |
| 4646 | else |
| 4647 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 |
| 4648 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} |
| 4649 | { (exit 1); exit 1; }; } |
| 4650 | fi |
| 4651 | fi |
| 4652 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 |
| 4653 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 |
| 4654 | rm -f conftest.l |
| 4655 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root |
| 4656 | |
| 4657 | echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 |
| 4658 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 |
| 4659 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then |
| 4660 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4661 | else |
| 4662 | # POSIX says lex can declare yytext either as a pointer or an array; the |
| 4663 | # default is implementation-dependent. Figure out which it is, since |
| 4664 | # not all implementations provide the %pointer and %array declarations. |
| 4665 | ac_cv_prog_lex_yytext_pointer=no |
| 4666 | echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c |
| 4667 | ac_save_LIBS=$LIBS |
| 4668 | LIBS="$LIBS $LEXLIB" |
| 4669 | cat >conftest.$ac_ext <<_ACEOF |
| 4670 | `cat $LEX_OUTPUT_ROOT.c` |
| 4671 | _ACEOF |
| 4672 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 4673 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4674 | (eval $ac_link) 2>&5 |
| 4675 | ac_status=$? |
| 4676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4677 | (exit $ac_status); } && |
| 4678 | { ac_try='test -s conftest$ac_exeext' |
| 4679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4680 | (eval $ac_try) 2>&5 |
| 4681 | ac_status=$? |
| 4682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4683 | (exit $ac_status); }; }; then |
| 4684 | ac_cv_prog_lex_yytext_pointer=yes |
| 4685 | else |
| 4686 | echo "$as_me: failed program was:" >&5 |
| 4687 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4688 | |
| 4689 | fi |
| 4690 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 4691 | LIBS=$ac_save_LIBS |
| 4692 | rm -f "${LEX_OUTPUT_ROOT}.c" |
| 4693 | |
| 4694 | fi |
| 4695 | echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 |
| 4696 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 |
| 4697 | if test $ac_cv_prog_lex_yytext_pointer = yes; then |
| 4698 | |
| 4699 | cat >>confdefs.h <<\_ACEOF |
| 4700 | #define YYTEXT_POINTER 1 |
| 4701 | _ACEOF |
| 4702 | |
| 4703 | fi |
| 4704 | |
| 4705 | fi |
| 4706 | # Extract the first word of "ar", so it can be a program name with args. |
| 4707 | set dummy ar; ac_word=$2 |
| 4708 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 4709 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 4710 | if test "${ac_cv_path_AR+set}" = set; then |
| 4711 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4712 | else |
| 4713 | case $AR in |
| 4714 | [\\/]* | ?:[\\/]*) |
| 4715 | ac_cv_path_AR="$AR" # Let the user override the test with a path. |
| 4716 | ;; |
| 4717 | *) |
| 4718 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4719 | as_dummy="$PATH:/usr/ucb:/usr/ccs/bin" |
| 4720 | for as_dir in $as_dummy |
| 4721 | do |
| 4722 | IFS=$as_save_IFS |
| 4723 | test -z "$as_dir" && as_dir=. |
| 4724 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4725 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 4726 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
| 4727 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4728 | break 2 |
| 4729 | fi |
| 4730 | done |
| 4731 | done |
| 4732 | |
| 4733 | test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar" |
| 4734 | ;; |
| 4735 | esac |
| 4736 | fi |
| 4737 | AR=$ac_cv_path_AR |
| 4738 | |
| 4739 | if test -n "$AR"; then |
| 4740 | echo "$as_me:$LINENO: result: $AR" >&5 |
| 4741 | echo "${ECHO_T}$AR" >&6 |
| 4742 | else |
| 4743 | echo "$as_me:$LINENO: result: no" >&5 |
| 4744 | echo "${ECHO_T}no" >&6 |
| 4745 | fi |
| 4746 | |
| 4747 | |
| 4748 | case "$build" in |
| 4749 | *cygwin*) |
| 4750 | case "$target" in |
| 4751 | *mingw*) |
| 4752 | CC="$CC -mno-cygwin" |
| 4753 | esac ;; |
| 4754 | esac |
| 4755 | |
| 4756 | # Check whether --enable-autoconf or --disable-autoconf was given. |
| 4757 | if test "${enable_autoconf+set}" = set; then |
| 4758 | enableval="$enable_autoconf" |
vlm | 97986e4 | 2004-06-05 08:47:18 +0000 | [diff] [blame] | 4759 | ADD_CFLAGS="-Werror -W" |
vlm | fa67ddc | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 4760 | fi; |
| 4761 | |
| 4762 | |
| 4763 | case "$GCC" in |
| 4764 | yes) |
| 4765 | CFLAGS="$CFLAGS -Wall" |
| 4766 | CFLAGS="$CFLAGS -Wshadow" |
| 4767 | CFLAGS="$CFLAGS -Wcast-qual" |
| 4768 | CFLAGS="$CFLAGS -Wcast-align" |
| 4769 | CFLAGS="$CFLAGS -Wmissing-prototypes" |
| 4770 | CFLAGS="$CFLAGS -Wmissing-declarations" |
| 4771 | CFLAGS="$CFLAGS -Wredundant-decls" |
| 4772 | CFLAGS="$CFLAGS -Wnested-externs" |
| 4773 | ;; |
| 4774 | esac |
| 4775 | |
| 4776 | |
| 4777 | |
| 4778 | echo "$as_me:$LINENO: checking for egrep" >&5 |
| 4779 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 |
| 4780 | if test "${ac_cv_prog_egrep+set}" = set; then |
| 4781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4782 | else |
| 4783 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
| 4784 | then ac_cv_prog_egrep='grep -E' |
| 4785 | else ac_cv_prog_egrep='egrep' |
| 4786 | fi |
| 4787 | fi |
| 4788 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
| 4789 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 |
| 4790 | EGREP=$ac_cv_prog_egrep |
| 4791 | |
| 4792 | |
| 4793 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
| 4794 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
| 4795 | if test "${ac_cv_header_stdc+set}" = set; then |
| 4796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4797 | else |
| 4798 | cat >conftest.$ac_ext <<_ACEOF |
| 4799 | #line $LINENO "configure" |
| 4800 | /* confdefs.h. */ |
| 4801 | _ACEOF |
| 4802 | cat confdefs.h >>conftest.$ac_ext |
| 4803 | cat >>conftest.$ac_ext <<_ACEOF |
| 4804 | /* end confdefs.h. */ |
| 4805 | #include <stdlib.h> |
| 4806 | #include <stdarg.h> |
| 4807 | #include <string.h> |
| 4808 | #include <float.h> |
| 4809 | |
| 4810 | int |
| 4811 | main () |
| 4812 | { |
| 4813 | |
| 4814 | ; |
| 4815 | return 0; |
| 4816 | } |
| 4817 | _ACEOF |
| 4818 | rm -f conftest.$ac_objext |
| 4819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4820 | (eval $ac_compile) 2>&5 |
| 4821 | ac_status=$? |
| 4822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4823 | (exit $ac_status); } && |
| 4824 | { ac_try='test -s conftest.$ac_objext' |
| 4825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4826 | (eval $ac_try) 2>&5 |
| 4827 | ac_status=$? |
| 4828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4829 | (exit $ac_status); }; }; then |
| 4830 | ac_cv_header_stdc=yes |
| 4831 | else |
| 4832 | echo "$as_me: failed program was:" >&5 |
| 4833 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4834 | |
| 4835 | ac_cv_header_stdc=no |
| 4836 | fi |
| 4837 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 4838 | |
| 4839 | if test $ac_cv_header_stdc = yes; then |
| 4840 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 4841 | cat >conftest.$ac_ext <<_ACEOF |
| 4842 | #line $LINENO "configure" |
| 4843 | /* confdefs.h. */ |
| 4844 | _ACEOF |
| 4845 | cat confdefs.h >>conftest.$ac_ext |
| 4846 | cat >>conftest.$ac_ext <<_ACEOF |
| 4847 | /* end confdefs.h. */ |
| 4848 | #include <string.h> |
| 4849 | |
| 4850 | _ACEOF |
| 4851 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4852 | $EGREP "memchr" >/dev/null 2>&1; then |
| 4853 | : |
| 4854 | else |
| 4855 | ac_cv_header_stdc=no |
| 4856 | fi |
| 4857 | rm -f conftest* |
| 4858 | |
| 4859 | fi |
| 4860 | |
| 4861 | if test $ac_cv_header_stdc = yes; then |
| 4862 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 4863 | cat >conftest.$ac_ext <<_ACEOF |
| 4864 | #line $LINENO "configure" |
| 4865 | /* confdefs.h. */ |
| 4866 | _ACEOF |
| 4867 | cat confdefs.h >>conftest.$ac_ext |
| 4868 | cat >>conftest.$ac_ext <<_ACEOF |
| 4869 | /* end confdefs.h. */ |
| 4870 | #include <stdlib.h> |
| 4871 | |
| 4872 | _ACEOF |
| 4873 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 4874 | $EGREP "free" >/dev/null 2>&1; then |
| 4875 | : |
| 4876 | else |
| 4877 | ac_cv_header_stdc=no |
| 4878 | fi |
| 4879 | rm -f conftest* |
| 4880 | |
| 4881 | fi |
| 4882 | |
| 4883 | if test $ac_cv_header_stdc = yes; then |
| 4884 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 4885 | if test "$cross_compiling" = yes; then |
| 4886 | : |
| 4887 | else |
| 4888 | cat >conftest.$ac_ext <<_ACEOF |
| 4889 | #line $LINENO "configure" |
| 4890 | /* confdefs.h. */ |
| 4891 | _ACEOF |
| 4892 | cat confdefs.h >>conftest.$ac_ext |
| 4893 | cat >>conftest.$ac_ext <<_ACEOF |
| 4894 | /* end confdefs.h. */ |
| 4895 | #include <ctype.h> |
| 4896 | #if ((' ' & 0x0FF) == 0x020) |
| 4897 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 4898 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 4899 | #else |
| 4900 | # define ISLOWER(c) \ |
| 4901 | (('a' <= (c) && (c) <= 'i') \ |
| 4902 | || ('j' <= (c) && (c) <= 'r') \ |
| 4903 | || ('s' <= (c) && (c) <= 'z')) |
| 4904 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 4905 | #endif |
| 4906 | |
| 4907 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 4908 | int |
| 4909 | main () |
| 4910 | { |
| 4911 | int i; |
| 4912 | for (i = 0; i < 256; i++) |
| 4913 | if (XOR (islower (i), ISLOWER (i)) |
| 4914 | || toupper (i) != TOUPPER (i)) |
| 4915 | exit(2); |
| 4916 | exit (0); |
| 4917 | } |
| 4918 | _ACEOF |
| 4919 | rm -f conftest$ac_exeext |
| 4920 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 4921 | (eval $ac_link) 2>&5 |
| 4922 | ac_status=$? |
| 4923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4924 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 4925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4926 | (eval $ac_try) 2>&5 |
| 4927 | ac_status=$? |
| 4928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4929 | (exit $ac_status); }; }; then |
| 4930 | : |
| 4931 | else |
| 4932 | echo "$as_me: program exited with status $ac_status" >&5 |
| 4933 | echo "$as_me: failed program was:" >&5 |
| 4934 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4935 | |
| 4936 | ( exit $ac_status ) |
| 4937 | ac_cv_header_stdc=no |
| 4938 | fi |
| 4939 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 4940 | fi |
| 4941 | fi |
| 4942 | fi |
| 4943 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
| 4944 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
| 4945 | if test $ac_cv_header_stdc = yes; then |
| 4946 | |
| 4947 | cat >>confdefs.h <<\_ACEOF |
| 4948 | #define STDC_HEADERS 1 |
| 4949 | _ACEOF |
| 4950 | |
| 4951 | fi |
| 4952 | |
| 4953 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 4954 | |
| 4955 | |
| 4956 | |
| 4957 | |
| 4958 | |
| 4959 | |
| 4960 | |
| 4961 | |
| 4962 | |
| 4963 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 4964 | inttypes.h stdint.h unistd.h |
| 4965 | do |
| 4966 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 4967 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 4968 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 4969 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 4970 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 4971 | else |
| 4972 | cat >conftest.$ac_ext <<_ACEOF |
| 4973 | #line $LINENO "configure" |
| 4974 | /* confdefs.h. */ |
| 4975 | _ACEOF |
| 4976 | cat confdefs.h >>conftest.$ac_ext |
| 4977 | cat >>conftest.$ac_ext <<_ACEOF |
| 4978 | /* end confdefs.h. */ |
| 4979 | $ac_includes_default |
| 4980 | |
| 4981 | #include <$ac_header> |
| 4982 | _ACEOF |
| 4983 | rm -f conftest.$ac_objext |
| 4984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 4985 | (eval $ac_compile) 2>&5 |
| 4986 | ac_status=$? |
| 4987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4988 | (exit $ac_status); } && |
| 4989 | { ac_try='test -s conftest.$ac_objext' |
| 4990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 4991 | (eval $ac_try) 2>&5 |
| 4992 | ac_status=$? |
| 4993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 4994 | (exit $ac_status); }; }; then |
| 4995 | eval "$as_ac_Header=yes" |
| 4996 | else |
| 4997 | echo "$as_me: failed program was:" >&5 |
| 4998 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 4999 | |
| 5000 | eval "$as_ac_Header=no" |
| 5001 | fi |
| 5002 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5003 | fi |
| 5004 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5005 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5006 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5007 | cat >>confdefs.h <<_ACEOF |
| 5008 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5009 | _ACEOF |
| 5010 | |
| 5011 | fi |
| 5012 | |
| 5013 | done |
| 5014 | |
| 5015 | |
| 5016 | |
| 5017 | for ac_header in errno.h |
| 5018 | do |
| 5019 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 5020 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5021 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5022 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5023 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5025 | fi |
| 5026 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5027 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5028 | else |
| 5029 | # Is the header compilable? |
| 5030 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
| 5031 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 |
| 5032 | cat >conftest.$ac_ext <<_ACEOF |
| 5033 | #line $LINENO "configure" |
| 5034 | /* confdefs.h. */ |
| 5035 | _ACEOF |
| 5036 | cat confdefs.h >>conftest.$ac_ext |
| 5037 | cat >>conftest.$ac_ext <<_ACEOF |
| 5038 | /* end confdefs.h. */ |
| 5039 | $ac_includes_default |
| 5040 | #include <$ac_header> |
| 5041 | _ACEOF |
| 5042 | rm -f conftest.$ac_objext |
| 5043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5044 | (eval $ac_compile) 2>&5 |
| 5045 | ac_status=$? |
| 5046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5047 | (exit $ac_status); } && |
| 5048 | { ac_try='test -s conftest.$ac_objext' |
| 5049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5050 | (eval $ac_try) 2>&5 |
| 5051 | ac_status=$? |
| 5052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5053 | (exit $ac_status); }; }; then |
| 5054 | ac_header_compiler=yes |
| 5055 | else |
| 5056 | echo "$as_me: failed program was:" >&5 |
| 5057 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5058 | |
| 5059 | ac_header_compiler=no |
| 5060 | fi |
| 5061 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5062 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
| 5063 | echo "${ECHO_T}$ac_header_compiler" >&6 |
| 5064 | |
| 5065 | # Is the header present? |
| 5066 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
| 5067 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 |
| 5068 | cat >conftest.$ac_ext <<_ACEOF |
| 5069 | #line $LINENO "configure" |
| 5070 | /* confdefs.h. */ |
| 5071 | _ACEOF |
| 5072 | cat confdefs.h >>conftest.$ac_ext |
| 5073 | cat >>conftest.$ac_ext <<_ACEOF |
| 5074 | /* end confdefs.h. */ |
| 5075 | #include <$ac_header> |
| 5076 | _ACEOF |
| 5077 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
| 5078 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 |
| 5079 | ac_status=$? |
| 5080 | grep -v '^ *+' conftest.er1 >conftest.err |
| 5081 | rm -f conftest.er1 |
| 5082 | cat conftest.err >&5 |
| 5083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5084 | (exit $ac_status); } >/dev/null; then |
| 5085 | if test -s conftest.err; then |
| 5086 | ac_cpp_err=$ac_c_preproc_warn_flag |
| 5087 | else |
| 5088 | ac_cpp_err= |
| 5089 | fi |
| 5090 | else |
| 5091 | ac_cpp_err=yes |
| 5092 | fi |
| 5093 | if test -z "$ac_cpp_err"; then |
| 5094 | ac_header_preproc=yes |
| 5095 | else |
| 5096 | echo "$as_me: failed program was:" >&5 |
| 5097 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5098 | |
| 5099 | ac_header_preproc=no |
| 5100 | fi |
| 5101 | rm -f conftest.err conftest.$ac_ext |
| 5102 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
| 5103 | echo "${ECHO_T}$ac_header_preproc" >&6 |
| 5104 | |
| 5105 | # So? What about this header? |
| 5106 | case $ac_header_compiler:$ac_header_preproc in |
| 5107 | yes:no ) |
| 5108 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 5109 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 5110 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5111 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5112 | ( |
| 5113 | cat <<\_ASBOX |
| 5114 | ## ------------------------------------ ## |
| 5115 | ## Report this to bug-autoconf@gnu.org. ## |
| 5116 | ## ------------------------------------ ## |
| 5117 | _ASBOX |
| 5118 | ) | |
| 5119 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5120 | ;; |
| 5121 | no:yes ) |
| 5122 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
| 5123 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
| 5124 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
| 5125 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
| 5126 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
| 5127 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
| 5128 | ( |
| 5129 | cat <<\_ASBOX |
| 5130 | ## ------------------------------------ ## |
| 5131 | ## Report this to bug-autoconf@gnu.org. ## |
| 5132 | ## ------------------------------------ ## |
| 5133 | _ASBOX |
| 5134 | ) | |
| 5135 | sed "s/^/$as_me: WARNING: /" >&2 |
| 5136 | ;; |
| 5137 | esac |
| 5138 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
| 5139 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
| 5140 | if eval "test \"\${$as_ac_Header+set}\" = set"; then |
| 5141 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5142 | else |
| 5143 | eval "$as_ac_Header=$ac_header_preproc" |
| 5144 | fi |
| 5145 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
| 5146 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 |
| 5147 | |
| 5148 | fi |
| 5149 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
| 5150 | cat >>confdefs.h <<_ACEOF |
| 5151 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 5152 | _ACEOF |
| 5153 | |
| 5154 | fi |
| 5155 | |
| 5156 | done |
| 5157 | |
| 5158 | |
| 5159 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
| 5160 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 |
| 5161 | if test "${ac_cv_c_bigendian+set}" = set; then |
| 5162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5163 | else |
| 5164 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 5165 | cat >conftest.$ac_ext <<_ACEOF |
| 5166 | #line $LINENO "configure" |
| 5167 | /* confdefs.h. */ |
| 5168 | _ACEOF |
| 5169 | cat confdefs.h >>conftest.$ac_ext |
| 5170 | cat >>conftest.$ac_ext <<_ACEOF |
| 5171 | /* end confdefs.h. */ |
| 5172 | #include <sys/types.h> |
| 5173 | #include <sys/param.h> |
| 5174 | |
| 5175 | int |
| 5176 | main () |
| 5177 | { |
| 5178 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
| 5179 | bogus endian macros |
| 5180 | #endif |
| 5181 | |
| 5182 | ; |
| 5183 | return 0; |
| 5184 | } |
| 5185 | _ACEOF |
| 5186 | rm -f conftest.$ac_objext |
| 5187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5188 | (eval $ac_compile) 2>&5 |
| 5189 | ac_status=$? |
| 5190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5191 | (exit $ac_status); } && |
| 5192 | { ac_try='test -s conftest.$ac_objext' |
| 5193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5194 | (eval $ac_try) 2>&5 |
| 5195 | ac_status=$? |
| 5196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5197 | (exit $ac_status); }; }; then |
| 5198 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 5199 | cat >conftest.$ac_ext <<_ACEOF |
| 5200 | #line $LINENO "configure" |
| 5201 | /* confdefs.h. */ |
| 5202 | _ACEOF |
| 5203 | cat confdefs.h >>conftest.$ac_ext |
| 5204 | cat >>conftest.$ac_ext <<_ACEOF |
| 5205 | /* end confdefs.h. */ |
| 5206 | #include <sys/types.h> |
| 5207 | #include <sys/param.h> |
| 5208 | |
| 5209 | int |
| 5210 | main () |
| 5211 | { |
| 5212 | #if BYTE_ORDER != BIG_ENDIAN |
| 5213 | not big endian |
| 5214 | #endif |
| 5215 | |
| 5216 | ; |
| 5217 | return 0; |
| 5218 | } |
| 5219 | _ACEOF |
| 5220 | rm -f conftest.$ac_objext |
| 5221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5222 | (eval $ac_compile) 2>&5 |
| 5223 | ac_status=$? |
| 5224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5225 | (exit $ac_status); } && |
| 5226 | { ac_try='test -s conftest.$ac_objext' |
| 5227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5228 | (eval $ac_try) 2>&5 |
| 5229 | ac_status=$? |
| 5230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5231 | (exit $ac_status); }; }; then |
| 5232 | ac_cv_c_bigendian=yes |
| 5233 | else |
| 5234 | echo "$as_me: failed program was:" >&5 |
| 5235 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5236 | |
| 5237 | ac_cv_c_bigendian=no |
| 5238 | fi |
| 5239 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5240 | else |
| 5241 | echo "$as_me: failed program was:" >&5 |
| 5242 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5243 | |
| 5244 | # It does not; compile a test program. |
| 5245 | if test "$cross_compiling" = yes; then |
| 5246 | # try to guess the endianness by grepping values into an object file |
| 5247 | ac_cv_c_bigendian=unknown |
| 5248 | cat >conftest.$ac_ext <<_ACEOF |
| 5249 | #line $LINENO "configure" |
| 5250 | /* confdefs.h. */ |
| 5251 | _ACEOF |
| 5252 | cat confdefs.h >>conftest.$ac_ext |
| 5253 | cat >>conftest.$ac_ext <<_ACEOF |
| 5254 | /* end confdefs.h. */ |
| 5255 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 5256 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 5257 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
| 5258 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 5259 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 5260 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
| 5261 | int |
| 5262 | main () |
| 5263 | { |
| 5264 | _ascii (); _ebcdic (); |
| 5265 | ; |
| 5266 | return 0; |
| 5267 | } |
| 5268 | _ACEOF |
| 5269 | rm -f conftest.$ac_objext |
| 5270 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5271 | (eval $ac_compile) 2>&5 |
| 5272 | ac_status=$? |
| 5273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5274 | (exit $ac_status); } && |
| 5275 | { ac_try='test -s conftest.$ac_objext' |
| 5276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5277 | (eval $ac_try) 2>&5 |
| 5278 | ac_status=$? |
| 5279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5280 | (exit $ac_status); }; }; then |
| 5281 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
| 5282 | ac_cv_c_bigendian=yes |
| 5283 | fi |
| 5284 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 5285 | if test "$ac_cv_c_bigendian" = unknown; then |
| 5286 | ac_cv_c_bigendian=no |
| 5287 | else |
| 5288 | # finding both strings is unlikely to happen, but who knows? |
| 5289 | ac_cv_c_bigendian=unknown |
| 5290 | fi |
| 5291 | fi |
| 5292 | else |
| 5293 | echo "$as_me: failed program was:" >&5 |
| 5294 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5295 | |
| 5296 | fi |
| 5297 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5298 | else |
| 5299 | cat >conftest.$ac_ext <<_ACEOF |
| 5300 | #line $LINENO "configure" |
| 5301 | /* confdefs.h. */ |
| 5302 | _ACEOF |
| 5303 | cat confdefs.h >>conftest.$ac_ext |
| 5304 | cat >>conftest.$ac_ext <<_ACEOF |
| 5305 | /* end confdefs.h. */ |
| 5306 | int |
| 5307 | main () |
| 5308 | { |
| 5309 | /* Are we little or big endian? From Harbison&Steele. */ |
| 5310 | union |
| 5311 | { |
| 5312 | long l; |
| 5313 | char c[sizeof (long)]; |
| 5314 | } u; |
| 5315 | u.l = 1; |
| 5316 | exit (u.c[sizeof (long) - 1] == 1); |
| 5317 | } |
| 5318 | _ACEOF |
| 5319 | rm -f conftest$ac_exeext |
| 5320 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5321 | (eval $ac_link) 2>&5 |
| 5322 | ac_status=$? |
| 5323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5324 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
| 5325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5326 | (eval $ac_try) 2>&5 |
| 5327 | ac_status=$? |
| 5328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5329 | (exit $ac_status); }; }; then |
| 5330 | ac_cv_c_bigendian=no |
| 5331 | else |
| 5332 | echo "$as_me: program exited with status $ac_status" >&5 |
| 5333 | echo "$as_me: failed program was:" >&5 |
| 5334 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5335 | |
| 5336 | ( exit $ac_status ) |
| 5337 | ac_cv_c_bigendian=yes |
| 5338 | fi |
| 5339 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
| 5340 | fi |
| 5341 | fi |
| 5342 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5343 | fi |
| 5344 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
| 5345 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 |
| 5346 | case $ac_cv_c_bigendian in |
| 5347 | yes) |
| 5348 | |
| 5349 | cat >>confdefs.h <<\_ACEOF |
| 5350 | #define WORDS_BIGENDIAN 1 |
| 5351 | _ACEOF |
| 5352 | ;; |
| 5353 | no) |
| 5354 | ;; |
| 5355 | *) |
| 5356 | { { echo "$as_me:$LINENO: error: unknown endianness |
| 5357 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
| 5358 | echo "$as_me: error: unknown endianness |
| 5359 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
| 5360 | { (exit 1); exit 1; }; } ;; |
| 5361 | esac |
| 5362 | |
| 5363 | echo "$as_me:$LINENO: checking for off_t" >&5 |
| 5364 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 |
| 5365 | if test "${ac_cv_type_off_t+set}" = set; then |
| 5366 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5367 | else |
| 5368 | cat >conftest.$ac_ext <<_ACEOF |
| 5369 | #line $LINENO "configure" |
| 5370 | /* confdefs.h. */ |
| 5371 | _ACEOF |
| 5372 | cat confdefs.h >>conftest.$ac_ext |
| 5373 | cat >>conftest.$ac_ext <<_ACEOF |
| 5374 | /* end confdefs.h. */ |
| 5375 | $ac_includes_default |
| 5376 | int |
| 5377 | main () |
| 5378 | { |
| 5379 | if ((off_t *) 0) |
| 5380 | return 0; |
| 5381 | if (sizeof (off_t)) |
| 5382 | return 0; |
| 5383 | ; |
| 5384 | return 0; |
| 5385 | } |
| 5386 | _ACEOF |
| 5387 | rm -f conftest.$ac_objext |
| 5388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5389 | (eval $ac_compile) 2>&5 |
| 5390 | ac_status=$? |
| 5391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5392 | (exit $ac_status); } && |
| 5393 | { ac_try='test -s conftest.$ac_objext' |
| 5394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5395 | (eval $ac_try) 2>&5 |
| 5396 | ac_status=$? |
| 5397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5398 | (exit $ac_status); }; }; then |
| 5399 | ac_cv_type_off_t=yes |
| 5400 | else |
| 5401 | echo "$as_me: failed program was:" >&5 |
| 5402 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5403 | |
| 5404 | ac_cv_type_off_t=no |
| 5405 | fi |
| 5406 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5407 | fi |
| 5408 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
| 5409 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 |
| 5410 | if test $ac_cv_type_off_t = yes; then |
| 5411 | : |
| 5412 | else |
| 5413 | |
| 5414 | cat >>confdefs.h <<_ACEOF |
| 5415 | #define off_t long |
| 5416 | _ACEOF |
| 5417 | |
| 5418 | fi |
| 5419 | |
| 5420 | echo "$as_me:$LINENO: checking for size_t" >&5 |
| 5421 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 |
| 5422 | if test "${ac_cv_type_size_t+set}" = set; then |
| 5423 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5424 | else |
| 5425 | cat >conftest.$ac_ext <<_ACEOF |
| 5426 | #line $LINENO "configure" |
| 5427 | /* confdefs.h. */ |
| 5428 | _ACEOF |
| 5429 | cat confdefs.h >>conftest.$ac_ext |
| 5430 | cat >>conftest.$ac_ext <<_ACEOF |
| 5431 | /* end confdefs.h. */ |
| 5432 | $ac_includes_default |
| 5433 | int |
| 5434 | main () |
| 5435 | { |
| 5436 | if ((size_t *) 0) |
| 5437 | return 0; |
| 5438 | if (sizeof (size_t)) |
| 5439 | return 0; |
| 5440 | ; |
| 5441 | return 0; |
| 5442 | } |
| 5443 | _ACEOF |
| 5444 | rm -f conftest.$ac_objext |
| 5445 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5446 | (eval $ac_compile) 2>&5 |
| 5447 | ac_status=$? |
| 5448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5449 | (exit $ac_status); } && |
| 5450 | { ac_try='test -s conftest.$ac_objext' |
| 5451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5452 | (eval $ac_try) 2>&5 |
| 5453 | ac_status=$? |
| 5454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5455 | (exit $ac_status); }; }; then |
| 5456 | ac_cv_type_size_t=yes |
| 5457 | else |
| 5458 | echo "$as_me: failed program was:" >&5 |
| 5459 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5460 | |
| 5461 | ac_cv_type_size_t=no |
| 5462 | fi |
| 5463 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5464 | fi |
| 5465 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
| 5466 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 |
| 5467 | if test $ac_cv_type_size_t = yes; then |
| 5468 | : |
| 5469 | else |
| 5470 | |
| 5471 | cat >>confdefs.h <<_ACEOF |
| 5472 | #define size_t unsigned |
| 5473 | _ACEOF |
| 5474 | |
| 5475 | fi |
| 5476 | |
| 5477 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 5478 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 |
| 5479 | if test "${ac_cv_struct_tm+set}" = set; then |
| 5480 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5481 | else |
| 5482 | cat >conftest.$ac_ext <<_ACEOF |
| 5483 | #line $LINENO "configure" |
| 5484 | /* confdefs.h. */ |
| 5485 | _ACEOF |
| 5486 | cat confdefs.h >>conftest.$ac_ext |
| 5487 | cat >>conftest.$ac_ext <<_ACEOF |
| 5488 | /* end confdefs.h. */ |
| 5489 | #include <sys/types.h> |
| 5490 | #include <time.h> |
| 5491 | |
| 5492 | int |
| 5493 | main () |
| 5494 | { |
| 5495 | struct tm *tp; tp->tm_sec; |
| 5496 | ; |
| 5497 | return 0; |
| 5498 | } |
| 5499 | _ACEOF |
| 5500 | rm -f conftest.$ac_objext |
| 5501 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5502 | (eval $ac_compile) 2>&5 |
| 5503 | ac_status=$? |
| 5504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5505 | (exit $ac_status); } && |
| 5506 | { ac_try='test -s conftest.$ac_objext' |
| 5507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5508 | (eval $ac_try) 2>&5 |
| 5509 | ac_status=$? |
| 5510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5511 | (exit $ac_status); }; }; then |
| 5512 | ac_cv_struct_tm=time.h |
| 5513 | else |
| 5514 | echo "$as_me: failed program was:" >&5 |
| 5515 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5516 | |
| 5517 | ac_cv_struct_tm=sys/time.h |
| 5518 | fi |
| 5519 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5520 | fi |
| 5521 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
| 5522 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 |
| 5523 | if test $ac_cv_struct_tm = sys/time.h; then |
| 5524 | |
| 5525 | cat >>confdefs.h <<\_ACEOF |
| 5526 | #define TM_IN_SYS_TIME 1 |
| 5527 | _ACEOF |
| 5528 | |
| 5529 | fi |
| 5530 | |
| 5531 | echo "$as_me:$LINENO: checking for intmax_t" >&5 |
| 5532 | echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6 |
| 5533 | if test "${ac_cv_type_intmax_t+set}" = set; then |
| 5534 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5535 | else |
| 5536 | cat >conftest.$ac_ext <<_ACEOF |
| 5537 | #line $LINENO "configure" |
| 5538 | /* confdefs.h. */ |
| 5539 | _ACEOF |
| 5540 | cat confdefs.h >>conftest.$ac_ext |
| 5541 | cat >>conftest.$ac_ext <<_ACEOF |
| 5542 | /* end confdefs.h. */ |
| 5543 | $ac_includes_default |
| 5544 | int |
| 5545 | main () |
| 5546 | { |
| 5547 | if ((intmax_t *) 0) |
| 5548 | return 0; |
| 5549 | if (sizeof (intmax_t)) |
| 5550 | return 0; |
| 5551 | ; |
| 5552 | return 0; |
| 5553 | } |
| 5554 | _ACEOF |
| 5555 | rm -f conftest.$ac_objext |
| 5556 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 5557 | (eval $ac_compile) 2>&5 |
| 5558 | ac_status=$? |
| 5559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5560 | (exit $ac_status); } && |
| 5561 | { ac_try='test -s conftest.$ac_objext' |
| 5562 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5563 | (eval $ac_try) 2>&5 |
| 5564 | ac_status=$? |
| 5565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5566 | (exit $ac_status); }; }; then |
| 5567 | ac_cv_type_intmax_t=yes |
| 5568 | else |
| 5569 | echo "$as_me: failed program was:" >&5 |
| 5570 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5571 | |
| 5572 | ac_cv_type_intmax_t=no |
| 5573 | fi |
| 5574 | rm -f conftest.$ac_objext conftest.$ac_ext |
| 5575 | fi |
| 5576 | echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5 |
| 5577 | echo "${ECHO_T}$ac_cv_type_intmax_t" >&6 |
| 5578 | if test $ac_cv_type_intmax_t = yes; then |
| 5579 | : |
| 5580 | else |
| 5581 | |
| 5582 | cat >>confdefs.h <<_ACEOF |
| 5583 | #define intmax_t int64_t |
| 5584 | _ACEOF |
| 5585 | |
| 5586 | fi |
| 5587 | |
| 5588 | |
| 5589 | |
| 5590 | |
| 5591 | for ac_func in strtoimax strtoll |
| 5592 | do |
| 5593 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 5594 | echo "$as_me:$LINENO: checking for $ac_func" >&5 |
| 5595 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
| 5596 | if eval "test \"\${$as_ac_var+set}\" = set"; then |
| 5597 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 5598 | else |
| 5599 | cat >conftest.$ac_ext <<_ACEOF |
| 5600 | #line $LINENO "configure" |
| 5601 | /* confdefs.h. */ |
| 5602 | _ACEOF |
| 5603 | cat confdefs.h >>conftest.$ac_ext |
| 5604 | cat >>conftest.$ac_ext <<_ACEOF |
| 5605 | /* end confdefs.h. */ |
| 5606 | /* System header to define __stub macros and hopefully few prototypes, |
| 5607 | which can conflict with char $ac_func (); below. |
| 5608 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5609 | <limits.h> exists even on freestanding compilers. */ |
| 5610 | #ifdef __STDC__ |
| 5611 | # include <limits.h> |
| 5612 | #else |
| 5613 | # include <assert.h> |
| 5614 | #endif |
| 5615 | /* Override any gcc2 internal prototype to avoid an error. */ |
| 5616 | #ifdef __cplusplus |
| 5617 | extern "C" |
| 5618 | { |
| 5619 | #endif |
| 5620 | /* We use char because int might match the return type of a gcc2 |
| 5621 | builtin and then its argument prototype would still apply. */ |
| 5622 | char $ac_func (); |
| 5623 | /* The GNU C library defines this for functions which it implements |
| 5624 | to always fail with ENOSYS. Some functions are actually named |
| 5625 | something starting with __ and the normal name is an alias. */ |
| 5626 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
| 5627 | choke me |
| 5628 | #else |
| 5629 | char (*f) () = $ac_func; |
| 5630 | #endif |
| 5631 | #ifdef __cplusplus |
| 5632 | } |
| 5633 | #endif |
| 5634 | |
| 5635 | int |
| 5636 | main () |
| 5637 | { |
| 5638 | return f != $ac_func; |
| 5639 | ; |
| 5640 | return 0; |
| 5641 | } |
| 5642 | _ACEOF |
| 5643 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 5644 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 5645 | (eval $ac_link) 2>&5 |
| 5646 | ac_status=$? |
| 5647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5648 | (exit $ac_status); } && |
| 5649 | { ac_try='test -s conftest$ac_exeext' |
| 5650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 5651 | (eval $ac_try) 2>&5 |
| 5652 | ac_status=$? |
| 5653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 5654 | (exit $ac_status); }; }; then |
| 5655 | eval "$as_ac_var=yes" |
| 5656 | else |
| 5657 | echo "$as_me: failed program was:" >&5 |
| 5658 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5659 | |
| 5660 | eval "$as_ac_var=no" |
| 5661 | fi |
| 5662 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
| 5663 | fi |
| 5664 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
| 5665 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 |
| 5666 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
| 5667 | cat >>confdefs.h <<_ACEOF |
| 5668 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 5669 | _ACEOF |
| 5670 | |
| 5671 | fi |
| 5672 | done |
| 5673 | |
| 5674 | |
| 5675 | |
| 5676 | |
| 5677 | |
| 5678 | ac_config_headers="$ac_config_headers config.h" |
| 5679 | |
| 5680 | |
| 5681 | ac_config_files="$ac_config_files libasn1compiler/Makefile skeletons/tests/Makefile libasn1parser/Makefile libasn1print/Makefile asn1c/tests/Makefile libasn1fix/Makefile skeletons/Makefile examples/Makefile tests/Makefile asn1c/Makefile doc/Makefile Makefile" |
| 5682 | cat >confcache <<\_ACEOF |
| 5683 | # This file is a shell script that caches the results of configure |
| 5684 | # tests run on this system so they can be shared between configure |
| 5685 | # scripts and configure runs, see configure's option --config-cache. |
| 5686 | # It is not useful on other systems. If it contains results you don't |
| 5687 | # want to keep, you may remove or edit it. |
| 5688 | # |
| 5689 | # config.status only pays attention to the cache file if you give it |
| 5690 | # the --recheck option to rerun configure. |
| 5691 | # |
| 5692 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 5693 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 5694 | # following values. |
| 5695 | |
| 5696 | _ACEOF |
| 5697 | |
| 5698 | # The following way of writing the cache mishandles newlines in values, |
| 5699 | # but we know of no workaround that is simple, portable, and efficient. |
| 5700 | # So, don't put newlines in cache variables' values. |
| 5701 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 5702 | # and sets the high bit in the cache file unless we assign to the vars. |
| 5703 | { |
| 5704 | (set) 2>&1 | |
| 5705 | case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 5706 | *ac_space=\ *) |
| 5707 | # `set' does not quote correctly, so add quotes (double-quote |
| 5708 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
| 5709 | sed -n \ |
| 5710 | "s/'/'\\\\''/g; |
| 5711 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 5712 | ;; |
| 5713 | *) |
| 5714 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 5715 | sed -n \ |
| 5716 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 5717 | ;; |
| 5718 | esac; |
| 5719 | } | |
| 5720 | sed ' |
| 5721 | t clear |
| 5722 | : clear |
| 5723 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 5724 | t end |
| 5725 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 5726 | : end' >>confcache |
| 5727 | if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 5728 | if test -w $cache_file; then |
| 5729 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 5730 | cat confcache >$cache_file |
| 5731 | else |
| 5732 | echo "not updating unwritable cache $cache_file" |
| 5733 | fi |
| 5734 | fi |
| 5735 | rm -f confcache |
| 5736 | |
| 5737 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 5738 | # Let make expand exec_prefix. |
| 5739 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 5740 | |
| 5741 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 5742 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 5743 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 5744 | # (actually we leave an empty line to preserve line numbers). |
| 5745 | if test "x$srcdir" = x.; then |
| 5746 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 5747 | s/:*\$(srcdir):*/:/; |
| 5748 | s/:*\${srcdir}:*/:/; |
| 5749 | s/:*@srcdir@:*/:/; |
| 5750 | s/^\([^=]*=[ ]*\):*/\1/; |
| 5751 | s/:*$//; |
| 5752 | s/^[^=]*=[ ]*$//; |
| 5753 | }' |
| 5754 | fi |
| 5755 | |
| 5756 | DEFS=-DHAVE_CONFIG_H |
| 5757 | |
| 5758 | ac_libobjs= |
| 5759 | ac_ltlibobjs= |
| 5760 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 5761 | # 1. Remove the extension, and $U if already installed. |
| 5762 | ac_i=`echo "$ac_i" | |
| 5763 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 5764 | # 2. Add them. |
| 5765 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 5766 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 5767 | done |
| 5768 | LIBOBJS=$ac_libobjs |
| 5769 | |
| 5770 | LTLIBOBJS=$ac_ltlibobjs |
| 5771 | |
| 5772 | |
| 5773 | |
| 5774 | : ${CONFIG_STATUS=./config.status} |
| 5775 | ac_clean_files_save=$ac_clean_files |
| 5776 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 5777 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 5778 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 5779 | cat >$CONFIG_STATUS <<_ACEOF |
| 5780 | #! $SHELL |
| 5781 | # Generated by $as_me. |
| 5782 | # Run this file to recreate the current configuration. |
| 5783 | # Compiler output produced by configure, useful for debugging |
| 5784 | # configure, is in config.log if it exists. |
| 5785 | |
| 5786 | debug=false |
| 5787 | ac_cs_recheck=false |
| 5788 | ac_cs_silent=false |
| 5789 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 5790 | _ACEOF |
| 5791 | |
| 5792 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 5793 | ## --------------------- ## |
| 5794 | ## M4sh Initialization. ## |
| 5795 | ## --------------------- ## |
| 5796 | |
| 5797 | # Be Bourne compatible |
| 5798 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 5799 | emulate sh |
| 5800 | NULLCMD=: |
| 5801 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 5802 | # is contrary to our usage. Disable this feature. |
| 5803 | alias -g '${1+"$@"}'='"$@"' |
| 5804 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 5805 | set -o posix |
| 5806 | fi |
| 5807 | |
| 5808 | # Support unset when possible. |
| 5809 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
| 5810 | as_unset=unset |
| 5811 | else |
| 5812 | as_unset=false |
| 5813 | fi |
| 5814 | |
| 5815 | |
| 5816 | # Work around bugs in pre-3.0 UWIN ksh. |
| 5817 | $as_unset ENV MAIL MAILPATH |
| 5818 | PS1='$ ' |
| 5819 | PS2='> ' |
| 5820 | PS4='+ ' |
| 5821 | |
| 5822 | # NLS nuisances. |
| 5823 | for as_var in \ |
| 5824 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 5825 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 5826 | LC_TELEPHONE LC_TIME |
| 5827 | do |
| 5828 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 5829 | eval $as_var=C; export $as_var |
| 5830 | else |
| 5831 | $as_unset $as_var |
| 5832 | fi |
| 5833 | done |
| 5834 | |
| 5835 | # Required to use basename. |
| 5836 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 5837 | as_expr=expr |
| 5838 | else |
| 5839 | as_expr=false |
| 5840 | fi |
| 5841 | |
| 5842 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 5843 | as_basename=basename |
| 5844 | else |
| 5845 | as_basename=false |
| 5846 | fi |
| 5847 | |
| 5848 | |
| 5849 | # Name of the executable. |
| 5850 | as_me=`$as_basename "$0" || |
| 5851 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 5852 | X"$0" : 'X\(//\)$' \| \ |
| 5853 | X"$0" : 'X\(/\)$' \| \ |
| 5854 | . : '\(.\)' 2>/dev/null || |
| 5855 | echo X/"$0" | |
| 5856 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 5857 | /^X\/\(\/\/\)$/{ s//\1/; q; } |
| 5858 | /^X\/\(\/\).*/{ s//\1/; q; } |
| 5859 | s/.*/./; q'` |
| 5860 | |
| 5861 | |
| 5862 | # PATH needs CR, and LINENO needs CR and PATH. |
| 5863 | # Avoid depending upon Character Ranges. |
| 5864 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 5865 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 5866 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 5867 | as_cr_digits='0123456789' |
| 5868 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 5869 | |
| 5870 | # The user is always right. |
| 5871 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5872 | echo "#! /bin/sh" >conf$$.sh |
| 5873 | echo "exit 0" >>conf$$.sh |
| 5874 | chmod +x conf$$.sh |
| 5875 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5876 | PATH_SEPARATOR=';' |
| 5877 | else |
| 5878 | PATH_SEPARATOR=: |
| 5879 | fi |
| 5880 | rm -f conf$$.sh |
| 5881 | fi |
| 5882 | |
| 5883 | |
| 5884 | as_lineno_1=$LINENO |
| 5885 | as_lineno_2=$LINENO |
| 5886 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 5887 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 5888 | test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 5889 | # Find who we are. Look in the path if we contain no path at all |
| 5890 | # relative or not. |
| 5891 | case $0 in |
| 5892 | *[\\/]* ) as_myself=$0 ;; |
| 5893 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5894 | for as_dir in $PATH |
| 5895 | do |
| 5896 | IFS=$as_save_IFS |
| 5897 | test -z "$as_dir" && as_dir=. |
| 5898 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 5899 | done |
| 5900 | |
| 5901 | ;; |
| 5902 | esac |
| 5903 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 5904 | # in which case we are not to be found in the path. |
| 5905 | if test "x$as_myself" = x; then |
| 5906 | as_myself=$0 |
| 5907 | fi |
| 5908 | if test ! -f "$as_myself"; then |
| 5909 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 5910 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 5911 | { (exit 1); exit 1; }; } |
| 5912 | fi |
| 5913 | case $CONFIG_SHELL in |
| 5914 | '') |
| 5915 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5916 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 5917 | do |
| 5918 | IFS=$as_save_IFS |
| 5919 | test -z "$as_dir" && as_dir=. |
| 5920 | for as_base in sh bash ksh sh5; do |
| 5921 | case $as_dir in |
| 5922 | /*) |
| 5923 | if ("$as_dir/$as_base" -c ' |
| 5924 | as_lineno_1=$LINENO |
| 5925 | as_lineno_2=$LINENO |
| 5926 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 5927 | test "x$as_lineno_1" != "x$as_lineno_2" && |
| 5928 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 5929 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 5930 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 5931 | CONFIG_SHELL=$as_dir/$as_base |
| 5932 | export CONFIG_SHELL |
| 5933 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 5934 | fi;; |
| 5935 | esac |
| 5936 | done |
| 5937 | done |
| 5938 | ;; |
| 5939 | esac |
| 5940 | |
| 5941 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 5942 | # uniformly replaced by the line number. The first 'sed' inserts a |
| 5943 | # line-number line before each line; the second 'sed' does the real |
| 5944 | # work. The second script uses 'N' to pair each line-number line |
| 5945 | # with the numbered line, and appends trailing '-' during |
| 5946 | # substitution so that $LINENO is not a special case at line end. |
| 5947 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 5948 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 5949 | sed '=' <$as_myself | |
| 5950 | sed ' |
| 5951 | N |
| 5952 | s,$,-, |
| 5953 | : loop |
| 5954 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 5955 | t loop |
| 5956 | s,-$,, |
| 5957 | s,^['$as_cr_digits']*\n,, |
| 5958 | ' >$as_me.lineno && |
| 5959 | chmod +x $as_me.lineno || |
| 5960 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 5961 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 5962 | { (exit 1); exit 1; }; } |
| 5963 | |
| 5964 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 5965 | # (the dirname of $[0] is not the place where we might find the |
| 5966 | # original and so on. Autoconf is especially sensible to this). |
| 5967 | . ./$as_me.lineno |
| 5968 | # Exit status is that of the last command. |
| 5969 | exit |
| 5970 | } |
| 5971 | |
| 5972 | |
| 5973 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 5974 | *c*,-n*) ECHO_N= ECHO_C=' |
| 5975 | ' ECHO_T=' ' ;; |
| 5976 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 5977 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 5978 | esac |
| 5979 | |
| 5980 | if expr a : '\(a\)' >/dev/null 2>&1; then |
| 5981 | as_expr=expr |
| 5982 | else |
| 5983 | as_expr=false |
| 5984 | fi |
| 5985 | |
| 5986 | rm -f conf$$ conf$$.exe conf$$.file |
| 5987 | echo >conf$$.file |
| 5988 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 5989 | # We could just check for DJGPP; but this test a) works b) is more generic |
| 5990 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 5991 | if test -f conf$$.exe; then |
| 5992 | # Don't use ln at all; we don't have any links |
| 5993 | as_ln_s='cp -p' |
| 5994 | else |
| 5995 | as_ln_s='ln -s' |
| 5996 | fi |
| 5997 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 5998 | as_ln_s=ln |
| 5999 | else |
| 6000 | as_ln_s='cp -p' |
| 6001 | fi |
| 6002 | rm -f conf$$ conf$$.exe conf$$.file |
| 6003 | |
| 6004 | if mkdir -p . 2>/dev/null; then |
| 6005 | as_mkdir_p=: |
| 6006 | else |
| 6007 | as_mkdir_p=false |
| 6008 | fi |
| 6009 | |
| 6010 | as_executable_p="test -f" |
| 6011 | |
| 6012 | # Sed expression to map a string onto a valid CPP name. |
| 6013 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
| 6014 | |
| 6015 | # Sed expression to map a string onto a valid variable name. |
| 6016 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
| 6017 | |
| 6018 | |
| 6019 | # IFS |
| 6020 | # We need space, tab and new line, in precisely that order. |
| 6021 | as_nl=' |
| 6022 | ' |
| 6023 | IFS=" $as_nl" |
| 6024 | |
| 6025 | # CDPATH. |
| 6026 | $as_unset CDPATH |
| 6027 | |
| 6028 | exec 6>&1 |
| 6029 | |
| 6030 | # Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 6031 | # report actual input values of CONFIG_FILES etc. instead of their |
| 6032 | # values after options handling. Logging --version etc. is OK. |
| 6033 | exec 5>>config.log |
| 6034 | { |
| 6035 | echo |
| 6036 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 6037 | ## Running $as_me. ## |
| 6038 | _ASBOX |
| 6039 | } >&5 |
| 6040 | cat >&5 <<_CSEOF |
| 6041 | |
| 6042 | This file was extended by $as_me, which was |
| 6043 | generated by GNU Autoconf 2.57. Invocation command line was |
| 6044 | |
| 6045 | CONFIG_FILES = $CONFIG_FILES |
| 6046 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 6047 | CONFIG_LINKS = $CONFIG_LINKS |
| 6048 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 6049 | $ $0 $@ |
| 6050 | |
| 6051 | _CSEOF |
| 6052 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 6053 | echo >&5 |
| 6054 | _ACEOF |
| 6055 | |
| 6056 | # Files that config.status was made for. |
| 6057 | if test -n "$ac_config_files"; then |
| 6058 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 6059 | fi |
| 6060 | |
| 6061 | if test -n "$ac_config_headers"; then |
| 6062 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 6063 | fi |
| 6064 | |
| 6065 | if test -n "$ac_config_links"; then |
| 6066 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 6067 | fi |
| 6068 | |
| 6069 | if test -n "$ac_config_commands"; then |
| 6070 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 6071 | fi |
| 6072 | |
| 6073 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6074 | |
| 6075 | ac_cs_usage="\ |
| 6076 | \`$as_me' instantiates files from templates according to the |
| 6077 | current configuration. |
| 6078 | |
| 6079 | Usage: $0 [OPTIONS] [FILE]... |
| 6080 | |
| 6081 | -h, --help print this help, then exit |
| 6082 | -V, --version print version number, then exit |
| 6083 | -q, --quiet do not print progress messages |
| 6084 | -d, --debug don't remove temporary files |
| 6085 | --recheck update $as_me by reconfiguring in the same conditions |
| 6086 | --file=FILE[:TEMPLATE] |
| 6087 | instantiate the configuration file FILE |
| 6088 | --header=FILE[:TEMPLATE] |
| 6089 | instantiate the configuration header FILE |
| 6090 | |
| 6091 | Configuration files: |
| 6092 | $config_files |
| 6093 | |
| 6094 | Configuration headers: |
| 6095 | $config_headers |
| 6096 | |
| 6097 | Configuration commands: |
| 6098 | $config_commands |
| 6099 | |
| 6100 | Report bugs to <bug-autoconf@gnu.org>." |
| 6101 | _ACEOF |
| 6102 | |
| 6103 | cat >>$CONFIG_STATUS <<_ACEOF |
| 6104 | ac_cs_version="\\ |
| 6105 | config.status |
| 6106 | configured by $0, generated by GNU Autoconf 2.57, |
| 6107 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 6108 | |
| 6109 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 6110 | Free Software Foundation, Inc. |
| 6111 | This config.status script is free software; the Free Software Foundation |
| 6112 | gives unlimited permission to copy, distribute and modify it." |
| 6113 | srcdir=$srcdir |
| 6114 | INSTALL="$INSTALL" |
| 6115 | _ACEOF |
| 6116 | |
| 6117 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6118 | # If no file are specified by the user, then we need to provide default |
| 6119 | # value. By we need to know if files were specified by the user. |
| 6120 | ac_need_defaults=: |
| 6121 | while test $# != 0 |
| 6122 | do |
| 6123 | case $1 in |
| 6124 | --*=*) |
| 6125 | ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 6126 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 6127 | ac_shift=: |
| 6128 | ;; |
| 6129 | -*) |
| 6130 | ac_option=$1 |
| 6131 | ac_optarg=$2 |
| 6132 | ac_shift=shift |
| 6133 | ;; |
| 6134 | *) # This is not an option, so the user has probably given explicit |
| 6135 | # arguments. |
| 6136 | ac_option=$1 |
| 6137 | ac_need_defaults=false;; |
| 6138 | esac |
| 6139 | |
| 6140 | case $ac_option in |
| 6141 | # Handling of the options. |
| 6142 | _ACEOF |
| 6143 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6144 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 6145 | ac_cs_recheck=: ;; |
| 6146 | --version | --vers* | -V ) |
| 6147 | echo "$ac_cs_version"; exit 0 ;; |
| 6148 | --he | --h) |
| 6149 | # Conflict between --help and --header |
| 6150 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 6151 | Try \`$0 --help' for more information." >&5 |
| 6152 | echo "$as_me: error: ambiguous option: $1 |
| 6153 | Try \`$0 --help' for more information." >&2;} |
| 6154 | { (exit 1); exit 1; }; };; |
| 6155 | --help | --hel | -h ) |
| 6156 | echo "$ac_cs_usage"; exit 0 ;; |
| 6157 | --debug | --d* | -d ) |
| 6158 | debug=: ;; |
| 6159 | --file | --fil | --fi | --f ) |
| 6160 | $ac_shift |
| 6161 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 6162 | ac_need_defaults=false;; |
| 6163 | --header | --heade | --head | --hea ) |
| 6164 | $ac_shift |
| 6165 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 6166 | ac_need_defaults=false;; |
| 6167 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 6168 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 6169 | ac_cs_silent=: ;; |
| 6170 | |
| 6171 | # This is an error. |
| 6172 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 6173 | Try \`$0 --help' for more information." >&5 |
| 6174 | echo "$as_me: error: unrecognized option: $1 |
| 6175 | Try \`$0 --help' for more information." >&2;} |
| 6176 | { (exit 1); exit 1; }; } ;; |
| 6177 | |
| 6178 | *) ac_config_targets="$ac_config_targets $1" ;; |
| 6179 | |
| 6180 | esac |
| 6181 | shift |
| 6182 | done |
| 6183 | |
| 6184 | ac_configure_extra_args= |
| 6185 | |
| 6186 | if $ac_cs_silent; then |
| 6187 | exec 6>/dev/null |
| 6188 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 6189 | fi |
| 6190 | |
| 6191 | _ACEOF |
| 6192 | cat >>$CONFIG_STATUS <<_ACEOF |
| 6193 | if \$ac_cs_recheck; then |
| 6194 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 6195 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 6196 | fi |
| 6197 | |
| 6198 | _ACEOF |
| 6199 | |
| 6200 | cat >>$CONFIG_STATUS <<_ACEOF |
| 6201 | # |
| 6202 | # INIT-COMMANDS section. |
| 6203 | # |
| 6204 | |
| 6205 | AMDEP_TRUE="$AMDEP_TRUE" |
| 6206 | ac_aux_dir="$ac_aux_dir" |
| 6207 | |
| 6208 | _ACEOF |
| 6209 | |
| 6210 | |
| 6211 | |
| 6212 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6213 | for ac_config_target in $ac_config_targets |
| 6214 | do |
| 6215 | case "$ac_config_target" in |
| 6216 | # Handling of arguments. |
| 6217 | "libasn1compiler/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;; |
| 6218 | "skeletons/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;; |
| 6219 | "libasn1parser/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;; |
| 6220 | "libasn1print/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;; |
| 6221 | "asn1c/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;; |
| 6222 | "libasn1fix/Makefile" ) CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;; |
| 6223 | "skeletons/Makefile" ) CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;; |
| 6224 | "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; |
| 6225 | "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; |
| 6226 | "asn1c/Makefile" ) CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;; |
| 6227 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
| 6228 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 6229 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 6230 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 6231 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 6232 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 6233 | { (exit 1); exit 1; }; };; |
| 6234 | esac |
| 6235 | done |
| 6236 | |
| 6237 | # If the user did not use the arguments to specify the items to instantiate, |
| 6238 | # then the envvar interface is used. Set only those that are not. |
| 6239 | # We use the long form for the default assignment because of an extremely |
| 6240 | # bizarre bug on SunOS 4.1.3. |
| 6241 | if $ac_need_defaults; then |
| 6242 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 6243 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 6244 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 6245 | fi |
| 6246 | |
| 6247 | # Have a temporary directory for convenience. Make it in the build tree |
| 6248 | # simply because there is no reason to put it here, and in addition, |
| 6249 | # creating and moving files from /tmp can sometimes cause problems. |
| 6250 | # Create a temporary directory, and hook for its removal unless debugging. |
| 6251 | $debug || |
| 6252 | { |
| 6253 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 6254 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 6255 | } |
| 6256 | |
| 6257 | # Create a (secure) tmp directory for tmp files. |
| 6258 | |
| 6259 | { |
| 6260 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 6261 | test -n "$tmp" && test -d "$tmp" |
| 6262 | } || |
| 6263 | { |
| 6264 | tmp=./confstat$$-$RANDOM |
| 6265 | (umask 077 && mkdir $tmp) |
| 6266 | } || |
| 6267 | { |
| 6268 | echo "$me: cannot create a temporary directory in ." >&2 |
| 6269 | { (exit 1); exit 1; } |
| 6270 | } |
| 6271 | |
| 6272 | _ACEOF |
| 6273 | |
| 6274 | cat >>$CONFIG_STATUS <<_ACEOF |
| 6275 | |
| 6276 | # |
| 6277 | # CONFIG_FILES section. |
| 6278 | # |
| 6279 | |
| 6280 | # No need to generate the scripts if there are no CONFIG_FILES. |
| 6281 | # This happens for instance when ./config.status config.h |
| 6282 | if test -n "\$CONFIG_FILES"; then |
| 6283 | # Protect against being on the right side of a sed subst in config.status. |
| 6284 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; |
| 6285 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF |
| 6286 | s,@SHELL@,$SHELL,;t t |
| 6287 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
| 6288 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t |
| 6289 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t |
| 6290 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t |
| 6291 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t |
| 6292 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t |
| 6293 | s,@exec_prefix@,$exec_prefix,;t t |
| 6294 | s,@prefix@,$prefix,;t t |
| 6295 | s,@program_transform_name@,$program_transform_name,;t t |
| 6296 | s,@bindir@,$bindir,;t t |
| 6297 | s,@sbindir@,$sbindir,;t t |
| 6298 | s,@libexecdir@,$libexecdir,;t t |
| 6299 | s,@datadir@,$datadir,;t t |
| 6300 | s,@sysconfdir@,$sysconfdir,;t t |
| 6301 | s,@sharedstatedir@,$sharedstatedir,;t t |
| 6302 | s,@localstatedir@,$localstatedir,;t t |
| 6303 | s,@libdir@,$libdir,;t t |
| 6304 | s,@includedir@,$includedir,;t t |
| 6305 | s,@oldincludedir@,$oldincludedir,;t t |
| 6306 | s,@infodir@,$infodir,;t t |
| 6307 | s,@mandir@,$mandir,;t t |
| 6308 | s,@build_alias@,$build_alias,;t t |
| 6309 | s,@host_alias@,$host_alias,;t t |
| 6310 | s,@target_alias@,$target_alias,;t t |
| 6311 | s,@DEFS@,$DEFS,;t t |
| 6312 | s,@ECHO_C@,$ECHO_C,;t t |
| 6313 | s,@ECHO_N@,$ECHO_N,;t t |
| 6314 | s,@ECHO_T@,$ECHO_T,;t t |
| 6315 | s,@LIBS@,$LIBS,;t t |
| 6316 | s,@build@,$build,;t t |
| 6317 | s,@build_cpu@,$build_cpu,;t t |
| 6318 | s,@build_vendor@,$build_vendor,;t t |
| 6319 | s,@build_os@,$build_os,;t t |
| 6320 | s,@host@,$host,;t t |
| 6321 | s,@host_cpu@,$host_cpu,;t t |
| 6322 | s,@host_vendor@,$host_vendor,;t t |
| 6323 | s,@host_os@,$host_os,;t t |
| 6324 | s,@target@,$target,;t t |
| 6325 | s,@target_cpu@,$target_cpu,;t t |
| 6326 | s,@target_vendor@,$target_vendor,;t t |
| 6327 | s,@target_os@,$target_os,;t t |
| 6328 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t |
| 6329 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t |
| 6330 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t |
| 6331 | s,@PACKAGE@,$PACKAGE,;t t |
| 6332 | s,@VERSION@,$VERSION,;t t |
| 6333 | s,@EXEEXT@,$EXEEXT,;t t |
| 6334 | s,@OBJEXT@,$OBJEXT,;t t |
| 6335 | s,@ACLOCAL@,$ACLOCAL,;t t |
| 6336 | s,@AUTOCONF@,$AUTOCONF,;t t |
| 6337 | s,@AUTOMAKE@,$AUTOMAKE,;t t |
| 6338 | s,@AUTOHEADER@,$AUTOHEADER,;t t |
| 6339 | s,@MAKEINFO@,$MAKEINFO,;t t |
| 6340 | s,@AMTAR@,$AMTAR,;t t |
| 6341 | s,@install_sh@,$install_sh,;t t |
| 6342 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t |
| 6343 | s,@AWK@,$AWK,;t t |
| 6344 | s,@SET_MAKE@,$SET_MAKE,;t t |
| 6345 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t |
| 6346 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t |
| 6347 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t |
| 6348 | s,@DEPDIR@,$DEPDIR,;t t |
| 6349 | s,@PATH@,$PATH,;t t |
| 6350 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
| 6351 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t |
| 6352 | s,@MAINT@,$MAINT,;t t |
| 6353 | s,@RANLIB@,$RANLIB,;t t |
| 6354 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t |
| 6355 | s,@CC@,$CC,;t t |
| 6356 | s,@CFLAGS@,$CFLAGS,;t t |
| 6357 | s,@LDFLAGS@,$LDFLAGS,;t t |
| 6358 | s,@CPPFLAGS@,$CPPFLAGS,;t t |
| 6359 | s,@ac_ct_CC@,$ac_ct_CC,;t t |
| 6360 | s,@am__include@,$am__include,;t t |
| 6361 | s,@am__quote@,$am__quote,;t t |
| 6362 | s,@CCDEPMODE@,$CCDEPMODE,;t t |
| 6363 | s,@LN_S@,$LN_S,;t t |
| 6364 | s,@LIBTOOL@,$LIBTOOL,;t t |
| 6365 | s,@CONFIGURE_DEPENDS@,$CONFIGURE_DEPENDS,;t t |
| 6366 | s,@CPP@,$CPP,;t t |
| 6367 | s,@YACC@,$YACC,;t t |
| 6368 | s,@LEX@,$LEX,;t t |
| 6369 | s,@LEXLIB@,$LEXLIB,;t t |
| 6370 | s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t |
| 6371 | s,@AR@,$AR,;t t |
| 6372 | s,@ADD_CFLAGS@,$ADD_CFLAGS,;t t |
| 6373 | s,@EGREP@,$EGREP,;t t |
| 6374 | s,@LIBOBJS@,$LIBOBJS,;t t |
| 6375 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t |
| 6376 | CEOF |
| 6377 | |
| 6378 | _ACEOF |
| 6379 | |
| 6380 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6381 | # Split the substitutions into bite-sized pieces for seds with |
| 6382 | # small command number limits, like on Digital OSF/1 and HP-UX. |
| 6383 | ac_max_sed_lines=48 |
| 6384 | ac_sed_frag=1 # Number of current file. |
| 6385 | ac_beg=1 # First line for current file. |
| 6386 | ac_end=$ac_max_sed_lines # Line after last line for current file. |
| 6387 | ac_more_lines=: |
| 6388 | ac_sed_cmds= |
| 6389 | while $ac_more_lines; do |
| 6390 | if test $ac_beg -gt 1; then |
| 6391 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 6392 | else |
| 6393 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
| 6394 | fi |
| 6395 | if test ! -s $tmp/subs.frag; then |
| 6396 | ac_more_lines=false |
| 6397 | else |
| 6398 | # The purpose of the label and of the branching condition is to |
| 6399 | # speed up the sed processing (if there are no `@' at all, there |
| 6400 | # is no need to browse any of the substitutions). |
| 6401 | # These are the two extra sed commands mentioned above. |
| 6402 | (echo ':t |
| 6403 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed |
| 6404 | if test -z "$ac_sed_cmds"; then |
| 6405 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
| 6406 | else |
| 6407 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
| 6408 | fi |
| 6409 | ac_sed_frag=`expr $ac_sed_frag + 1` |
| 6410 | ac_beg=$ac_end |
| 6411 | ac_end=`expr $ac_end + $ac_max_sed_lines` |
| 6412 | fi |
| 6413 | done |
| 6414 | if test -z "$ac_sed_cmds"; then |
| 6415 | ac_sed_cmds=cat |
| 6416 | fi |
| 6417 | fi # test -n "$CONFIG_FILES" |
| 6418 | |
| 6419 | _ACEOF |
| 6420 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6421 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue |
| 6422 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 6423 | case $ac_file in |
| 6424 | - | *:- | *:-:* ) # input from stdin |
| 6425 | cat >$tmp/stdin |
| 6426 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 6427 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 6428 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 6429 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 6430 | * ) ac_file_in=$ac_file.in ;; |
| 6431 | esac |
| 6432 | |
| 6433 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
| 6434 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 6435 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6436 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 6437 | X"$ac_file" : 'X\(//\)$' \| \ |
| 6438 | X"$ac_file" : 'X\(/\)' \| \ |
| 6439 | . : '\(.\)' 2>/dev/null || |
| 6440 | echo X"$ac_file" | |
| 6441 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 6442 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 6443 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 6444 | /^X\(\/\).*/{ s//\1/; q; } |
| 6445 | s/.*/./; q'` |
| 6446 | { if $as_mkdir_p; then |
| 6447 | mkdir -p "$ac_dir" |
| 6448 | else |
| 6449 | as_dir="$ac_dir" |
| 6450 | as_dirs= |
| 6451 | while test ! -d "$as_dir"; do |
| 6452 | as_dirs="$as_dir $as_dirs" |
| 6453 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 6454 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6455 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 6456 | X"$as_dir" : 'X\(//\)$' \| \ |
| 6457 | X"$as_dir" : 'X\(/\)' \| \ |
| 6458 | . : '\(.\)' 2>/dev/null || |
| 6459 | echo X"$as_dir" | |
| 6460 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 6461 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 6462 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 6463 | /^X\(\/\).*/{ s//\1/; q; } |
| 6464 | s/.*/./; q'` |
| 6465 | done |
| 6466 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 6467 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 6468 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 6469 | { (exit 1); exit 1; }; }; } |
| 6470 | |
| 6471 | ac_builddir=. |
| 6472 | |
| 6473 | if test "$ac_dir" != .; then |
| 6474 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 6475 | # A "../" for each directory in $ac_dir_suffix. |
| 6476 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 6477 | else |
| 6478 | ac_dir_suffix= ac_top_builddir= |
| 6479 | fi |
| 6480 | |
| 6481 | case $srcdir in |
| 6482 | .) # No --srcdir option. We are building in place. |
| 6483 | ac_srcdir=. |
| 6484 | if test -z "$ac_top_builddir"; then |
| 6485 | ac_top_srcdir=. |
| 6486 | else |
| 6487 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 6488 | fi ;; |
| 6489 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 6490 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 6491 | ac_top_srcdir=$srcdir ;; |
| 6492 | *) # Relative path. |
| 6493 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 6494 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 6495 | esac |
| 6496 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 6497 | # absolute. |
| 6498 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 6499 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 6500 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 6501 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 6502 | |
| 6503 | |
| 6504 | case $INSTALL in |
| 6505 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 6506 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; |
| 6507 | esac |
| 6508 | |
| 6509 | if test x"$ac_file" != x-; then |
| 6510 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 6511 | echo "$as_me: creating $ac_file" >&6;} |
| 6512 | rm -f "$ac_file" |
| 6513 | fi |
| 6514 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 6515 | # use $as_me), people would be surprised to read: |
| 6516 | # /* config.h. Generated by config.status. */ |
| 6517 | if test x"$ac_file" = x-; then |
| 6518 | configure_input= |
| 6519 | else |
| 6520 | configure_input="$ac_file. " |
| 6521 | fi |
| 6522 | configure_input=$configure_input"Generated from `echo $ac_file_in | |
| 6523 | sed 's,.*/,,'` by configure." |
| 6524 | |
| 6525 | # First look for the input files in the build tree, otherwise in the |
| 6526 | # src tree. |
| 6527 | ac_file_inputs=`IFS=: |
| 6528 | for f in $ac_file_in; do |
| 6529 | case $f in |
| 6530 | -) echo $tmp/stdin ;; |
| 6531 | [\\/$]*) |
| 6532 | # Absolute (can't be DOS-style, as IFS=:) |
| 6533 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 6534 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 6535 | { (exit 1); exit 1; }; } |
| 6536 | echo $f;; |
| 6537 | *) # Relative |
| 6538 | if test -f "$f"; then |
| 6539 | # Build tree |
| 6540 | echo $f |
| 6541 | elif test -f "$srcdir/$f"; then |
| 6542 | # Source tree |
| 6543 | echo $srcdir/$f |
| 6544 | else |
| 6545 | # /dev/null tree |
| 6546 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 6547 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 6548 | { (exit 1); exit 1; }; } |
| 6549 | fi;; |
| 6550 | esac |
| 6551 | done` || { (exit 1); exit 1; } |
| 6552 | _ACEOF |
| 6553 | cat >>$CONFIG_STATUS <<_ACEOF |
| 6554 | sed "$ac_vpsub |
| 6555 | $extrasub |
| 6556 | _ACEOF |
| 6557 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6558 | :t |
| 6559 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 6560 | s,@configure_input@,$configure_input,;t t |
| 6561 | s,@srcdir@,$ac_srcdir,;t t |
| 6562 | s,@abs_srcdir@,$ac_abs_srcdir,;t t |
| 6563 | s,@top_srcdir@,$ac_top_srcdir,;t t |
| 6564 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t |
| 6565 | s,@builddir@,$ac_builddir,;t t |
| 6566 | s,@abs_builddir@,$ac_abs_builddir,;t t |
| 6567 | s,@top_builddir@,$ac_top_builddir,;t t |
| 6568 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t |
| 6569 | s,@INSTALL@,$ac_INSTALL,;t t |
| 6570 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out |
| 6571 | rm -f $tmp/stdin |
| 6572 | if test x"$ac_file" != x-; then |
| 6573 | mv $tmp/out $ac_file |
| 6574 | else |
| 6575 | cat $tmp/out |
| 6576 | rm -f $tmp/out |
| 6577 | fi |
| 6578 | |
| 6579 | done |
| 6580 | _ACEOF |
| 6581 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6582 | |
| 6583 | # |
| 6584 | # CONFIG_HEADER section. |
| 6585 | # |
| 6586 | |
| 6587 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 6588 | # NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 6589 | # |
| 6590 | # ac_d sets the value in "#define NAME VALUE" lines. |
| 6591 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 6592 | ac_dB='[ ].*$,\1#\2' |
| 6593 | ac_dC=' ' |
| 6594 | ac_dD=',;t' |
| 6595 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 6596 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 6597 | ac_uB='$,\1#\2define\3' |
| 6598 | ac_uC=' ' |
| 6599 | ac_uD=',;t' |
| 6600 | |
| 6601 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 6602 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 6603 | case $ac_file in |
| 6604 | - | *:- | *:-:* ) # input from stdin |
| 6605 | cat >$tmp/stdin |
| 6606 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 6607 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 6608 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 6609 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 6610 | * ) ac_file_in=$ac_file.in ;; |
| 6611 | esac |
| 6612 | |
| 6613 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 6614 | echo "$as_me: creating $ac_file" >&6;} |
| 6615 | |
| 6616 | # First look for the input files in the build tree, otherwise in the |
| 6617 | # src tree. |
| 6618 | ac_file_inputs=`IFS=: |
| 6619 | for f in $ac_file_in; do |
| 6620 | case $f in |
| 6621 | -) echo $tmp/stdin ;; |
| 6622 | [\\/$]*) |
| 6623 | # Absolute (can't be DOS-style, as IFS=:) |
| 6624 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 6625 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 6626 | { (exit 1); exit 1; }; } |
| 6627 | echo $f;; |
| 6628 | *) # Relative |
| 6629 | if test -f "$f"; then |
| 6630 | # Build tree |
| 6631 | echo $f |
| 6632 | elif test -f "$srcdir/$f"; then |
| 6633 | # Source tree |
| 6634 | echo $srcdir/$f |
| 6635 | else |
| 6636 | # /dev/null tree |
| 6637 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 6638 | echo "$as_me: error: cannot find input file: $f" >&2;} |
| 6639 | { (exit 1); exit 1; }; } |
| 6640 | fi;; |
| 6641 | esac |
| 6642 | done` || { (exit 1); exit 1; } |
| 6643 | # Remove the trailing spaces. |
| 6644 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 6645 | |
| 6646 | _ACEOF |
| 6647 | |
| 6648 | # Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 6649 | # `conftest.undefs', that substitutes the proper values into |
| 6650 | # config.h.in to produce config.h. The first handles `#define' |
| 6651 | # templates, and the second `#undef' templates. |
| 6652 | # And first: Protect against being on the right side of a sed subst in |
| 6653 | # config.status. Protect against being in an unquoted here document |
| 6654 | # in config.status. |
| 6655 | rm -f conftest.defines conftest.undefs |
| 6656 | # Using a here document instead of a string reduces the quoting nightmare. |
| 6657 | # Putting comments in sed scripts is not portable. |
| 6658 | # |
| 6659 | # `end' is used to avoid that the second main sed command (meant for |
| 6660 | # 0-ary CPP macros) applies to n-ary macro definitions. |
| 6661 | # See the Autoconf documentation for `clear'. |
| 6662 | cat >confdef2sed.sed <<\_ACEOF |
| 6663 | s/[\\&,]/\\&/g |
| 6664 | s,[\\$`],\\&,g |
| 6665 | t clear |
| 6666 | : clear |
| 6667 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 6668 | t end |
| 6669 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 6670 | : end |
| 6671 | _ACEOF |
| 6672 | # If some macros were called several times there might be several times |
| 6673 | # the same #defines, which is useless. Nevertheless, we may not want to |
| 6674 | # sort them, since we want the *last* AC-DEFINE to be honored. |
| 6675 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 6676 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 6677 | rm -f confdef2sed.sed |
| 6678 | |
| 6679 | # This sed command replaces #undef with comments. This is necessary, for |
| 6680 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
| 6681 | # on some systems where configure will not decide to define it. |
| 6682 | cat >>conftest.undefs <<\_ACEOF |
| 6683 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 6684 | _ACEOF |
| 6685 | |
| 6686 | # Break up conftest.defines because some shells have a limit on the size |
| 6687 | # of here documents, and old seds have small limits too (100 cmds). |
| 6688 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 6689 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 6690 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 6691 | echo ' :' >>$CONFIG_STATUS |
| 6692 | rm -f conftest.tail |
| 6693 | while grep . conftest.defines >/dev/null |
| 6694 | do |
| 6695 | # Write a limited-size here document to $tmp/defines.sed. |
| 6696 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 6697 | # Speed up: don't consider the non `#define' lines. |
| 6698 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 6699 | # Work around the forget-to-reset-the-flag bug. |
| 6700 | echo 't clr' >>$CONFIG_STATUS |
| 6701 | echo ': clr' >>$CONFIG_STATUS |
| 6702 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 6703 | echo 'CEOF |
| 6704 | sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 6705 | rm -f $tmp/in |
| 6706 | mv $tmp/out $tmp/in |
| 6707 | ' >>$CONFIG_STATUS |
| 6708 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 6709 | rm -f conftest.defines |
| 6710 | mv conftest.tail conftest.defines |
| 6711 | done |
| 6712 | rm -f conftest.defines |
| 6713 | echo ' fi # grep' >>$CONFIG_STATUS |
| 6714 | echo >>$CONFIG_STATUS |
| 6715 | |
| 6716 | # Break up conftest.undefs because some shells have a limit on the size |
| 6717 | # of here documents, and old seds have small limits too (100 cmds). |
| 6718 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 6719 | rm -f conftest.tail |
| 6720 | while grep . conftest.undefs >/dev/null |
| 6721 | do |
| 6722 | # Write a limited-size here document to $tmp/undefs.sed. |
| 6723 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 6724 | # Speed up: don't consider the non `#undef' |
| 6725 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 6726 | # Work around the forget-to-reset-the-flag bug. |
| 6727 | echo 't clr' >>$CONFIG_STATUS |
| 6728 | echo ': clr' >>$CONFIG_STATUS |
| 6729 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 6730 | echo 'CEOF |
| 6731 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 6732 | rm -f $tmp/in |
| 6733 | mv $tmp/out $tmp/in |
| 6734 | ' >>$CONFIG_STATUS |
| 6735 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 6736 | rm -f conftest.undefs |
| 6737 | mv conftest.tail conftest.undefs |
| 6738 | done |
| 6739 | rm -f conftest.undefs |
| 6740 | |
| 6741 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6742 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 6743 | # use $as_me), people would be surprised to read: |
| 6744 | # /* config.h. Generated by config.status. */ |
| 6745 | if test x"$ac_file" = x-; then |
| 6746 | echo "/* Generated by configure. */" >$tmp/config.h |
| 6747 | else |
| 6748 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 6749 | fi |
| 6750 | cat $tmp/in >>$tmp/config.h |
| 6751 | rm -f $tmp/in |
| 6752 | if test x"$ac_file" != x-; then |
| 6753 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 6754 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 6755 | echo "$as_me: $ac_file is unchanged" >&6;} |
| 6756 | else |
| 6757 | ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 6758 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6759 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 6760 | X"$ac_file" : 'X\(//\)$' \| \ |
| 6761 | X"$ac_file" : 'X\(/\)' \| \ |
| 6762 | . : '\(.\)' 2>/dev/null || |
| 6763 | echo X"$ac_file" | |
| 6764 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 6765 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 6766 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 6767 | /^X\(\/\).*/{ s//\1/; q; } |
| 6768 | s/.*/./; q'` |
| 6769 | { if $as_mkdir_p; then |
| 6770 | mkdir -p "$ac_dir" |
| 6771 | else |
| 6772 | as_dir="$ac_dir" |
| 6773 | as_dirs= |
| 6774 | while test ! -d "$as_dir"; do |
| 6775 | as_dirs="$as_dir $as_dirs" |
| 6776 | as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 6777 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6778 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 6779 | X"$as_dir" : 'X\(//\)$' \| \ |
| 6780 | X"$as_dir" : 'X\(/\)' \| \ |
| 6781 | . : '\(.\)' 2>/dev/null || |
| 6782 | echo X"$as_dir" | |
| 6783 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 6784 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 6785 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 6786 | /^X\(\/\).*/{ s//\1/; q; } |
| 6787 | s/.*/./; q'` |
| 6788 | done |
| 6789 | test ! -n "$as_dirs" || mkdir $as_dirs |
| 6790 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 6791 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 6792 | { (exit 1); exit 1; }; }; } |
| 6793 | |
| 6794 | rm -f $ac_file |
| 6795 | mv $tmp/config.h $ac_file |
| 6796 | fi |
| 6797 | else |
| 6798 | cat $tmp/config.h |
| 6799 | rm -f $tmp/config.h |
| 6800 | fi |
| 6801 | # Run the commands associated with the file. |
| 6802 | case $ac_file in |
| 6803 | config.h ) # update the timestamp |
| 6804 | echo timestamp >"./stamp-h1" |
| 6805 | ;; |
| 6806 | esac |
| 6807 | done |
| 6808 | _ACEOF |
| 6809 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6810 | |
| 6811 | # |
| 6812 | # CONFIG_COMMANDS section. |
| 6813 | # |
| 6814 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue |
| 6815 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` |
| 6816 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 6817 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || |
| 6818 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 6819 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
| 6820 | X"$ac_dest" : 'X\(//\)$' \| \ |
| 6821 | X"$ac_dest" : 'X\(/\)' \| \ |
| 6822 | . : '\(.\)' 2>/dev/null || |
| 6823 | echo X"$ac_dest" | |
| 6824 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 6825 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 6826 | /^X\(\/\/\)$/{ s//\1/; q; } |
| 6827 | /^X\(\/\).*/{ s//\1/; q; } |
| 6828 | s/.*/./; q'` |
| 6829 | ac_builddir=. |
| 6830 | |
| 6831 | if test "$ac_dir" != .; then |
| 6832 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 6833 | # A "../" for each directory in $ac_dir_suffix. |
| 6834 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 6835 | else |
| 6836 | ac_dir_suffix= ac_top_builddir= |
| 6837 | fi |
| 6838 | |
| 6839 | case $srcdir in |
| 6840 | .) # No --srcdir option. We are building in place. |
| 6841 | ac_srcdir=. |
| 6842 | if test -z "$ac_top_builddir"; then |
| 6843 | ac_top_srcdir=. |
| 6844 | else |
| 6845 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 6846 | fi ;; |
| 6847 | [\\/]* | ?:[\\/]* ) # Absolute path. |
| 6848 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 6849 | ac_top_srcdir=$srcdir ;; |
| 6850 | *) # Relative path. |
| 6851 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 6852 | ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 6853 | esac |
| 6854 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
| 6855 | # absolute. |
| 6856 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` |
| 6857 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` |
| 6858 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` |
| 6859 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` |
| 6860 | |
| 6861 | |
| 6862 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
| 6863 | echo "$as_me: executing $ac_dest commands" >&6;} |
| 6864 | case $ac_dest in |
| 6865 | default-1 ) |
| 6866 | test x"$AMDEP_TRUE" != x"" || |
| 6867 | for mf in $CONFIG_FILES; do |
| 6868 | case "$mf" in |
| 6869 | Makefile) dirpart=.;; |
| 6870 | */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; |
| 6871 | *) continue;; |
| 6872 | esac |
| 6873 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
| 6874 | # Extract the definition of DEP_FILES from the Makefile without |
| 6875 | # running `make'. |
| 6876 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
| 6877 | test -z "$DEPDIR" && continue |
| 6878 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 6879 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
| 6880 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
| 6881 | # We invoke sed twice because it is the simplest approach to |
| 6882 | # changing $(DEPDIR) to its actual value in the expansion. |
| 6883 | for file in `sed -n -e ' |
| 6884 | /^DEP_FILES = .*\\\\$/ { |
| 6885 | s/^DEP_FILES = // |
| 6886 | :loop |
| 6887 | s/\\\\$// |
| 6888 | p |
| 6889 | n |
| 6890 | /\\\\$/ b loop |
| 6891 | p |
| 6892 | } |
| 6893 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
| 6894 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 6895 | # Make sure the directory exists. |
| 6896 | test -f "$dirpart/$file" && continue |
| 6897 | fdir=`echo "$file" | sed -e 's|/[^/]*$||'` |
| 6898 | $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 |
| 6899 | # echo "creating $dirpart/$file" |
| 6900 | echo '# dummy' > "$dirpart/$file" |
| 6901 | done |
| 6902 | done |
| 6903 | ;; |
| 6904 | esac |
| 6905 | done |
| 6906 | _ACEOF |
| 6907 | |
| 6908 | cat >>$CONFIG_STATUS <<\_ACEOF |
| 6909 | |
| 6910 | { (exit 0); exit 0; } |
| 6911 | _ACEOF |
| 6912 | chmod +x $CONFIG_STATUS |
| 6913 | ac_clean_files=$ac_clean_files_save |
| 6914 | |
| 6915 | |
| 6916 | # configure is writing to config.log, and then calls config.status. |
| 6917 | # config.status does its own redirection, appending to config.log. |
| 6918 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 6919 | # by configure, so config.status won't be able to write to it; its |
| 6920 | # output is simply discarded. So we exec the FD to /dev/null, |
| 6921 | # effectively closing config.log, so it can be properly (re)opened and |
| 6922 | # appended to by config.status. When coming back to configure, we |
| 6923 | # need to make the FD available again. |
| 6924 | if test "$no_create" != yes; then |
| 6925 | ac_cs_success=: |
| 6926 | ac_config_status_args= |
| 6927 | test "$silent" = yes && |
| 6928 | ac_config_status_args="$ac_config_status_args --quiet" |
| 6929 | exec 5>/dev/null |
| 6930 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 6931 | exec 5>>config.log |
| 6932 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 6933 | # would make configure fail if this is the last instruction. |
| 6934 | $ac_cs_success || { (exit 1); exit 1; } |
| 6935 | fi |
| 6936 | |
| 6937 | |