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