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