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