1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59. 4# 5# Copyright (C) 2003 Free Software Foundation, Inc. 6# This configure script is free software; the Free Software Foundation 7# gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244# Name of the host. 245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 246# so uname gets run too. 247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 249exec 6>&1 250 251# 252# Initializations. 253# 254ac_default_prefix=/usr/local 255ac_config_libobj_dir=. 256cross_compiling=no 257subdirs= 258MFLAGS= 259MAKEFLAGS= 260SHELL=${CONFIG_SHELL-/bin/sh} 261 262# Maximum number of lines to put in a shell here document. 263# This variable seems obsolete. It should probably be removed, and 264# only ac_max_sed_lines should be used. 265: ${ac_max_here_lines=38} 266 267# Identity of this package. 268PACKAGE_NAME= 269PACKAGE_TARNAME= 270PACKAGE_VERSION= 271PACKAGE_STRING= 272PACKAGE_BUGREPORT= 273 274ac_unique_file="configure.in" 275ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE LIBOBJS LTLIBOBJS' 276ac_subst_files='' 277 278# Initialize some variables set by options. 279ac_init_help= 280ac_init_version=false 281# The variables have the same names as the options, with 282# dashes changed to underlines. 283cache_file=/dev/null 284exec_prefix=NONE 285no_create= 286no_recursion= 287prefix=NONE 288program_prefix=NONE 289program_suffix=NONE 290program_transform_name=s,x,x, 291silent= 292site= 293srcdir= 294verbose= 295x_includes=NONE 296x_libraries=NONE 297 298# Installation directory options. 299# These are left unexpanded so users can "make install exec_prefix=/foo" 300# and all the variables that are supposed to be based on exec_prefix 301# by default will actually change. 302# Use braces instead of parens because sh, perl, etc. also accept them. 303bindir='${exec_prefix}/bin' 304sbindir='${exec_prefix}/sbin' 305libexecdir='${exec_prefix}/libexec' 306datadir='${prefix}/share' 307sysconfdir='${prefix}/etc' 308sharedstatedir='${prefix}/com' 309localstatedir='${prefix}/var' 310libdir='${exec_prefix}/lib' 311includedir='${prefix}/include' 312oldincludedir='/usr/include' 313infodir='${prefix}/info' 314mandir='${prefix}/man' 315 316ac_prev= 317for ac_option 318do 319 # If the previous option needs an argument, assign it. 320 if test -n "$ac_prev"; then 321 eval "$ac_prev=\$ac_option" 322 ac_prev= 323 continue 324 fi 325 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 327 328 # Accept the important Cygnus configure options, so we can diagnose typos. 329 330 case $ac_option in 331 332 -bindir | --bindir | --bindi | --bind | --bin | --bi) 333 ac_prev=bindir ;; 334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 335 bindir=$ac_optarg ;; 336 337 -build | --build | --buil | --bui | --bu) 338 ac_prev=build_alias ;; 339 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 340 build_alias=$ac_optarg ;; 341 342 -cache-file | --cache-file | --cache-fil | --cache-fi \ 343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 344 ac_prev=cache_file ;; 345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 347 cache_file=$ac_optarg ;; 348 349 --config-cache | -C) 350 cache_file=config.cache ;; 351 352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 353 ac_prev=datadir ;; 354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 355 | --da=*) 356 datadir=$ac_optarg ;; 357 358 -disable-* | --disable-*) 359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 360 # Reject names that are not valid shell variable names. 361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 363 { (exit 1); exit 1; }; } 364 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 365 eval "enable_$ac_feature=no" ;; 366 367 -enable-* | --enable-*) 368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 369 # Reject names that are not valid shell variable names. 370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 372 { (exit 1); exit 1; }; } 373 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 374 case $ac_option in 375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 376 *) ac_optarg=yes ;; 377 esac 378 eval "enable_$ac_feature='$ac_optarg'" ;; 379 380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 382 | --exec | --exe | --ex) 383 ac_prev=exec_prefix ;; 384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 386 | --exec=* | --exe=* | --ex=*) 387 exec_prefix=$ac_optarg ;; 388 389 -gas | --gas | --ga | --g) 390 # Obsolete; use --with-gas. 391 with_gas=yes ;; 392 393 -help | --help | --hel | --he | -h) 394 ac_init_help=long ;; 395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 396 ac_init_help=recursive ;; 397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 398 ac_init_help=short ;; 399 400 -host | --host | --hos | --ho) 401 ac_prev=host_alias ;; 402 -host=* | --host=* | --hos=* | --ho=*) 403 host_alias=$ac_optarg ;; 404 405 -includedir | --includedir | --includedi | --included | --include \ 406 | --includ | --inclu | --incl | --inc) 407 ac_prev=includedir ;; 408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 409 | --includ=* | --inclu=* | --incl=* | --inc=*) 410 includedir=$ac_optarg ;; 411 412 -infodir | --infodir | --infodi | --infod | --info | --inf) 413 ac_prev=infodir ;; 414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 415 infodir=$ac_optarg ;; 416 417 -libdir | --libdir | --libdi | --libd) 418 ac_prev=libdir ;; 419 -libdir=* | --libdir=* | --libdi=* | --libd=*) 420 libdir=$ac_optarg ;; 421 422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 423 | --libexe | --libex | --libe) 424 ac_prev=libexecdir ;; 425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 426 | --libexe=* | --libex=* | --libe=*) 427 libexecdir=$ac_optarg ;; 428 429 -localstatedir | --localstatedir | --localstatedi | --localstated \ 430 | --localstate | --localstat | --localsta | --localst \ 431 | --locals | --local | --loca | --loc | --lo) 432 ac_prev=localstatedir ;; 433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 436 localstatedir=$ac_optarg ;; 437 438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 439 ac_prev=mandir ;; 440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 441 mandir=$ac_optarg ;; 442 443 -nfp | --nfp | --nf) 444 # Obsolete; use --without-fp. 445 with_fp=no ;; 446 447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 448 | --no-cr | --no-c | -n) 449 no_create=yes ;; 450 451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 453 no_recursion=yes ;; 454 455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 457 | --oldin | --oldi | --old | --ol | --o) 458 ac_prev=oldincludedir ;; 459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 462 oldincludedir=$ac_optarg ;; 463 464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 465 ac_prev=prefix ;; 466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 467 prefix=$ac_optarg ;; 468 469 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 470 | --program-pre | --program-pr | --program-p) 471 ac_prev=program_prefix ;; 472 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 474 program_prefix=$ac_optarg ;; 475 476 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 477 | --program-suf | --program-su | --program-s) 478 ac_prev=program_suffix ;; 479 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 481 program_suffix=$ac_optarg ;; 482 483 -program-transform-name | --program-transform-name \ 484 | --program-transform-nam | --program-transform-na \ 485 | --program-transform-n | --program-transform- \ 486 | --program-transform | --program-transfor \ 487 | --program-transfo | --program-transf \ 488 | --program-trans | --program-tran \ 489 | --progr-tra | --program-tr | --program-t) 490 ac_prev=program_transform_name ;; 491 -program-transform-name=* | --program-transform-name=* \ 492 | --program-transform-nam=* | --program-transform-na=* \ 493 | --program-transform-n=* | --program-transform-=* \ 494 | --program-transform=* | --program-transfor=* \ 495 | --program-transfo=* | --program-transf=* \ 496 | --program-trans=* | --program-tran=* \ 497 | --progr-tra=* | --program-tr=* | --program-t=*) 498 program_transform_name=$ac_optarg ;; 499 500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 501 | -silent | --silent | --silen | --sile | --sil) 502 silent=yes ;; 503 504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 505 ac_prev=sbindir ;; 506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 507 | --sbi=* | --sb=*) 508 sbindir=$ac_optarg ;; 509 510 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 512 | --sharedst | --shareds | --shared | --share | --shar \ 513 | --sha | --sh) 514 ac_prev=sharedstatedir ;; 515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 518 | --sha=* | --sh=*) 519 sharedstatedir=$ac_optarg ;; 520 521 -site | --site | --sit) 522 ac_prev=site ;; 523 -site=* | --site=* | --sit=*) 524 site=$ac_optarg ;; 525 526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 527 ac_prev=srcdir ;; 528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 529 srcdir=$ac_optarg ;; 530 531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 532 | --syscon | --sysco | --sysc | --sys | --sy) 533 ac_prev=sysconfdir ;; 534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 536 sysconfdir=$ac_optarg ;; 537 538 -target | --target | --targe | --targ | --tar | --ta | --t) 539 ac_prev=target_alias ;; 540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 541 target_alias=$ac_optarg ;; 542 543 -v | -verbose | --verbose | --verbos | --verbo | --verb) 544 verbose=yes ;; 545 546 -version | --version | --versio | --versi | --vers | -V) 547 ac_init_version=: ;; 548 549 -with-* | --with-*) 550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 551 # Reject names that are not valid shell variable names. 552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 553 { echo "$as_me: error: invalid package name: $ac_package" >&2 554 { (exit 1); exit 1; }; } 555 ac_package=`echo $ac_package| sed 's/-/_/g'` 556 case $ac_option in 557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 558 *) ac_optarg=yes ;; 559 esac 560 eval "with_$ac_package='$ac_optarg'" ;; 561 562 -without-* | --without-*) 563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 564 # Reject names that are not valid shell variable names. 565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 566 { echo "$as_me: error: invalid package name: $ac_package" >&2 567 { (exit 1); exit 1; }; } 568 ac_package=`echo $ac_package | sed 's/-/_/g'` 569 eval "with_$ac_package=no" ;; 570 571 --x) 572 # Obsolete; use --with-x. 573 with_x=yes ;; 574 575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 576 | --x-incl | --x-inc | --x-in | --x-i) 577 ac_prev=x_includes ;; 578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 580 x_includes=$ac_optarg ;; 581 582 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 584 ac_prev=x_libraries ;; 585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 587 x_libraries=$ac_optarg ;; 588 589 -*) { echo "$as_me: error: unrecognized option: $ac_option 590Try \`$0 --help' for more information." >&2 591 { (exit 1); exit 1; }; } 592 ;; 593 594 *=*) 595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 596 # Reject names that are not valid shell variable names. 597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 599 { (exit 1); exit 1; }; } 600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 601 eval "$ac_envvar='$ac_optarg'" 602 export $ac_envvar ;; 603 604 *) 605 # FIXME: should be removed in autoconf 3.0. 606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 610 ;; 611 612 esac 613done 614 615if test -n "$ac_prev"; then 616 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 617 { echo "$as_me: error: missing argument to $ac_option" >&2 618 { (exit 1); exit 1; }; } 619fi 620 621# Be sure to have absolute paths. 622for ac_var in exec_prefix prefix 623do 624 eval ac_val=$`echo $ac_var` 625 case $ac_val in 626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 628 { (exit 1); exit 1; }; };; 629 esac 630done 631 632# Be sure to have absolute paths. 633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 634 localstatedir libdir includedir oldincludedir infodir mandir 635do 636 eval ac_val=$`echo $ac_var` 637 case $ac_val in 638 [\\/$]* | ?:[\\/]* ) ;; 639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 640 { (exit 1); exit 1; }; };; 641 esac 642done 643 644# There might be people who depend on the old broken behavior: `$host' 645# used to hold the argument of --host etc. 646# FIXME: To remove some day. 647build=$build_alias 648host=$host_alias 649target=$target_alias 650 651# FIXME: To remove some day. 652if test "x$host_alias" != x; then 653 if test "x$build_alias" = x; then 654 cross_compiling=maybe 655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 656 If a cross compiler is detected then cross compile mode will be used." >&2 657 elif test "x$build_alias" != "x$host_alias"; then 658 cross_compiling=yes 659 fi 660fi 661 662ac_tool_prefix= 663test -n "$host_alias" && ac_tool_prefix=$host_alias- 664 665test "$silent" = yes && exec 6>/dev/null 666 667 668# Find the source files, if location was not specified. 669if test -z "$srcdir"; then 670 ac_srcdir_defaulted=yes 671 # Try the directory containing this script, then its parent. 672 ac_confdir=`(dirname "$0") 2>/dev/null || 673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 674 X"$0" : 'X\(//\)[^/]' \| \ 675 X"$0" : 'X\(//\)$' \| \ 676 X"$0" : 'X\(/\)' \| \ 677 . : '\(.\)' 2>/dev/null || 678echo X"$0" | 679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 680 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 681 /^X\(\/\/\)$/{ s//\1/; q; } 682 /^X\(\/\).*/{ s//\1/; q; } 683 s/.*/./; q'` 684 srcdir=$ac_confdir 685 if test ! -r $srcdir/$ac_unique_file; then 686 srcdir=.. 687 fi 688else 689 ac_srcdir_defaulted=no 690fi 691if test ! -r $srcdir/$ac_unique_file; then 692 if test "$ac_srcdir_defaulted" = yes; then 693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 694 { (exit 1); exit 1; }; } 695 else 696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 697 { (exit 1); exit 1; }; } 698 fi 699fi 700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 702 { (exit 1); exit 1; }; } 703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 704ac_env_build_alias_set=${build_alias+set} 705ac_env_build_alias_value=$build_alias 706ac_cv_env_build_alias_set=${build_alias+set} 707ac_cv_env_build_alias_value=$build_alias 708ac_env_host_alias_set=${host_alias+set} 709ac_env_host_alias_value=$host_alias 710ac_cv_env_host_alias_set=${host_alias+set} 711ac_cv_env_host_alias_value=$host_alias 712ac_env_target_alias_set=${target_alias+set} 713ac_env_target_alias_value=$target_alias 714ac_cv_env_target_alias_set=${target_alias+set} 715ac_cv_env_target_alias_value=$target_alias 716ac_env_CC_set=${CC+set} 717ac_env_CC_value=$CC 718ac_cv_env_CC_set=${CC+set} 719ac_cv_env_CC_value=$CC 720ac_env_CFLAGS_set=${CFLAGS+set} 721ac_env_CFLAGS_value=$CFLAGS 722ac_cv_env_CFLAGS_set=${CFLAGS+set} 723ac_cv_env_CFLAGS_value=$CFLAGS 724ac_env_LDFLAGS_set=${LDFLAGS+set} 725ac_env_LDFLAGS_value=$LDFLAGS 726ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 727ac_cv_env_LDFLAGS_value=$LDFLAGS 728ac_env_CPPFLAGS_set=${CPPFLAGS+set} 729ac_env_CPPFLAGS_value=$CPPFLAGS 730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 731ac_cv_env_CPPFLAGS_value=$CPPFLAGS 732 733# 734# Report the --help message. 735# 736if test "$ac_init_help" = "long"; then 737 # Omit some internal or obsolete options to make the list less imposing. 738 # This message is too long to be a string in the A/UX 3.1 sh. 739 cat <<_ACEOF 740\`configure' configures this package to adapt to many kinds of systems. 741 742Usage: $0 [OPTION]... [VAR=VALUE]... 743 744To assign environment variables (e.g., CC, CFLAGS...), specify them as 745VAR=VALUE. See below for descriptions of some of the useful variables. 746 747Defaults for the options are specified in brackets. 748 749Configuration: 750 -h, --help display this help and exit 751 --help=short display options specific to this package 752 --help=recursive display the short help of all the included packages 753 -V, --version display version information and exit 754 -q, --quiet, --silent do not print \`checking...' messages 755 --cache-file=FILE cache test results in FILE [disabled] 756 -C, --config-cache alias for \`--cache-file=config.cache' 757 -n, --no-create do not create output files 758 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 759 760_ACEOF 761 762 cat <<_ACEOF 763Installation directories: 764 --prefix=PREFIX install architecture-independent files in PREFIX 765 [$ac_default_prefix] 766 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 767 [PREFIX] 768 769By default, \`make install' will install all the files in 770\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 771an installation prefix other than \`$ac_default_prefix' using \`--prefix', 772for instance \`--prefix=\$HOME'. 773 774For better control, use the options below. 775 776Fine tuning of the installation directories: 777 --bindir=DIR user executables [EPREFIX/bin] 778 --sbindir=DIR system admin executables [EPREFIX/sbin] 779 --libexecdir=DIR program executables [EPREFIX/libexec] 780 --datadir=DIR read-only architecture-independent data [PREFIX/share] 781 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 782 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 783 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 784 --libdir=DIR object code libraries [EPREFIX/lib] 785 --includedir=DIR C header files [PREFIX/include] 786 --oldincludedir=DIR C header files for non-gcc [/usr/include] 787 --infodir=DIR info documentation [PREFIX/info] 788 --mandir=DIR man documentation [PREFIX/man] 789_ACEOF 790 791 cat <<\_ACEOF 792 793Program names: 794 --program-prefix=PREFIX prepend PREFIX to installed program names 795 --program-suffix=SUFFIX append SUFFIX to installed program names 796 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 797_ACEOF 798fi 799 800if test -n "$ac_init_help"; then 801 802 cat <<\_ACEOF 803 804Optional Features: 805 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 806 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 807 --disable-dependency-tracking Speeds up one-time builds 808 --enable-dependency-tracking Do not reject slow dependency extractors 809 810Some influential environment variables: 811 CC C compiler command 812 CFLAGS C compiler flags 813 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 814 nonstandard directory <lib dir> 815 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 816 headers in a nonstandard directory <include dir> 817 818Use these variables to override the choices made by `configure' or to help 819it to find libraries and programs with nonstandard names/locations. 820 821_ACEOF 822fi 823 824if test "$ac_init_help" = "recursive"; then 825 # If there are subdirs, report their specific --help. 826 ac_popdir=`pwd` 827 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 828 test -d $ac_dir || continue 829 ac_builddir=. 830 831if test "$ac_dir" != .; then 832 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 833 # A "../" for each directory in $ac_dir_suffix. 834 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 835else 836 ac_dir_suffix= ac_top_builddir= 837fi 838 839case $srcdir in 840 .) # No --srcdir option. We are building in place. 841 ac_srcdir=. 842 if test -z "$ac_top_builddir"; then 843 ac_top_srcdir=. 844 else 845 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 846 fi ;; 847 [\\/]* | ?:[\\/]* ) # Absolute path. 848 ac_srcdir=$srcdir$ac_dir_suffix; 849 ac_top_srcdir=$srcdir ;; 850 *) # Relative path. 851 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 852 ac_top_srcdir=$ac_top_builddir$srcdir ;; 853esac 854 855# Do not use `cd foo && pwd` to compute absolute paths, because 856# the directories may not exist. 857case `pwd` in 858.) ac_abs_builddir="$ac_dir";; 859*) 860 case "$ac_dir" in 861 .) ac_abs_builddir=`pwd`;; 862 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 863 *) ac_abs_builddir=`pwd`/"$ac_dir";; 864 esac;; 865esac 866case $ac_abs_builddir in 867.) ac_abs_top_builddir=${ac_top_builddir}.;; 868*) 869 case ${ac_top_builddir}. in 870 .) ac_abs_top_builddir=$ac_abs_builddir;; 871 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 872 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 873 esac;; 874esac 875case $ac_abs_builddir in 876.) ac_abs_srcdir=$ac_srcdir;; 877*) 878 case $ac_srcdir in 879 .) ac_abs_srcdir=$ac_abs_builddir;; 880 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 881 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 882 esac;; 883esac 884case $ac_abs_builddir in 885.) ac_abs_top_srcdir=$ac_top_srcdir;; 886*) 887 case $ac_top_srcdir in 888 .) ac_abs_top_srcdir=$ac_abs_builddir;; 889 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 890 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 891 esac;; 892esac 893 894 cd $ac_dir 895 # Check for guested configure; otherwise get Cygnus style configure. 896 if test -f $ac_srcdir/configure.gnu; then 897 echo 898 $SHELL $ac_srcdir/configure.gnu --help=recursive 899 elif test -f $ac_srcdir/configure; then 900 echo 901 $SHELL $ac_srcdir/configure --help=recursive 902 elif test -f $ac_srcdir/configure.ac || 903 test -f $ac_srcdir/configure.in; then 904 echo 905 $ac_configure --help 906 else 907 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 908 fi 909 cd $ac_popdir 910 done 911fi 912 913test -n "$ac_init_help" && exit 0 914if $ac_init_version; then 915 cat <<\_ACEOF 916 917Copyright (C) 2003 Free Software Foundation, Inc. 918This configure script is free software; the Free Software Foundation 919gives unlimited permission to copy, distribute and modify it. 920_ACEOF 921 exit 0 922fi 923exec 5>config.log 924cat >&5 <<_ACEOF 925This file contains any messages produced by compilers while 926running configure, to aid debugging if configure makes a mistake. 927 928It was created by $as_me, which was 929generated by GNU Autoconf 2.59. Invocation command line was 930 931 $ $0 $@ 932 933_ACEOF 934{ 935cat <<_ASUNAME 936## --------- ## 937## Platform. ## 938## --------- ## 939 940hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 941uname -m = `(uname -m) 2>/dev/null || echo unknown` 942uname -r = `(uname -r) 2>/dev/null || echo unknown` 943uname -s = `(uname -s) 2>/dev/null || echo unknown` 944uname -v = `(uname -v) 2>/dev/null || echo unknown` 945 946/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 947/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 948 949/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 950/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 951/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 952hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 953/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 954/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 955/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 956 957_ASUNAME 958 959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 960for as_dir in $PATH 961do 962 IFS=$as_save_IFS 963 test -z "$as_dir" && as_dir=. 964 echo "PATH: $as_dir" 965done 966 967} >&5 968 969cat >&5 <<_ACEOF 970 971 972## ----------- ## 973## Core tests. ## 974## ----------- ## 975 976_ACEOF 977 978 979# Keep a trace of the command line. 980# Strip out --no-create and --no-recursion so they do not pile up. 981# Strip out --silent because we don't want to record it for future runs. 982# Also quote any args containing shell meta-characters. 983# Make two passes to allow for proper duplicate-argument suppression. 984ac_configure_args= 985ac_configure_args0= 986ac_configure_args1= 987ac_sep= 988ac_must_keep_next=false 989for ac_pass in 1 2 990do 991 for ac_arg 992 do 993 case $ac_arg in 994 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 996 | -silent | --silent | --silen | --sile | --sil) 997 continue ;; 998 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 999 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1000 esac 1001 case $ac_pass in 1002 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1003 2) 1004 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1005 if test $ac_must_keep_next = true; then 1006 ac_must_keep_next=false # Got value, back to normal. 1007 else 1008 case $ac_arg in 1009 *=* | --config-cache | -C | -disable-* | --disable-* \ 1010 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1011 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1012 | -with-* | --with-* | -without-* | --without-* | --x) 1013 case "$ac_configure_args0 " in 1014 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1015 esac 1016 ;; 1017 -* ) ac_must_keep_next=true ;; 1018 esac 1019 fi 1020 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1021 # Get rid of the leading space. 1022 ac_sep=" " 1023 ;; 1024 esac 1025 done 1026done 1027$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1028$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1029 1030# When interrupted or exit'd, cleanup temporary files, and complete 1031# config.log. We remove comments because anyway the quotes in there 1032# would cause problems or look ugly. 1033# WARNING: Be sure not to use single quotes in there, as some shells, 1034# such as our DU 5.0 friend, will then `close' the trap. 1035trap 'exit_status=$? 1036 # Save into config.log some information that might help in debugging. 1037 { 1038 echo 1039 1040 cat <<\_ASBOX 1041## ---------------- ## 1042## Cache variables. ## 1043## ---------------- ## 1044_ASBOX 1045 echo 1046 # The following way of writing the cache mishandles newlines in values, 1047{ 1048 (set) 2>&1 | 1049 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1050 *ac_space=\ *) 1051 sed -n \ 1052 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1054 ;; 1055 *) 1056 sed -n \ 1057 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1058 ;; 1059 esac; 1060} 1061 echo 1062 1063 cat <<\_ASBOX 1064## ----------------- ## 1065## Output variables. ## 1066## ----------------- ## 1067_ASBOX 1068 echo 1069 for ac_var in $ac_subst_vars 1070 do 1071 eval ac_val=$`echo $ac_var` 1072 echo "$ac_var='"'"'$ac_val'"'"'" 1073 done | sort 1074 echo 1075 1076 if test -n "$ac_subst_files"; then 1077 cat <<\_ASBOX 1078## ------------- ## 1079## Output files. ## 1080## ------------- ## 1081_ASBOX 1082 echo 1083 for ac_var in $ac_subst_files 1084 do 1085 eval ac_val=$`echo $ac_var` 1086 echo "$ac_var='"'"'$ac_val'"'"'" 1087 done | sort 1088 echo 1089 fi 1090 1091 if test -s confdefs.h; then 1092 cat <<\_ASBOX 1093## ----------- ## 1094## confdefs.h. ## 1095## ----------- ## 1096_ASBOX 1097 echo 1098 sed "/^$/d" confdefs.h | sort 1099 echo 1100 fi 1101 test "$ac_signal" != 0 && 1102 echo "$as_me: caught signal $ac_signal" 1103 echo "$as_me: exit $exit_status" 1104 } >&5 1105 rm -f core *.core && 1106 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1107 exit $exit_status 1108 ' 0 1109for ac_signal in 1 2 13 15; do 1110 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1111done 1112ac_signal=0 1113 1114# confdefs.h avoids OS command line length limits that DEFS can exceed. 1115rm -rf conftest* confdefs.h 1116# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1117echo >confdefs.h 1118 1119# Predefined preprocessor variables. 1120 1121cat >>confdefs.h <<_ACEOF 1122#define PACKAGE_NAME "$PACKAGE_NAME" 1123_ACEOF 1124 1125 1126cat >>confdefs.h <<_ACEOF 1127#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1128_ACEOF 1129 1130 1131cat >>confdefs.h <<_ACEOF 1132#define PACKAGE_VERSION "$PACKAGE_VERSION" 1133_ACEOF 1134 1135 1136cat >>confdefs.h <<_ACEOF 1137#define PACKAGE_STRING "$PACKAGE_STRING" 1138_ACEOF 1139 1140 1141cat >>confdefs.h <<_ACEOF 1142#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1143_ACEOF 1144 1145 1146# Let the site file select an alternate cache file if it wants to. 1147# Prefer explicitly selected file to automatically selected ones. 1148if test -z "$CONFIG_SITE"; then 1149 if test "x$prefix" != xNONE; then 1150 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1151 else 1152 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1153 fi 1154fi 1155for ac_site_file in $CONFIG_SITE; do 1156 if test -r "$ac_site_file"; then 1157 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1158echo "$as_me: loading site script $ac_site_file" >&6;} 1159 sed 's/^/| /' "$ac_site_file" >&5 1160 . "$ac_site_file" 1161 fi 1162done 1163 1164if test -r "$cache_file"; then 1165 # Some versions of bash will fail to source /dev/null (special 1166 # files actually), so we avoid doing that. 1167 if test -f "$cache_file"; then 1168 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1169echo "$as_me: loading cache $cache_file" >&6;} 1170 case $cache_file in 1171 [\\/]* | ?:[\\/]* ) . $cache_file;; 1172 *) . ./$cache_file;; 1173 esac 1174 fi 1175else 1176 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1177echo "$as_me: creating cache $cache_file" >&6;} 1178 >$cache_file 1179fi 1180 1181# Check that the precious variables saved in the cache have kept the same 1182# value. 1183ac_cache_corrupted=false 1184for ac_var in `(set) 2>&1 | 1185 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1186 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1187 eval ac_new_set=\$ac_env_${ac_var}_set 1188 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1189 eval ac_new_val="\$ac_env_${ac_var}_value" 1190 case $ac_old_set,$ac_new_set in 1191 set,) 1192 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1193echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1194 ac_cache_corrupted=: ;; 1195 ,set) 1196 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1197echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1198 ac_cache_corrupted=: ;; 1199 ,);; 1200 *) 1201 if test "x$ac_old_val" != "x$ac_new_val"; then 1202 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1203echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1204 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1205echo "$as_me: former value: $ac_old_val" >&2;} 1206 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1207echo "$as_me: current value: $ac_new_val" >&2;} 1208 ac_cache_corrupted=: 1209 fi;; 1210 esac 1211 # Pass precious variables to config.status. 1212 if test "$ac_new_set" = set; then 1213 case $ac_new_val in 1214 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1215 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1216 *) ac_arg=$ac_var=$ac_new_val ;; 1217 esac 1218 case " $ac_configure_args " in 1219 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1220 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1221 esac 1222 fi 1223done 1224if $ac_cache_corrupted; then 1225 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1226echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1227 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1228echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1229 { (exit 1); exit 1; }; } 1230fi 1231 1232ac_ext=c 1233ac_cpp='$CPP $CPPFLAGS' 1234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1236ac_compiler_gnu=$ac_cv_c_compiler_gnu 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257# Add the stamp file to the list of files AC keeps track of, 1258# along with our hook. 1259 ac_config_headers="$ac_config_headers config.h" 1260 1261 1262 1263am__api_version="1.6" 1264ac_aux_dir= 1265for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1266 if test -f $ac_dir/install-sh; then 1267 ac_aux_dir=$ac_dir 1268 ac_install_sh="$ac_aux_dir/install-sh -c" 1269 break 1270 elif test -f $ac_dir/install.sh; then 1271 ac_aux_dir=$ac_dir 1272 ac_install_sh="$ac_aux_dir/install.sh -c" 1273 break 1274 elif test -f $ac_dir/shtool; then 1275 ac_aux_dir=$ac_dir 1276 ac_install_sh="$ac_aux_dir/shtool install -c" 1277 break 1278 fi 1279done 1280if test -z "$ac_aux_dir"; then 1281 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1282echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1283 { (exit 1); exit 1; }; } 1284fi 1285ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1286ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1287ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1288 1289# Find a good install program. We prefer a C program (faster), 1290# so one script is as good as another. But avoid the broken or 1291# incompatible versions: 1292# SysV /etc/install, /usr/sbin/install 1293# SunOS /usr/etc/install 1294# IRIX /sbin/install 1295# AIX /bin/install 1296# AmigaOS /C/install, which installs bootblocks on floppy discs 1297# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1298# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1299# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1300# OS/2's system install, which has a completely different semantic 1301# ./install, which can be erroneously created by make from ./install.sh. 1302echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1303echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1304if test -z "$INSTALL"; then 1305if test "${ac_cv_path_install+set}" = set; then 1306 echo $ECHO_N "(cached) $ECHO_C" >&6 1307else 1308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1309for as_dir in $PATH 1310do 1311 IFS=$as_save_IFS 1312 test -z "$as_dir" && as_dir=. 1313 # Account for people who put trailing slashes in PATH elements. 1314case $as_dir/ in 1315 ./ | .// | /cC/* | \ 1316 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1317 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1318 /usr/ucb/* ) ;; 1319 *) 1320 # OSF1 and SCO ODT 3.0 have their own names for install. 1321 # Don't use installbsd from OSF since it installs stuff as root 1322 # by default. 1323 for ac_prog in ginstall scoinst install; do 1324 for ac_exec_ext in '' $ac_executable_extensions; do 1325 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1326 if test $ac_prog = install && 1327 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1328 # AIX install. It has an incompatible calling convention. 1329 : 1330 elif test $ac_prog = install && 1331 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1332 # program-specific install script used by HP pwplus--don't use. 1333 : 1334 else 1335 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1336 break 3 1337 fi 1338 fi 1339 done 1340 done 1341 ;; 1342esac 1343done 1344 1345 1346fi 1347 if test "${ac_cv_path_install+set}" = set; then 1348 INSTALL=$ac_cv_path_install 1349 else 1350 # As a last resort, use the slow shell script. We don't cache a 1351 # path for INSTALL within a source directory, because that will 1352 # break other packages using the cache if that directory is 1353 # removed, or if the path is relative. 1354 INSTALL=$ac_install_sh 1355 fi 1356fi 1357echo "$as_me:$LINENO: result: $INSTALL" >&5 1358echo "${ECHO_T}$INSTALL" >&6 1359 1360# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1361# It thinks the first close brace ends the variable substitution. 1362test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1363 1364test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1365 1366test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1367 1368echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1369echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1370# Just in case 1371sleep 1 1372echo timestamp > conftest.file 1373# Do `set' in a subshell so we don't clobber the current shell's 1374# arguments. Must try -L first in case configure is actually a 1375# symlink; some systems play weird games with the mod time of symlinks 1376# (eg FreeBSD returns the mod time of the symlink's containing 1377# directory). 1378if ( 1379 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1380 if test "$*" = "X"; then 1381 # -L didn't work. 1382 set X `ls -t $srcdir/configure conftest.file` 1383 fi 1384 rm -f conftest.file 1385 if test "$*" != "X $srcdir/configure conftest.file" \ 1386 && test "$*" != "X conftest.file $srcdir/configure"; then 1387 1388 # If neither matched, then we have a broken ls. This can happen 1389 # if, for instance, CONFIG_SHELL is bash and it inherits a 1390 # broken ls alias from the environment. This has actually 1391 # happened. Such a system could not be considered "sane". 1392 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1393alias in your environment" >&5 1394echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1395alias in your environment" >&2;} 1396 { (exit 1); exit 1; }; } 1397 fi 1398 1399 test "$2" = conftest.file 1400 ) 1401then 1402 # Ok. 1403 : 1404else 1405 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1406Check your system clock" >&5 1407echo "$as_me: error: newly created file is older than distributed files! 1408Check your system clock" >&2;} 1409 { (exit 1); exit 1; }; } 1410fi 1411echo "$as_me:$LINENO: result: yes" >&5 1412echo "${ECHO_T}yes" >&6 1413test "$program_prefix" != NONE && 1414 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1415# Use a double $ so make ignores it. 1416test "$program_suffix" != NONE && 1417 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1418# Double any \ or $. echo might interpret backslashes. 1419# By default was `s,x,x', remove it if useless. 1420cat <<\_ACEOF >conftest.sed 1421s/[\\$]/&&/g;s/;s,x,x,$// 1422_ACEOF 1423program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1424rm conftest.sed 1425 1426 1427# expand $ac_aux_dir to an absolute path 1428am_aux_dir=`cd $ac_aux_dir && pwd` 1429 1430test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1431# Use eval to expand $SHELL 1432if eval "$MISSING --run true"; then 1433 am_missing_run="$MISSING --run " 1434else 1435 am_missing_run= 1436 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1437echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1438fi 1439 1440for ac_prog in gawk mawk nawk awk 1441do 1442 # Extract the first word of "$ac_prog", so it can be a program name with args. 1443set dummy $ac_prog; ac_word=$2 1444echo "$as_me:$LINENO: checking for $ac_word" >&5 1445echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1446if test "${ac_cv_prog_AWK+set}" = set; then 1447 echo $ECHO_N "(cached) $ECHO_C" >&6 1448else 1449 if test -n "$AWK"; then 1450 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1451else 1452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1453for as_dir in $PATH 1454do 1455 IFS=$as_save_IFS 1456 test -z "$as_dir" && as_dir=. 1457 for ac_exec_ext in '' $ac_executable_extensions; do 1458 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1459 ac_cv_prog_AWK="$ac_prog" 1460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1461 break 2 1462 fi 1463done 1464done 1465 1466fi 1467fi 1468AWK=$ac_cv_prog_AWK 1469if test -n "$AWK"; then 1470 echo "$as_me:$LINENO: result: $AWK" >&5 1471echo "${ECHO_T}$AWK" >&6 1472else 1473 echo "$as_me:$LINENO: result: no" >&5 1474echo "${ECHO_T}no" >&6 1475fi 1476 1477 test -n "$AWK" && break 1478done 1479 1480echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1481echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1482set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1483if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1484 echo $ECHO_N "(cached) $ECHO_C" >&6 1485else 1486 cat >conftest.make <<\_ACEOF 1487all: 1488 @echo 'ac_maketemp="$(MAKE)"' 1489_ACEOF 1490# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1491eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1492if test -n "$ac_maketemp"; then 1493 eval ac_cv_prog_make_${ac_make}_set=yes 1494else 1495 eval ac_cv_prog_make_${ac_make}_set=no 1496fi 1497rm -f conftest.make 1498fi 1499if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1500 echo "$as_me:$LINENO: result: yes" >&5 1501echo "${ECHO_T}yes" >&6 1502 SET_MAKE= 1503else 1504 echo "$as_me:$LINENO: result: no" >&5 1505echo "${ECHO_T}no" >&6 1506 SET_MAKE="MAKE=${MAKE-make}" 1507fi 1508 1509 # test to see if srcdir already configured 1510if test "`cd $srcdir && pwd`" != "`pwd`" && 1511 test -f $srcdir/config.status; then 1512 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1513echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1514 { (exit 1); exit 1; }; } 1515fi 1516 1517# Define the identity of the package. 1518 PACKAGE=mping 1519 VERSION=2.01 1520 1521 1522cat >>confdefs.h <<_ACEOF 1523#define PACKAGE "$PACKAGE" 1524_ACEOF 1525 1526 1527cat >>confdefs.h <<_ACEOF 1528#define VERSION "$VERSION" 1529_ACEOF 1530 1531# Some tools Automake needs. 1532 1533ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1534 1535 1536AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1537 1538 1539AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1540 1541 1542AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1543 1544 1545MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1546 1547 1548AMTAR=${AMTAR-"${am_missing_run}tar"} 1549 1550install_sh=${install_sh-"$am_aux_dir/install-sh"} 1551 1552# Installed binaries are usually stripped using `strip' when the user 1553# run `make install-strip'. However `strip' might not be the right 1554# tool to use in cross-compilation environments, therefore Automake 1555# will honor the `STRIP' environment variable to overrule this program. 1556if test "$cross_compiling" != no; then 1557 if test -n "$ac_tool_prefix"; then 1558 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1559set dummy ${ac_tool_prefix}strip; ac_word=$2 1560echo "$as_me:$LINENO: checking for $ac_word" >&5 1561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1562if test "${ac_cv_prog_STRIP+set}" = set; then 1563 echo $ECHO_N "(cached) $ECHO_C" >&6 1564else 1565 if test -n "$STRIP"; then 1566 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1567else 1568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1569for as_dir in $PATH 1570do 1571 IFS=$as_save_IFS 1572 test -z "$as_dir" && as_dir=. 1573 for ac_exec_ext in '' $ac_executable_extensions; do 1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1575 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1577 break 2 1578 fi 1579done 1580done 1581 1582fi 1583fi 1584STRIP=$ac_cv_prog_STRIP 1585if test -n "$STRIP"; then 1586 echo "$as_me:$LINENO: result: $STRIP" >&5 1587echo "${ECHO_T}$STRIP" >&6 1588else 1589 echo "$as_me:$LINENO: result: no" >&5 1590echo "${ECHO_T}no" >&6 1591fi 1592 1593fi 1594if test -z "$ac_cv_prog_STRIP"; then 1595 ac_ct_STRIP=$STRIP 1596 # Extract the first word of "strip", so it can be a program name with args. 1597set dummy strip; ac_word=$2 1598echo "$as_me:$LINENO: checking for $ac_word" >&5 1599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1600if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1601 echo $ECHO_N "(cached) $ECHO_C" >&6 1602else 1603 if test -n "$ac_ct_STRIP"; then 1604 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1605else 1606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1607for as_dir in $PATH 1608do 1609 IFS=$as_save_IFS 1610 test -z "$as_dir" && as_dir=. 1611 for ac_exec_ext in '' $ac_executable_extensions; do 1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1613 ac_cv_prog_ac_ct_STRIP="strip" 1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1615 break 2 1616 fi 1617done 1618done 1619 1620 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1621fi 1622fi 1623ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1624if test -n "$ac_ct_STRIP"; then 1625 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1626echo "${ECHO_T}$ac_ct_STRIP" >&6 1627else 1628 echo "$as_me:$LINENO: result: no" >&5 1629echo "${ECHO_T}no" >&6 1630fi 1631 1632 STRIP=$ac_ct_STRIP 1633else 1634 STRIP="$ac_cv_prog_STRIP" 1635fi 1636 1637fi 1638INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1639 1640# We need awk for the "check" target. The system "awk" is bad on 1641# some platforms. 1642 1643 1644 1645 1646ac_ext=c 1647ac_cpp='$CPP $CPPFLAGS' 1648ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1649ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1650ac_compiler_gnu=$ac_cv_c_compiler_gnu 1651 1652ac_ext=c 1653ac_cpp='$CPP $CPPFLAGS' 1654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1656ac_compiler_gnu=$ac_cv_c_compiler_gnu 1657if test -n "$ac_tool_prefix"; then 1658 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1659set dummy ${ac_tool_prefix}gcc; ac_word=$2 1660echo "$as_me:$LINENO: checking for $ac_word" >&5 1661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1662if test "${ac_cv_prog_CC+set}" = set; then 1663 echo $ECHO_N "(cached) $ECHO_C" >&6 1664else 1665 if test -n "$CC"; then 1666 ac_cv_prog_CC="$CC" # Let the user override the test. 1667else 1668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1669for as_dir in $PATH 1670do 1671 IFS=$as_save_IFS 1672 test -z "$as_dir" && as_dir=. 1673 for ac_exec_ext in '' $ac_executable_extensions; do 1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1675 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1677 break 2 1678 fi 1679done 1680done 1681 1682fi 1683fi 1684CC=$ac_cv_prog_CC 1685if test -n "$CC"; then 1686 echo "$as_me:$LINENO: result: $CC" >&5 1687echo "${ECHO_T}$CC" >&6 1688else 1689 echo "$as_me:$LINENO: result: no" >&5 1690echo "${ECHO_T}no" >&6 1691fi 1692 1693fi 1694if test -z "$ac_cv_prog_CC"; then 1695 ac_ct_CC=$CC 1696 # Extract the first word of "gcc", so it can be a program name with args. 1697set dummy gcc; ac_word=$2 1698echo "$as_me:$LINENO: checking for $ac_word" >&5 1699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1700if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1701 echo $ECHO_N "(cached) $ECHO_C" >&6 1702else 1703 if test -n "$ac_ct_CC"; then 1704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1705else 1706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1707for as_dir in $PATH 1708do 1709 IFS=$as_save_IFS 1710 test -z "$as_dir" && as_dir=. 1711 for ac_exec_ext in '' $ac_executable_extensions; do 1712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1713 ac_cv_prog_ac_ct_CC="gcc" 1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1715 break 2 1716 fi 1717done 1718done 1719 1720fi 1721fi 1722ac_ct_CC=$ac_cv_prog_ac_ct_CC 1723if test -n "$ac_ct_CC"; then 1724 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1725echo "${ECHO_T}$ac_ct_CC" >&6 1726else 1727 echo "$as_me:$LINENO: result: no" >&5 1728echo "${ECHO_T}no" >&6 1729fi 1730 1731 CC=$ac_ct_CC 1732else 1733 CC="$ac_cv_prog_CC" 1734fi 1735 1736if test -z "$CC"; then 1737 if test -n "$ac_tool_prefix"; then 1738 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1739set dummy ${ac_tool_prefix}cc; ac_word=$2 1740echo "$as_me:$LINENO: checking for $ac_word" >&5 1741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1742if test "${ac_cv_prog_CC+set}" = set; then 1743 echo $ECHO_N "(cached) $ECHO_C" >&6 1744else 1745 if test -n "$CC"; then 1746 ac_cv_prog_CC="$CC" # Let the user override the test. 1747else 1748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1749for as_dir in $PATH 1750do 1751 IFS=$as_save_IFS 1752 test -z "$as_dir" && as_dir=. 1753 for ac_exec_ext in '' $ac_executable_extensions; do 1754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1755 ac_cv_prog_CC="${ac_tool_prefix}cc" 1756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1757 break 2 1758 fi 1759done 1760done 1761 1762fi 1763fi 1764CC=$ac_cv_prog_CC 1765if test -n "$CC"; then 1766 echo "$as_me:$LINENO: result: $CC" >&5 1767echo "${ECHO_T}$CC" >&6 1768else 1769 echo "$as_me:$LINENO: result: no" >&5 1770echo "${ECHO_T}no" >&6 1771fi 1772 1773fi 1774if test -z "$ac_cv_prog_CC"; then 1775 ac_ct_CC=$CC 1776 # Extract the first word of "cc", so it can be a program name with args. 1777set dummy cc; ac_word=$2 1778echo "$as_me:$LINENO: checking for $ac_word" >&5 1779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1780if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1781 echo $ECHO_N "(cached) $ECHO_C" >&6 1782else 1783 if test -n "$ac_ct_CC"; then 1784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1785else 1786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1787for as_dir in $PATH 1788do 1789 IFS=$as_save_IFS 1790 test -z "$as_dir" && as_dir=. 1791 for ac_exec_ext in '' $ac_executable_extensions; do 1792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1793 ac_cv_prog_ac_ct_CC="cc" 1794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1795 break 2 1796 fi 1797done 1798done 1799 1800fi 1801fi 1802ac_ct_CC=$ac_cv_prog_ac_ct_CC 1803if test -n "$ac_ct_CC"; then 1804 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1805echo "${ECHO_T}$ac_ct_CC" >&6 1806else 1807 echo "$as_me:$LINENO: result: no" >&5 1808echo "${ECHO_T}no" >&6 1809fi 1810 1811 CC=$ac_ct_CC 1812else 1813 CC="$ac_cv_prog_CC" 1814fi 1815 1816fi 1817if test -z "$CC"; then 1818 # Extract the first word of "cc", so it can be a program name with args. 1819set dummy cc; ac_word=$2 1820echo "$as_me:$LINENO: checking for $ac_word" >&5 1821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1822if test "${ac_cv_prog_CC+set}" = set; then 1823 echo $ECHO_N "(cached) $ECHO_C" >&6 1824else 1825 if test -n "$CC"; then 1826 ac_cv_prog_CC="$CC" # Let the user override the test. 1827else 1828 ac_prog_rejected=no 1829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1830for as_dir in $PATH 1831do 1832 IFS=$as_save_IFS 1833 test -z "$as_dir" && as_dir=. 1834 for ac_exec_ext in '' $ac_executable_extensions; do 1835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1836 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1837 ac_prog_rejected=yes 1838 continue 1839 fi 1840 ac_cv_prog_CC="cc" 1841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1842 break 2 1843 fi 1844done 1845done 1846 1847if test $ac_prog_rejected = yes; then 1848 # We found a bogon in the path, so make sure we never use it. 1849 set dummy $ac_cv_prog_CC 1850 shift 1851 if test $# != 0; then 1852 # We chose a different compiler from the bogus one. 1853 # However, it has the same basename, so the bogon will be chosen 1854 # first if we set CC to just the basename; use the full file name. 1855 shift 1856 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1857 fi 1858fi 1859fi 1860fi 1861CC=$ac_cv_prog_CC 1862if test -n "$CC"; then 1863 echo "$as_me:$LINENO: result: $CC" >&5 1864echo "${ECHO_T}$CC" >&6 1865else 1866 echo "$as_me:$LINENO: result: no" >&5 1867echo "${ECHO_T}no" >&6 1868fi 1869 1870fi 1871if test -z "$CC"; then 1872 if test -n "$ac_tool_prefix"; then 1873 for ac_prog in cl 1874 do 1875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1876set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1877echo "$as_me:$LINENO: checking for $ac_word" >&5 1878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1879if test "${ac_cv_prog_CC+set}" = set; then 1880 echo $ECHO_N "(cached) $ECHO_C" >&6 1881else 1882 if test -n "$CC"; then 1883 ac_cv_prog_CC="$CC" # Let the user override the test. 1884else 1885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1886for as_dir in $PATH 1887do 1888 IFS=$as_save_IFS 1889 test -z "$as_dir" && as_dir=. 1890 for ac_exec_ext in '' $ac_executable_extensions; do 1891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1892 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1894 break 2 1895 fi 1896done 1897done 1898 1899fi 1900fi 1901CC=$ac_cv_prog_CC 1902if test -n "$CC"; then 1903 echo "$as_me:$LINENO: result: $CC" >&5 1904echo "${ECHO_T}$CC" >&6 1905else 1906 echo "$as_me:$LINENO: result: no" >&5 1907echo "${ECHO_T}no" >&6 1908fi 1909 1910 test -n "$CC" && break 1911 done 1912fi 1913if test -z "$CC"; then 1914 ac_ct_CC=$CC 1915 for ac_prog in cl 1916do 1917 # Extract the first word of "$ac_prog", so it can be a program name with args. 1918set dummy $ac_prog; ac_word=$2 1919echo "$as_me:$LINENO: checking for $ac_word" >&5 1920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1921if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1922 echo $ECHO_N "(cached) $ECHO_C" >&6 1923else 1924 if test -n "$ac_ct_CC"; then 1925 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1926else 1927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1928for as_dir in $PATH 1929do 1930 IFS=$as_save_IFS 1931 test -z "$as_dir" && as_dir=. 1932 for ac_exec_ext in '' $ac_executable_extensions; do 1933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1934 ac_cv_prog_ac_ct_CC="$ac_prog" 1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1936 break 2 1937 fi 1938done 1939done 1940 1941fi 1942fi 1943ac_ct_CC=$ac_cv_prog_ac_ct_CC 1944if test -n "$ac_ct_CC"; then 1945 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1946echo "${ECHO_T}$ac_ct_CC" >&6 1947else 1948 echo "$as_me:$LINENO: result: no" >&5 1949echo "${ECHO_T}no" >&6 1950fi 1951 1952 test -n "$ac_ct_CC" && break 1953done 1954 1955 CC=$ac_ct_CC 1956fi 1957 1958fi 1959 1960 1961test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1962See \`config.log' for more details." >&5 1963echo "$as_me: error: no acceptable C compiler found in \$PATH 1964See \`config.log' for more details." >&2;} 1965 { (exit 1); exit 1; }; } 1966 1967# Provide some information about the compiler. 1968echo "$as_me:$LINENO:" \ 1969 "checking for C compiler version" >&5 1970ac_compiler=`set X $ac_compile; echo $2` 1971{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1972 (eval $ac_compiler --version </dev/null >&5) 2>&5 1973 ac_status=$? 1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1975 (exit $ac_status); } 1976{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1977 (eval $ac_compiler -v </dev/null >&5) 2>&5 1978 ac_status=$? 1979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1980 (exit $ac_status); } 1981{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1982 (eval $ac_compiler -V </dev/null >&5) 2>&5 1983 ac_status=$? 1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1985 (exit $ac_status); } 1986 1987cat >conftest.$ac_ext <<_ACEOF 1988/* confdefs.h. */ 1989_ACEOF 1990cat confdefs.h >>conftest.$ac_ext 1991cat >>conftest.$ac_ext <<_ACEOF 1992/* end confdefs.h. */ 1993 1994int 1995main () 1996{ 1997 1998 ; 1999 return 0; 2000} 2001_ACEOF 2002ac_clean_files_save=$ac_clean_files 2003ac_clean_files="$ac_clean_files a.out a.exe b.out" 2004# Try to create an executable without -o first, disregard a.out. 2005# It will help us diagnose broken compilers, and finding out an intuition 2006# of exeext. 2007echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2008echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2009ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2010if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2011 (eval $ac_link_default) 2>&5 2012 ac_status=$? 2013 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2014 (exit $ac_status); }; then 2015 # Find the output, starting from the most likely. This scheme is 2016# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2017# resort. 2018 2019# Be careful to initialize this variable, since it used to be cached. 2020# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2021ac_cv_exeext= 2022# b.out is created by i960 compilers. 2023for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2024do 2025 test -f "$ac_file" || continue 2026 case $ac_file in 2027 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2028 ;; 2029 conftest.$ac_ext ) 2030 # This is the source file. 2031 ;; 2032 [ab].out ) 2033 # We found the default executable, but exeext='' is most 2034 # certainly right. 2035 break;; 2036 *.* ) 2037 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2038 # FIXME: I believe we export ac_cv_exeext for Libtool, 2039 # but it would be cool to find out if it's true. Does anybody 2040 # maintain Libtool? --akim. 2041 export ac_cv_exeext 2042 break;; 2043 * ) 2044 break;; 2045 esac 2046done 2047else 2048 echo "$as_me: failed program was:" >&5 2049sed 's/^/| /' conftest.$ac_ext >&5 2050 2051{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2052See \`config.log' for more details." >&5 2053echo "$as_me: error: C compiler cannot create executables 2054See \`config.log' for more details." >&2;} 2055 { (exit 77); exit 77; }; } 2056fi 2057 2058ac_exeext=$ac_cv_exeext 2059echo "$as_me:$LINENO: result: $ac_file" >&5 2060echo "${ECHO_T}$ac_file" >&6 2061 2062# Check the compiler produces executables we can run. If not, either 2063# the compiler is broken, or we cross compile. 2064echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2065echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2066# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2067# If not cross compiling, check that we can run a simple program. 2068if test "$cross_compiling" != yes; then 2069 if { ac_try='./$ac_file' 2070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2071 (eval $ac_try) 2>&5 2072 ac_status=$? 2073 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2074 (exit $ac_status); }; }; then 2075 cross_compiling=no 2076 else 2077 if test "$cross_compiling" = maybe; then 2078 cross_compiling=yes 2079 else 2080 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2081If you meant to cross compile, use \`--host'. 2082See \`config.log' for more details." >&5 2083echo "$as_me: error: cannot run C compiled programs. 2084If you meant to cross compile, use \`--host'. 2085See \`config.log' for more details." >&2;} 2086 { (exit 1); exit 1; }; } 2087 fi 2088 fi 2089fi 2090echo "$as_me:$LINENO: result: yes" >&5 2091echo "${ECHO_T}yes" >&6 2092 2093rm -f a.out a.exe conftest$ac_cv_exeext b.out 2094ac_clean_files=$ac_clean_files_save 2095# Check the compiler produces executables we can run. If not, either 2096# the compiler is broken, or we cross compile. 2097echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2098echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2099echo "$as_me:$LINENO: result: $cross_compiling" >&5 2100echo "${ECHO_T}$cross_compiling" >&6 2101 2102echo "$as_me:$LINENO: checking for suffix of executables" >&5 2103echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2105 (eval $ac_link) 2>&5 2106 ac_status=$? 2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2108 (exit $ac_status); }; then 2109 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2110# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2111# work properly (i.e., refer to `conftest.exe'), while it won't with 2112# `rm'. 2113for ac_file in conftest.exe conftest conftest.*; do 2114 test -f "$ac_file" || continue 2115 case $ac_file in 2116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2117 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2118 export ac_cv_exeext 2119 break;; 2120 * ) break;; 2121 esac 2122done 2123else 2124 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2125See \`config.log' for more details." >&5 2126echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2127See \`config.log' for more details." >&2;} 2128 { (exit 1); exit 1; }; } 2129fi 2130 2131rm -f conftest$ac_cv_exeext 2132echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2133echo "${ECHO_T}$ac_cv_exeext" >&6 2134 2135rm -f conftest.$ac_ext 2136EXEEXT=$ac_cv_exeext 2137ac_exeext=$EXEEXT 2138echo "$as_me:$LINENO: checking for suffix of object files" >&5 2139echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2140if test "${ac_cv_objext+set}" = set; then 2141 echo $ECHO_N "(cached) $ECHO_C" >&6 2142else 2143 cat >conftest.$ac_ext <<_ACEOF 2144/* confdefs.h. */ 2145_ACEOF 2146cat confdefs.h >>conftest.$ac_ext 2147cat >>conftest.$ac_ext <<_ACEOF 2148/* end confdefs.h. */ 2149 2150int 2151main () 2152{ 2153 2154 ; 2155 return 0; 2156} 2157_ACEOF 2158rm -f conftest.o conftest.obj 2159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2160 (eval $ac_compile) 2>&5 2161 ac_status=$? 2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2163 (exit $ac_status); }; then 2164 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2165 case $ac_file in 2166 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2167 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2168 break;; 2169 esac 2170done 2171else 2172 echo "$as_me: failed program was:" >&5 2173sed 's/^/| /' conftest.$ac_ext >&5 2174 2175{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2176See \`config.log' for more details." >&5 2177echo "$as_me: error: cannot compute suffix of object files: cannot compile 2178See \`config.log' for more details." >&2;} 2179 { (exit 1); exit 1; }; } 2180fi 2181 2182rm -f conftest.$ac_cv_objext conftest.$ac_ext 2183fi 2184echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2185echo "${ECHO_T}$ac_cv_objext" >&6 2186OBJEXT=$ac_cv_objext 2187ac_objext=$OBJEXT 2188echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2189echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2190if test "${ac_cv_c_compiler_gnu+set}" = set; then 2191 echo $ECHO_N "(cached) $ECHO_C" >&6 2192else 2193 cat >conftest.$ac_ext <<_ACEOF 2194/* confdefs.h. */ 2195_ACEOF 2196cat confdefs.h >>conftest.$ac_ext 2197cat >>conftest.$ac_ext <<_ACEOF 2198/* end confdefs.h. */ 2199 2200int 2201main () 2202{ 2203#ifndef __GNUC__ 2204 choke me 2205#endif 2206 2207 ; 2208 return 0; 2209} 2210_ACEOF 2211rm -f conftest.$ac_objext 2212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2213 (eval $ac_compile) 2>conftest.er1 2214 ac_status=$? 2215 grep -v '^ *+' conftest.er1 >conftest.err 2216 rm -f conftest.er1 2217 cat conftest.err >&5 2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2219 (exit $ac_status); } && 2220 { ac_try='test -z "$ac_c_werror_flag" 2221 || test ! -s conftest.err' 2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2223 (eval $ac_try) 2>&5 2224 ac_status=$? 2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2226 (exit $ac_status); }; } && 2227 { ac_try='test -s conftest.$ac_objext' 2228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2229 (eval $ac_try) 2>&5 2230 ac_status=$? 2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2232 (exit $ac_status); }; }; then 2233 ac_compiler_gnu=yes 2234else 2235 echo "$as_me: failed program was:" >&5 2236sed 's/^/| /' conftest.$ac_ext >&5 2237 2238ac_compiler_gnu=no 2239fi 2240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2241ac_cv_c_compiler_gnu=$ac_compiler_gnu 2242 2243fi 2244echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2245echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2246GCC=`test $ac_compiler_gnu = yes && echo yes` 2247ac_test_CFLAGS=${CFLAGS+set} 2248ac_save_CFLAGS=$CFLAGS 2249CFLAGS="-g" 2250echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2251echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2252if test "${ac_cv_prog_cc_g+set}" = set; then 2253 echo $ECHO_N "(cached) $ECHO_C" >&6 2254else 2255 cat >conftest.$ac_ext <<_ACEOF 2256/* confdefs.h. */ 2257_ACEOF 2258cat confdefs.h >>conftest.$ac_ext 2259cat >>conftest.$ac_ext <<_ACEOF 2260/* end confdefs.h. */ 2261 2262int 2263main () 2264{ 2265 2266 ; 2267 return 0; 2268} 2269_ACEOF 2270rm -f conftest.$ac_objext 2271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2272 (eval $ac_compile) 2>conftest.er1 2273 ac_status=$? 2274 grep -v '^ *+' conftest.er1 >conftest.err 2275 rm -f conftest.er1 2276 cat conftest.err >&5 2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2278 (exit $ac_status); } && 2279 { ac_try='test -z "$ac_c_werror_flag" 2280 || test ! -s conftest.err' 2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2282 (eval $ac_try) 2>&5 2283 ac_status=$? 2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2285 (exit $ac_status); }; } && 2286 { ac_try='test -s conftest.$ac_objext' 2287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2288 (eval $ac_try) 2>&5 2289 ac_status=$? 2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2291 (exit $ac_status); }; }; then 2292 ac_cv_prog_cc_g=yes 2293else 2294 echo "$as_me: failed program was:" >&5 2295sed 's/^/| /' conftest.$ac_ext >&5 2296 2297ac_cv_prog_cc_g=no 2298fi 2299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2300fi 2301echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2302echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2303if test "$ac_test_CFLAGS" = set; then 2304 CFLAGS=$ac_save_CFLAGS 2305elif test $ac_cv_prog_cc_g = yes; then 2306 if test "$GCC" = yes; then 2307 CFLAGS="-g -O2" 2308 else 2309 CFLAGS="-g" 2310 fi 2311else 2312 if test "$GCC" = yes; then 2313 CFLAGS="-O2" 2314 else 2315 CFLAGS= 2316 fi 2317fi 2318echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2319echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2320if test "${ac_cv_prog_cc_stdc+set}" = set; then 2321 echo $ECHO_N "(cached) $ECHO_C" >&6 2322else 2323 ac_cv_prog_cc_stdc=no 2324ac_save_CC=$CC 2325cat >conftest.$ac_ext <<_ACEOF 2326/* confdefs.h. */ 2327_ACEOF 2328cat confdefs.h >>conftest.$ac_ext 2329cat >>conftest.$ac_ext <<_ACEOF 2330/* end confdefs.h. */ 2331#include <stdarg.h> 2332#include <stdio.h> 2333#include <sys/types.h> 2334#include <sys/stat.h> 2335/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2336struct buf { int x; }; 2337FILE * (*rcsopen) (struct buf *, struct stat *, int); 2338static char *e (p, i) 2339 char **p; 2340 int i; 2341{ 2342 return p[i]; 2343} 2344static char *f (char * (*g) (char **, int), char **p, ...) 2345{ 2346 char *s; 2347 va_list v; 2348 va_start (v,p); 2349 s = g (p, va_arg (v,int)); 2350 va_end (v); 2351 return s; 2352} 2353 2354/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2355 function prototypes and stuff, but not '\xHH' hex character constants. 2356 These don't provoke an error unfortunately, instead are silently treated 2357 as 'x'. The following induces an error, until -std1 is added to get 2358 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2359 array size at least. It's necessary to write '\x00'==0 to get something 2360 that's true only with -std1. */ 2361int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2362 2363int test (int i, double x); 2364struct s1 {int (*f) (int a);}; 2365struct s2 {int (*f) (double a);}; 2366int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2367int argc; 2368char **argv; 2369int 2370main () 2371{ 2372return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2373 ; 2374 return 0; 2375} 2376_ACEOF 2377# Don't try gcc -ansi; that turns off useful extensions and 2378# breaks some systems' header files. 2379# AIX -qlanglvl=ansi 2380# Ultrix and OSF/1 -std1 2381# HP-UX 10.20 and later -Ae 2382# HP-UX older versions -Aa -D_HPUX_SOURCE 2383# SVR4 -Xc -D__EXTENSIONS__ 2384for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2385do 2386 CC="$ac_save_CC $ac_arg" 2387 rm -f conftest.$ac_objext 2388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2389 (eval $ac_compile) 2>conftest.er1 2390 ac_status=$? 2391 grep -v '^ *+' conftest.er1 >conftest.err 2392 rm -f conftest.er1 2393 cat conftest.err >&5 2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2395 (exit $ac_status); } && 2396 { ac_try='test -z "$ac_c_werror_flag" 2397 || test ! -s conftest.err' 2398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2399 (eval $ac_try) 2>&5 2400 ac_status=$? 2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2402 (exit $ac_status); }; } && 2403 { ac_try='test -s conftest.$ac_objext' 2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2405 (eval $ac_try) 2>&5 2406 ac_status=$? 2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2408 (exit $ac_status); }; }; then 2409 ac_cv_prog_cc_stdc=$ac_arg 2410break 2411else 2412 echo "$as_me: failed program was:" >&5 2413sed 's/^/| /' conftest.$ac_ext >&5 2414 2415fi 2416rm -f conftest.err conftest.$ac_objext 2417done 2418rm -f conftest.$ac_ext conftest.$ac_objext 2419CC=$ac_save_CC 2420 2421fi 2422 2423case "x$ac_cv_prog_cc_stdc" in 2424 x|xno) 2425 echo "$as_me:$LINENO: result: none needed" >&5 2426echo "${ECHO_T}none needed" >&6 ;; 2427 *) 2428 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2429echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2430 CC="$CC $ac_cv_prog_cc_stdc" ;; 2431esac 2432 2433# Some people use a C++ compiler to compile C. Since we use `exit', 2434# in C++ we need to declare it. In case someone uses the same compiler 2435# for both compiling C and C++ we need to have the C++ compiler decide 2436# the declaration of exit, since it's the most demanding environment. 2437cat >conftest.$ac_ext <<_ACEOF 2438#ifndef __cplusplus 2439 choke me 2440#endif 2441_ACEOF 2442rm -f conftest.$ac_objext 2443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2444 (eval $ac_compile) 2>conftest.er1 2445 ac_status=$? 2446 grep -v '^ *+' conftest.er1 >conftest.err 2447 rm -f conftest.er1 2448 cat conftest.err >&5 2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2450 (exit $ac_status); } && 2451 { ac_try='test -z "$ac_c_werror_flag" 2452 || test ! -s conftest.err' 2453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2454 (eval $ac_try) 2>&5 2455 ac_status=$? 2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2457 (exit $ac_status); }; } && 2458 { ac_try='test -s conftest.$ac_objext' 2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2460 (eval $ac_try) 2>&5 2461 ac_status=$? 2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2463 (exit $ac_status); }; }; then 2464 for ac_declaration in \ 2465 '' \ 2466 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2467 'extern "C" void std::exit (int); using std::exit;' \ 2468 'extern "C" void exit (int) throw ();' \ 2469 'extern "C" void exit (int);' \ 2470 'void exit (int);' 2471do 2472 cat >conftest.$ac_ext <<_ACEOF 2473/* confdefs.h. */ 2474_ACEOF 2475cat confdefs.h >>conftest.$ac_ext 2476cat >>conftest.$ac_ext <<_ACEOF 2477/* end confdefs.h. */ 2478$ac_declaration 2479#include <stdlib.h> 2480int 2481main () 2482{ 2483exit (42); 2484 ; 2485 return 0; 2486} 2487_ACEOF 2488rm -f conftest.$ac_objext 2489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2490 (eval $ac_compile) 2>conftest.er1 2491 ac_status=$? 2492 grep -v '^ *+' conftest.er1 >conftest.err 2493 rm -f conftest.er1 2494 cat conftest.err >&5 2495 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2496 (exit $ac_status); } && 2497 { ac_try='test -z "$ac_c_werror_flag" 2498 || test ! -s conftest.err' 2499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2500 (eval $ac_try) 2>&5 2501 ac_status=$? 2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2503 (exit $ac_status); }; } && 2504 { ac_try='test -s conftest.$ac_objext' 2505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2506 (eval $ac_try) 2>&5 2507 ac_status=$? 2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2509 (exit $ac_status); }; }; then 2510 : 2511else 2512 echo "$as_me: failed program was:" >&5 2513sed 's/^/| /' conftest.$ac_ext >&5 2514 2515continue 2516fi 2517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2518 cat >conftest.$ac_ext <<_ACEOF 2519/* confdefs.h. */ 2520_ACEOF 2521cat confdefs.h >>conftest.$ac_ext 2522cat >>conftest.$ac_ext <<_ACEOF 2523/* end confdefs.h. */ 2524$ac_declaration 2525int 2526main () 2527{ 2528exit (42); 2529 ; 2530 return 0; 2531} 2532_ACEOF 2533rm -f conftest.$ac_objext 2534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2535 (eval $ac_compile) 2>conftest.er1 2536 ac_status=$? 2537 grep -v '^ *+' conftest.er1 >conftest.err 2538 rm -f conftest.er1 2539 cat conftest.err >&5 2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2541 (exit $ac_status); } && 2542 { ac_try='test -z "$ac_c_werror_flag" 2543 || test ! -s conftest.err' 2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2545 (eval $ac_try) 2>&5 2546 ac_status=$? 2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2548 (exit $ac_status); }; } && 2549 { ac_try='test -s conftest.$ac_objext' 2550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2551 (eval $ac_try) 2>&5 2552 ac_status=$? 2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2554 (exit $ac_status); }; }; then 2555 break 2556else 2557 echo "$as_me: failed program was:" >&5 2558sed 's/^/| /' conftest.$ac_ext >&5 2559 2560fi 2561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2562done 2563rm -f conftest* 2564if test -n "$ac_declaration"; then 2565 echo '#ifdef __cplusplus' >>confdefs.h 2566 echo $ac_declaration >>confdefs.h 2567 echo '#endif' >>confdefs.h 2568fi 2569 2570else 2571 echo "$as_me: failed program was:" >&5 2572sed 's/^/| /' conftest.$ac_ext >&5 2573 2574fi 2575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2576ac_ext=c 2577ac_cpp='$CPP $CPPFLAGS' 2578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2580ac_compiler_gnu=$ac_cv_c_compiler_gnu 2581rm -f .deps 2>/dev/null 2582mkdir .deps 2>/dev/null 2583if test -d .deps; then 2584 DEPDIR=.deps 2585else 2586 # MS-DOS does not allow filenames that begin with a dot. 2587 DEPDIR=_deps 2588fi 2589rmdir .deps 2>/dev/null 2590 2591 2592 ac_config_commands="$ac_config_commands depfiles" 2593 2594 2595am_make=${MAKE-make} 2596cat > confinc << 'END' 2597doit: 2598 @echo done 2599END 2600# If we don't find an include directive, just comment out the code. 2601echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2602echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2603am__include="#" 2604am__quote= 2605_am_result=none 2606# First try GNU make style include. 2607echo "include confinc" > confmf 2608# We grep out `Entering directory' and `Leaving directory' 2609# messages which can occur if `w' ends up in MAKEFLAGS. 2610# In particular we don't look at `^make:' because GNU make might 2611# be invoked under some other name (usually "gmake"), in which 2612# case it prints its new name instead of `make'. 2613if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 2614 am__include=include 2615 am__quote= 2616 _am_result=GNU 2617fi 2618# Now try BSD make style include. 2619if test "$am__include" = "#"; then 2620 echo '.include "confinc"' > confmf 2621 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2622 am__include=.include 2623 am__quote="\"" 2624 _am_result=BSD 2625 fi 2626fi 2627 2628 2629echo "$as_me:$LINENO: result: $_am_result" >&5 2630echo "${ECHO_T}$_am_result" >&6 2631rm -f confinc confmf 2632 2633# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2634if test "${enable_dependency_tracking+set}" = set; then 2635 enableval="$enable_dependency_tracking" 2636 2637fi; 2638if test "x$enable_dependency_tracking" != xno; then 2639 am_depcomp="$ac_aux_dir/depcomp" 2640 AMDEPBACKSLASH='\' 2641fi 2642 2643 2644if test "x$enable_dependency_tracking" != xno; then 2645 AMDEP_TRUE= 2646 AMDEP_FALSE='#' 2647else 2648 AMDEP_TRUE='#' 2649 AMDEP_FALSE= 2650fi 2651 2652 2653 2654 2655depcc="$CC" am_compiler_list= 2656 2657echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2658echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2659if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2660 echo $ECHO_N "(cached) $ECHO_C" >&6 2661else 2662 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2663 # We make a subdir and do the tests there. Otherwise we can end up 2664 # making bogus files that we don't know about and never remove. For 2665 # instance it was reported that on HP-UX the gcc test will end up 2666 # making a dummy file named `D' -- because `-MD' means `put the output 2667 # in D'. 2668 mkdir conftest.dir 2669 # Copy depcomp to subdir because otherwise we won't find it if we're 2670 # using a relative directory. 2671 cp "$am_depcomp" conftest.dir 2672 cd conftest.dir 2673 2674 am_cv_CC_dependencies_compiler_type=none 2675 if test "$am_compiler_list" = ""; then 2676 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2677 fi 2678 for depmode in $am_compiler_list; do 2679 # We need to recreate these files for each test, as the compiler may 2680 # overwrite some of them when testing with obscure command lines. 2681 # This happens at least with the AIX C compiler. 2682 echo '#include "conftest.h"' > conftest.c 2683 echo 'int i;' > conftest.h 2684 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 2685 2686 case $depmode in 2687 nosideeffect) 2688 # after this tag, mechanisms are not by side-effect, so they'll 2689 # only be used when explicitly requested 2690 if test "x$enable_dependency_tracking" = xyes; then 2691 continue 2692 else 2693 break 2694 fi 2695 ;; 2696 none) break ;; 2697 esac 2698 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2699 # mode. It turns out that the SunPro C++ compiler does not properly 2700 # handle `-M -o', and we need to detect this. 2701 if depmode=$depmode \ 2702 source=conftest.c object=conftest.o \ 2703 depfile=conftest.Po tmpdepfile=conftest.TPo \ 2704 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 2705 grep conftest.h conftest.Po > /dev/null 2>&1 && 2706 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2707 am_cv_CC_dependencies_compiler_type=$depmode 2708 break 2709 fi 2710 done 2711 2712 cd .. 2713 rm -rf conftest.dir 2714else 2715 am_cv_CC_dependencies_compiler_type=none 2716fi 2717 2718fi 2719echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 2720echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2721CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 2722 2723 2724#AM_PROG_LIBTOOL 2725 2726 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 2727cat >confcache <<\_ACEOF 2728# This file is a shell script that caches the results of configure 2729# tests run on this system so they can be shared between configure 2730# scripts and configure runs, see configure's option --config-cache. 2731# It is not useful on other systems. If it contains results you don't 2732# want to keep, you may remove or edit it. 2733# 2734# config.status only pays attention to the cache file if you give it 2735# the --recheck option to rerun configure. 2736# 2737# `ac_cv_env_foo' variables (set or unset) will be overridden when 2738# loading this file, other *unset* `ac_cv_foo' will be assigned the 2739# following values. 2740 2741_ACEOF 2742 2743# The following way of writing the cache mishandles newlines in values, 2744# but we know of no workaround that is simple, portable, and efficient. 2745# So, don't put newlines in cache variables' values. 2746# Ultrix sh set writes to stderr and can't be redirected directly, 2747# and sets the high bit in the cache file unless we assign to the vars. 2748{ 2749 (set) 2>&1 | 2750 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2751 *ac_space=\ *) 2752 # `set' does not quote correctly, so add quotes (double-quote 2753 # substitution turns \\\\ into \\, and sed turns \\ into \). 2754 sed -n \ 2755 "s/'/'\\\\''/g; 2756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 2757 ;; 2758 *) 2759 # `set' quotes correctly as required by POSIX, so do not add quotes. 2760 sed -n \ 2761 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 2762 ;; 2763 esac; 2764} | 2765 sed ' 2766 t clear 2767 : clear 2768 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 2769 t end 2770 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 2771 : end' >>confcache 2772if diff $cache_file confcache >/dev/null 2>&1; then :; else 2773 if test -w $cache_file; then 2774 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 2775 cat confcache >$cache_file 2776 else 2777 echo "not updating unwritable cache $cache_file" 2778 fi 2779fi 2780rm -f confcache 2781 2782test "x$prefix" = xNONE && prefix=$ac_default_prefix 2783# Let make expand exec_prefix. 2784test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2785 2786# VPATH may cause trouble with some makes, so we remove $(srcdir), 2787# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 2788# trailing colons and then remove the whole line if VPATH becomes empty 2789# (actually we leave an empty line to preserve line numbers). 2790if test "x$srcdir" = x.; then 2791 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 2792s/:*\$(srcdir):*/:/; 2793s/:*\${srcdir}:*/:/; 2794s/:*@srcdir@:*/:/; 2795s/^\([^=]*=[ ]*\):*/\1/; 2796s/:*$//; 2797s/^[^=]*=[ ]*$//; 2798}' 2799fi 2800 2801DEFS=-DHAVE_CONFIG_H 2802 2803ac_libobjs= 2804ac_ltlibobjs= 2805for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 2806 # 1. Remove the extension, and $U if already installed. 2807 ac_i=`echo "$ac_i" | 2808 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 2809 # 2. Add them. 2810 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 2811 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 2812done 2813LIBOBJS=$ac_libobjs 2814 2815LTLIBOBJS=$ac_ltlibobjs 2816 2817 2818if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 2819 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 2820Usually this means the macro was only invoked conditionally." >&5 2821echo "$as_me: error: conditional \"AMDEP\" was never defined. 2822Usually this means the macro was only invoked conditionally." >&2;} 2823 { (exit 1); exit 1; }; } 2824fi 2825 2826: ${CONFIG_STATUS=./config.status} 2827ac_clean_files_save=$ac_clean_files 2828ac_clean_files="$ac_clean_files $CONFIG_STATUS" 2829{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 2830echo "$as_me: creating $CONFIG_STATUS" >&6;} 2831cat >$CONFIG_STATUS <<_ACEOF 2832#! $SHELL 2833# Generated by $as_me. 2834# Run this file to recreate the current configuration. 2835# Compiler output produced by configure, useful for debugging 2836# configure, is in config.log if it exists. 2837 2838debug=false 2839ac_cs_recheck=false 2840ac_cs_silent=false 2841SHELL=\${CONFIG_SHELL-$SHELL} 2842_ACEOF 2843 2844cat >>$CONFIG_STATUS <<\_ACEOF 2845## --------------------- ## 2846## M4sh Initialization. ## 2847## --------------------- ## 2848 2849# Be Bourne compatible 2850if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 2851 emulate sh 2852 NULLCMD=: 2853 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 2854 # is contrary to our usage. Disable this feature. 2855 alias -g '${1+"$@"}'='"$@"' 2856elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 2857 set -o posix 2858fi 2859DUALCASE=1; export DUALCASE # for MKS sh 2860 2861# Support unset when possible. 2862if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 2863 as_unset=unset 2864else 2865 as_unset=false 2866fi 2867 2868 2869# Work around bugs in pre-3.0 UWIN ksh. 2870$as_unset ENV MAIL MAILPATH 2871PS1='$ ' 2872PS2='> ' 2873PS4='+ ' 2874 2875# NLS nuisances. 2876for as_var in \ 2877 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 2878 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 2879 LC_TELEPHONE LC_TIME 2880do 2881 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 2882 eval $as_var=C; export $as_var 2883 else 2884 $as_unset $as_var 2885 fi 2886done 2887 2888# Required to use basename. 2889if expr a : '\(a\)' >/dev/null 2>&1; then 2890 as_expr=expr 2891else 2892 as_expr=false 2893fi 2894 2895if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 2896 as_basename=basename 2897else 2898 as_basename=false 2899fi 2900 2901 2902# Name of the executable. 2903as_me=`$as_basename "$0" || 2904$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 2905 X"$0" : 'X\(//\)$' \| \ 2906 X"$0" : 'X\(/\)$' \| \ 2907 . : '\(.\)' 2>/dev/null || 2908echo X/"$0" | 2909 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 2910 /^X\/\(\/\/\)$/{ s//\1/; q; } 2911 /^X\/\(\/\).*/{ s//\1/; q; } 2912 s/.*/./; q'` 2913 2914 2915# PATH needs CR, and LINENO needs CR and PATH. 2916# Avoid depending upon Character Ranges. 2917as_cr_letters='abcdefghijklmnopqrstuvwxyz' 2918as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 2919as_cr_Letters=$as_cr_letters$as_cr_LETTERS 2920as_cr_digits='0123456789' 2921as_cr_alnum=$as_cr_Letters$as_cr_digits 2922 2923# The user is always right. 2924if test "${PATH_SEPARATOR+set}" != set; then 2925 echo "#! /bin/sh" >conf$$.sh 2926 echo "exit 0" >>conf$$.sh 2927 chmod +x conf$$.sh 2928 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 2929 PATH_SEPARATOR=';' 2930 else 2931 PATH_SEPARATOR=: 2932 fi 2933 rm -f conf$$.sh 2934fi 2935 2936 2937 as_lineno_1=$LINENO 2938 as_lineno_2=$LINENO 2939 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 2940 test "x$as_lineno_1" != "x$as_lineno_2" && 2941 test "x$as_lineno_3" = "x$as_lineno_2" || { 2942 # Find who we are. Look in the path if we contain no path at all 2943 # relative or not. 2944 case $0 in 2945 *[\\/]* ) as_myself=$0 ;; 2946 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2947for as_dir in $PATH 2948do 2949 IFS=$as_save_IFS 2950 test -z "$as_dir" && as_dir=. 2951 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 2952done 2953 2954 ;; 2955 esac 2956 # We did not find ourselves, most probably we were run as `sh COMMAND' 2957 # in which case we are not to be found in the path. 2958 if test "x$as_myself" = x; then 2959 as_myself=$0 2960 fi 2961 if test ! -f "$as_myself"; then 2962 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 2963echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 2964 { (exit 1); exit 1; }; } 2965 fi 2966 case $CONFIG_SHELL in 2967 '') 2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2969for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 2970do 2971 IFS=$as_save_IFS 2972 test -z "$as_dir" && as_dir=. 2973 for as_base in sh bash ksh sh5; do 2974 case $as_dir in 2975 /*) 2976 if ("$as_dir/$as_base" -c ' 2977 as_lineno_1=$LINENO 2978 as_lineno_2=$LINENO 2979 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 2980 test "x$as_lineno_1" != "x$as_lineno_2" && 2981 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 2982 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 2983 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 2984 CONFIG_SHELL=$as_dir/$as_base 2985 export CONFIG_SHELL 2986 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 2987 fi;; 2988 esac 2989 done 2990done 2991;; 2992 esac 2993 2994 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 2995 # uniformly replaced by the line number. The first 'sed' inserts a 2996 # line-number line before each line; the second 'sed' does the real 2997 # work. The second script uses 'N' to pair each line-number line 2998 # with the numbered line, and appends trailing '-' during 2999 # substitution so that $LINENO is not a special case at line end. 3000 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 3001 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 3002 sed '=' <$as_myself | 3003 sed ' 3004 N 3005 s,$,-, 3006 : loop 3007 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 3008 t loop 3009 s,-$,, 3010 s,^['$as_cr_digits']*\n,, 3011 ' >$as_me.lineno && 3012 chmod +x $as_me.lineno || 3013 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 3014echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 3015 { (exit 1); exit 1; }; } 3016 3017 # Don't try to exec as it changes $[0], causing all sort of problems 3018 # (the dirname of $[0] is not the place where we might find the 3019 # original and so on. Autoconf is especially sensible to this). 3020 . ./$as_me.lineno 3021 # Exit status is that of the last command. 3022 exit 3023} 3024 3025 3026case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 3027 *c*,-n*) ECHO_N= ECHO_C=' 3028' ECHO_T=' ' ;; 3029 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 3030 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 3031esac 3032 3033if expr a : '\(a\)' >/dev/null 2>&1; then 3034 as_expr=expr 3035else 3036 as_expr=false 3037fi 3038 3039rm -f conf$$ conf$$.exe conf$$.file 3040echo >conf$$.file 3041if ln -s conf$$.file conf$$ 2>/dev/null; then 3042 # We could just check for DJGPP; but this test a) works b) is more generic 3043 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 3044 if test -f conf$$.exe; then 3045 # Don't use ln at all; we don't have any links 3046 as_ln_s='cp -p' 3047 else 3048 as_ln_s='ln -s' 3049 fi 3050elif ln conf$$.file conf$$ 2>/dev/null; then 3051 as_ln_s=ln 3052else 3053 as_ln_s='cp -p' 3054fi 3055rm -f conf$$ conf$$.exe conf$$.file 3056 3057if mkdir -p . 2>/dev/null; then 3058 as_mkdir_p=: 3059else 3060 test -d ./-p && rmdir ./-p 3061 as_mkdir_p=false 3062fi 3063 3064as_executable_p="test -f" 3065 3066# Sed expression to map a string onto a valid CPP name. 3067as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 3068 3069# Sed expression to map a string onto a valid variable name. 3070as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 3071 3072 3073# IFS 3074# We need space, tab and new line, in precisely that order. 3075as_nl=' 3076' 3077IFS=" $as_nl" 3078 3079# CDPATH. 3080$as_unset CDPATH 3081 3082exec 6>&1 3083 3084# Open the log real soon, to keep \$[0] and so on meaningful, and to 3085# report actual input values of CONFIG_FILES etc. instead of their 3086# values after options handling. Logging --version etc. is OK. 3087exec 5>>config.log 3088{ 3089 echo 3090 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 3091## Running $as_me. ## 3092_ASBOX 3093} >&5 3094cat >&5 <<_CSEOF 3095 3096This file was extended by $as_me, which was 3097generated by GNU Autoconf 2.59. Invocation command line was 3098 3099 CONFIG_FILES = $CONFIG_FILES 3100 CONFIG_HEADERS = $CONFIG_HEADERS 3101 CONFIG_LINKS = $CONFIG_LINKS 3102 CONFIG_COMMANDS = $CONFIG_COMMANDS 3103 $ $0 $@ 3104 3105_CSEOF 3106echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 3107echo >&5 3108_ACEOF 3109 3110# Files that config.status was made for. 3111if test -n "$ac_config_files"; then 3112 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 3113fi 3114 3115if test -n "$ac_config_headers"; then 3116 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 3117fi 3118 3119if test -n "$ac_config_links"; then 3120 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 3121fi 3122 3123if test -n "$ac_config_commands"; then 3124 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 3125fi 3126 3127cat >>$CONFIG_STATUS <<\_ACEOF 3128 3129ac_cs_usage="\ 3130\`$as_me' instantiates files from templates according to the 3131current configuration. 3132 3133Usage: $0 [OPTIONS] [FILE]... 3134 3135 -h, --help print this help, then exit 3136 -V, --version print version number, then exit 3137 -q, --quiet do not print progress messages 3138 -d, --debug don't remove temporary files 3139 --recheck update $as_me by reconfiguring in the same conditions 3140 --file=FILE[:TEMPLATE] 3141 instantiate the configuration file FILE 3142 --header=FILE[:TEMPLATE] 3143 instantiate the configuration header FILE 3144 3145Configuration files: 3146$config_files 3147 3148Configuration headers: 3149$config_headers 3150 3151Configuration commands: 3152$config_commands 3153 3154Report bugs to <bug-autoconf@gnu.org>." 3155_ACEOF 3156 3157cat >>$CONFIG_STATUS <<_ACEOF 3158ac_cs_version="\\ 3159config.status 3160configured by $0, generated by GNU Autoconf 2.59, 3161 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 3162 3163Copyright (C) 2003 Free Software Foundation, Inc. 3164This config.status script is free software; the Free Software Foundation 3165gives unlimited permission to copy, distribute and modify it." 3166srcdir=$srcdir 3167INSTALL="$INSTALL" 3168_ACEOF 3169 3170cat >>$CONFIG_STATUS <<\_ACEOF 3171# If no file are specified by the user, then we need to provide default 3172# value. By we need to know if files were specified by the user. 3173ac_need_defaults=: 3174while test $# != 0 3175do 3176 case $1 in 3177 --*=*) 3178 ac_option=`expr "x$1" : 'x\([^=]*\)='` 3179 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 3180 ac_shift=: 3181 ;; 3182 -*) 3183 ac_option=$1 3184 ac_optarg=$2 3185 ac_shift=shift 3186 ;; 3187 *) # This is not an option, so the user has probably given explicit 3188 # arguments. 3189 ac_option=$1 3190 ac_need_defaults=false;; 3191 esac 3192 3193 case $ac_option in 3194 # Handling of the options. 3195_ACEOF 3196cat >>$CONFIG_STATUS <<\_ACEOF 3197 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 3198 ac_cs_recheck=: ;; 3199 --version | --vers* | -V ) 3200 echo "$ac_cs_version"; exit 0 ;; 3201 --he | --h) 3202 # Conflict between --help and --header 3203 { { echo "$as_me:$LINENO: error: ambiguous option: $1 3204Try \`$0 --help' for more information." >&5 3205echo "$as_me: error: ambiguous option: $1 3206Try \`$0 --help' for more information." >&2;} 3207 { (exit 1); exit 1; }; };; 3208 --help | --hel | -h ) 3209 echo "$ac_cs_usage"; exit 0 ;; 3210 --debug | --d* | -d ) 3211 debug=: ;; 3212 --file | --fil | --fi | --f ) 3213 $ac_shift 3214 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 3215 ac_need_defaults=false;; 3216 --header | --heade | --head | --hea ) 3217 $ac_shift 3218 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 3219 ac_need_defaults=false;; 3220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3221 | -silent | --silent | --silen | --sile | --sil | --si | --s) 3222 ac_cs_silent=: ;; 3223 3224 # This is an error. 3225 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 3226Try \`$0 --help' for more information." >&5 3227echo "$as_me: error: unrecognized option: $1 3228Try \`$0 --help' for more information." >&2;} 3229 { (exit 1); exit 1; }; } ;; 3230 3231 *) ac_config_targets="$ac_config_targets $1" ;; 3232 3233 esac 3234 shift 3235done 3236 3237ac_configure_extra_args= 3238 3239if $ac_cs_silent; then 3240 exec 6>/dev/null 3241 ac_configure_extra_args="$ac_configure_extra_args --silent" 3242fi 3243 3244_ACEOF 3245cat >>$CONFIG_STATUS <<_ACEOF 3246if \$ac_cs_recheck; then 3247 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 3248 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 3249fi 3250 3251_ACEOF 3252 3253cat >>$CONFIG_STATUS <<_ACEOF 3254# 3255# INIT-COMMANDS section. 3256# 3257 3258AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 3259 3260_ACEOF 3261 3262 3263 3264cat >>$CONFIG_STATUS <<\_ACEOF 3265for ac_config_target in $ac_config_targets 3266do 3267 case "$ac_config_target" in 3268 # Handling of arguments. 3269 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 3270 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 3271 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 3272 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 3273 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 3274 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 3275echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 3276 { (exit 1); exit 1; }; };; 3277 esac 3278done 3279 3280# If the user did not use the arguments to specify the items to instantiate, 3281# then the envvar interface is used. Set only those that are not. 3282# We use the long form for the default assignment because of an extremely 3283# bizarre bug on SunOS 4.1.3. 3284if $ac_need_defaults; then 3285 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 3286 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 3287 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 3288fi 3289 3290# Have a temporary directory for convenience. Make it in the build tree 3291# simply because there is no reason to put it here, and in addition, 3292# creating and moving files from /tmp can sometimes cause problems. 3293# Create a temporary directory, and hook for its removal unless debugging. 3294$debug || 3295{ 3296 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 3297 trap '{ (exit 1); exit 1; }' 1 2 13 15 3298} 3299 3300# Create a (secure) tmp directory for tmp files. 3301 3302{ 3303 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 3304 test -n "$tmp" && test -d "$tmp" 3305} || 3306{ 3307 tmp=./confstat$$-$RANDOM 3308 (umask 077 && mkdir $tmp) 3309} || 3310{ 3311 echo "$me: cannot create a temporary directory in ." >&2 3312 { (exit 1); exit 1; } 3313} 3314 3315_ACEOF 3316 3317cat >>$CONFIG_STATUS <<_ACEOF 3318 3319# 3320# CONFIG_FILES section. 3321# 3322 3323# No need to generate the scripts if there are no CONFIG_FILES. 3324# This happens for instance when ./config.status config.h 3325if test -n "\$CONFIG_FILES"; then 3326 # Protect against being on the right side of a sed subst in config.status. 3327 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 3328 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 3329s,@SHELL@,$SHELL,;t t 3330s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 3331s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 3332s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 3333s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 3334s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 3335s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 3336s,@exec_prefix@,$exec_prefix,;t t 3337s,@prefix@,$prefix,;t t 3338s,@program_transform_name@,$program_transform_name,;t t 3339s,@bindir@,$bindir,;t t 3340s,@sbindir@,$sbindir,;t t 3341s,@libexecdir@,$libexecdir,;t t 3342s,@datadir@,$datadir,;t t 3343s,@sysconfdir@,$sysconfdir,;t t 3344s,@sharedstatedir@,$sharedstatedir,;t t 3345s,@localstatedir@,$localstatedir,;t t 3346s,@libdir@,$libdir,;t t 3347s,@includedir@,$includedir,;t t 3348s,@oldincludedir@,$oldincludedir,;t t 3349s,@infodir@,$infodir,;t t 3350s,@mandir@,$mandir,;t t 3351s,@build_alias@,$build_alias,;t t 3352s,@host_alias@,$host_alias,;t t 3353s,@target_alias@,$target_alias,;t t 3354s,@DEFS@,$DEFS,;t t 3355s,@ECHO_C@,$ECHO_C,;t t 3356s,@ECHO_N@,$ECHO_N,;t t 3357s,@ECHO_T@,$ECHO_T,;t t 3358s,@LIBS@,$LIBS,;t t 3359s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 3360s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 3361s,@INSTALL_DATA@,$INSTALL_DATA,;t t 3362s,@PACKAGE@,$PACKAGE,;t t 3363s,@VERSION@,$VERSION,;t t 3364s,@ACLOCAL@,$ACLOCAL,;t t 3365s,@AUTOCONF@,$AUTOCONF,;t t 3366s,@AUTOMAKE@,$AUTOMAKE,;t t 3367s,@AUTOHEADER@,$AUTOHEADER,;t t 3368s,@MAKEINFO@,$MAKEINFO,;t t 3369s,@AMTAR@,$AMTAR,;t t 3370s,@install_sh@,$install_sh,;t t 3371s,@STRIP@,$STRIP,;t t 3372s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 3373s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 3374s,@AWK@,$AWK,;t t 3375s,@SET_MAKE@,$SET_MAKE,;t t 3376s,@CC@,$CC,;t t 3377s,@CFLAGS@,$CFLAGS,;t t 3378s,@LDFLAGS@,$LDFLAGS,;t t 3379s,@CPPFLAGS@,$CPPFLAGS,;t t 3380s,@ac_ct_CC@,$ac_ct_CC,;t t 3381s,@EXEEXT@,$EXEEXT,;t t 3382s,@OBJEXT@,$OBJEXT,;t t 3383s,@DEPDIR@,$DEPDIR,;t t 3384s,@am__include@,$am__include,;t t 3385s,@am__quote@,$am__quote,;t t 3386s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 3387s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 3388s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 3389s,@CCDEPMODE@,$CCDEPMODE,;t t 3390s,@LIBOBJS@,$LIBOBJS,;t t 3391s,@LTLIBOBJS@,$LTLIBOBJS,;t t 3392CEOF 3393 3394_ACEOF 3395 3396 cat >>$CONFIG_STATUS <<\_ACEOF 3397 # Split the substitutions into bite-sized pieces for seds with 3398 # small command number limits, like on Digital OSF/1 and HP-UX. 3399 ac_max_sed_lines=48 3400 ac_sed_frag=1 # Number of current file. 3401 ac_beg=1 # First line for current file. 3402 ac_end=$ac_max_sed_lines # Line after last line for current file. 3403 ac_more_lines=: 3404 ac_sed_cmds= 3405 while $ac_more_lines; do 3406 if test $ac_beg -gt 1; then 3407 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 3408 else 3409 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 3410 fi 3411 if test ! -s $tmp/subs.frag; then 3412 ac_more_lines=false 3413 else 3414 # The purpose of the label and of the branching condition is to 3415 # speed up the sed processing (if there are no `@' at all, there 3416 # is no need to browse any of the substitutions). 3417 # These are the two extra sed commands mentioned above. 3418 (echo ':t 3419 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 3420 if test -z "$ac_sed_cmds"; then 3421 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 3422 else 3423 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 3424 fi 3425 ac_sed_frag=`expr $ac_sed_frag + 1` 3426 ac_beg=$ac_end 3427 ac_end=`expr $ac_end + $ac_max_sed_lines` 3428 fi 3429 done 3430 if test -z "$ac_sed_cmds"; then 3431 ac_sed_cmds=cat 3432 fi 3433fi # test -n "$CONFIG_FILES" 3434 3435_ACEOF 3436cat >>$CONFIG_STATUS <<\_ACEOF 3437for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 3438 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3439 case $ac_file in 3440 - | *:- | *:-:* ) # input from stdin 3441 cat >$tmp/stdin 3442 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 3443 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 3444 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 3445 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 3446 * ) ac_file_in=$ac_file.in ;; 3447 esac 3448 3449 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 3450 ac_dir=`(dirname "$ac_file") 2>/dev/null || 3451$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3452 X"$ac_file" : 'X\(//\)[^/]' \| \ 3453 X"$ac_file" : 'X\(//\)$' \| \ 3454 X"$ac_file" : 'X\(/\)' \| \ 3455 . : '\(.\)' 2>/dev/null || 3456echo X"$ac_file" | 3457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3458 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3459 /^X\(\/\/\)$/{ s//\1/; q; } 3460 /^X\(\/\).*/{ s//\1/; q; } 3461 s/.*/./; q'` 3462 { if $as_mkdir_p; then 3463 mkdir -p "$ac_dir" 3464 else 3465 as_dir="$ac_dir" 3466 as_dirs= 3467 while test ! -d "$as_dir"; do 3468 as_dirs="$as_dir $as_dirs" 3469 as_dir=`(dirname "$as_dir") 2>/dev/null || 3470$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3471 X"$as_dir" : 'X\(//\)[^/]' \| \ 3472 X"$as_dir" : 'X\(//\)$' \| \ 3473 X"$as_dir" : 'X\(/\)' \| \ 3474 . : '\(.\)' 2>/dev/null || 3475echo X"$as_dir" | 3476 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3477 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3478 /^X\(\/\/\)$/{ s//\1/; q; } 3479 /^X\(\/\).*/{ s//\1/; q; } 3480 s/.*/./; q'` 3481 done 3482 test ! -n "$as_dirs" || mkdir $as_dirs 3483 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 3484echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 3485 { (exit 1); exit 1; }; }; } 3486 3487 ac_builddir=. 3488 3489if test "$ac_dir" != .; then 3490 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 3491 # A "../" for each directory in $ac_dir_suffix. 3492 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 3493else 3494 ac_dir_suffix= ac_top_builddir= 3495fi 3496 3497case $srcdir in 3498 .) # No --srcdir option. We are building in place. 3499 ac_srcdir=. 3500 if test -z "$ac_top_builddir"; then 3501 ac_top_srcdir=. 3502 else 3503 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 3504 fi ;; 3505 [\\/]* | ?:[\\/]* ) # Absolute path. 3506 ac_srcdir=$srcdir$ac_dir_suffix; 3507 ac_top_srcdir=$srcdir ;; 3508 *) # Relative path. 3509 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 3510 ac_top_srcdir=$ac_top_builddir$srcdir ;; 3511esac 3512 3513# Do not use `cd foo && pwd` to compute absolute paths, because 3514# the directories may not exist. 3515case `pwd` in 3516.) ac_abs_builddir="$ac_dir";; 3517*) 3518 case "$ac_dir" in 3519 .) ac_abs_builddir=`pwd`;; 3520 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 3521 *) ac_abs_builddir=`pwd`/"$ac_dir";; 3522 esac;; 3523esac 3524case $ac_abs_builddir in 3525.) ac_abs_top_builddir=${ac_top_builddir}.;; 3526*) 3527 case ${ac_top_builddir}. in 3528 .) ac_abs_top_builddir=$ac_abs_builddir;; 3529 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 3530 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 3531 esac;; 3532esac 3533case $ac_abs_builddir in 3534.) ac_abs_srcdir=$ac_srcdir;; 3535*) 3536 case $ac_srcdir in 3537 .) ac_abs_srcdir=$ac_abs_builddir;; 3538 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 3539 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 3540 esac;; 3541esac 3542case $ac_abs_builddir in 3543.) ac_abs_top_srcdir=$ac_top_srcdir;; 3544*) 3545 case $ac_top_srcdir in 3546 .) ac_abs_top_srcdir=$ac_abs_builddir;; 3547 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 3548 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 3549 esac;; 3550esac 3551 3552 3553 case $INSTALL in 3554 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 3555 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 3556 esac 3557 3558 if test x"$ac_file" != x-; then 3559 { echo "$as_me:$LINENO: creating $ac_file" >&5 3560echo "$as_me: creating $ac_file" >&6;} 3561 rm -f "$ac_file" 3562 fi 3563 # Let's still pretend it is `configure' which instantiates (i.e., don't 3564 # use $as_me), people would be surprised to read: 3565 # /* config.h. Generated by config.status. */ 3566 if test x"$ac_file" = x-; then 3567 configure_input= 3568 else 3569 configure_input="$ac_file. " 3570 fi 3571 configure_input=$configure_input"Generated from `echo $ac_file_in | 3572 sed 's,.*/,,'` by configure." 3573 3574 # First look for the input files in the build tree, otherwise in the 3575 # src tree. 3576 ac_file_inputs=`IFS=: 3577 for f in $ac_file_in; do 3578 case $f in 3579 -) echo $tmp/stdin ;; 3580 [\\/$]*) 3581 # Absolute (can't be DOS-style, as IFS=:) 3582 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3583echo "$as_me: error: cannot find input file: $f" >&2;} 3584 { (exit 1); exit 1; }; } 3585 echo "$f";; 3586 *) # Relative 3587 if test -f "$f"; then 3588 # Build tree 3589 echo "$f" 3590 elif test -f "$srcdir/$f"; then 3591 # Source tree 3592 echo "$srcdir/$f" 3593 else 3594 # /dev/null tree 3595 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3596echo "$as_me: error: cannot find input file: $f" >&2;} 3597 { (exit 1); exit 1; }; } 3598 fi;; 3599 esac 3600 done` || { (exit 1); exit 1; } 3601_ACEOF 3602cat >>$CONFIG_STATUS <<_ACEOF 3603 sed "$ac_vpsub 3604$extrasub 3605_ACEOF 3606cat >>$CONFIG_STATUS <<\_ACEOF 3607:t 3608/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 3609s,@configure_input@,$configure_input,;t t 3610s,@srcdir@,$ac_srcdir,;t t 3611s,@abs_srcdir@,$ac_abs_srcdir,;t t 3612s,@top_srcdir@,$ac_top_srcdir,;t t 3613s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 3614s,@builddir@,$ac_builddir,;t t 3615s,@abs_builddir@,$ac_abs_builddir,;t t 3616s,@top_builddir@,$ac_top_builddir,;t t 3617s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 3618s,@INSTALL@,$ac_INSTALL,;t t 3619" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 3620 rm -f $tmp/stdin 3621 if test x"$ac_file" != x-; then 3622 mv $tmp/out $ac_file 3623 else 3624 cat $tmp/out 3625 rm -f $tmp/out 3626 fi 3627 3628done 3629_ACEOF 3630cat >>$CONFIG_STATUS <<\_ACEOF 3631 3632# 3633# CONFIG_HEADER section. 3634# 3635 3636# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 3637# NAME is the cpp macro being defined and VALUE is the value it is being given. 3638# 3639# ac_d sets the value in "#define NAME VALUE" lines. 3640ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 3641ac_dB='[ ].*$,\1#\2' 3642ac_dC=' ' 3643ac_dD=',;t' 3644# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 3645ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 3646ac_uB='$,\1#\2define\3' 3647ac_uC=' ' 3648ac_uD=',;t' 3649 3650for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 3651 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 3652 case $ac_file in 3653 - | *:- | *:-:* ) # input from stdin 3654 cat >$tmp/stdin 3655 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 3656 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 3657 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 3658 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 3659 * ) ac_file_in=$ac_file.in ;; 3660 esac 3661 3662 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 3663echo "$as_me: creating $ac_file" >&6;} 3664 3665 # First look for the input files in the build tree, otherwise in the 3666 # src tree. 3667 ac_file_inputs=`IFS=: 3668 for f in $ac_file_in; do 3669 case $f in 3670 -) echo $tmp/stdin ;; 3671 [\\/$]*) 3672 # Absolute (can't be DOS-style, as IFS=:) 3673 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3674echo "$as_me: error: cannot find input file: $f" >&2;} 3675 { (exit 1); exit 1; }; } 3676 # Do quote $f, to prevent DOS paths from being IFS'd. 3677 echo "$f";; 3678 *) # Relative 3679 if test -f "$f"; then 3680 # Build tree 3681 echo "$f" 3682 elif test -f "$srcdir/$f"; then 3683 # Source tree 3684 echo "$srcdir/$f" 3685 else 3686 # /dev/null tree 3687 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3688echo "$as_me: error: cannot find input file: $f" >&2;} 3689 { (exit 1); exit 1; }; } 3690 fi;; 3691 esac 3692 done` || { (exit 1); exit 1; } 3693 # Remove the trailing spaces. 3694 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 3695 3696_ACEOF 3697 3698# Transform confdefs.h into two sed scripts, `conftest.defines' and 3699# `conftest.undefs', that substitutes the proper values into 3700# config.h.in to produce config.h. The first handles `#define' 3701# templates, and the second `#undef' templates. 3702# And first: Protect against being on the right side of a sed subst in 3703# config.status. Protect against being in an unquoted here document 3704# in config.status. 3705rm -f conftest.defines conftest.undefs 3706# Using a here document instead of a string reduces the quoting nightmare. 3707# Putting comments in sed scripts is not portable. 3708# 3709# `end' is used to avoid that the second main sed command (meant for 3710# 0-ary CPP macros) applies to n-ary macro definitions. 3711# See the Autoconf documentation for `clear'. 3712cat >confdef2sed.sed <<\_ACEOF 3713s/[\\&,]/\\&/g 3714s,[\\$`],\\&,g 3715t clear 3716: clear 3717s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 3718t end 3719s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 3720: end 3721_ACEOF 3722# If some macros were called several times there might be several times 3723# the same #defines, which is useless. Nevertheless, we may not want to 3724# sort them, since we want the *last* AC-DEFINE to be honored. 3725uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 3726sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 3727rm -f confdef2sed.sed 3728 3729# This sed command replaces #undef with comments. This is necessary, for 3730# example, in the case of _POSIX_SOURCE, which is predefined and required 3731# on some systems where configure will not decide to define it. 3732cat >>conftest.undefs <<\_ACEOF 3733s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 3734_ACEOF 3735 3736# Break up conftest.defines because some shells have a limit on the size 3737# of here documents, and old seds have small limits too (100 cmds). 3738echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 3739echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 3740echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 3741echo ' :' >>$CONFIG_STATUS 3742rm -f conftest.tail 3743while grep . conftest.defines >/dev/null 3744do 3745 # Write a limited-size here document to $tmp/defines.sed. 3746 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 3747 # Speed up: don't consider the non `#define' lines. 3748 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 3749 # Work around the forget-to-reset-the-flag bug. 3750 echo 't clr' >>$CONFIG_STATUS 3751 echo ': clr' >>$CONFIG_STATUS 3752 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 3753 echo 'CEOF 3754 sed -f $tmp/defines.sed $tmp/in >$tmp/out 3755 rm -f $tmp/in 3756 mv $tmp/out $tmp/in 3757' >>$CONFIG_STATUS 3758 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 3759 rm -f conftest.defines 3760 mv conftest.tail conftest.defines 3761done 3762rm -f conftest.defines 3763echo ' fi # grep' >>$CONFIG_STATUS 3764echo >>$CONFIG_STATUS 3765 3766# Break up conftest.undefs because some shells have a limit on the size 3767# of here documents, and old seds have small limits too (100 cmds). 3768echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 3769rm -f conftest.tail 3770while grep . conftest.undefs >/dev/null 3771do 3772 # Write a limited-size here document to $tmp/undefs.sed. 3773 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 3774 # Speed up: don't consider the non `#undef' 3775 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 3776 # Work around the forget-to-reset-the-flag bug. 3777 echo 't clr' >>$CONFIG_STATUS 3778 echo ': clr' >>$CONFIG_STATUS 3779 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 3780 echo 'CEOF 3781 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 3782 rm -f $tmp/in 3783 mv $tmp/out $tmp/in 3784' >>$CONFIG_STATUS 3785 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 3786 rm -f conftest.undefs 3787 mv conftest.tail conftest.undefs 3788done 3789rm -f conftest.undefs 3790 3791cat >>$CONFIG_STATUS <<\_ACEOF 3792 # Let's still pretend it is `configure' which instantiates (i.e., don't 3793 # use $as_me), people would be surprised to read: 3794 # /* config.h. Generated by config.status. */ 3795 if test x"$ac_file" = x-; then 3796 echo "/* Generated by configure. */" >$tmp/config.h 3797 else 3798 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 3799 fi 3800 cat $tmp/in >>$tmp/config.h 3801 rm -f $tmp/in 3802 if test x"$ac_file" != x-; then 3803 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 3804 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 3805echo "$as_me: $ac_file is unchanged" >&6;} 3806 else 3807 ac_dir=`(dirname "$ac_file") 2>/dev/null || 3808$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3809 X"$ac_file" : 'X\(//\)[^/]' \| \ 3810 X"$ac_file" : 'X\(//\)$' \| \ 3811 X"$ac_file" : 'X\(/\)' \| \ 3812 . : '\(.\)' 2>/dev/null || 3813echo X"$ac_file" | 3814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3815 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3816 /^X\(\/\/\)$/{ s//\1/; q; } 3817 /^X\(\/\).*/{ s//\1/; q; } 3818 s/.*/./; q'` 3819 { if $as_mkdir_p; then 3820 mkdir -p "$ac_dir" 3821 else 3822 as_dir="$ac_dir" 3823 as_dirs= 3824 while test ! -d "$as_dir"; do 3825 as_dirs="$as_dir $as_dirs" 3826 as_dir=`(dirname "$as_dir") 2>/dev/null || 3827$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3828 X"$as_dir" : 'X\(//\)[^/]' \| \ 3829 X"$as_dir" : 'X\(//\)$' \| \ 3830 X"$as_dir" : 'X\(/\)' \| \ 3831 . : '\(.\)' 2>/dev/null || 3832echo X"$as_dir" | 3833 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3834 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3835 /^X\(\/\/\)$/{ s//\1/; q; } 3836 /^X\(\/\).*/{ s//\1/; q; } 3837 s/.*/./; q'` 3838 done 3839 test ! -n "$as_dirs" || mkdir $as_dirs 3840 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 3841echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 3842 { (exit 1); exit 1; }; }; } 3843 3844 rm -f $ac_file 3845 mv $tmp/config.h $ac_file 3846 fi 3847 else 3848 cat $tmp/config.h 3849 rm -f $tmp/config.h 3850 fi 3851 # Run the commands associated with the file. 3852 case $ac_file in 3853 config.h ) # update the timestamp 3854echo 'timestamp for config.h' >"./stamp-h1" 3855 ;; 3856 esac 3857done 3858_ACEOF 3859cat >>$CONFIG_STATUS <<\_ACEOF 3860 3861# 3862# CONFIG_COMMANDS section. 3863# 3864for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 3865 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 3866 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 3867 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 3868$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3869 X"$ac_dest" : 'X\(//\)[^/]' \| \ 3870 X"$ac_dest" : 'X\(//\)$' \| \ 3871 X"$ac_dest" : 'X\(/\)' \| \ 3872 . : '\(.\)' 2>/dev/null || 3873echo X"$ac_dest" | 3874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3875 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3876 /^X\(\/\/\)$/{ s//\1/; q; } 3877 /^X\(\/\).*/{ s//\1/; q; } 3878 s/.*/./; q'` 3879 { if $as_mkdir_p; then 3880 mkdir -p "$ac_dir" 3881 else 3882 as_dir="$ac_dir" 3883 as_dirs= 3884 while test ! -d "$as_dir"; do 3885 as_dirs="$as_dir $as_dirs" 3886 as_dir=`(dirname "$as_dir") 2>/dev/null || 3887$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3888 X"$as_dir" : 'X\(//\)[^/]' \| \ 3889 X"$as_dir" : 'X\(//\)$' \| \ 3890 X"$as_dir" : 'X\(/\)' \| \ 3891 . : '\(.\)' 2>/dev/null || 3892echo X"$as_dir" | 3893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3894 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3895 /^X\(\/\/\)$/{ s//\1/; q; } 3896 /^X\(\/\).*/{ s//\1/; q; } 3897 s/.*/./; q'` 3898 done 3899 test ! -n "$as_dirs" || mkdir $as_dirs 3900 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 3901echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 3902 { (exit 1); exit 1; }; }; } 3903 3904 ac_builddir=. 3905 3906if test "$ac_dir" != .; then 3907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 3908 # A "../" for each directory in $ac_dir_suffix. 3909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 3910else 3911 ac_dir_suffix= ac_top_builddir= 3912fi 3913 3914case $srcdir in 3915 .) # No --srcdir option. We are building in place. 3916 ac_srcdir=. 3917 if test -z "$ac_top_builddir"; then 3918 ac_top_srcdir=. 3919 else 3920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 3921 fi ;; 3922 [\\/]* | ?:[\\/]* ) # Absolute path. 3923 ac_srcdir=$srcdir$ac_dir_suffix; 3924 ac_top_srcdir=$srcdir ;; 3925 *) # Relative path. 3926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 3927 ac_top_srcdir=$ac_top_builddir$srcdir ;; 3928esac 3929 3930# Do not use `cd foo && pwd` to compute absolute paths, because 3931# the directories may not exist. 3932case `pwd` in 3933.) ac_abs_builddir="$ac_dir";; 3934*) 3935 case "$ac_dir" in 3936 .) ac_abs_builddir=`pwd`;; 3937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 3938 *) ac_abs_builddir=`pwd`/"$ac_dir";; 3939 esac;; 3940esac 3941case $ac_abs_builddir in 3942.) ac_abs_top_builddir=${ac_top_builddir}.;; 3943*) 3944 case ${ac_top_builddir}. in 3945 .) ac_abs_top_builddir=$ac_abs_builddir;; 3946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 3947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 3948 esac;; 3949esac 3950case $ac_abs_builddir in 3951.) ac_abs_srcdir=$ac_srcdir;; 3952*) 3953 case $ac_srcdir in 3954 .) ac_abs_srcdir=$ac_abs_builddir;; 3955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 3956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 3957 esac;; 3958esac 3959case $ac_abs_builddir in 3960.) ac_abs_top_srcdir=$ac_top_srcdir;; 3961*) 3962 case $ac_top_srcdir in 3963 .) ac_abs_top_srcdir=$ac_abs_builddir;; 3964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 3965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 3966 esac;; 3967esac 3968 3969 3970 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 3971echo "$as_me: executing $ac_dest commands" >&6;} 3972 case $ac_dest in 3973 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 3974 # Strip MF so we end up with the name of the file. 3975 mf=`echo "$mf" | sed -e 's/:.*$//'` 3976 # Check whether this is an Automake generated Makefile or not. 3977 # We used to match only the files named `Makefile.in', but 3978 # some people rename them; so instead we look at the file content. 3979 # Grep'ing the first line is not enough: some people post-process 3980 # each Makefile.in and add a new line on top of each file to say so. 3981 # So let's grep whole file. 3982 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 3983 dirpart=`(dirname "$mf") 2>/dev/null || 3984$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3985 X"$mf" : 'X\(//\)[^/]' \| \ 3986 X"$mf" : 'X\(//\)$' \| \ 3987 X"$mf" : 'X\(/\)' \| \ 3988 . : '\(.\)' 2>/dev/null || 3989echo X"$mf" | 3990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 3991 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 3992 /^X\(\/\/\)$/{ s//\1/; q; } 3993 /^X\(\/\).*/{ s//\1/; q; } 3994 s/.*/./; q'` 3995 else 3996 continue 3997 fi 3998 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 3999 # Extract the definition of DEP_FILES from the Makefile without 4000 # running `make'. 4001 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 4002 test -z "$DEPDIR" && continue 4003 # When using ansi2knr, U may be empty or an underscore; expand it 4004 U=`sed -n -e '/^U = / s///p' < "$mf"` 4005 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 4006 # We invoke sed twice because it is the simplest approach to 4007 # changing $(DEPDIR) to its actual value in the expansion. 4008 for file in `sed -n -e ' 4009 /^DEP_FILES = .*\\\\$/ { 4010 s/^DEP_FILES = // 4011 :loop 4012 s/\\\\$// 4013 p 4014 n 4015 /\\\\$/ b loop 4016 p 4017 } 4018 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 4019 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 4020 # Make sure the directory exists. 4021 test -f "$dirpart/$file" && continue 4022 fdir=`(dirname "$file") 2>/dev/null || 4023$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4024 X"$file" : 'X\(//\)[^/]' \| \ 4025 X"$file" : 'X\(//\)$' \| \ 4026 X"$file" : 'X\(/\)' \| \ 4027 . : '\(.\)' 2>/dev/null || 4028echo X"$file" | 4029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4030 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4031 /^X\(\/\/\)$/{ s//\1/; q; } 4032 /^X\(\/\).*/{ s//\1/; q; } 4033 s/.*/./; q'` 4034 { if $as_mkdir_p; then 4035 mkdir -p $dirpart/$fdir 4036 else 4037 as_dir=$dirpart/$fdir 4038 as_dirs= 4039 while test ! -d "$as_dir"; do 4040 as_dirs="$as_dir $as_dirs" 4041 as_dir=`(dirname "$as_dir") 2>/dev/null || 4042$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4043 X"$as_dir" : 'X\(//\)[^/]' \| \ 4044 X"$as_dir" : 'X\(//\)$' \| \ 4045 X"$as_dir" : 'X\(/\)' \| \ 4046 . : '\(.\)' 2>/dev/null || 4047echo X"$as_dir" | 4048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 4049 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 4050 /^X\(\/\/\)$/{ s//\1/; q; } 4051 /^X\(\/\).*/{ s//\1/; q; } 4052 s/.*/./; q'` 4053 done 4054 test ! -n "$as_dirs" || mkdir $as_dirs 4055 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 4056echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 4057 { (exit 1); exit 1; }; }; } 4058 4059 # echo "creating $dirpart/$file" 4060 echo '# dummy' > "$dirpart/$file" 4061 done 4062done 4063 ;; 4064 esac 4065done 4066_ACEOF 4067 4068cat >>$CONFIG_STATUS <<\_ACEOF 4069 4070{ (exit 0); exit 0; } 4071_ACEOF 4072chmod +x $CONFIG_STATUS 4073ac_clean_files=$ac_clean_files_save 4074 4075 4076# configure is writing to config.log, and then calls config.status. 4077# config.status does its own redirection, appending to config.log. 4078# Unfortunately, on DOS this fails, as config.log is still kept open 4079# by configure, so config.status won't be able to write to it; its 4080# output is simply discarded. So we exec the FD to /dev/null, 4081# effectively closing config.log, so it can be properly (re)opened and 4082# appended to by config.status. When coming back to configure, we 4083# need to make the FD available again. 4084if test "$no_create" != yes; then 4085 ac_cs_success=: 4086 ac_config_status_args= 4087 test "$silent" = yes && 4088 ac_config_status_args="$ac_config_status_args --quiet" 4089 exec 5>/dev/null 4090 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 4091 exec 5>>config.log 4092 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 4093 # would make configure fail if this is the last instruction. 4094 $ac_cs_success || { (exit 1); exit 1; } 4095fi 4096 4097