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