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="xrus.c" 275# Factoring default headers for most tests. 276ac_includes_default="\ 277#include <stdio.h> 278#if HAVE_SYS_TYPES_H 279# include <sys/types.h> 280#endif 281#if HAVE_SYS_STAT_H 282# include <sys/stat.h> 283#endif 284#if STDC_HEADERS 285# include <stdlib.h> 286# include <stddef.h> 287#else 288# if HAVE_STDLIB_H 289# include <stdlib.h> 290# endif 291#endif 292#if HAVE_STRING_H 293# if !STDC_HEADERS && HAVE_MEMORY_H 294# include <memory.h> 295# endif 296# include <string.h> 297#endif 298#if HAVE_STRINGS_H 299# include <strings.h> 300#endif 301#if HAVE_INTTYPES_H 302# include <inttypes.h> 303#else 304# if HAVE_STDINT_H 305# include <stdint.h> 306# endif 307#endif 308#if HAVE_UNISTD_H 309# include <unistd.h> 310#endif" 311 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S M4 CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS EGREP ALLOCA TOOLKIT_INCLUDE TOOLKIT_LIBS LIBOBJS LTLIBOBJS' 313ac_subst_files='' 314 315# Initialize some variables set by options. 316ac_init_help= 317ac_init_version=false 318# The variables have the same names as the options, with 319# dashes changed to underlines. 320cache_file=/dev/null 321exec_prefix=NONE 322no_create= 323no_recursion= 324prefix=NONE 325program_prefix=NONE 326program_suffix=NONE 327program_transform_name=s,x,x, 328silent= 329site= 330srcdir= 331verbose= 332x_includes=NONE 333x_libraries=NONE 334 335# Installation directory options. 336# These are left unexpanded so users can "make install exec_prefix=/foo" 337# and all the variables that are supposed to be based on exec_prefix 338# by default will actually change. 339# Use braces instead of parens because sh, perl, etc. also accept them. 340bindir='${exec_prefix}/bin' 341sbindir='${exec_prefix}/sbin' 342libexecdir='${exec_prefix}/libexec' 343datadir='${prefix}/share' 344sysconfdir='${prefix}/etc' 345sharedstatedir='${prefix}/com' 346localstatedir='${prefix}/var' 347libdir='${exec_prefix}/lib' 348includedir='${prefix}/include' 349oldincludedir='/usr/include' 350infodir='${prefix}/info' 351mandir='${prefix}/man' 352 353ac_prev= 354for ac_option 355do 356 # If the previous option needs an argument, assign it. 357 if test -n "$ac_prev"; then 358 eval "$ac_prev=\$ac_option" 359 ac_prev= 360 continue 361 fi 362 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 364 365 # Accept the important Cygnus configure options, so we can diagnose typos. 366 367 case $ac_option in 368 369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 370 ac_prev=bindir ;; 371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 372 bindir=$ac_optarg ;; 373 374 -build | --build | --buil | --bui | --bu) 375 ac_prev=build_alias ;; 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 377 build_alias=$ac_optarg ;; 378 379 -cache-file | --cache-file | --cache-fil | --cache-fi \ 380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 381 ac_prev=cache_file ;; 382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 384 cache_file=$ac_optarg ;; 385 386 --config-cache | -C) 387 cache_file=config.cache ;; 388 389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 390 ac_prev=datadir ;; 391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 392 | --da=*) 393 datadir=$ac_optarg ;; 394 395 -disable-* | --disable-*) 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 397 # Reject names that are not valid shell variable names. 398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 400 { (exit 1); exit 1; }; } 401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 402 eval "enable_$ac_feature=no" ;; 403 404 -enable-* | --enable-*) 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 406 # Reject names that are not valid shell variable names. 407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 409 { (exit 1); exit 1; }; } 410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 411 case $ac_option in 412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 413 *) ac_optarg=yes ;; 414 esac 415 eval "enable_$ac_feature='$ac_optarg'" ;; 416 417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 419 | --exec | --exe | --ex) 420 ac_prev=exec_prefix ;; 421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 423 | --exec=* | --exe=* | --ex=*) 424 exec_prefix=$ac_optarg ;; 425 426 -gas | --gas | --ga | --g) 427 # Obsolete; use --with-gas. 428 with_gas=yes ;; 429 430 -help | --help | --hel | --he | -h) 431 ac_init_help=long ;; 432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 433 ac_init_help=recursive ;; 434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 435 ac_init_help=short ;; 436 437 -host | --host | --hos | --ho) 438 ac_prev=host_alias ;; 439 -host=* | --host=* | --hos=* | --ho=*) 440 host_alias=$ac_optarg ;; 441 442 -includedir | --includedir | --includedi | --included | --include \ 443 | --includ | --inclu | --incl | --inc) 444 ac_prev=includedir ;; 445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 446 | --includ=* | --inclu=* | --incl=* | --inc=*) 447 includedir=$ac_optarg ;; 448 449 -infodir | --infodir | --infodi | --infod | --info | --inf) 450 ac_prev=infodir ;; 451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 452 infodir=$ac_optarg ;; 453 454 -libdir | --libdir | --libdi | --libd) 455 ac_prev=libdir ;; 456 -libdir=* | --libdir=* | --libdi=* | --libd=*) 457 libdir=$ac_optarg ;; 458 459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 460 | --libexe | --libex | --libe) 461 ac_prev=libexecdir ;; 462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 463 | --libexe=* | --libex=* | --libe=*) 464 libexecdir=$ac_optarg ;; 465 466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 467 | --localstate | --localstat | --localsta | --localst \ 468 | --locals | --local | --loca | --loc | --lo) 469 ac_prev=localstatedir ;; 470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 473 localstatedir=$ac_optarg ;; 474 475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 476 ac_prev=mandir ;; 477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 478 mandir=$ac_optarg ;; 479 480 -nfp | --nfp | --nf) 481 # Obsolete; use --without-fp. 482 with_fp=no ;; 483 484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 485 | --no-cr | --no-c | -n) 486 no_create=yes ;; 487 488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 490 no_recursion=yes ;; 491 492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 494 | --oldin | --oldi | --old | --ol | --o) 495 ac_prev=oldincludedir ;; 496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 499 oldincludedir=$ac_optarg ;; 500 501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 502 ac_prev=prefix ;; 503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 504 prefix=$ac_optarg ;; 505 506 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 507 | --program-pre | --program-pr | --program-p) 508 ac_prev=program_prefix ;; 509 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 511 program_prefix=$ac_optarg ;; 512 513 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 514 | --program-suf | --program-su | --program-s) 515 ac_prev=program_suffix ;; 516 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 518 program_suffix=$ac_optarg ;; 519 520 -program-transform-name | --program-transform-name \ 521 | --program-transform-nam | --program-transform-na \ 522 | --program-transform-n | --program-transform- \ 523 | --program-transform | --program-transfor \ 524 | --program-transfo | --program-transf \ 525 | --program-trans | --program-tran \ 526 | --progr-tra | --program-tr | --program-t) 527 ac_prev=program_transform_name ;; 528 -program-transform-name=* | --program-transform-name=* \ 529 | --program-transform-nam=* | --program-transform-na=* \ 530 | --program-transform-n=* | --program-transform-=* \ 531 | --program-transform=* | --program-transfor=* \ 532 | --program-transfo=* | --program-transf=* \ 533 | --program-trans=* | --program-tran=* \ 534 | --progr-tra=* | --program-tr=* | --program-t=*) 535 program_transform_name=$ac_optarg ;; 536 537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 538 | -silent | --silent | --silen | --sile | --sil) 539 silent=yes ;; 540 541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 542 ac_prev=sbindir ;; 543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 544 | --sbi=* | --sb=*) 545 sbindir=$ac_optarg ;; 546 547 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 549 | --sharedst | --shareds | --shared | --share | --shar \ 550 | --sha | --sh) 551 ac_prev=sharedstatedir ;; 552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 555 | --sha=* | --sh=*) 556 sharedstatedir=$ac_optarg ;; 557 558 -site | --site | --sit) 559 ac_prev=site ;; 560 -site=* | --site=* | --sit=*) 561 site=$ac_optarg ;; 562 563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 564 ac_prev=srcdir ;; 565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 566 srcdir=$ac_optarg ;; 567 568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 569 | --syscon | --sysco | --sysc | --sys | --sy) 570 ac_prev=sysconfdir ;; 571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 573 sysconfdir=$ac_optarg ;; 574 575 -target | --target | --targe | --targ | --tar | --ta | --t) 576 ac_prev=target_alias ;; 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 578 target_alias=$ac_optarg ;; 579 580 -v | -verbose | --verbose | --verbos | --verbo | --verb) 581 verbose=yes ;; 582 583 -version | --version | --versio | --versi | --vers | -V) 584 ac_init_version=: ;; 585 586 -with-* | --with-*) 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 588 # Reject names that are not valid shell variable names. 589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 590 { echo "$as_me: error: invalid package name: $ac_package" >&2 591 { (exit 1); exit 1; }; } 592 ac_package=`echo $ac_package| sed 's/-/_/g'` 593 case $ac_option in 594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 595 *) ac_optarg=yes ;; 596 esac 597 eval "with_$ac_package='$ac_optarg'" ;; 598 599 -without-* | --without-*) 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 601 # Reject names that are not valid shell variable names. 602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 603 { echo "$as_me: error: invalid package name: $ac_package" >&2 604 { (exit 1); exit 1; }; } 605 ac_package=`echo $ac_package | sed 's/-/_/g'` 606 eval "with_$ac_package=no" ;; 607 608 --x) 609 # Obsolete; use --with-x. 610 with_x=yes ;; 611 612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 613 | --x-incl | --x-inc | --x-in | --x-i) 614 ac_prev=x_includes ;; 615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 617 x_includes=$ac_optarg ;; 618 619 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 621 ac_prev=x_libraries ;; 622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 624 x_libraries=$ac_optarg ;; 625 626 -*) { echo "$as_me: error: unrecognized option: $ac_option 627Try \`$0 --help' for more information." >&2 628 { (exit 1); exit 1; }; } 629 ;; 630 631 *=*) 632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 633 # Reject names that are not valid shell variable names. 634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 636 { (exit 1); exit 1; }; } 637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 638 eval "$ac_envvar='$ac_optarg'" 639 export $ac_envvar ;; 640 641 *) 642 # FIXME: should be removed in autoconf 3.0. 643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 647 ;; 648 649 esac 650done 651 652if test -n "$ac_prev"; then 653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 654 { echo "$as_me: error: missing argument to $ac_option" >&2 655 { (exit 1); exit 1; }; } 656fi 657 658# Be sure to have absolute paths. 659for ac_var in exec_prefix prefix 660do 661 eval ac_val=$`echo $ac_var` 662 case $ac_val in 663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 665 { (exit 1); exit 1; }; };; 666 esac 667done 668 669# Be sure to have absolute paths. 670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 671 localstatedir libdir includedir oldincludedir infodir mandir 672do 673 eval ac_val=$`echo $ac_var` 674 case $ac_val in 675 [\\/$]* | ?:[\\/]* ) ;; 676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 677 { (exit 1); exit 1; }; };; 678 esac 679done 680 681# There might be people who depend on the old broken behavior: `$host' 682# used to hold the argument of --host etc. 683# FIXME: To remove some day. 684build=$build_alias 685host=$host_alias 686target=$target_alias 687 688# FIXME: To remove some day. 689if test "x$host_alias" != x; then 690 if test "x$build_alias" = x; then 691 cross_compiling=maybe 692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 693 If a cross compiler is detected then cross compile mode will be used." >&2 694 elif test "x$build_alias" != "x$host_alias"; then 695 cross_compiling=yes 696 fi 697fi 698 699ac_tool_prefix= 700test -n "$host_alias" && ac_tool_prefix=$host_alias- 701 702test "$silent" = yes && exec 6>/dev/null 703 704 705# Find the source files, if location was not specified. 706if test -z "$srcdir"; then 707 ac_srcdir_defaulted=yes 708 # Try the directory containing this script, then its parent. 709 ac_confdir=`(dirname "$0") 2>/dev/null || 710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 711 X"$0" : 'X\(//\)[^/]' \| \ 712 X"$0" : 'X\(//\)$' \| \ 713 X"$0" : 'X\(/\)' \| \ 714 . : '\(.\)' 2>/dev/null || 715echo X"$0" | 716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 718 /^X\(\/\/\)$/{ s//\1/; q; } 719 /^X\(\/\).*/{ s//\1/; q; } 720 s/.*/./; q'` 721 srcdir=$ac_confdir 722 if test ! -r $srcdir/$ac_unique_file; then 723 srcdir=.. 724 fi 725else 726 ac_srcdir_defaulted=no 727fi 728if test ! -r $srcdir/$ac_unique_file; then 729 if test "$ac_srcdir_defaulted" = yes; then 730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 731 { (exit 1); exit 1; }; } 732 else 733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 734 { (exit 1); exit 1; }; } 735 fi 736fi 737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 739 { (exit 1); exit 1; }; } 740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 741ac_env_build_alias_set=${build_alias+set} 742ac_env_build_alias_value=$build_alias 743ac_cv_env_build_alias_set=${build_alias+set} 744ac_cv_env_build_alias_value=$build_alias 745ac_env_host_alias_set=${host_alias+set} 746ac_env_host_alias_value=$host_alias 747ac_cv_env_host_alias_set=${host_alias+set} 748ac_cv_env_host_alias_value=$host_alias 749ac_env_target_alias_set=${target_alias+set} 750ac_env_target_alias_value=$target_alias 751ac_cv_env_target_alias_set=${target_alias+set} 752ac_cv_env_target_alias_value=$target_alias 753ac_env_CC_set=${CC+set} 754ac_env_CC_value=$CC 755ac_cv_env_CC_set=${CC+set} 756ac_cv_env_CC_value=$CC 757ac_env_CFLAGS_set=${CFLAGS+set} 758ac_env_CFLAGS_value=$CFLAGS 759ac_cv_env_CFLAGS_set=${CFLAGS+set} 760ac_cv_env_CFLAGS_value=$CFLAGS 761ac_env_LDFLAGS_set=${LDFLAGS+set} 762ac_env_LDFLAGS_value=$LDFLAGS 763ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 764ac_cv_env_LDFLAGS_value=$LDFLAGS 765ac_env_CPPFLAGS_set=${CPPFLAGS+set} 766ac_env_CPPFLAGS_value=$CPPFLAGS 767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 768ac_cv_env_CPPFLAGS_value=$CPPFLAGS 769ac_env_CPP_set=${CPP+set} 770ac_env_CPP_value=$CPP 771ac_cv_env_CPP_set=${CPP+set} 772ac_cv_env_CPP_value=$CPP 773 774# 775# Report the --help message. 776# 777if test "$ac_init_help" = "long"; then 778 # Omit some internal or obsolete options to make the list less imposing. 779 # This message is too long to be a string in the A/UX 3.1 sh. 780 cat <<_ACEOF 781\`configure' configures this package to adapt to many kinds of systems. 782 783Usage: $0 [OPTION]... [VAR=VALUE]... 784 785To assign environment variables (e.g., CC, CFLAGS...), specify them as 786VAR=VALUE. See below for descriptions of some of the useful variables. 787 788Defaults for the options are specified in brackets. 789 790Configuration: 791 -h, --help display this help and exit 792 --help=short display options specific to this package 793 --help=recursive display the short help of all the included packages 794 -V, --version display version information and exit 795 -q, --quiet, --silent do not print \`checking...' messages 796 --cache-file=FILE cache test results in FILE [disabled] 797 -C, --config-cache alias for \`--cache-file=config.cache' 798 -n, --no-create do not create output files 799 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 800 801_ACEOF 802 803 cat <<_ACEOF 804Installation directories: 805 --prefix=PREFIX install architecture-independent files in PREFIX 806 [$ac_default_prefix] 807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 808 [PREFIX] 809 810By default, \`make install' will install all the files in 811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 812an installation prefix other than \`$ac_default_prefix' using \`--prefix', 813for instance \`--prefix=\$HOME'. 814 815For better control, use the options below. 816 817Fine tuning of the installation directories: 818 --bindir=DIR user executables [EPREFIX/bin] 819 --sbindir=DIR system admin executables [EPREFIX/sbin] 820 --libexecdir=DIR program executables [EPREFIX/libexec] 821 --datadir=DIR read-only architecture-independent data [PREFIX/share] 822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 824 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 825 --libdir=DIR object code libraries [EPREFIX/lib] 826 --includedir=DIR C header files [PREFIX/include] 827 --oldincludedir=DIR C header files for non-gcc [/usr/include] 828 --infodir=DIR info documentation [PREFIX/info] 829 --mandir=DIR man documentation [PREFIX/man] 830_ACEOF 831 832 cat <<\_ACEOF 833 834Program names: 835 --program-prefix=PREFIX prepend PREFIX to installed program names 836 --program-suffix=SUFFIX append SUFFIX to installed program names 837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 838 839X features: 840 --x-includes=DIR X include files are in DIR 841 --x-libraries=DIR X library files are in DIR 842_ACEOF 843fi 844 845if test -n "$ac_init_help"; then 846 847 cat <<\_ACEOF 848 849Optional Features: 850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 852 --disable-dependency-tracking speeds up one-time build 853 --enable-dependency-tracking do not reject slow dependency extractors 854 855Optional Packages: 856 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 857 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 858 --with-x use the X Window System 859 --with-Xaw compile with Athena widget set 860 --with-motif compile with Motif (or lesstif) 861 --with-toolkit=TK use specified toolkit (motif, xaw, none) 862 863Some influential environment variables: 864 CC C compiler command 865 CFLAGS C compiler flags 866 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 867 nonstandard directory <lib dir> 868 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 869 headers in a nonstandard directory <include dir> 870 CPP C preprocessor 871 872Use these variables to override the choices made by `configure' or to help 873it to find libraries and programs with nonstandard names/locations. 874 875_ACEOF 876fi 877 878if test "$ac_init_help" = "recursive"; then 879 # If there are subdirs, report their specific --help. 880 ac_popdir=`pwd` 881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 882 test -d $ac_dir || continue 883 ac_builddir=. 884 885if test "$ac_dir" != .; then 886 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 887 # A "../" for each directory in $ac_dir_suffix. 888 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 889else 890 ac_dir_suffix= ac_top_builddir= 891fi 892 893case $srcdir in 894 .) # No --srcdir option. We are building in place. 895 ac_srcdir=. 896 if test -z "$ac_top_builddir"; then 897 ac_top_srcdir=. 898 else 899 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 900 fi ;; 901 [\\/]* | ?:[\\/]* ) # Absolute path. 902 ac_srcdir=$srcdir$ac_dir_suffix; 903 ac_top_srcdir=$srcdir ;; 904 *) # Relative path. 905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 906 ac_top_srcdir=$ac_top_builddir$srcdir ;; 907esac 908 909# Do not use `cd foo && pwd` to compute absolute paths, because 910# the directories may not exist. 911case `pwd` in 912.) ac_abs_builddir="$ac_dir";; 913*) 914 case "$ac_dir" in 915 .) ac_abs_builddir=`pwd`;; 916 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 917 *) ac_abs_builddir=`pwd`/"$ac_dir";; 918 esac;; 919esac 920case $ac_abs_builddir in 921.) ac_abs_top_builddir=${ac_top_builddir}.;; 922*) 923 case ${ac_top_builddir}. in 924 .) ac_abs_top_builddir=$ac_abs_builddir;; 925 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 926 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 927 esac;; 928esac 929case $ac_abs_builddir in 930.) ac_abs_srcdir=$ac_srcdir;; 931*) 932 case $ac_srcdir in 933 .) ac_abs_srcdir=$ac_abs_builddir;; 934 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 935 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 936 esac;; 937esac 938case $ac_abs_builddir in 939.) ac_abs_top_srcdir=$ac_top_srcdir;; 940*) 941 case $ac_top_srcdir in 942 .) ac_abs_top_srcdir=$ac_abs_builddir;; 943 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 944 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 945 esac;; 946esac 947 948 cd $ac_dir 949 # Check for guested configure; otherwise get Cygnus style configure. 950 if test -f $ac_srcdir/configure.gnu; then 951 echo 952 $SHELL $ac_srcdir/configure.gnu --help=recursive 953 elif test -f $ac_srcdir/configure; then 954 echo 955 $SHELL $ac_srcdir/configure --help=recursive 956 elif test -f $ac_srcdir/configure.ac || 957 test -f $ac_srcdir/configure.in; then 958 echo 959 $ac_configure --help 960 else 961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 962 fi 963 cd $ac_popdir 964 done 965fi 966 967test -n "$ac_init_help" && exit 0 968if $ac_init_version; then 969 cat <<\_ACEOF 970 971Copyright (C) 2003 Free Software Foundation, Inc. 972This configure script is free software; the Free Software Foundation 973gives unlimited permission to copy, distribute and modify it. 974_ACEOF 975 exit 0 976fi 977exec 5>config.log 978cat >&5 <<_ACEOF 979This file contains any messages produced by compilers while 980running configure, to aid debugging if configure makes a mistake. 981 982It was created by $as_me, which was 983generated by GNU Autoconf 2.59. Invocation command line was 984 985 $ $0 $@ 986 987_ACEOF 988{ 989cat <<_ASUNAME 990## --------- ## 991## Platform. ## 992## --------- ## 993 994hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 995uname -m = `(uname -m) 2>/dev/null || echo unknown` 996uname -r = `(uname -r) 2>/dev/null || echo unknown` 997uname -s = `(uname -s) 2>/dev/null || echo unknown` 998uname -v = `(uname -v) 2>/dev/null || echo unknown` 999 1000/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1001/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1002 1003/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1004/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1005/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1006hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1007/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1008/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1009/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1010 1011_ASUNAME 1012 1013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1014for as_dir in $PATH 1015do 1016 IFS=$as_save_IFS 1017 test -z "$as_dir" && as_dir=. 1018 echo "PATH: $as_dir" 1019done 1020 1021} >&5 1022 1023cat >&5 <<_ACEOF 1024 1025 1026## ----------- ## 1027## Core tests. ## 1028## ----------- ## 1029 1030_ACEOF 1031 1032 1033# Keep a trace of the command line. 1034# Strip out --no-create and --no-recursion so they do not pile up. 1035# Strip out --silent because we don't want to record it for future runs. 1036# Also quote any args containing shell meta-characters. 1037# Make two passes to allow for proper duplicate-argument suppression. 1038ac_configure_args= 1039ac_configure_args0= 1040ac_configure_args1= 1041ac_sep= 1042ac_must_keep_next=false 1043for ac_pass in 1 2 1044do 1045 for ac_arg 1046 do 1047 case $ac_arg in 1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1050 | -silent | --silent | --silen | --sile | --sil) 1051 continue ;; 1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1054 esac 1055 case $ac_pass in 1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1057 2) 1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1059 if test $ac_must_keep_next = true; then 1060 ac_must_keep_next=false # Got value, back to normal. 1061 else 1062 case $ac_arg in 1063 *=* | --config-cache | -C | -disable-* | --disable-* \ 1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1066 | -with-* | --with-* | -without-* | --without-* | --x) 1067 case "$ac_configure_args0 " in 1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1069 esac 1070 ;; 1071 -* ) ac_must_keep_next=true ;; 1072 esac 1073 fi 1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1075 # Get rid of the leading space. 1076 ac_sep=" " 1077 ;; 1078 esac 1079 done 1080done 1081$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1082$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1083 1084# When interrupted or exit'd, cleanup temporary files, and complete 1085# config.log. We remove comments because anyway the quotes in there 1086# would cause problems or look ugly. 1087# WARNING: Be sure not to use single quotes in there, as some shells, 1088# such as our DU 5.0 friend, will then `close' the trap. 1089trap 'exit_status=$? 1090 # Save into config.log some information that might help in debugging. 1091 { 1092 echo 1093 1094 cat <<\_ASBOX 1095## ---------------- ## 1096## Cache variables. ## 1097## ---------------- ## 1098_ASBOX 1099 echo 1100 # The following way of writing the cache mishandles newlines in values, 1101{ 1102 (set) 2>&1 | 1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1104 *ac_space=\ *) 1105 sed -n \ 1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1108 ;; 1109 *) 1110 sed -n \ 1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1112 ;; 1113 esac; 1114} 1115 echo 1116 1117 cat <<\_ASBOX 1118## ----------------- ## 1119## Output variables. ## 1120## ----------------- ## 1121_ASBOX 1122 echo 1123 for ac_var in $ac_subst_vars 1124 do 1125 eval ac_val=$`echo $ac_var` 1126 echo "$ac_var='"'"'$ac_val'"'"'" 1127 done | sort 1128 echo 1129 1130 if test -n "$ac_subst_files"; then 1131 cat <<\_ASBOX 1132## ------------- ## 1133## Output files. ## 1134## ------------- ## 1135_ASBOX 1136 echo 1137 for ac_var in $ac_subst_files 1138 do 1139 eval ac_val=$`echo $ac_var` 1140 echo "$ac_var='"'"'$ac_val'"'"'" 1141 done | sort 1142 echo 1143 fi 1144 1145 if test -s confdefs.h; then 1146 cat <<\_ASBOX 1147## ----------- ## 1148## confdefs.h. ## 1149## ----------- ## 1150_ASBOX 1151 echo 1152 sed "/^$/d" confdefs.h | sort 1153 echo 1154 fi 1155 test "$ac_signal" != 0 && 1156 echo "$as_me: caught signal $ac_signal" 1157 echo "$as_me: exit $exit_status" 1158 } >&5 1159 rm -f core *.core && 1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1161 exit $exit_status 1162 ' 0 1163for ac_signal in 1 2 13 15; do 1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1165done 1166ac_signal=0 1167 1168# confdefs.h avoids OS command line length limits that DEFS can exceed. 1169rm -rf conftest* confdefs.h 1170# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1171echo >confdefs.h 1172 1173# Predefined preprocessor variables. 1174 1175cat >>confdefs.h <<_ACEOF 1176#define PACKAGE_NAME "$PACKAGE_NAME" 1177_ACEOF 1178 1179 1180cat >>confdefs.h <<_ACEOF 1181#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1182_ACEOF 1183 1184 1185cat >>confdefs.h <<_ACEOF 1186#define PACKAGE_VERSION "$PACKAGE_VERSION" 1187_ACEOF 1188 1189 1190cat >>confdefs.h <<_ACEOF 1191#define PACKAGE_STRING "$PACKAGE_STRING" 1192_ACEOF 1193 1194 1195cat >>confdefs.h <<_ACEOF 1196#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1197_ACEOF 1198 1199 1200# Let the site file select an alternate cache file if it wants to. 1201# Prefer explicitly selected file to automatically selected ones. 1202if test -z "$CONFIG_SITE"; then 1203 if test "x$prefix" != xNONE; then 1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1205 else 1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1207 fi 1208fi 1209for ac_site_file in $CONFIG_SITE; do 1210 if test -r "$ac_site_file"; then 1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1212echo "$as_me: loading site script $ac_site_file" >&6;} 1213 sed 's/^/| /' "$ac_site_file" >&5 1214 . "$ac_site_file" 1215 fi 1216done 1217 1218if test -r "$cache_file"; then 1219 # Some versions of bash will fail to source /dev/null (special 1220 # files actually), so we avoid doing that. 1221 if test -f "$cache_file"; then 1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1223echo "$as_me: loading cache $cache_file" >&6;} 1224 case $cache_file in 1225 [\\/]* | ?:[\\/]* ) . $cache_file;; 1226 *) . ./$cache_file;; 1227 esac 1228 fi 1229else 1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1231echo "$as_me: creating cache $cache_file" >&6;} 1232 >$cache_file 1233fi 1234 1235# Check that the precious variables saved in the cache have kept the same 1236# value. 1237ac_cache_corrupted=false 1238for ac_var in `(set) 2>&1 | 1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1241 eval ac_new_set=\$ac_env_${ac_var}_set 1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1243 eval ac_new_val="\$ac_env_${ac_var}_value" 1244 case $ac_old_set,$ac_new_set in 1245 set,) 1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1247echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1248 ac_cache_corrupted=: ;; 1249 ,set) 1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1251echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1252 ac_cache_corrupted=: ;; 1253 ,);; 1254 *) 1255 if test "x$ac_old_val" != "x$ac_new_val"; then 1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1257echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1259echo "$as_me: former value: $ac_old_val" >&2;} 1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1261echo "$as_me: current value: $ac_new_val" >&2;} 1262 ac_cache_corrupted=: 1263 fi;; 1264 esac 1265 # Pass precious variables to config.status. 1266 if test "$ac_new_set" = set; then 1267 case $ac_new_val in 1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1269 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1270 *) ac_arg=$ac_var=$ac_new_val ;; 1271 esac 1272 case " $ac_configure_args " in 1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1274 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1275 esac 1276 fi 1277done 1278if $ac_cache_corrupted; then 1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1280echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1281 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1282echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1283 { (exit 1); exit 1; }; } 1284fi 1285 1286ac_ext=c 1287ac_cpp='$CPP $CPPFLAGS' 1288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1290ac_compiler_gnu=$ac_cv_c_compiler_gnu 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 ac_config_headers="$ac_config_headers config.h" 1311 1312 1313am__api_version="1.9" 1314ac_aux_dir= 1315for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1316 if test -f $ac_dir/install-sh; then 1317 ac_aux_dir=$ac_dir 1318 ac_install_sh="$ac_aux_dir/install-sh -c" 1319 break 1320 elif test -f $ac_dir/install.sh; then 1321 ac_aux_dir=$ac_dir 1322 ac_install_sh="$ac_aux_dir/install.sh -c" 1323 break 1324 elif test -f $ac_dir/shtool; then 1325 ac_aux_dir=$ac_dir 1326 ac_install_sh="$ac_aux_dir/shtool install -c" 1327 break 1328 fi 1329done 1330if test -z "$ac_aux_dir"; then 1331 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1332echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1333 { (exit 1); exit 1; }; } 1334fi 1335ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1336ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1337ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1338 1339# Find a good install program. We prefer a C program (faster), 1340# so one script is as good as another. But avoid the broken or 1341# incompatible versions: 1342# SysV /etc/install, /usr/sbin/install 1343# SunOS /usr/etc/install 1344# IRIX /sbin/install 1345# AIX /bin/install 1346# AmigaOS /C/install, which installs bootblocks on floppy discs 1347# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1348# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1349# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1350# OS/2's system install, which has a completely different semantic 1351# ./install, which can be erroneously created by make from ./install.sh. 1352echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1353echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1354if test -z "$INSTALL"; then 1355if test "${ac_cv_path_install+set}" = set; then 1356 echo $ECHO_N "(cached) $ECHO_C" >&6 1357else 1358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1359for as_dir in $PATH 1360do 1361 IFS=$as_save_IFS 1362 test -z "$as_dir" && as_dir=. 1363 # Account for people who put trailing slashes in PATH elements. 1364case $as_dir/ in 1365 ./ | .// | /cC/* | \ 1366 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1367 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1368 /usr/ucb/* ) ;; 1369 *) 1370 # OSF1 and SCO ODT 3.0 have their own names for install. 1371 # Don't use installbsd from OSF since it installs stuff as root 1372 # by default. 1373 for ac_prog in ginstall scoinst install; do 1374 for ac_exec_ext in '' $ac_executable_extensions; do 1375 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1376 if test $ac_prog = install && 1377 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1378 # AIX install. It has an incompatible calling convention. 1379 : 1380 elif test $ac_prog = install && 1381 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1382 # program-specific install script used by HP pwplus--don't use. 1383 : 1384 else 1385 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1386 break 3 1387 fi 1388 fi 1389 done 1390 done 1391 ;; 1392esac 1393done 1394 1395 1396fi 1397 if test "${ac_cv_path_install+set}" = set; then 1398 INSTALL=$ac_cv_path_install 1399 else 1400 # As a last resort, use the slow shell script. We don't cache a 1401 # path for INSTALL within a source directory, because that will 1402 # break other packages using the cache if that directory is 1403 # removed, or if the path is relative. 1404 INSTALL=$ac_install_sh 1405 fi 1406fi 1407echo "$as_me:$LINENO: result: $INSTALL" >&5 1408echo "${ECHO_T}$INSTALL" >&6 1409 1410# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1411# It thinks the first close brace ends the variable substitution. 1412test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1413 1414test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1415 1416test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1417 1418echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1419echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1420# Just in case 1421sleep 1 1422echo timestamp > conftest.file 1423# Do `set' in a subshell so we don't clobber the current shell's 1424# arguments. Must try -L first in case configure is actually a 1425# symlink; some systems play weird games with the mod time of symlinks 1426# (eg FreeBSD returns the mod time of the symlink's containing 1427# directory). 1428if ( 1429 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1430 if test "$*" = "X"; then 1431 # -L didn't work. 1432 set X `ls -t $srcdir/configure conftest.file` 1433 fi 1434 rm -f conftest.file 1435 if test "$*" != "X $srcdir/configure conftest.file" \ 1436 && test "$*" != "X conftest.file $srcdir/configure"; then 1437 1438 # If neither matched, then we have a broken ls. This can happen 1439 # if, for instance, CONFIG_SHELL is bash and it inherits a 1440 # broken ls alias from the environment. This has actually 1441 # happened. Such a system could not be considered "sane". 1442 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1443alias in your environment" >&5 1444echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1445alias in your environment" >&2;} 1446 { (exit 1); exit 1; }; } 1447 fi 1448 1449 test "$2" = conftest.file 1450 ) 1451then 1452 # Ok. 1453 : 1454else 1455 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1456Check your system clock" >&5 1457echo "$as_me: error: newly created file is older than distributed files! 1458Check your system clock" >&2;} 1459 { (exit 1); exit 1; }; } 1460fi 1461echo "$as_me:$LINENO: result: yes" >&5 1462echo "${ECHO_T}yes" >&6 1463test "$program_prefix" != NONE && 1464 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1465# Use a double $ so make ignores it. 1466test "$program_suffix" != NONE && 1467 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1468# Double any \ or $. echo might interpret backslashes. 1469# By default was `s,x,x', remove it if useless. 1470cat <<\_ACEOF >conftest.sed 1471s/[\\$]/&&/g;s/;s,x,x,$// 1472_ACEOF 1473program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1474rm conftest.sed 1475 1476# expand $ac_aux_dir to an absolute path 1477am_aux_dir=`cd $ac_aux_dir && pwd` 1478 1479test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1480# Use eval to expand $SHELL 1481if eval "$MISSING --run true"; then 1482 am_missing_run="$MISSING --run " 1483else 1484 am_missing_run= 1485 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1486echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1487fi 1488 1489if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1490 # We used to keeping the `.' as first argument, in order to 1491 # allow $(mkdir_p) to be used without argument. As in 1492 # $(mkdir_p) $(somedir) 1493 # where $(somedir) is conditionally defined. However this is wrong 1494 # for two reasons: 1495 # 1. if the package is installed by a user who cannot write `.' 1496 # make install will fail, 1497 # 2. the above comment should most certainly read 1498 # $(mkdir_p) $(DESTDIR)$(somedir) 1499 # so it does not work when $(somedir) is undefined and 1500 # $(DESTDIR) is not. 1501 # To support the latter case, we have to write 1502 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1503 # so the `.' trick is pointless. 1504 mkdir_p='mkdir -p --' 1505else 1506 # On NextStep and OpenStep, the `mkdir' command does not 1507 # recognize any option. It will interpret all options as 1508 # directories to create, and then abort because `.' already 1509 # exists. 1510 for d in ./-p ./--version; 1511 do 1512 test -d $d && rmdir $d 1513 done 1514 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1515 if test -f "$ac_aux_dir/mkinstalldirs"; then 1516 mkdir_p='$(mkinstalldirs)' 1517 else 1518 mkdir_p='$(install_sh) -d' 1519 fi 1520fi 1521 1522for ac_prog in gawk mawk nawk awk 1523do 1524 # Extract the first word of "$ac_prog", so it can be a program name with args. 1525set dummy $ac_prog; ac_word=$2 1526echo "$as_me:$LINENO: checking for $ac_word" >&5 1527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1528if test "${ac_cv_prog_AWK+set}" = set; then 1529 echo $ECHO_N "(cached) $ECHO_C" >&6 1530else 1531 if test -n "$AWK"; then 1532 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1533else 1534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1535for as_dir in $PATH 1536do 1537 IFS=$as_save_IFS 1538 test -z "$as_dir" && as_dir=. 1539 for ac_exec_ext in '' $ac_executable_extensions; do 1540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1541 ac_cv_prog_AWK="$ac_prog" 1542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1543 break 2 1544 fi 1545done 1546done 1547 1548fi 1549fi 1550AWK=$ac_cv_prog_AWK 1551if test -n "$AWK"; then 1552 echo "$as_me:$LINENO: result: $AWK" >&5 1553echo "${ECHO_T}$AWK" >&6 1554else 1555 echo "$as_me:$LINENO: result: no" >&5 1556echo "${ECHO_T}no" >&6 1557fi 1558 1559 test -n "$AWK" && break 1560done 1561 1562echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1563echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1564set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1565if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1566 echo $ECHO_N "(cached) $ECHO_C" >&6 1567else 1568 cat >conftest.make <<\_ACEOF 1569all: 1570 @echo 'ac_maketemp="$(MAKE)"' 1571_ACEOF 1572# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1573eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1574if test -n "$ac_maketemp"; then 1575 eval ac_cv_prog_make_${ac_make}_set=yes 1576else 1577 eval ac_cv_prog_make_${ac_make}_set=no 1578fi 1579rm -f conftest.make 1580fi 1581if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1582 echo "$as_me:$LINENO: result: yes" >&5 1583echo "${ECHO_T}yes" >&6 1584 SET_MAKE= 1585else 1586 echo "$as_me:$LINENO: result: no" >&5 1587echo "${ECHO_T}no" >&6 1588 SET_MAKE="MAKE=${MAKE-make}" 1589fi 1590 1591rm -rf .tst 2>/dev/null 1592mkdir .tst 2>/dev/null 1593if test -d .tst; then 1594 am__leading_dot=. 1595else 1596 am__leading_dot=_ 1597fi 1598rmdir .tst 2>/dev/null 1599 1600# test to see if srcdir already configured 1601if test "`cd $srcdir && pwd`" != "`pwd`" && 1602 test -f $srcdir/config.status; then 1603 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1604echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1605 { (exit 1); exit 1; }; } 1606fi 1607 1608# test whether we have cygpath 1609if test -z "$CYGPATH_W"; then 1610 if (cygpath --version) >/dev/null 2>/dev/null; then 1611 CYGPATH_W='cygpath -w' 1612 else 1613 CYGPATH_W=echo 1614 fi 1615fi 1616 1617 1618# Define the identity of the package. 1619 PACKAGE=xruskb 1620 VERSION=1.15.4 1621 1622 1623cat >>confdefs.h <<_ACEOF 1624#define PACKAGE "$PACKAGE" 1625_ACEOF 1626 1627 1628cat >>confdefs.h <<_ACEOF 1629#define VERSION "$VERSION" 1630_ACEOF 1631 1632# Some tools Automake needs. 1633 1634ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1635 1636 1637AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1638 1639 1640AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1641 1642 1643AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 1644 1645 1646MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 1647 1648install_sh=${install_sh-"$am_aux_dir/install-sh"} 1649 1650# Installed binaries are usually stripped using `strip' when the user 1651# run `make install-strip'. However `strip' might not be the right 1652# tool to use in cross-compilation environments, therefore Automake 1653# will honor the `STRIP' environment variable to overrule this program. 1654if test "$cross_compiling" != no; then 1655 if test -n "$ac_tool_prefix"; then 1656 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 1657set dummy ${ac_tool_prefix}strip; ac_word=$2 1658echo "$as_me:$LINENO: checking for $ac_word" >&5 1659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1660if test "${ac_cv_prog_STRIP+set}" = set; then 1661 echo $ECHO_N "(cached) $ECHO_C" >&6 1662else 1663 if test -n "$STRIP"; then 1664 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 1665else 1666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1667for as_dir in $PATH 1668do 1669 IFS=$as_save_IFS 1670 test -z "$as_dir" && as_dir=. 1671 for ac_exec_ext in '' $ac_executable_extensions; do 1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1673 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1675 break 2 1676 fi 1677done 1678done 1679 1680fi 1681fi 1682STRIP=$ac_cv_prog_STRIP 1683if test -n "$STRIP"; then 1684 echo "$as_me:$LINENO: result: $STRIP" >&5 1685echo "${ECHO_T}$STRIP" >&6 1686else 1687 echo "$as_me:$LINENO: result: no" >&5 1688echo "${ECHO_T}no" >&6 1689fi 1690 1691fi 1692if test -z "$ac_cv_prog_STRIP"; then 1693 ac_ct_STRIP=$STRIP 1694 # Extract the first word of "strip", so it can be a program name with args. 1695set dummy strip; ac_word=$2 1696echo "$as_me:$LINENO: checking for $ac_word" >&5 1697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1698if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 1699 echo $ECHO_N "(cached) $ECHO_C" >&6 1700else 1701 if test -n "$ac_ct_STRIP"; then 1702 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 1703else 1704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1705for as_dir in $PATH 1706do 1707 IFS=$as_save_IFS 1708 test -z "$as_dir" && as_dir=. 1709 for ac_exec_ext in '' $ac_executable_extensions; do 1710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1711 ac_cv_prog_ac_ct_STRIP="strip" 1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1713 break 2 1714 fi 1715done 1716done 1717 1718 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 1719fi 1720fi 1721ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 1722if test -n "$ac_ct_STRIP"; then 1723 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 1724echo "${ECHO_T}$ac_ct_STRIP" >&6 1725else 1726 echo "$as_me:$LINENO: result: no" >&5 1727echo "${ECHO_T}no" >&6 1728fi 1729 1730 STRIP=$ac_ct_STRIP 1731else 1732 STRIP="$ac_cv_prog_STRIP" 1733fi 1734 1735fi 1736INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 1737 1738# We need awk for the "check" target. The system "awk" is bad on 1739# some platforms. 1740# Always define AMTAR for backward compatibility. 1741 1742AMTAR=${AMTAR-"${am_missing_run}tar"} 1743 1744am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 1745 1746 1747 1748 1749 1750 1751if test "$CFLAGS" = "" 1752then 1753 CFLAGS="-O" 1754fi 1755 1756for ac_prog in gawk mawk nawk awk 1757do 1758 # Extract the first word of "$ac_prog", so it can be a program name with args. 1759set dummy $ac_prog; ac_word=$2 1760echo "$as_me:$LINENO: checking for $ac_word" >&5 1761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1762if test "${ac_cv_prog_AWK+set}" = set; then 1763 echo $ECHO_N "(cached) $ECHO_C" >&6 1764else 1765 if test -n "$AWK"; then 1766 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1767else 1768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1769for as_dir in $PATH 1770do 1771 IFS=$as_save_IFS 1772 test -z "$as_dir" && as_dir=. 1773 for ac_exec_ext in '' $ac_executable_extensions; do 1774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1775 ac_cv_prog_AWK="$ac_prog" 1776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1777 break 2 1778 fi 1779done 1780done 1781 1782fi 1783fi 1784AWK=$ac_cv_prog_AWK 1785if test -n "$AWK"; then 1786 echo "$as_me:$LINENO: result: $AWK" >&5 1787echo "${ECHO_T}$AWK" >&6 1788else 1789 echo "$as_me:$LINENO: result: no" >&5 1790echo "${ECHO_T}no" >&6 1791fi 1792 1793 test -n "$AWK" && break 1794done 1795 1796ac_ext=c 1797ac_cpp='$CPP $CPPFLAGS' 1798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1800ac_compiler_gnu=$ac_cv_c_compiler_gnu 1801if test -n "$ac_tool_prefix"; then 1802 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1803set dummy ${ac_tool_prefix}gcc; ac_word=$2 1804echo "$as_me:$LINENO: checking for $ac_word" >&5 1805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1806if test "${ac_cv_prog_CC+set}" = set; then 1807 echo $ECHO_N "(cached) $ECHO_C" >&6 1808else 1809 if test -n "$CC"; then 1810 ac_cv_prog_CC="$CC" # Let the user override the test. 1811else 1812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1813for as_dir in $PATH 1814do 1815 IFS=$as_save_IFS 1816 test -z "$as_dir" && as_dir=. 1817 for ac_exec_ext in '' $ac_executable_extensions; do 1818 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1819 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1821 break 2 1822 fi 1823done 1824done 1825 1826fi 1827fi 1828CC=$ac_cv_prog_CC 1829if test -n "$CC"; then 1830 echo "$as_me:$LINENO: result: $CC" >&5 1831echo "${ECHO_T}$CC" >&6 1832else 1833 echo "$as_me:$LINENO: result: no" >&5 1834echo "${ECHO_T}no" >&6 1835fi 1836 1837fi 1838if test -z "$ac_cv_prog_CC"; then 1839 ac_ct_CC=$CC 1840 # Extract the first word of "gcc", so it can be a program name with args. 1841set dummy gcc; ac_word=$2 1842echo "$as_me:$LINENO: checking for $ac_word" >&5 1843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1844if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1845 echo $ECHO_N "(cached) $ECHO_C" >&6 1846else 1847 if test -n "$ac_ct_CC"; then 1848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1849else 1850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1851for as_dir in $PATH 1852do 1853 IFS=$as_save_IFS 1854 test -z "$as_dir" && as_dir=. 1855 for ac_exec_ext in '' $ac_executable_extensions; do 1856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1857 ac_cv_prog_ac_ct_CC="gcc" 1858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1859 break 2 1860 fi 1861done 1862done 1863 1864fi 1865fi 1866ac_ct_CC=$ac_cv_prog_ac_ct_CC 1867if test -n "$ac_ct_CC"; then 1868 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1869echo "${ECHO_T}$ac_ct_CC" >&6 1870else 1871 echo "$as_me:$LINENO: result: no" >&5 1872echo "${ECHO_T}no" >&6 1873fi 1874 1875 CC=$ac_ct_CC 1876else 1877 CC="$ac_cv_prog_CC" 1878fi 1879 1880if test -z "$CC"; then 1881 if test -n "$ac_tool_prefix"; then 1882 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1883set dummy ${ac_tool_prefix}cc; ac_word=$2 1884echo "$as_me:$LINENO: checking for $ac_word" >&5 1885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1886if test "${ac_cv_prog_CC+set}" = set; then 1887 echo $ECHO_N "(cached) $ECHO_C" >&6 1888else 1889 if test -n "$CC"; then 1890 ac_cv_prog_CC="$CC" # Let the user override the test. 1891else 1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1893for as_dir in $PATH 1894do 1895 IFS=$as_save_IFS 1896 test -z "$as_dir" && as_dir=. 1897 for ac_exec_ext in '' $ac_executable_extensions; do 1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1899 ac_cv_prog_CC="${ac_tool_prefix}cc" 1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1901 break 2 1902 fi 1903done 1904done 1905 1906fi 1907fi 1908CC=$ac_cv_prog_CC 1909if test -n "$CC"; then 1910 echo "$as_me:$LINENO: result: $CC" >&5 1911echo "${ECHO_T}$CC" >&6 1912else 1913 echo "$as_me:$LINENO: result: no" >&5 1914echo "${ECHO_T}no" >&6 1915fi 1916 1917fi 1918if test -z "$ac_cv_prog_CC"; then 1919 ac_ct_CC=$CC 1920 # Extract the first word of "cc", so it can be a program name with args. 1921set dummy cc; ac_word=$2 1922echo "$as_me:$LINENO: checking for $ac_word" >&5 1923echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1924if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1925 echo $ECHO_N "(cached) $ECHO_C" >&6 1926else 1927 if test -n "$ac_ct_CC"; then 1928 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1929else 1930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1931for as_dir in $PATH 1932do 1933 IFS=$as_save_IFS 1934 test -z "$as_dir" && as_dir=. 1935 for ac_exec_ext in '' $ac_executable_extensions; do 1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1937 ac_cv_prog_ac_ct_CC="cc" 1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1939 break 2 1940 fi 1941done 1942done 1943 1944fi 1945fi 1946ac_ct_CC=$ac_cv_prog_ac_ct_CC 1947if test -n "$ac_ct_CC"; then 1948 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1949echo "${ECHO_T}$ac_ct_CC" >&6 1950else 1951 echo "$as_me:$LINENO: result: no" >&5 1952echo "${ECHO_T}no" >&6 1953fi 1954 1955 CC=$ac_ct_CC 1956else 1957 CC="$ac_cv_prog_CC" 1958fi 1959 1960fi 1961if test -z "$CC"; then 1962 # Extract the first word of "cc", so it can be a program name with args. 1963set dummy cc; ac_word=$2 1964echo "$as_me:$LINENO: checking for $ac_word" >&5 1965echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1966if test "${ac_cv_prog_CC+set}" = set; then 1967 echo $ECHO_N "(cached) $ECHO_C" >&6 1968else 1969 if test -n "$CC"; then 1970 ac_cv_prog_CC="$CC" # Let the user override the test. 1971else 1972 ac_prog_rejected=no 1973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1974for as_dir in $PATH 1975do 1976 IFS=$as_save_IFS 1977 test -z "$as_dir" && as_dir=. 1978 for ac_exec_ext in '' $ac_executable_extensions; do 1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1980 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1981 ac_prog_rejected=yes 1982 continue 1983 fi 1984 ac_cv_prog_CC="cc" 1985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1986 break 2 1987 fi 1988done 1989done 1990 1991if test $ac_prog_rejected = yes; then 1992 # We found a bogon in the path, so make sure we never use it. 1993 set dummy $ac_cv_prog_CC 1994 shift 1995 if test $# != 0; then 1996 # We chose a different compiler from the bogus one. 1997 # However, it has the same basename, so the bogon will be chosen 1998 # first if we set CC to just the basename; use the full file name. 1999 shift 2000 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2001 fi 2002fi 2003fi 2004fi 2005CC=$ac_cv_prog_CC 2006if test -n "$CC"; then 2007 echo "$as_me:$LINENO: result: $CC" >&5 2008echo "${ECHO_T}$CC" >&6 2009else 2010 echo "$as_me:$LINENO: result: no" >&5 2011echo "${ECHO_T}no" >&6 2012fi 2013 2014fi 2015if test -z "$CC"; then 2016 if test -n "$ac_tool_prefix"; then 2017 for ac_prog in cl 2018 do 2019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2020set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2021echo "$as_me:$LINENO: checking for $ac_word" >&5 2022echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2023if test "${ac_cv_prog_CC+set}" = set; then 2024 echo $ECHO_N "(cached) $ECHO_C" >&6 2025else 2026 if test -n "$CC"; then 2027 ac_cv_prog_CC="$CC" # Let the user override the test. 2028else 2029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2030for as_dir in $PATH 2031do 2032 IFS=$as_save_IFS 2033 test -z "$as_dir" && as_dir=. 2034 for ac_exec_ext in '' $ac_executable_extensions; do 2035 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2036 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2038 break 2 2039 fi 2040done 2041done 2042 2043fi 2044fi 2045CC=$ac_cv_prog_CC 2046if test -n "$CC"; then 2047 echo "$as_me:$LINENO: result: $CC" >&5 2048echo "${ECHO_T}$CC" >&6 2049else 2050 echo "$as_me:$LINENO: result: no" >&5 2051echo "${ECHO_T}no" >&6 2052fi 2053 2054 test -n "$CC" && break 2055 done 2056fi 2057if test -z "$CC"; then 2058 ac_ct_CC=$CC 2059 for ac_prog in cl 2060do 2061 # Extract the first word of "$ac_prog", so it can be a program name with args. 2062set dummy $ac_prog; ac_word=$2 2063echo "$as_me:$LINENO: checking for $ac_word" >&5 2064echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2065if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2066 echo $ECHO_N "(cached) $ECHO_C" >&6 2067else 2068 if test -n "$ac_ct_CC"; then 2069 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2070else 2071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2072for as_dir in $PATH 2073do 2074 IFS=$as_save_IFS 2075 test -z "$as_dir" && as_dir=. 2076 for ac_exec_ext in '' $ac_executable_extensions; do 2077 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2078 ac_cv_prog_ac_ct_CC="$ac_prog" 2079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2080 break 2 2081 fi 2082done 2083done 2084 2085fi 2086fi 2087ac_ct_CC=$ac_cv_prog_ac_ct_CC 2088if test -n "$ac_ct_CC"; then 2089 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2090echo "${ECHO_T}$ac_ct_CC" >&6 2091else 2092 echo "$as_me:$LINENO: result: no" >&5 2093echo "${ECHO_T}no" >&6 2094fi 2095 2096 test -n "$ac_ct_CC" && break 2097done 2098 2099 CC=$ac_ct_CC 2100fi 2101 2102fi 2103 2104 2105test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2106See \`config.log' for more details." >&5 2107echo "$as_me: error: no acceptable C compiler found in \$PATH 2108See \`config.log' for more details." >&2;} 2109 { (exit 1); exit 1; }; } 2110 2111# Provide some information about the compiler. 2112echo "$as_me:$LINENO:" \ 2113 "checking for C compiler version" >&5 2114ac_compiler=`set X $ac_compile; echo $2` 2115{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2116 (eval $ac_compiler --version </dev/null >&5) 2>&5 2117 ac_status=$? 2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2119 (exit $ac_status); } 2120{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2121 (eval $ac_compiler -v </dev/null >&5) 2>&5 2122 ac_status=$? 2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2124 (exit $ac_status); } 2125{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2126 (eval $ac_compiler -V </dev/null >&5) 2>&5 2127 ac_status=$? 2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2129 (exit $ac_status); } 2130 2131cat >conftest.$ac_ext <<_ACEOF 2132/* confdefs.h. */ 2133_ACEOF 2134cat confdefs.h >>conftest.$ac_ext 2135cat >>conftest.$ac_ext <<_ACEOF 2136/* end confdefs.h. */ 2137 2138int 2139main () 2140{ 2141 2142 ; 2143 return 0; 2144} 2145_ACEOF 2146ac_clean_files_save=$ac_clean_files 2147ac_clean_files="$ac_clean_files a.out a.exe b.out" 2148# Try to create an executable without -o first, disregard a.out. 2149# It will help us diagnose broken compilers, and finding out an intuition 2150# of exeext. 2151echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2152echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2153ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2154if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2155 (eval $ac_link_default) 2>&5 2156 ac_status=$? 2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2158 (exit $ac_status); }; then 2159 # Find the output, starting from the most likely. This scheme is 2160# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2161# resort. 2162 2163# Be careful to initialize this variable, since it used to be cached. 2164# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2165ac_cv_exeext= 2166# b.out is created by i960 compilers. 2167for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2168do 2169 test -f "$ac_file" || continue 2170 case $ac_file in 2171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2172 ;; 2173 conftest.$ac_ext ) 2174 # This is the source file. 2175 ;; 2176 [ab].out ) 2177 # We found the default executable, but exeext='' is most 2178 # certainly right. 2179 break;; 2180 *.* ) 2181 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2182 # FIXME: I believe we export ac_cv_exeext for Libtool, 2183 # but it would be cool to find out if it's true. Does anybody 2184 # maintain Libtool? --akim. 2185 export ac_cv_exeext 2186 break;; 2187 * ) 2188 break;; 2189 esac 2190done 2191else 2192 echo "$as_me: failed program was:" >&5 2193sed 's/^/| /' conftest.$ac_ext >&5 2194 2195{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2196See \`config.log' for more details." >&5 2197echo "$as_me: error: C compiler cannot create executables 2198See \`config.log' for more details." >&2;} 2199 { (exit 77); exit 77; }; } 2200fi 2201 2202ac_exeext=$ac_cv_exeext 2203echo "$as_me:$LINENO: result: $ac_file" >&5 2204echo "${ECHO_T}$ac_file" >&6 2205 2206# Check the compiler produces executables we can run. If not, either 2207# the compiler is broken, or we cross compile. 2208echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2209echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2210# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2211# If not cross compiling, check that we can run a simple program. 2212if test "$cross_compiling" != yes; then 2213 if { ac_try='./$ac_file' 2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2215 (eval $ac_try) 2>&5 2216 ac_status=$? 2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2218 (exit $ac_status); }; }; then 2219 cross_compiling=no 2220 else 2221 if test "$cross_compiling" = maybe; then 2222 cross_compiling=yes 2223 else 2224 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2225If you meant to cross compile, use \`--host'. 2226See \`config.log' for more details." >&5 2227echo "$as_me: error: cannot run C compiled programs. 2228If you meant to cross compile, use \`--host'. 2229See \`config.log' for more details." >&2;} 2230 { (exit 1); exit 1; }; } 2231 fi 2232 fi 2233fi 2234echo "$as_me:$LINENO: result: yes" >&5 2235echo "${ECHO_T}yes" >&6 2236 2237rm -f a.out a.exe conftest$ac_cv_exeext b.out 2238ac_clean_files=$ac_clean_files_save 2239# Check the compiler produces executables we can run. If not, either 2240# the compiler is broken, or we cross compile. 2241echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2242echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2243echo "$as_me:$LINENO: result: $cross_compiling" >&5 2244echo "${ECHO_T}$cross_compiling" >&6 2245 2246echo "$as_me:$LINENO: checking for suffix of executables" >&5 2247echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2249 (eval $ac_link) 2>&5 2250 ac_status=$? 2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2252 (exit $ac_status); }; then 2253 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2254# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2255# work properly (i.e., refer to `conftest.exe'), while it won't with 2256# `rm'. 2257for ac_file in conftest.exe conftest conftest.*; do 2258 test -f "$ac_file" || continue 2259 case $ac_file in 2260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2261 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2262 export ac_cv_exeext 2263 break;; 2264 * ) break;; 2265 esac 2266done 2267else 2268 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2269See \`config.log' for more details." >&5 2270echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2271See \`config.log' for more details." >&2;} 2272 { (exit 1); exit 1; }; } 2273fi 2274 2275rm -f conftest$ac_cv_exeext 2276echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2277echo "${ECHO_T}$ac_cv_exeext" >&6 2278 2279rm -f conftest.$ac_ext 2280EXEEXT=$ac_cv_exeext 2281ac_exeext=$EXEEXT 2282echo "$as_me:$LINENO: checking for suffix of object files" >&5 2283echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2284if test "${ac_cv_objext+set}" = set; then 2285 echo $ECHO_N "(cached) $ECHO_C" >&6 2286else 2287 cat >conftest.$ac_ext <<_ACEOF 2288/* confdefs.h. */ 2289_ACEOF 2290cat confdefs.h >>conftest.$ac_ext 2291cat >>conftest.$ac_ext <<_ACEOF 2292/* end confdefs.h. */ 2293 2294int 2295main () 2296{ 2297 2298 ; 2299 return 0; 2300} 2301_ACEOF 2302rm -f conftest.o conftest.obj 2303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2304 (eval $ac_compile) 2>&5 2305 ac_status=$? 2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2307 (exit $ac_status); }; then 2308 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2309 case $ac_file in 2310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2311 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2312 break;; 2313 esac 2314done 2315else 2316 echo "$as_me: failed program was:" >&5 2317sed 's/^/| /' conftest.$ac_ext >&5 2318 2319{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2320See \`config.log' for more details." >&5 2321echo "$as_me: error: cannot compute suffix of object files: cannot compile 2322See \`config.log' for more details." >&2;} 2323 { (exit 1); exit 1; }; } 2324fi 2325 2326rm -f conftest.$ac_cv_objext conftest.$ac_ext 2327fi 2328echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2329echo "${ECHO_T}$ac_cv_objext" >&6 2330OBJEXT=$ac_cv_objext 2331ac_objext=$OBJEXT 2332echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2333echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2334if test "${ac_cv_c_compiler_gnu+set}" = set; then 2335 echo $ECHO_N "(cached) $ECHO_C" >&6 2336else 2337 cat >conftest.$ac_ext <<_ACEOF 2338/* confdefs.h. */ 2339_ACEOF 2340cat confdefs.h >>conftest.$ac_ext 2341cat >>conftest.$ac_ext <<_ACEOF 2342/* end confdefs.h. */ 2343 2344int 2345main () 2346{ 2347#ifndef __GNUC__ 2348 choke me 2349#endif 2350 2351 ; 2352 return 0; 2353} 2354_ACEOF 2355rm -f conftest.$ac_objext 2356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2357 (eval $ac_compile) 2>conftest.er1 2358 ac_status=$? 2359 grep -v '^ *+' conftest.er1 >conftest.err 2360 rm -f conftest.er1 2361 cat conftest.err >&5 2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2363 (exit $ac_status); } && 2364 { ac_try='test -z "$ac_c_werror_flag" 2365 || test ! -s conftest.err' 2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2367 (eval $ac_try) 2>&5 2368 ac_status=$? 2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2370 (exit $ac_status); }; } && 2371 { ac_try='test -s conftest.$ac_objext' 2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2373 (eval $ac_try) 2>&5 2374 ac_status=$? 2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2376 (exit $ac_status); }; }; then 2377 ac_compiler_gnu=yes 2378else 2379 echo "$as_me: failed program was:" >&5 2380sed 's/^/| /' conftest.$ac_ext >&5 2381 2382ac_compiler_gnu=no 2383fi 2384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2385ac_cv_c_compiler_gnu=$ac_compiler_gnu 2386 2387fi 2388echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2389echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2390GCC=`test $ac_compiler_gnu = yes && echo yes` 2391ac_test_CFLAGS=${CFLAGS+set} 2392ac_save_CFLAGS=$CFLAGS 2393CFLAGS="-g" 2394echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2395echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2396if test "${ac_cv_prog_cc_g+set}" = set; then 2397 echo $ECHO_N "(cached) $ECHO_C" >&6 2398else 2399 cat >conftest.$ac_ext <<_ACEOF 2400/* confdefs.h. */ 2401_ACEOF 2402cat confdefs.h >>conftest.$ac_ext 2403cat >>conftest.$ac_ext <<_ACEOF 2404/* end confdefs.h. */ 2405 2406int 2407main () 2408{ 2409 2410 ; 2411 return 0; 2412} 2413_ACEOF 2414rm -f conftest.$ac_objext 2415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2416 (eval $ac_compile) 2>conftest.er1 2417 ac_status=$? 2418 grep -v '^ *+' conftest.er1 >conftest.err 2419 rm -f conftest.er1 2420 cat conftest.err >&5 2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2422 (exit $ac_status); } && 2423 { ac_try='test -z "$ac_c_werror_flag" 2424 || test ! -s conftest.err' 2425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2426 (eval $ac_try) 2>&5 2427 ac_status=$? 2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2429 (exit $ac_status); }; } && 2430 { ac_try='test -s conftest.$ac_objext' 2431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2432 (eval $ac_try) 2>&5 2433 ac_status=$? 2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2435 (exit $ac_status); }; }; then 2436 ac_cv_prog_cc_g=yes 2437else 2438 echo "$as_me: failed program was:" >&5 2439sed 's/^/| /' conftest.$ac_ext >&5 2440 2441ac_cv_prog_cc_g=no 2442fi 2443rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2444fi 2445echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2446echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2447if test "$ac_test_CFLAGS" = set; then 2448 CFLAGS=$ac_save_CFLAGS 2449elif test $ac_cv_prog_cc_g = yes; then 2450 if test "$GCC" = yes; then 2451 CFLAGS="-g -O2" 2452 else 2453 CFLAGS="-g" 2454 fi 2455else 2456 if test "$GCC" = yes; then 2457 CFLAGS="-O2" 2458 else 2459 CFLAGS= 2460 fi 2461fi 2462echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2463echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2464if test "${ac_cv_prog_cc_stdc+set}" = set; then 2465 echo $ECHO_N "(cached) $ECHO_C" >&6 2466else 2467 ac_cv_prog_cc_stdc=no 2468ac_save_CC=$CC 2469cat >conftest.$ac_ext <<_ACEOF 2470/* confdefs.h. */ 2471_ACEOF 2472cat confdefs.h >>conftest.$ac_ext 2473cat >>conftest.$ac_ext <<_ACEOF 2474/* end confdefs.h. */ 2475#include <stdarg.h> 2476#include <stdio.h> 2477#include <sys/types.h> 2478#include <sys/stat.h> 2479/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2480struct buf { int x; }; 2481FILE * (*rcsopen) (struct buf *, struct stat *, int); 2482static char *e (p, i) 2483 char **p; 2484 int i; 2485{ 2486 return p[i]; 2487} 2488static char *f (char * (*g) (char **, int), char **p, ...) 2489{ 2490 char *s; 2491 va_list v; 2492 va_start (v,p); 2493 s = g (p, va_arg (v,int)); 2494 va_end (v); 2495 return s; 2496} 2497 2498/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2499 function prototypes and stuff, but not '\xHH' hex character constants. 2500 These don't provoke an error unfortunately, instead are silently treated 2501 as 'x'. The following induces an error, until -std1 is added to get 2502 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2503 array size at least. It's necessary to write '\x00'==0 to get something 2504 that's true only with -std1. */ 2505int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2506 2507int test (int i, double x); 2508struct s1 {int (*f) (int a);}; 2509struct s2 {int (*f) (double a);}; 2510int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2511int argc; 2512char **argv; 2513int 2514main () 2515{ 2516return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2517 ; 2518 return 0; 2519} 2520_ACEOF 2521# Don't try gcc -ansi; that turns off useful extensions and 2522# breaks some systems' header files. 2523# AIX -qlanglvl=ansi 2524# Ultrix and OSF/1 -std1 2525# HP-UX 10.20 and later -Ae 2526# HP-UX older versions -Aa -D_HPUX_SOURCE 2527# SVR4 -Xc -D__EXTENSIONS__ 2528for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2529do 2530 CC="$ac_save_CC $ac_arg" 2531 rm -f conftest.$ac_objext 2532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2533 (eval $ac_compile) 2>conftest.er1 2534 ac_status=$? 2535 grep -v '^ *+' conftest.er1 >conftest.err 2536 rm -f conftest.er1 2537 cat conftest.err >&5 2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2539 (exit $ac_status); } && 2540 { ac_try='test -z "$ac_c_werror_flag" 2541 || test ! -s conftest.err' 2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2543 (eval $ac_try) 2>&5 2544 ac_status=$? 2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2546 (exit $ac_status); }; } && 2547 { ac_try='test -s conftest.$ac_objext' 2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2549 (eval $ac_try) 2>&5 2550 ac_status=$? 2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2552 (exit $ac_status); }; }; then 2553 ac_cv_prog_cc_stdc=$ac_arg 2554break 2555else 2556 echo "$as_me: failed program was:" >&5 2557sed 's/^/| /' conftest.$ac_ext >&5 2558 2559fi 2560rm -f conftest.err conftest.$ac_objext 2561done 2562rm -f conftest.$ac_ext conftest.$ac_objext 2563CC=$ac_save_CC 2564 2565fi 2566 2567case "x$ac_cv_prog_cc_stdc" in 2568 x|xno) 2569 echo "$as_me:$LINENO: result: none needed" >&5 2570echo "${ECHO_T}none needed" >&6 ;; 2571 *) 2572 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2573echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2574 CC="$CC $ac_cv_prog_cc_stdc" ;; 2575esac 2576 2577# Some people use a C++ compiler to compile C. Since we use `exit', 2578# in C++ we need to declare it. In case someone uses the same compiler 2579# for both compiling C and C++ we need to have the C++ compiler decide 2580# the declaration of exit, since it's the most demanding environment. 2581cat >conftest.$ac_ext <<_ACEOF 2582#ifndef __cplusplus 2583 choke me 2584#endif 2585_ACEOF 2586rm -f conftest.$ac_objext 2587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2588 (eval $ac_compile) 2>conftest.er1 2589 ac_status=$? 2590 grep -v '^ *+' conftest.er1 >conftest.err 2591 rm -f conftest.er1 2592 cat conftest.err >&5 2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2594 (exit $ac_status); } && 2595 { ac_try='test -z "$ac_c_werror_flag" 2596 || test ! -s conftest.err' 2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2598 (eval $ac_try) 2>&5 2599 ac_status=$? 2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2601 (exit $ac_status); }; } && 2602 { ac_try='test -s conftest.$ac_objext' 2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2604 (eval $ac_try) 2>&5 2605 ac_status=$? 2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2607 (exit $ac_status); }; }; then 2608 for ac_declaration in \ 2609 '' \ 2610 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2611 'extern "C" void std::exit (int); using std::exit;' \ 2612 'extern "C" void exit (int) throw ();' \ 2613 'extern "C" void exit (int);' \ 2614 'void exit (int);' 2615do 2616 cat >conftest.$ac_ext <<_ACEOF 2617/* confdefs.h. */ 2618_ACEOF 2619cat confdefs.h >>conftest.$ac_ext 2620cat >>conftest.$ac_ext <<_ACEOF 2621/* end confdefs.h. */ 2622$ac_declaration 2623#include <stdlib.h> 2624int 2625main () 2626{ 2627exit (42); 2628 ; 2629 return 0; 2630} 2631_ACEOF 2632rm -f conftest.$ac_objext 2633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2634 (eval $ac_compile) 2>conftest.er1 2635 ac_status=$? 2636 grep -v '^ *+' conftest.er1 >conftest.err 2637 rm -f conftest.er1 2638 cat conftest.err >&5 2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2640 (exit $ac_status); } && 2641 { ac_try='test -z "$ac_c_werror_flag" 2642 || test ! -s conftest.err' 2643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2644 (eval $ac_try) 2>&5 2645 ac_status=$? 2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2647 (exit $ac_status); }; } && 2648 { ac_try='test -s conftest.$ac_objext' 2649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2650 (eval $ac_try) 2>&5 2651 ac_status=$? 2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2653 (exit $ac_status); }; }; then 2654 : 2655else 2656 echo "$as_me: failed program was:" >&5 2657sed 's/^/| /' conftest.$ac_ext >&5 2658 2659continue 2660fi 2661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2662 cat >conftest.$ac_ext <<_ACEOF 2663/* confdefs.h. */ 2664_ACEOF 2665cat confdefs.h >>conftest.$ac_ext 2666cat >>conftest.$ac_ext <<_ACEOF 2667/* end confdefs.h. */ 2668$ac_declaration 2669int 2670main () 2671{ 2672exit (42); 2673 ; 2674 return 0; 2675} 2676_ACEOF 2677rm -f conftest.$ac_objext 2678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2679 (eval $ac_compile) 2>conftest.er1 2680 ac_status=$? 2681 grep -v '^ *+' conftest.er1 >conftest.err 2682 rm -f conftest.er1 2683 cat conftest.err >&5 2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2685 (exit $ac_status); } && 2686 { ac_try='test -z "$ac_c_werror_flag" 2687 || test ! -s conftest.err' 2688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2689 (eval $ac_try) 2>&5 2690 ac_status=$? 2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2692 (exit $ac_status); }; } && 2693 { ac_try='test -s conftest.$ac_objext' 2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2695 (eval $ac_try) 2>&5 2696 ac_status=$? 2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2698 (exit $ac_status); }; }; then 2699 break 2700else 2701 echo "$as_me: failed program was:" >&5 2702sed 's/^/| /' conftest.$ac_ext >&5 2703 2704fi 2705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2706done 2707rm -f conftest* 2708if test -n "$ac_declaration"; then 2709 echo '#ifdef __cplusplus' >>confdefs.h 2710 echo $ac_declaration >>confdefs.h 2711 echo '#endif' >>confdefs.h 2712fi 2713 2714else 2715 echo "$as_me: failed program was:" >&5 2716sed 's/^/| /' conftest.$ac_ext >&5 2717 2718fi 2719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2720ac_ext=c 2721ac_cpp='$CPP $CPPFLAGS' 2722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2724ac_compiler_gnu=$ac_cv_c_compiler_gnu 2725DEPDIR="${am__leading_dot}deps" 2726 2727 ac_config_commands="$ac_config_commands depfiles" 2728 2729 2730am_make=${MAKE-make} 2731cat > confinc << 'END' 2732am__doit: 2733 @echo done 2734.PHONY: am__doit 2735END 2736# If we don't find an include directive, just comment out the code. 2737echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2738echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2739am__include="#" 2740am__quote= 2741_am_result=none 2742# First try GNU make style include. 2743echo "include confinc" > confmf 2744# We grep out `Entering directory' and `Leaving directory' 2745# messages which can occur if `w' ends up in MAKEFLAGS. 2746# In particular we don't look at `^make:' because GNU make might 2747# be invoked under some other name (usually "gmake"), in which 2748# case it prints its new name instead of `make'. 2749if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 2750 am__include=include 2751 am__quote= 2752 _am_result=GNU 2753fi 2754# Now try BSD make style include. 2755if test "$am__include" = "#"; then 2756 echo '.include "confinc"' > confmf 2757 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2758 am__include=.include 2759 am__quote="\"" 2760 _am_result=BSD 2761 fi 2762fi 2763 2764 2765echo "$as_me:$LINENO: result: $_am_result" >&5 2766echo "${ECHO_T}$_am_result" >&6 2767rm -f confinc confmf 2768 2769# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2770if test "${enable_dependency_tracking+set}" = set; then 2771 enableval="$enable_dependency_tracking" 2772 2773fi; 2774if test "x$enable_dependency_tracking" != xno; then 2775 am_depcomp="$ac_aux_dir/depcomp" 2776 AMDEPBACKSLASH='\' 2777fi 2778 2779 2780if test "x$enable_dependency_tracking" != xno; then 2781 AMDEP_TRUE= 2782 AMDEP_FALSE='#' 2783else 2784 AMDEP_TRUE='#' 2785 AMDEP_FALSE= 2786fi 2787 2788 2789 2790 2791depcc="$CC" am_compiler_list= 2792 2793echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2794echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2795if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2796 echo $ECHO_N "(cached) $ECHO_C" >&6 2797else 2798 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2799 # We make a subdir and do the tests there. Otherwise we can end up 2800 # making bogus files that we don't know about and never remove. For 2801 # instance it was reported that on HP-UX the gcc test will end up 2802 # making a dummy file named `D' -- because `-MD' means `put the output 2803 # in D'. 2804 mkdir conftest.dir 2805 # Copy depcomp to subdir because otherwise we won't find it if we're 2806 # using a relative directory. 2807 cp "$am_depcomp" conftest.dir 2808 cd conftest.dir 2809 # We will build objects and dependencies in a subdirectory because 2810 # it helps to detect inapplicable dependency modes. For instance 2811 # both Tru64's cc and ICC support -MD to output dependencies as a 2812 # side effect of compilation, but ICC will put the dependencies in 2813 # the current directory while Tru64 will put them in the object 2814 # directory. 2815 mkdir sub 2816 2817 am_cv_CC_dependencies_compiler_type=none 2818 if test "$am_compiler_list" = ""; then 2819 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2820 fi 2821 for depmode in $am_compiler_list; do 2822 # Setup a source with many dependencies, because some compilers 2823 # like to wrap large dependency lists on column 80 (with \), and 2824 # we should not choose a depcomp mode which is confused by this. 2825 # 2826 # We need to recreate these files for each test, as the compiler may 2827 # overwrite some of them when testing with obscure command lines. 2828 # This happens at least with the AIX C compiler. 2829 : > sub/conftest.c 2830 for i in 1 2 3 4 5 6; do 2831 echo '#include "conftst'$i'.h"' >> sub/conftest.c 2832 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 2833 # Solaris 8's {/usr,}/bin/sh. 2834 touch sub/conftst$i.h 2835 done 2836 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 2837 2838 case $depmode in 2839 nosideeffect) 2840 # after this tag, mechanisms are not by side-effect, so they'll 2841 # only be used when explicitly requested 2842 if test "x$enable_dependency_tracking" = xyes; then 2843 continue 2844 else 2845 break 2846 fi 2847 ;; 2848 none) break ;; 2849 esac 2850 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2851 # mode. It turns out that the SunPro C++ compiler does not properly 2852 # handle `-M -o', and we need to detect this. 2853 if depmode=$depmode \ 2854 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 2855 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 2856 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 2857 >/dev/null 2>conftest.err && 2858 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 2859 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 2860 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2861 # icc doesn't choke on unknown options, it will just issue warnings 2862 # or remarks (even with -Werror). So we grep stderr for any message 2863 # that says an option was ignored or not supported. 2864 # When given -MP, icc 7.0 and 7.1 complain thusly: 2865 # icc: Command line warning: ignoring option '-M'; no argument required 2866 # The diagnosis changed in icc 8.0: 2867 # icc: Command line remark: option '-MP' not supported 2868 if (grep 'ignoring option' conftest.err || 2869 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 2870 am_cv_CC_dependencies_compiler_type=$depmode 2871 break 2872 fi 2873 fi 2874 done 2875 2876 cd .. 2877 rm -rf conftest.dir 2878else 2879 am_cv_CC_dependencies_compiler_type=none 2880fi 2881 2882fi 2883echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 2884echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 2885CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 2886 2887 2888 2889if 2890 test "x$enable_dependency_tracking" != xno \ 2891 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 2892 am__fastdepCC_TRUE= 2893 am__fastdepCC_FALSE='#' 2894else 2895 am__fastdepCC_TRUE='#' 2896 am__fastdepCC_FALSE= 2897fi 2898 2899 2900echo "$as_me:$LINENO: checking whether ln -s works" >&5 2901echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 2902LN_S=$as_ln_s 2903if test "$LN_S" = "ln -s"; then 2904 echo "$as_me:$LINENO: result: yes" >&5 2905echo "${ECHO_T}yes" >&6 2906else 2907 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 2908echo "${ECHO_T}no, using $LN_S" >&6 2909fi 2910 2911# Find a good install program. We prefer a C program (faster), 2912# so one script is as good as another. But avoid the broken or 2913# incompatible versions: 2914# SysV /etc/install, /usr/sbin/install 2915# SunOS /usr/etc/install 2916# IRIX /sbin/install 2917# AIX /bin/install 2918# AmigaOS /C/install, which installs bootblocks on floppy discs 2919# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2920# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2921# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2922# OS/2's system install, which has a completely different semantic 2923# ./install, which can be erroneously created by make from ./install.sh. 2924echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2925echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2926if test -z "$INSTALL"; then 2927if test "${ac_cv_path_install+set}" = set; then 2928 echo $ECHO_N "(cached) $ECHO_C" >&6 2929else 2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2931for as_dir in $PATH 2932do 2933 IFS=$as_save_IFS 2934 test -z "$as_dir" && as_dir=. 2935 # Account for people who put trailing slashes in PATH elements. 2936case $as_dir/ in 2937 ./ | .// | /cC/* | \ 2938 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2939 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 2940 /usr/ucb/* ) ;; 2941 *) 2942 # OSF1 and SCO ODT 3.0 have their own names for install. 2943 # Don't use installbsd from OSF since it installs stuff as root 2944 # by default. 2945 for ac_prog in ginstall scoinst install; do 2946 for ac_exec_ext in '' $ac_executable_extensions; do 2947 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2948 if test $ac_prog = install && 2949 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2950 # AIX install. It has an incompatible calling convention. 2951 : 2952 elif test $ac_prog = install && 2953 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2954 # program-specific install script used by HP pwplus--don't use. 2955 : 2956 else 2957 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2958 break 3 2959 fi 2960 fi 2961 done 2962 done 2963 ;; 2964esac 2965done 2966 2967 2968fi 2969 if test "${ac_cv_path_install+set}" = set; then 2970 INSTALL=$ac_cv_path_install 2971 else 2972 # As a last resort, use the slow shell script. We don't cache a 2973 # path for INSTALL within a source directory, because that will 2974 # break other packages using the cache if that directory is 2975 # removed, or if the path is relative. 2976 INSTALL=$ac_install_sh 2977 fi 2978fi 2979echo "$as_me:$LINENO: result: $INSTALL" >&5 2980echo "${ECHO_T}$INSTALL" >&6 2981 2982# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2983# It thinks the first close brace ends the variable substitution. 2984test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2985 2986test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2987 2988test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2989 2990for ac_prog in m4 2991do 2992 # Extract the first word of "$ac_prog", so it can be a program name with args. 2993set dummy $ac_prog; ac_word=$2 2994echo "$as_me:$LINENO: checking for $ac_word" >&5 2995echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2996if test "${ac_cv_path_M4+set}" = set; then 2997 echo $ECHO_N "(cached) $ECHO_C" >&6 2998else 2999 case $M4 in 3000 [\\/]* | ?:[\\/]*) 3001 ac_cv_path_M4="$M4" # Let the user override the test with a path. 3002 ;; 3003 *) 3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3005for as_dir in $PATH 3006do 3007 IFS=$as_save_IFS 3008 test -z "$as_dir" && as_dir=. 3009 for ac_exec_ext in '' $ac_executable_extensions; do 3010 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3011 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext" 3012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3013 break 2 3014 fi 3015done 3016done 3017 3018 ;; 3019esac 3020fi 3021M4=$ac_cv_path_M4 3022 3023if test -n "$M4"; then 3024 echo "$as_me:$LINENO: result: $M4" >&5 3025echo "${ECHO_T}$M4" >&6 3026else 3027 echo "$as_me:$LINENO: result: no" >&5 3028echo "${ECHO_T}no" >&6 3029fi 3030 3031 test -n "$M4" && break 3032done 3033test -n "$M4" || M4="$missing_dir/missing m4" 3034 3035 3036if test "$CC" = gcc 3037then 3038 CFLAGS="$CFLAGS -Wall -Wno-implicit" 3039fi 3040 3041 3042ac_ext=c 3043ac_cpp='$CPP $CPPFLAGS' 3044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3046ac_compiler_gnu=$ac_cv_c_compiler_gnu 3047echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3048echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3049# On Suns, sometimes $CPP names a directory. 3050if test -n "$CPP" && test -d "$CPP"; then 3051 CPP= 3052fi 3053if test -z "$CPP"; then 3054 if test "${ac_cv_prog_CPP+set}" = set; then 3055 echo $ECHO_N "(cached) $ECHO_C" >&6 3056else 3057 # Double quotes because CPP needs to be expanded 3058 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3059 do 3060 ac_preproc_ok=false 3061for ac_c_preproc_warn_flag in '' yes 3062do 3063 # Use a header file that comes with gcc, so configuring glibc 3064 # with a fresh cross-compiler works. 3065 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3066 # <limits.h> exists even on freestanding compilers. 3067 # On the NeXT, cc -E runs the code through the compiler's parser, 3068 # not just through cpp. "Syntax error" is here to catch this case. 3069 cat >conftest.$ac_ext <<_ACEOF 3070/* confdefs.h. */ 3071_ACEOF 3072cat confdefs.h >>conftest.$ac_ext 3073cat >>conftest.$ac_ext <<_ACEOF 3074/* end confdefs.h. */ 3075#ifdef __STDC__ 3076# include <limits.h> 3077#else 3078# include <assert.h> 3079#endif 3080 Syntax error 3081_ACEOF 3082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3084 ac_status=$? 3085 grep -v '^ *+' conftest.er1 >conftest.err 3086 rm -f conftest.er1 3087 cat conftest.err >&5 3088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3089 (exit $ac_status); } >/dev/null; then 3090 if test -s conftest.err; then 3091 ac_cpp_err=$ac_c_preproc_warn_flag 3092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3093 else 3094 ac_cpp_err= 3095 fi 3096else 3097 ac_cpp_err=yes 3098fi 3099if test -z "$ac_cpp_err"; then 3100 : 3101else 3102 echo "$as_me: failed program was:" >&5 3103sed 's/^/| /' conftest.$ac_ext >&5 3104 3105 # Broken: fails on valid input. 3106continue 3107fi 3108rm -f conftest.err conftest.$ac_ext 3109 3110 # OK, works on sane cases. Now check whether non-existent headers 3111 # can be detected and how. 3112 cat >conftest.$ac_ext <<_ACEOF 3113/* confdefs.h. */ 3114_ACEOF 3115cat confdefs.h >>conftest.$ac_ext 3116cat >>conftest.$ac_ext <<_ACEOF 3117/* end confdefs.h. */ 3118#include <ac_nonexistent.h> 3119_ACEOF 3120if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3122 ac_status=$? 3123 grep -v '^ *+' conftest.er1 >conftest.err 3124 rm -f conftest.er1 3125 cat conftest.err >&5 3126 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3127 (exit $ac_status); } >/dev/null; then 3128 if test -s conftest.err; then 3129 ac_cpp_err=$ac_c_preproc_warn_flag 3130 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3131 else 3132 ac_cpp_err= 3133 fi 3134else 3135 ac_cpp_err=yes 3136fi 3137if test -z "$ac_cpp_err"; then 3138 # Broken: success on invalid input. 3139continue 3140else 3141 echo "$as_me: failed program was:" >&5 3142sed 's/^/| /' conftest.$ac_ext >&5 3143 3144 # Passes both tests. 3145ac_preproc_ok=: 3146break 3147fi 3148rm -f conftest.err conftest.$ac_ext 3149 3150done 3151# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3152rm -f conftest.err conftest.$ac_ext 3153if $ac_preproc_ok; then 3154 break 3155fi 3156 3157 done 3158 ac_cv_prog_CPP=$CPP 3159 3160fi 3161 CPP=$ac_cv_prog_CPP 3162else 3163 ac_cv_prog_CPP=$CPP 3164fi 3165echo "$as_me:$LINENO: result: $CPP" >&5 3166echo "${ECHO_T}$CPP" >&6 3167ac_preproc_ok=false 3168for ac_c_preproc_warn_flag in '' yes 3169do 3170 # Use a header file that comes with gcc, so configuring glibc 3171 # with a fresh cross-compiler works. 3172 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3173 # <limits.h> exists even on freestanding compilers. 3174 # On the NeXT, cc -E runs the code through the compiler's parser, 3175 # not just through cpp. "Syntax error" is here to catch this case. 3176 cat >conftest.$ac_ext <<_ACEOF 3177/* confdefs.h. */ 3178_ACEOF 3179cat confdefs.h >>conftest.$ac_ext 3180cat >>conftest.$ac_ext <<_ACEOF 3181/* end confdefs.h. */ 3182#ifdef __STDC__ 3183# include <limits.h> 3184#else 3185# include <assert.h> 3186#endif 3187 Syntax error 3188_ACEOF 3189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3191 ac_status=$? 3192 grep -v '^ *+' conftest.er1 >conftest.err 3193 rm -f conftest.er1 3194 cat conftest.err >&5 3195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3196 (exit $ac_status); } >/dev/null; then 3197 if test -s conftest.err; then 3198 ac_cpp_err=$ac_c_preproc_warn_flag 3199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3200 else 3201 ac_cpp_err= 3202 fi 3203else 3204 ac_cpp_err=yes 3205fi 3206if test -z "$ac_cpp_err"; then 3207 : 3208else 3209 echo "$as_me: failed program was:" >&5 3210sed 's/^/| /' conftest.$ac_ext >&5 3211 3212 # Broken: fails on valid input. 3213continue 3214fi 3215rm -f conftest.err conftest.$ac_ext 3216 3217 # OK, works on sane cases. Now check whether non-existent headers 3218 # can be detected and how. 3219 cat >conftest.$ac_ext <<_ACEOF 3220/* confdefs.h. */ 3221_ACEOF 3222cat confdefs.h >>conftest.$ac_ext 3223cat >>conftest.$ac_ext <<_ACEOF 3224/* end confdefs.h. */ 3225#include <ac_nonexistent.h> 3226_ACEOF 3227if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3228 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3229 ac_status=$? 3230 grep -v '^ *+' conftest.er1 >conftest.err 3231 rm -f conftest.er1 3232 cat conftest.err >&5 3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3234 (exit $ac_status); } >/dev/null; then 3235 if test -s conftest.err; then 3236 ac_cpp_err=$ac_c_preproc_warn_flag 3237 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3238 else 3239 ac_cpp_err= 3240 fi 3241else 3242 ac_cpp_err=yes 3243fi 3244if test -z "$ac_cpp_err"; then 3245 # Broken: success on invalid input. 3246continue 3247else 3248 echo "$as_me: failed program was:" >&5 3249sed 's/^/| /' conftest.$ac_ext >&5 3250 3251 # Passes both tests. 3252ac_preproc_ok=: 3253break 3254fi 3255rm -f conftest.err conftest.$ac_ext 3256 3257done 3258# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3259rm -f conftest.err conftest.$ac_ext 3260if $ac_preproc_ok; then 3261 : 3262else 3263 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3264See \`config.log' for more details." >&5 3265echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3266See \`config.log' for more details." >&2;} 3267 { (exit 1); exit 1; }; } 3268fi 3269 3270ac_ext=c 3271ac_cpp='$CPP $CPPFLAGS' 3272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3274ac_compiler_gnu=$ac_cv_c_compiler_gnu 3275 3276 3277echo "$as_me:$LINENO: checking for X" >&5 3278echo $ECHO_N "checking for X... $ECHO_C" >&6 3279 3280 3281# Check whether --with-x or --without-x was given. 3282if test "${with_x+set}" = set; then 3283 withval="$with_x" 3284 3285fi; 3286# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 3287if test "x$with_x" = xno; then 3288 # The user explicitly disabled X. 3289 have_x=disabled 3290else 3291 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 3292 # Both variables are already set. 3293 have_x=yes 3294 else 3295 if test "${ac_cv_have_x+set}" = set; then 3296 echo $ECHO_N "(cached) $ECHO_C" >&6 3297else 3298 # One or both of the vars are not set, and there is no cached value. 3299ac_x_includes=no ac_x_libraries=no 3300rm -fr conftest.dir 3301if mkdir conftest.dir; then 3302 cd conftest.dir 3303 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 3304 cat >Imakefile <<'_ACEOF' 3305acfindx: 3306 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 3307_ACEOF 3308 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 3309 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3310 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 3311 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 3312 for ac_extension in a so sl; do 3313 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 3314 test -f $ac_im_libdir/libX11.$ac_extension; then 3315 ac_im_usrlibdir=$ac_im_libdir; break 3316 fi 3317 done 3318 # Screen out bogus values from the imake configuration. They are 3319 # bogus both because they are the default anyway, and because 3320 # using them would break gcc on systems where it needs fixed includes. 3321 case $ac_im_incroot in 3322 /usr/include) ;; 3323 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 3324 esac 3325 case $ac_im_usrlibdir in 3326 /usr/lib | /lib) ;; 3327 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 3328 esac 3329 fi 3330 cd .. 3331 rm -fr conftest.dir 3332fi 3333 3334# Standard set of common directories for X headers. 3335# Check X11 before X11Rn because it is often a symlink to the current release. 3336ac_x_header_dirs=' 3337/usr/X11/include 3338/usr/X11R6/include 3339/usr/X11R5/include 3340/usr/X11R4/include 3341 3342/usr/include/X11 3343/usr/include/X11R6 3344/usr/include/X11R5 3345/usr/include/X11R4 3346 3347/usr/local/X11/include 3348/usr/local/X11R6/include 3349/usr/local/X11R5/include 3350/usr/local/X11R4/include 3351 3352/usr/local/include/X11 3353/usr/local/include/X11R6 3354/usr/local/include/X11R5 3355/usr/local/include/X11R4 3356 3357/usr/X386/include 3358/usr/x386/include 3359/usr/XFree86/include/X11 3360 3361/usr/include 3362/usr/local/include 3363/usr/unsupported/include 3364/usr/athena/include 3365/usr/local/x11r5/include 3366/usr/lpp/Xamples/include 3367 3368/usr/openwin/include 3369/usr/openwin/share/include' 3370 3371if test "$ac_x_includes" = no; then 3372 # Guess where to find include files, by looking for Intrinsic.h. 3373 # First, try using that file with no special directory specified. 3374 cat >conftest.$ac_ext <<_ACEOF 3375/* confdefs.h. */ 3376_ACEOF 3377cat confdefs.h >>conftest.$ac_ext 3378cat >>conftest.$ac_ext <<_ACEOF 3379/* end confdefs.h. */ 3380#include <X11/Intrinsic.h> 3381_ACEOF 3382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3384 ac_status=$? 3385 grep -v '^ *+' conftest.er1 >conftest.err 3386 rm -f conftest.er1 3387 cat conftest.err >&5 3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3389 (exit $ac_status); } >/dev/null; then 3390 if test -s conftest.err; then 3391 ac_cpp_err=$ac_c_preproc_warn_flag 3392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3393 else 3394 ac_cpp_err= 3395 fi 3396else 3397 ac_cpp_err=yes 3398fi 3399if test -z "$ac_cpp_err"; then 3400 # We can compile using X headers with no special include directory. 3401ac_x_includes= 3402else 3403 echo "$as_me: failed program was:" >&5 3404sed 's/^/| /' conftest.$ac_ext >&5 3405 3406 for ac_dir in $ac_x_header_dirs; do 3407 if test -r "$ac_dir/X11/Intrinsic.h"; then 3408 ac_x_includes=$ac_dir 3409 break 3410 fi 3411done 3412fi 3413rm -f conftest.err conftest.$ac_ext 3414fi # $ac_x_includes = no 3415 3416if test "$ac_x_libraries" = no; then 3417 # Check for the libraries. 3418 # See if we find them without any special options. 3419 # Don't add to $LIBS permanently. 3420 ac_save_LIBS=$LIBS 3421 LIBS="-lXt $LIBS" 3422 cat >conftest.$ac_ext <<_ACEOF 3423/* confdefs.h. */ 3424_ACEOF 3425cat confdefs.h >>conftest.$ac_ext 3426cat >>conftest.$ac_ext <<_ACEOF 3427/* end confdefs.h. */ 3428#include <X11/Intrinsic.h> 3429int 3430main () 3431{ 3432XtMalloc (0) 3433 ; 3434 return 0; 3435} 3436_ACEOF 3437rm -f conftest.$ac_objext conftest$ac_exeext 3438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3439 (eval $ac_link) 2>conftest.er1 3440 ac_status=$? 3441 grep -v '^ *+' conftest.er1 >conftest.err 3442 rm -f conftest.er1 3443 cat conftest.err >&5 3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3445 (exit $ac_status); } && 3446 { ac_try='test -z "$ac_c_werror_flag" 3447 || test ! -s conftest.err' 3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3449 (eval $ac_try) 2>&5 3450 ac_status=$? 3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3452 (exit $ac_status); }; } && 3453 { ac_try='test -s conftest$ac_exeext' 3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3455 (eval $ac_try) 2>&5 3456 ac_status=$? 3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3458 (exit $ac_status); }; }; then 3459 LIBS=$ac_save_LIBS 3460# We can link X programs with no special library path. 3461ac_x_libraries= 3462else 3463 echo "$as_me: failed program was:" >&5 3464sed 's/^/| /' conftest.$ac_ext >&5 3465 3466LIBS=$ac_save_LIBS 3467for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 3468do 3469 # Don't even attempt the hair of trying to link an X program! 3470 for ac_extension in a so sl; do 3471 if test -r $ac_dir/libXt.$ac_extension; then 3472 ac_x_libraries=$ac_dir 3473 break 2 3474 fi 3475 done 3476done 3477fi 3478rm -f conftest.err conftest.$ac_objext \ 3479 conftest$ac_exeext conftest.$ac_ext 3480fi # $ac_x_libraries = no 3481 3482if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 3483 # Didn't find X anywhere. Cache the known absence of X. 3484 ac_cv_have_x="have_x=no" 3485else 3486 # Record where we found X for the cache. 3487 ac_cv_have_x="have_x=yes \ 3488 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 3489fi 3490fi 3491 3492 fi 3493 eval "$ac_cv_have_x" 3494fi # $with_x != no 3495 3496if test "$have_x" != yes; then 3497 echo "$as_me:$LINENO: result: $have_x" >&5 3498echo "${ECHO_T}$have_x" >&6 3499 no_x=yes 3500else 3501 # If each of the values was on the command line, it overrides each guess. 3502 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 3503 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 3504 # Update the cache value to reflect the command line values. 3505 ac_cv_have_x="have_x=yes \ 3506 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 3507 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 3508echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 3509fi 3510 3511if test "$no_x" = yes; then 3512 # Not all programs may use this symbol, but it does not hurt to define it. 3513 3514cat >>confdefs.h <<\_ACEOF 3515#define X_DISPLAY_MISSING 1 3516_ACEOF 3517 3518 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 3519else 3520 if test -n "$x_includes"; then 3521 X_CFLAGS="$X_CFLAGS -I$x_includes" 3522 fi 3523 3524 # It would also be nice to do this for all -L options, not just this one. 3525 if test -n "$x_libraries"; then 3526 X_LIBS="$X_LIBS -L$x_libraries" 3527 # For Solaris; some versions of Sun CC require a space after -R and 3528 # others require no space. Words are not sufficient . . . . 3529 case `(uname -sr) 2>/dev/null` in 3530 "SunOS 5"*) 3531 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 3532echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 3533 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 3534 cat >conftest.$ac_ext <<_ACEOF 3535/* confdefs.h. */ 3536_ACEOF 3537cat confdefs.h >>conftest.$ac_ext 3538cat >>conftest.$ac_ext <<_ACEOF 3539/* end confdefs.h. */ 3540 3541int 3542main () 3543{ 3544 3545 ; 3546 return 0; 3547} 3548_ACEOF 3549rm -f conftest.$ac_objext conftest$ac_exeext 3550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3551 (eval $ac_link) 2>conftest.er1 3552 ac_status=$? 3553 grep -v '^ *+' conftest.er1 >conftest.err 3554 rm -f conftest.er1 3555 cat conftest.err >&5 3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3557 (exit $ac_status); } && 3558 { ac_try='test -z "$ac_c_werror_flag" 3559 || test ! -s conftest.err' 3560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3561 (eval $ac_try) 2>&5 3562 ac_status=$? 3563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3564 (exit $ac_status); }; } && 3565 { ac_try='test -s conftest$ac_exeext' 3566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3567 (eval $ac_try) 2>&5 3568 ac_status=$? 3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3570 (exit $ac_status); }; }; then 3571 ac_R_nospace=yes 3572else 3573 echo "$as_me: failed program was:" >&5 3574sed 's/^/| /' conftest.$ac_ext >&5 3575 3576ac_R_nospace=no 3577fi 3578rm -f conftest.err conftest.$ac_objext \ 3579 conftest$ac_exeext conftest.$ac_ext 3580 if test $ac_R_nospace = yes; then 3581 echo "$as_me:$LINENO: result: no" >&5 3582echo "${ECHO_T}no" >&6 3583 X_LIBS="$X_LIBS -R$x_libraries" 3584 else 3585 LIBS="$ac_xsave_LIBS -R $x_libraries" 3586 cat >conftest.$ac_ext <<_ACEOF 3587/* confdefs.h. */ 3588_ACEOF 3589cat confdefs.h >>conftest.$ac_ext 3590cat >>conftest.$ac_ext <<_ACEOF 3591/* end confdefs.h. */ 3592 3593int 3594main () 3595{ 3596 3597 ; 3598 return 0; 3599} 3600_ACEOF 3601rm -f conftest.$ac_objext conftest$ac_exeext 3602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3603 (eval $ac_link) 2>conftest.er1 3604 ac_status=$? 3605 grep -v '^ *+' conftest.er1 >conftest.err 3606 rm -f conftest.er1 3607 cat conftest.err >&5 3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3609 (exit $ac_status); } && 3610 { ac_try='test -z "$ac_c_werror_flag" 3611 || test ! -s conftest.err' 3612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3613 (eval $ac_try) 2>&5 3614 ac_status=$? 3615 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3616 (exit $ac_status); }; } && 3617 { ac_try='test -s conftest$ac_exeext' 3618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3619 (eval $ac_try) 2>&5 3620 ac_status=$? 3621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3622 (exit $ac_status); }; }; then 3623 ac_R_space=yes 3624else 3625 echo "$as_me: failed program was:" >&5 3626sed 's/^/| /' conftest.$ac_ext >&5 3627 3628ac_R_space=no 3629fi 3630rm -f conftest.err conftest.$ac_objext \ 3631 conftest$ac_exeext conftest.$ac_ext 3632 if test $ac_R_space = yes; then 3633 echo "$as_me:$LINENO: result: yes" >&5 3634echo "${ECHO_T}yes" >&6 3635 X_LIBS="$X_LIBS -R $x_libraries" 3636 else 3637 echo "$as_me:$LINENO: result: neither works" >&5 3638echo "${ECHO_T}neither works" >&6 3639 fi 3640 fi 3641 LIBS=$ac_xsave_LIBS 3642 esac 3643 fi 3644 3645 # Check for system-dependent libraries X programs must link with. 3646 # Do this before checking for the system-independent R6 libraries 3647 # (-lICE), since we may need -lsocket or whatever for X linking. 3648 3649 if test "$ISC" = yes; then 3650 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 3651 else 3652 # Martyn Johnson says this is needed for Ultrix, if the X 3653 # libraries were built with DECnet support. And Karl Berry says 3654 # the Alpha needs dnet_stub (dnet does not exist). 3655 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 3656 cat >conftest.$ac_ext <<_ACEOF 3657/* confdefs.h. */ 3658_ACEOF 3659cat confdefs.h >>conftest.$ac_ext 3660cat >>conftest.$ac_ext <<_ACEOF 3661/* end confdefs.h. */ 3662 3663/* Override any gcc2 internal prototype to avoid an error. */ 3664#ifdef __cplusplus 3665extern "C" 3666#endif 3667/* We use char because int might match the return type of a gcc2 3668 builtin and then its argument prototype would still apply. */ 3669char XOpenDisplay (); 3670int 3671main () 3672{ 3673XOpenDisplay (); 3674 ; 3675 return 0; 3676} 3677_ACEOF 3678rm -f conftest.$ac_objext conftest$ac_exeext 3679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3680 (eval $ac_link) 2>conftest.er1 3681 ac_status=$? 3682 grep -v '^ *+' conftest.er1 >conftest.err 3683 rm -f conftest.er1 3684 cat conftest.err >&5 3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3686 (exit $ac_status); } && 3687 { ac_try='test -z "$ac_c_werror_flag" 3688 || 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 : 3701else 3702 echo "$as_me: failed program was:" >&5 3703sed 's/^/| /' conftest.$ac_ext >&5 3704 3705echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 3706echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 3707if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 3708 echo $ECHO_N "(cached) $ECHO_C" >&6 3709else 3710 ac_check_lib_save_LIBS=$LIBS 3711LIBS="-ldnet $LIBS" 3712cat >conftest.$ac_ext <<_ACEOF 3713/* confdefs.h. */ 3714_ACEOF 3715cat confdefs.h >>conftest.$ac_ext 3716cat >>conftest.$ac_ext <<_ACEOF 3717/* end confdefs.h. */ 3718 3719/* Override any gcc2 internal prototype to avoid an error. */ 3720#ifdef __cplusplus 3721extern "C" 3722#endif 3723/* We use char because int might match the return type of a gcc2 3724 builtin and then its argument prototype would still apply. */ 3725char dnet_ntoa (); 3726int 3727main () 3728{ 3729dnet_ntoa (); 3730 ; 3731 return 0; 3732} 3733_ACEOF 3734rm -f conftest.$ac_objext conftest$ac_exeext 3735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3736 (eval $ac_link) 2>conftest.er1 3737 ac_status=$? 3738 grep -v '^ *+' conftest.er1 >conftest.err 3739 rm -f conftest.er1 3740 cat conftest.err >&5 3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3742 (exit $ac_status); } && 3743 { ac_try='test -z "$ac_c_werror_flag" 3744 || test ! -s conftest.err' 3745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3746 (eval $ac_try) 2>&5 3747 ac_status=$? 3748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3749 (exit $ac_status); }; } && 3750 { ac_try='test -s conftest$ac_exeext' 3751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3752 (eval $ac_try) 2>&5 3753 ac_status=$? 3754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3755 (exit $ac_status); }; }; then 3756 ac_cv_lib_dnet_dnet_ntoa=yes 3757else 3758 echo "$as_me: failed program was:" >&5 3759sed 's/^/| /' conftest.$ac_ext >&5 3760 3761ac_cv_lib_dnet_dnet_ntoa=no 3762fi 3763rm -f conftest.err conftest.$ac_objext \ 3764 conftest$ac_exeext conftest.$ac_ext 3765LIBS=$ac_check_lib_save_LIBS 3766fi 3767echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 3768echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 3769if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 3770 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 3771fi 3772 3773 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 3774 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 3775echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 3776if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 3777 echo $ECHO_N "(cached) $ECHO_C" >&6 3778else 3779 ac_check_lib_save_LIBS=$LIBS 3780LIBS="-ldnet_stub $LIBS" 3781cat >conftest.$ac_ext <<_ACEOF 3782/* confdefs.h. */ 3783_ACEOF 3784cat confdefs.h >>conftest.$ac_ext 3785cat >>conftest.$ac_ext <<_ACEOF 3786/* end confdefs.h. */ 3787 3788/* Override any gcc2 internal prototype to avoid an error. */ 3789#ifdef __cplusplus 3790extern "C" 3791#endif 3792/* We use char because int might match the return type of a gcc2 3793 builtin and then its argument prototype would still apply. */ 3794char dnet_ntoa (); 3795int 3796main () 3797{ 3798dnet_ntoa (); 3799 ; 3800 return 0; 3801} 3802_ACEOF 3803rm -f conftest.$ac_objext conftest$ac_exeext 3804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3805 (eval $ac_link) 2>conftest.er1 3806 ac_status=$? 3807 grep -v '^ *+' conftest.er1 >conftest.err 3808 rm -f conftest.er1 3809 cat conftest.err >&5 3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3811 (exit $ac_status); } && 3812 { ac_try='test -z "$ac_c_werror_flag" 3813 || test ! -s conftest.err' 3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3815 (eval $ac_try) 2>&5 3816 ac_status=$? 3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3818 (exit $ac_status); }; } && 3819 { ac_try='test -s conftest$ac_exeext' 3820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3821 (eval $ac_try) 2>&5 3822 ac_status=$? 3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3824 (exit $ac_status); }; }; then 3825 ac_cv_lib_dnet_stub_dnet_ntoa=yes 3826else 3827 echo "$as_me: failed program was:" >&5 3828sed 's/^/| /' conftest.$ac_ext >&5 3829 3830ac_cv_lib_dnet_stub_dnet_ntoa=no 3831fi 3832rm -f conftest.err conftest.$ac_objext \ 3833 conftest$ac_exeext conftest.$ac_ext 3834LIBS=$ac_check_lib_save_LIBS 3835fi 3836echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 3837echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 3838if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 3839 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 3840fi 3841 3842 fi 3843fi 3844rm -f conftest.err conftest.$ac_objext \ 3845 conftest$ac_exeext conftest.$ac_ext 3846 LIBS="$ac_xsave_LIBS" 3847 3848 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 3849 # to get the SysV transport functions. 3850 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 3851 # needs -lnsl. 3852 # The nsl library prevents programs from opening the X display 3853 # on Irix 5.2, according to T.E. Dickey. 3854 # The functions gethostbyname, getservbyname, and inet_addr are 3855 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 3856 echo "$as_me:$LINENO: checking for gethostbyname" >&5 3857echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 3858if test "${ac_cv_func_gethostbyname+set}" = set; then 3859 echo $ECHO_N "(cached) $ECHO_C" >&6 3860else 3861 cat >conftest.$ac_ext <<_ACEOF 3862/* confdefs.h. */ 3863_ACEOF 3864cat confdefs.h >>conftest.$ac_ext 3865cat >>conftest.$ac_ext <<_ACEOF 3866/* end confdefs.h. */ 3867/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. 3868 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3869#define gethostbyname innocuous_gethostbyname 3870 3871/* System header to define __stub macros and hopefully few prototypes, 3872 which can conflict with char gethostbyname (); below. 3873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3874 <limits.h> exists even on freestanding compilers. */ 3875 3876#ifdef __STDC__ 3877# include <limits.h> 3878#else 3879# include <assert.h> 3880#endif 3881 3882#undef gethostbyname 3883 3884/* Override any gcc2 internal prototype to avoid an error. */ 3885#ifdef __cplusplus 3886extern "C" 3887{ 3888#endif 3889/* We use char because int might match the return type of a gcc2 3890 builtin and then its argument prototype would still apply. */ 3891char gethostbyname (); 3892/* The GNU C library defines this for functions which it implements 3893 to always fail with ENOSYS. Some functions are actually named 3894 something starting with __ and the normal name is an alias. */ 3895#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 3896choke me 3897#else 3898char (*f) () = gethostbyname; 3899#endif 3900#ifdef __cplusplus 3901} 3902#endif 3903 3904int 3905main () 3906{ 3907return f != gethostbyname; 3908 ; 3909 return 0; 3910} 3911_ACEOF 3912rm -f conftest.$ac_objext conftest$ac_exeext 3913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3914 (eval $ac_link) 2>conftest.er1 3915 ac_status=$? 3916 grep -v '^ *+' conftest.er1 >conftest.err 3917 rm -f conftest.er1 3918 cat conftest.err >&5 3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3920 (exit $ac_status); } && 3921 { ac_try='test -z "$ac_c_werror_flag" 3922 || test ! -s conftest.err' 3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3924 (eval $ac_try) 2>&5 3925 ac_status=$? 3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3927 (exit $ac_status); }; } && 3928 { ac_try='test -s conftest$ac_exeext' 3929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3930 (eval $ac_try) 2>&5 3931 ac_status=$? 3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3933 (exit $ac_status); }; }; then 3934 ac_cv_func_gethostbyname=yes 3935else 3936 echo "$as_me: failed program was:" >&5 3937sed 's/^/| /' conftest.$ac_ext >&5 3938 3939ac_cv_func_gethostbyname=no 3940fi 3941rm -f conftest.err conftest.$ac_objext \ 3942 conftest$ac_exeext conftest.$ac_ext 3943fi 3944echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 3945echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 3946 3947 if test $ac_cv_func_gethostbyname = no; then 3948 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 3949echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 3950if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 3951 echo $ECHO_N "(cached) $ECHO_C" >&6 3952else 3953 ac_check_lib_save_LIBS=$LIBS 3954LIBS="-lnsl $LIBS" 3955cat >conftest.$ac_ext <<_ACEOF 3956/* confdefs.h. */ 3957_ACEOF 3958cat confdefs.h >>conftest.$ac_ext 3959cat >>conftest.$ac_ext <<_ACEOF 3960/* end confdefs.h. */ 3961 3962/* Override any gcc2 internal prototype to avoid an error. */ 3963#ifdef __cplusplus 3964extern "C" 3965#endif 3966/* We use char because int might match the return type of a gcc2 3967 builtin and then its argument prototype would still apply. */ 3968char gethostbyname (); 3969int 3970main () 3971{ 3972gethostbyname (); 3973 ; 3974 return 0; 3975} 3976_ACEOF 3977rm -f conftest.$ac_objext conftest$ac_exeext 3978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3979 (eval $ac_link) 2>conftest.er1 3980 ac_status=$? 3981 grep -v '^ *+' conftest.er1 >conftest.err 3982 rm -f conftest.er1 3983 cat conftest.err >&5 3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3985 (exit $ac_status); } && 3986 { ac_try='test -z "$ac_c_werror_flag" 3987 || test ! -s conftest.err' 3988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3989 (eval $ac_try) 2>&5 3990 ac_status=$? 3991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3992 (exit $ac_status); }; } && 3993 { ac_try='test -s conftest$ac_exeext' 3994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3995 (eval $ac_try) 2>&5 3996 ac_status=$? 3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3998 (exit $ac_status); }; }; then 3999 ac_cv_lib_nsl_gethostbyname=yes 4000else 4001 echo "$as_me: failed program was:" >&5 4002sed 's/^/| /' conftest.$ac_ext >&5 4003 4004ac_cv_lib_nsl_gethostbyname=no 4005fi 4006rm -f conftest.err conftest.$ac_objext \ 4007 conftest$ac_exeext conftest.$ac_ext 4008LIBS=$ac_check_lib_save_LIBS 4009fi 4010echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 4011echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 4012if test $ac_cv_lib_nsl_gethostbyname = yes; then 4013 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 4014fi 4015 4016 if test $ac_cv_lib_nsl_gethostbyname = no; then 4017 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 4018echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 4019if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 4020 echo $ECHO_N "(cached) $ECHO_C" >&6 4021else 4022 ac_check_lib_save_LIBS=$LIBS 4023LIBS="-lbsd $LIBS" 4024cat >conftest.$ac_ext <<_ACEOF 4025/* confdefs.h. */ 4026_ACEOF 4027cat confdefs.h >>conftest.$ac_ext 4028cat >>conftest.$ac_ext <<_ACEOF 4029/* end confdefs.h. */ 4030 4031/* Override any gcc2 internal prototype to avoid an error. */ 4032#ifdef __cplusplus 4033extern "C" 4034#endif 4035/* We use char because int might match the return type of a gcc2 4036 builtin and then its argument prototype would still apply. */ 4037char gethostbyname (); 4038int 4039main () 4040{ 4041gethostbyname (); 4042 ; 4043 return 0; 4044} 4045_ACEOF 4046rm -f conftest.$ac_objext conftest$ac_exeext 4047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4048 (eval $ac_link) 2>conftest.er1 4049 ac_status=$? 4050 grep -v '^ *+' conftest.er1 >conftest.err 4051 rm -f conftest.er1 4052 cat conftest.err >&5 4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4054 (exit $ac_status); } && 4055 { ac_try='test -z "$ac_c_werror_flag" 4056 || test ! -s conftest.err' 4057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4058 (eval $ac_try) 2>&5 4059 ac_status=$? 4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4061 (exit $ac_status); }; } && 4062 { ac_try='test -s conftest$ac_exeext' 4063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4064 (eval $ac_try) 2>&5 4065 ac_status=$? 4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4067 (exit $ac_status); }; }; then 4068 ac_cv_lib_bsd_gethostbyname=yes 4069else 4070 echo "$as_me: failed program was:" >&5 4071sed 's/^/| /' conftest.$ac_ext >&5 4072 4073ac_cv_lib_bsd_gethostbyname=no 4074fi 4075rm -f conftest.err conftest.$ac_objext \ 4076 conftest$ac_exeext conftest.$ac_ext 4077LIBS=$ac_check_lib_save_LIBS 4078fi 4079echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 4080echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 4081if test $ac_cv_lib_bsd_gethostbyname = yes; then 4082 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 4083fi 4084 4085 fi 4086 fi 4087 4088 # lieder@skyler.mavd.honeywell.com says without -lsocket, 4089 # socket/setsockopt and other routines are undefined under SCO ODT 4090 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 4091 # on later versions), says Simon Leinen: it contains gethostby* 4092 # variants that don't use the name server (or something). -lsocket 4093 # must be given before -lnsl if both are needed. We assume that 4094 # if connect needs -lnsl, so does gethostbyname. 4095 echo "$as_me:$LINENO: checking for connect" >&5 4096echo $ECHO_N "checking for connect... $ECHO_C" >&6 4097if test "${ac_cv_func_connect+set}" = set; then 4098 echo $ECHO_N "(cached) $ECHO_C" >&6 4099else 4100 cat >conftest.$ac_ext <<_ACEOF 4101/* confdefs.h. */ 4102_ACEOF 4103cat confdefs.h >>conftest.$ac_ext 4104cat >>conftest.$ac_ext <<_ACEOF 4105/* end confdefs.h. */ 4106/* Define connect to an innocuous variant, in case <limits.h> declares connect. 4107 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4108#define connect innocuous_connect 4109 4110/* System header to define __stub macros and hopefully few prototypes, 4111 which can conflict with char connect (); below. 4112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4113 <limits.h> exists even on freestanding compilers. */ 4114 4115#ifdef __STDC__ 4116# include <limits.h> 4117#else 4118# include <assert.h> 4119#endif 4120 4121#undef connect 4122 4123/* Override any gcc2 internal prototype to avoid an error. */ 4124#ifdef __cplusplus 4125extern "C" 4126{ 4127#endif 4128/* We use char because int might match the return type of a gcc2 4129 builtin and then its argument prototype would still apply. */ 4130char connect (); 4131/* The GNU C library defines this for functions which it implements 4132 to always fail with ENOSYS. Some functions are actually named 4133 something starting with __ and the normal name is an alias. */ 4134#if defined (__stub_connect) || defined (__stub___connect) 4135choke me 4136#else 4137char (*f) () = connect; 4138#endif 4139#ifdef __cplusplus 4140} 4141#endif 4142 4143int 4144main () 4145{ 4146return f != connect; 4147 ; 4148 return 0; 4149} 4150_ACEOF 4151rm -f conftest.$ac_objext conftest$ac_exeext 4152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4153 (eval $ac_link) 2>conftest.er1 4154 ac_status=$? 4155 grep -v '^ *+' conftest.er1 >conftest.err 4156 rm -f conftest.er1 4157 cat conftest.err >&5 4158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4159 (exit $ac_status); } && 4160 { ac_try='test -z "$ac_c_werror_flag" 4161 || test ! -s conftest.err' 4162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4163 (eval $ac_try) 2>&5 4164 ac_status=$? 4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4166 (exit $ac_status); }; } && 4167 { ac_try='test -s conftest$ac_exeext' 4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4169 (eval $ac_try) 2>&5 4170 ac_status=$? 4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4172 (exit $ac_status); }; }; then 4173 ac_cv_func_connect=yes 4174else 4175 echo "$as_me: failed program was:" >&5 4176sed 's/^/| /' conftest.$ac_ext >&5 4177 4178ac_cv_func_connect=no 4179fi 4180rm -f conftest.err conftest.$ac_objext \ 4181 conftest$ac_exeext conftest.$ac_ext 4182fi 4183echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 4184echo "${ECHO_T}$ac_cv_func_connect" >&6 4185 4186 if test $ac_cv_func_connect = no; then 4187 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 4188echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 4189if test "${ac_cv_lib_socket_connect+set}" = set; then 4190 echo $ECHO_N "(cached) $ECHO_C" >&6 4191else 4192 ac_check_lib_save_LIBS=$LIBS 4193LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 4194cat >conftest.$ac_ext <<_ACEOF 4195/* confdefs.h. */ 4196_ACEOF 4197cat confdefs.h >>conftest.$ac_ext 4198cat >>conftest.$ac_ext <<_ACEOF 4199/* end confdefs.h. */ 4200 4201/* Override any gcc2 internal prototype to avoid an error. */ 4202#ifdef __cplusplus 4203extern "C" 4204#endif 4205/* We use char because int might match the return type of a gcc2 4206 builtin and then its argument prototype would still apply. */ 4207char connect (); 4208int 4209main () 4210{ 4211connect (); 4212 ; 4213 return 0; 4214} 4215_ACEOF 4216rm -f conftest.$ac_objext conftest$ac_exeext 4217if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4218 (eval $ac_link) 2>conftest.er1 4219 ac_status=$? 4220 grep -v '^ *+' conftest.er1 >conftest.err 4221 rm -f conftest.er1 4222 cat conftest.err >&5 4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4224 (exit $ac_status); } && 4225 { ac_try='test -z "$ac_c_werror_flag" 4226 || test ! -s conftest.err' 4227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4228 (eval $ac_try) 2>&5 4229 ac_status=$? 4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4231 (exit $ac_status); }; } && 4232 { ac_try='test -s conftest$ac_exeext' 4233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4234 (eval $ac_try) 2>&5 4235 ac_status=$? 4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4237 (exit $ac_status); }; }; then 4238 ac_cv_lib_socket_connect=yes 4239else 4240 echo "$as_me: failed program was:" >&5 4241sed 's/^/| /' conftest.$ac_ext >&5 4242 4243ac_cv_lib_socket_connect=no 4244fi 4245rm -f conftest.err conftest.$ac_objext \ 4246 conftest$ac_exeext conftest.$ac_ext 4247LIBS=$ac_check_lib_save_LIBS 4248fi 4249echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 4250echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 4251if test $ac_cv_lib_socket_connect = yes; then 4252 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 4253fi 4254 4255 fi 4256 4257 # Guillermo Gomez says -lposix is necessary on A/UX. 4258 echo "$as_me:$LINENO: checking for remove" >&5 4259echo $ECHO_N "checking for remove... $ECHO_C" >&6 4260if test "${ac_cv_func_remove+set}" = set; then 4261 echo $ECHO_N "(cached) $ECHO_C" >&6 4262else 4263 cat >conftest.$ac_ext <<_ACEOF 4264/* confdefs.h. */ 4265_ACEOF 4266cat confdefs.h >>conftest.$ac_ext 4267cat >>conftest.$ac_ext <<_ACEOF 4268/* end confdefs.h. */ 4269/* Define remove to an innocuous variant, in case <limits.h> declares remove. 4270 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4271#define remove innocuous_remove 4272 4273/* System header to define __stub macros and hopefully few prototypes, 4274 which can conflict with char remove (); below. 4275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4276 <limits.h> exists even on freestanding compilers. */ 4277 4278#ifdef __STDC__ 4279# include <limits.h> 4280#else 4281# include <assert.h> 4282#endif 4283 4284#undef remove 4285 4286/* Override any gcc2 internal prototype to avoid an error. */ 4287#ifdef __cplusplus 4288extern "C" 4289{ 4290#endif 4291/* We use char because int might match the return type of a gcc2 4292 builtin and then its argument prototype would still apply. */ 4293char remove (); 4294/* The GNU C library defines this for functions which it implements 4295 to always fail with ENOSYS. Some functions are actually named 4296 something starting with __ and the normal name is an alias. */ 4297#if defined (__stub_remove) || defined (__stub___remove) 4298choke me 4299#else 4300char (*f) () = remove; 4301#endif 4302#ifdef __cplusplus 4303} 4304#endif 4305 4306int 4307main () 4308{ 4309return f != remove; 4310 ; 4311 return 0; 4312} 4313_ACEOF 4314rm -f conftest.$ac_objext conftest$ac_exeext 4315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4316 (eval $ac_link) 2>conftest.er1 4317 ac_status=$? 4318 grep -v '^ *+' conftest.er1 >conftest.err 4319 rm -f conftest.er1 4320 cat conftest.err >&5 4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4322 (exit $ac_status); } && 4323 { ac_try='test -z "$ac_c_werror_flag" 4324 || test ! -s conftest.err' 4325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4326 (eval $ac_try) 2>&5 4327 ac_status=$? 4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4329 (exit $ac_status); }; } && 4330 { ac_try='test -s conftest$ac_exeext' 4331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4332 (eval $ac_try) 2>&5 4333 ac_status=$? 4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4335 (exit $ac_status); }; }; then 4336 ac_cv_func_remove=yes 4337else 4338 echo "$as_me: failed program was:" >&5 4339sed 's/^/| /' conftest.$ac_ext >&5 4340 4341ac_cv_func_remove=no 4342fi 4343rm -f conftest.err conftest.$ac_objext \ 4344 conftest$ac_exeext conftest.$ac_ext 4345fi 4346echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 4347echo "${ECHO_T}$ac_cv_func_remove" >&6 4348 4349 if test $ac_cv_func_remove = no; then 4350 echo "$as_me:$LINENO: checking for remove in -lposix" >&5 4351echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 4352if test "${ac_cv_lib_posix_remove+set}" = set; then 4353 echo $ECHO_N "(cached) $ECHO_C" >&6 4354else 4355 ac_check_lib_save_LIBS=$LIBS 4356LIBS="-lposix $LIBS" 4357cat >conftest.$ac_ext <<_ACEOF 4358/* confdefs.h. */ 4359_ACEOF 4360cat confdefs.h >>conftest.$ac_ext 4361cat >>conftest.$ac_ext <<_ACEOF 4362/* end confdefs.h. */ 4363 4364/* Override any gcc2 internal prototype to avoid an error. */ 4365#ifdef __cplusplus 4366extern "C" 4367#endif 4368/* We use char because int might match the return type of a gcc2 4369 builtin and then its argument prototype would still apply. */ 4370char remove (); 4371int 4372main () 4373{ 4374remove (); 4375 ; 4376 return 0; 4377} 4378_ACEOF 4379rm -f conftest.$ac_objext conftest$ac_exeext 4380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4381 (eval $ac_link) 2>conftest.er1 4382 ac_status=$? 4383 grep -v '^ *+' conftest.er1 >conftest.err 4384 rm -f conftest.er1 4385 cat conftest.err >&5 4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4387 (exit $ac_status); } && 4388 { ac_try='test -z "$ac_c_werror_flag" 4389 || test ! -s conftest.err' 4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4391 (eval $ac_try) 2>&5 4392 ac_status=$? 4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4394 (exit $ac_status); }; } && 4395 { ac_try='test -s conftest$ac_exeext' 4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4397 (eval $ac_try) 2>&5 4398 ac_status=$? 4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4400 (exit $ac_status); }; }; then 4401 ac_cv_lib_posix_remove=yes 4402else 4403 echo "$as_me: failed program was:" >&5 4404sed 's/^/| /' conftest.$ac_ext >&5 4405 4406ac_cv_lib_posix_remove=no 4407fi 4408rm -f conftest.err conftest.$ac_objext \ 4409 conftest$ac_exeext conftest.$ac_ext 4410LIBS=$ac_check_lib_save_LIBS 4411fi 4412echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 4413echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 4414if test $ac_cv_lib_posix_remove = yes; then 4415 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 4416fi 4417 4418 fi 4419 4420 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 4421 echo "$as_me:$LINENO: checking for shmat" >&5 4422echo $ECHO_N "checking for shmat... $ECHO_C" >&6 4423if test "${ac_cv_func_shmat+set}" = set; then 4424 echo $ECHO_N "(cached) $ECHO_C" >&6 4425else 4426 cat >conftest.$ac_ext <<_ACEOF 4427/* confdefs.h. */ 4428_ACEOF 4429cat confdefs.h >>conftest.$ac_ext 4430cat >>conftest.$ac_ext <<_ACEOF 4431/* end confdefs.h. */ 4432/* Define shmat to an innocuous variant, in case <limits.h> declares shmat. 4433 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 4434#define shmat innocuous_shmat 4435 4436/* System header to define __stub macros and hopefully few prototypes, 4437 which can conflict with char shmat (); below. 4438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4439 <limits.h> exists even on freestanding compilers. */ 4440 4441#ifdef __STDC__ 4442# include <limits.h> 4443#else 4444# include <assert.h> 4445#endif 4446 4447#undef shmat 4448 4449/* Override any gcc2 internal prototype to avoid an error. */ 4450#ifdef __cplusplus 4451extern "C" 4452{ 4453#endif 4454/* We use char because int might match the return type of a gcc2 4455 builtin and then its argument prototype would still apply. */ 4456char shmat (); 4457/* The GNU C library defines this for functions which it implements 4458 to always fail with ENOSYS. Some functions are actually named 4459 something starting with __ and the normal name is an alias. */ 4460#if defined (__stub_shmat) || defined (__stub___shmat) 4461choke me 4462#else 4463char (*f) () = shmat; 4464#endif 4465#ifdef __cplusplus 4466} 4467#endif 4468 4469int 4470main () 4471{ 4472return f != shmat; 4473 ; 4474 return 0; 4475} 4476_ACEOF 4477rm -f conftest.$ac_objext conftest$ac_exeext 4478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4479 (eval $ac_link) 2>conftest.er1 4480 ac_status=$? 4481 grep -v '^ *+' conftest.er1 >conftest.err 4482 rm -f conftest.er1 4483 cat conftest.err >&5 4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4485 (exit $ac_status); } && 4486 { ac_try='test -z "$ac_c_werror_flag" 4487 || test ! -s conftest.err' 4488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4489 (eval $ac_try) 2>&5 4490 ac_status=$? 4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4492 (exit $ac_status); }; } && 4493 { ac_try='test -s conftest$ac_exeext' 4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4495 (eval $ac_try) 2>&5 4496 ac_status=$? 4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4498 (exit $ac_status); }; }; then 4499 ac_cv_func_shmat=yes 4500else 4501 echo "$as_me: failed program was:" >&5 4502sed 's/^/| /' conftest.$ac_ext >&5 4503 4504ac_cv_func_shmat=no 4505fi 4506rm -f conftest.err conftest.$ac_objext \ 4507 conftest$ac_exeext conftest.$ac_ext 4508fi 4509echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 4510echo "${ECHO_T}$ac_cv_func_shmat" >&6 4511 4512 if test $ac_cv_func_shmat = no; then 4513 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 4514echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 4515if test "${ac_cv_lib_ipc_shmat+set}" = set; then 4516 echo $ECHO_N "(cached) $ECHO_C" >&6 4517else 4518 ac_check_lib_save_LIBS=$LIBS 4519LIBS="-lipc $LIBS" 4520cat >conftest.$ac_ext <<_ACEOF 4521/* confdefs.h. */ 4522_ACEOF 4523cat confdefs.h >>conftest.$ac_ext 4524cat >>conftest.$ac_ext <<_ACEOF 4525/* end confdefs.h. */ 4526 4527/* Override any gcc2 internal prototype to avoid an error. */ 4528#ifdef __cplusplus 4529extern "C" 4530#endif 4531/* We use char because int might match the return type of a gcc2 4532 builtin and then its argument prototype would still apply. */ 4533char shmat (); 4534int 4535main () 4536{ 4537shmat (); 4538 ; 4539 return 0; 4540} 4541_ACEOF 4542rm -f conftest.$ac_objext conftest$ac_exeext 4543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4544 (eval $ac_link) 2>conftest.er1 4545 ac_status=$? 4546 grep -v '^ *+' conftest.er1 >conftest.err 4547 rm -f conftest.er1 4548 cat conftest.err >&5 4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4550 (exit $ac_status); } && 4551 { ac_try='test -z "$ac_c_werror_flag" 4552 || test ! -s conftest.err' 4553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4554 (eval $ac_try) 2>&5 4555 ac_status=$? 4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4557 (exit $ac_status); }; } && 4558 { ac_try='test -s conftest$ac_exeext' 4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4560 (eval $ac_try) 2>&5 4561 ac_status=$? 4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4563 (exit $ac_status); }; }; then 4564 ac_cv_lib_ipc_shmat=yes 4565else 4566 echo "$as_me: failed program was:" >&5 4567sed 's/^/| /' conftest.$ac_ext >&5 4568 4569ac_cv_lib_ipc_shmat=no 4570fi 4571rm -f conftest.err conftest.$ac_objext \ 4572 conftest$ac_exeext conftest.$ac_ext 4573LIBS=$ac_check_lib_save_LIBS 4574fi 4575echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 4576echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 4577if test $ac_cv_lib_ipc_shmat = yes; then 4578 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 4579fi 4580 4581 fi 4582 fi 4583 4584 # Check for libraries that X11R6 Xt/Xaw programs need. 4585 ac_save_LDFLAGS=$LDFLAGS 4586 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 4587 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 4588 # check for ICE first), but we must link in the order -lSM -lICE or 4589 # we get undefined symbols. So assume we have SM if we have ICE. 4590 # These have to be linked with before -lX11, unlike the other 4591 # libraries we check for below, so use a different variable. 4592 # John Interrante, Karl Berry 4593 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 4594echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 4595if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 4596 echo $ECHO_N "(cached) $ECHO_C" >&6 4597else 4598 ac_check_lib_save_LIBS=$LIBS 4599LIBS="-lICE $X_EXTRA_LIBS $LIBS" 4600cat >conftest.$ac_ext <<_ACEOF 4601/* confdefs.h. */ 4602_ACEOF 4603cat confdefs.h >>conftest.$ac_ext 4604cat >>conftest.$ac_ext <<_ACEOF 4605/* end confdefs.h. */ 4606 4607/* Override any gcc2 internal prototype to avoid an error. */ 4608#ifdef __cplusplus 4609extern "C" 4610#endif 4611/* We use char because int might match the return type of a gcc2 4612 builtin and then its argument prototype would still apply. */ 4613char IceConnectionNumber (); 4614int 4615main () 4616{ 4617IceConnectionNumber (); 4618 ; 4619 return 0; 4620} 4621_ACEOF 4622rm -f conftest.$ac_objext conftest$ac_exeext 4623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4624 (eval $ac_link) 2>conftest.er1 4625 ac_status=$? 4626 grep -v '^ *+' conftest.er1 >conftest.err 4627 rm -f conftest.er1 4628 cat conftest.err >&5 4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4630 (exit $ac_status); } && 4631 { ac_try='test -z "$ac_c_werror_flag" 4632 || test ! -s conftest.err' 4633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4634 (eval $ac_try) 2>&5 4635 ac_status=$? 4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4637 (exit $ac_status); }; } && 4638 { ac_try='test -s conftest$ac_exeext' 4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4640 (eval $ac_try) 2>&5 4641 ac_status=$? 4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4643 (exit $ac_status); }; }; then 4644 ac_cv_lib_ICE_IceConnectionNumber=yes 4645else 4646 echo "$as_me: failed program was:" >&5 4647sed 's/^/| /' conftest.$ac_ext >&5 4648 4649ac_cv_lib_ICE_IceConnectionNumber=no 4650fi 4651rm -f conftest.err conftest.$ac_objext \ 4652 conftest$ac_exeext conftest.$ac_ext 4653LIBS=$ac_check_lib_save_LIBS 4654fi 4655echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 4656echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 4657if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 4658 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 4659fi 4660 4661 LDFLAGS=$ac_save_LDFLAGS 4662 4663fi 4664 4665 4666if test x$have_x != xyes; then 4667 { { echo "$as_me:$LINENO: error: You have to have X11 development package (include files and libraries) to compile xruskb." >&5 4668echo "$as_me: error: You have to have X11 development package (include files and libraries) to compile xruskb." >&2;} 4669 { (exit 1); exit 1; }; } 4670fi 4671 4672echo "$as_me:$LINENO: checking for egrep" >&5 4673echo $ECHO_N "checking for egrep... $ECHO_C" >&6 4674if test "${ac_cv_prog_egrep+set}" = set; then 4675 echo $ECHO_N "(cached) $ECHO_C" >&6 4676else 4677 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 4678 then ac_cv_prog_egrep='grep -E' 4679 else ac_cv_prog_egrep='egrep' 4680 fi 4681fi 4682echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 4683echo "${ECHO_T}$ac_cv_prog_egrep" >&6 4684 EGREP=$ac_cv_prog_egrep 4685 4686 4687echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4688echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4689if test "${ac_cv_header_stdc+set}" = set; then 4690 echo $ECHO_N "(cached) $ECHO_C" >&6 4691else 4692 cat >conftest.$ac_ext <<_ACEOF 4693/* confdefs.h. */ 4694_ACEOF 4695cat confdefs.h >>conftest.$ac_ext 4696cat >>conftest.$ac_ext <<_ACEOF 4697/* end confdefs.h. */ 4698#include <stdlib.h> 4699#include <stdarg.h> 4700#include <string.h> 4701#include <float.h> 4702 4703int 4704main () 4705{ 4706 4707 ; 4708 return 0; 4709} 4710_ACEOF 4711rm -f conftest.$ac_objext 4712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4713 (eval $ac_compile) 2>conftest.er1 4714 ac_status=$? 4715 grep -v '^ *+' conftest.er1 >conftest.err 4716 rm -f conftest.er1 4717 cat conftest.err >&5 4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4719 (exit $ac_status); } && 4720 { ac_try='test -z "$ac_c_werror_flag" 4721 || test ! -s conftest.err' 4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4723 (eval $ac_try) 2>&5 4724 ac_status=$? 4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4726 (exit $ac_status); }; } && 4727 { ac_try='test -s conftest.$ac_objext' 4728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4729 (eval $ac_try) 2>&5 4730 ac_status=$? 4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4732 (exit $ac_status); }; }; then 4733 ac_cv_header_stdc=yes 4734else 4735 echo "$as_me: failed program was:" >&5 4736sed 's/^/| /' conftest.$ac_ext >&5 4737 4738ac_cv_header_stdc=no 4739fi 4740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4741 4742if test $ac_cv_header_stdc = yes; then 4743 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4744 cat >conftest.$ac_ext <<_ACEOF 4745/* confdefs.h. */ 4746_ACEOF 4747cat confdefs.h >>conftest.$ac_ext 4748cat >>conftest.$ac_ext <<_ACEOF 4749/* end confdefs.h. */ 4750#include <string.h> 4751 4752_ACEOF 4753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4754 $EGREP "memchr" >/dev/null 2>&1; then 4755 : 4756else 4757 ac_cv_header_stdc=no 4758fi 4759rm -f conftest* 4760 4761fi 4762 4763if test $ac_cv_header_stdc = yes; then 4764 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4765 cat >conftest.$ac_ext <<_ACEOF 4766/* confdefs.h. */ 4767_ACEOF 4768cat confdefs.h >>conftest.$ac_ext 4769cat >>conftest.$ac_ext <<_ACEOF 4770/* end confdefs.h. */ 4771#include <stdlib.h> 4772 4773_ACEOF 4774if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4775 $EGREP "free" >/dev/null 2>&1; then 4776 : 4777else 4778 ac_cv_header_stdc=no 4779fi 4780rm -f conftest* 4781 4782fi 4783 4784if test $ac_cv_header_stdc = yes; then 4785 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4786 if test "$cross_compiling" = yes; then 4787 : 4788else 4789 cat >conftest.$ac_ext <<_ACEOF 4790/* confdefs.h. */ 4791_ACEOF 4792cat confdefs.h >>conftest.$ac_ext 4793cat >>conftest.$ac_ext <<_ACEOF 4794/* end confdefs.h. */ 4795#include <ctype.h> 4796#if ((' ' & 0x0FF) == 0x020) 4797# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4798# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4799#else 4800# define ISLOWER(c) \ 4801 (('a' <= (c) && (c) <= 'i') \ 4802 || ('j' <= (c) && (c) <= 'r') \ 4803 || ('s' <= (c) && (c) <= 'z')) 4804# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4805#endif 4806 4807#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4808int 4809main () 4810{ 4811 int i; 4812 for (i = 0; i < 256; i++) 4813 if (XOR (islower (i), ISLOWER (i)) 4814 || toupper (i) != TOUPPER (i)) 4815 exit(2); 4816 exit (0); 4817} 4818_ACEOF 4819rm -f conftest$ac_exeext 4820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4821 (eval $ac_link) 2>&5 4822 ac_status=$? 4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4826 (eval $ac_try) 2>&5 4827 ac_status=$? 4828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4829 (exit $ac_status); }; }; then 4830 : 4831else 4832 echo "$as_me: program exited with status $ac_status" >&5 4833echo "$as_me: failed program was:" >&5 4834sed 's/^/| /' conftest.$ac_ext >&5 4835 4836( exit $ac_status ) 4837ac_cv_header_stdc=no 4838fi 4839rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4840fi 4841fi 4842fi 4843echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4844echo "${ECHO_T}$ac_cv_header_stdc" >&6 4845if test $ac_cv_header_stdc = yes; then 4846 4847cat >>confdefs.h <<\_ACEOF 4848#define STDC_HEADERS 1 4849_ACEOF 4850 4851fi 4852 4853echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 4854echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 4855if test "${ac_cv_header_sys_wait_h+set}" = set; then 4856 echo $ECHO_N "(cached) $ECHO_C" >&6 4857else 4858 cat >conftest.$ac_ext <<_ACEOF 4859/* confdefs.h. */ 4860_ACEOF 4861cat confdefs.h >>conftest.$ac_ext 4862cat >>conftest.$ac_ext <<_ACEOF 4863/* end confdefs.h. */ 4864#include <sys/types.h> 4865#include <sys/wait.h> 4866#ifndef WEXITSTATUS 4867# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 4868#endif 4869#ifndef WIFEXITED 4870# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4871#endif 4872 4873int 4874main () 4875{ 4876 int s; 4877 wait (&s); 4878 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4879 ; 4880 return 0; 4881} 4882_ACEOF 4883rm -f conftest.$ac_objext 4884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4885 (eval $ac_compile) 2>conftest.er1 4886 ac_status=$? 4887 grep -v '^ *+' conftest.er1 >conftest.err 4888 rm -f conftest.er1 4889 cat conftest.err >&5 4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4891 (exit $ac_status); } && 4892 { ac_try='test -z "$ac_c_werror_flag" 4893 || test ! -s conftest.err' 4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4895 (eval $ac_try) 2>&5 4896 ac_status=$? 4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4898 (exit $ac_status); }; } && 4899 { ac_try='test -s conftest.$ac_objext' 4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4901 (eval $ac_try) 2>&5 4902 ac_status=$? 4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4904 (exit $ac_status); }; }; then 4905 ac_cv_header_sys_wait_h=yes 4906else 4907 echo "$as_me: failed program was:" >&5 4908sed 's/^/| /' conftest.$ac_ext >&5 4909 4910ac_cv_header_sys_wait_h=no 4911fi 4912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4913fi 4914echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 4915echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 4916if test $ac_cv_header_sys_wait_h = yes; then 4917 4918cat >>confdefs.h <<\_ACEOF 4919#define HAVE_SYS_WAIT_H 1 4920_ACEOF 4921 4922fi 4923 4924# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4935 inttypes.h stdint.h unistd.h 4936do 4937as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4938echo "$as_me:$LINENO: checking for $ac_header" >&5 4939echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4940if eval "test \"\${$as_ac_Header+set}\" = set"; then 4941 echo $ECHO_N "(cached) $ECHO_C" >&6 4942else 4943 cat >conftest.$ac_ext <<_ACEOF 4944/* confdefs.h. */ 4945_ACEOF 4946cat confdefs.h >>conftest.$ac_ext 4947cat >>conftest.$ac_ext <<_ACEOF 4948/* end confdefs.h. */ 4949$ac_includes_default 4950 4951#include <$ac_header> 4952_ACEOF 4953rm -f conftest.$ac_objext 4954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4955 (eval $ac_compile) 2>conftest.er1 4956 ac_status=$? 4957 grep -v '^ *+' conftest.er1 >conftest.err 4958 rm -f conftest.er1 4959 cat conftest.err >&5 4960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4961 (exit $ac_status); } && 4962 { ac_try='test -z "$ac_c_werror_flag" 4963 || test ! -s conftest.err' 4964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4965 (eval $ac_try) 2>&5 4966 ac_status=$? 4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4968 (exit $ac_status); }; } && 4969 { ac_try='test -s conftest.$ac_objext' 4970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4971 (eval $ac_try) 2>&5 4972 ac_status=$? 4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4974 (exit $ac_status); }; }; then 4975 eval "$as_ac_Header=yes" 4976else 4977 echo "$as_me: failed program was:" >&5 4978sed 's/^/| /' conftest.$ac_ext >&5 4979 4980eval "$as_ac_Header=no" 4981fi 4982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4983fi 4984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4985echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4986if test `eval echo '${'$as_ac_Header'}'` = yes; then 4987 cat >>confdefs.h <<_ACEOF 4988#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4989_ACEOF 4990 4991fi 4992 4993done 4994 4995 4996 4997for ac_header in unistd.h 4998do 4999as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5000if eval "test \"\${$as_ac_Header+set}\" = set"; then 5001 echo "$as_me:$LINENO: checking for $ac_header" >&5 5002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5003if eval "test \"\${$as_ac_Header+set}\" = set"; then 5004 echo $ECHO_N "(cached) $ECHO_C" >&6 5005fi 5006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5007echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5008else 5009 # Is the header compilable? 5010echo "$as_me:$LINENO: checking $ac_header usability" >&5 5011echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 5012cat >conftest.$ac_ext <<_ACEOF 5013/* confdefs.h. */ 5014_ACEOF 5015cat confdefs.h >>conftest.$ac_ext 5016cat >>conftest.$ac_ext <<_ACEOF 5017/* end confdefs.h. */ 5018$ac_includes_default 5019#include <$ac_header> 5020_ACEOF 5021rm -f conftest.$ac_objext 5022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5023 (eval $ac_compile) 2>conftest.er1 5024 ac_status=$? 5025 grep -v '^ *+' conftest.er1 >conftest.err 5026 rm -f conftest.er1 5027 cat conftest.err >&5 5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5029 (exit $ac_status); } && 5030 { ac_try='test -z "$ac_c_werror_flag" 5031 || test ! -s conftest.err' 5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5033 (eval $ac_try) 2>&5 5034 ac_status=$? 5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5036 (exit $ac_status); }; } && 5037 { ac_try='test -s conftest.$ac_objext' 5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5039 (eval $ac_try) 2>&5 5040 ac_status=$? 5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5042 (exit $ac_status); }; }; then 5043 ac_header_compiler=yes 5044else 5045 echo "$as_me: failed program was:" >&5 5046sed 's/^/| /' conftest.$ac_ext >&5 5047 5048ac_header_compiler=no 5049fi 5050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5051echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 5052echo "${ECHO_T}$ac_header_compiler" >&6 5053 5054# Is the header present? 5055echo "$as_me:$LINENO: checking $ac_header presence" >&5 5056echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 5057cat >conftest.$ac_ext <<_ACEOF 5058/* confdefs.h. */ 5059_ACEOF 5060cat confdefs.h >>conftest.$ac_ext 5061cat >>conftest.$ac_ext <<_ACEOF 5062/* end confdefs.h. */ 5063#include <$ac_header> 5064_ACEOF 5065if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5067 ac_status=$? 5068 grep -v '^ *+' conftest.er1 >conftest.err 5069 rm -f conftest.er1 5070 cat conftest.err >&5 5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5072 (exit $ac_status); } >/dev/null; then 5073 if test -s conftest.err; then 5074 ac_cpp_err=$ac_c_preproc_warn_flag 5075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5076 else 5077 ac_cpp_err= 5078 fi 5079else 5080 ac_cpp_err=yes 5081fi 5082if test -z "$ac_cpp_err"; then 5083 ac_header_preproc=yes 5084else 5085 echo "$as_me: failed program was:" >&5 5086sed 's/^/| /' conftest.$ac_ext >&5 5087 5088 ac_header_preproc=no 5089fi 5090rm -f conftest.err conftest.$ac_ext 5091echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 5092echo "${ECHO_T}$ac_header_preproc" >&6 5093 5094# So? What about this header? 5095case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 5096 yes:no: ) 5097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 5098echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 5099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 5100echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 5101 ac_header_preproc=yes 5102 ;; 5103 no:yes:* ) 5104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 5105echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 5106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 5107echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 5108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 5109echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 5110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 5111echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 5112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 5113echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 5114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 5115echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 5116 ( 5117 cat <<\_ASBOX 5118## ------------------------------------------ ## 5119## Report this to the AC_PACKAGE_NAME lists. ## 5120## ------------------------------------------ ## 5121_ASBOX 5122 ) | 5123 sed "s/^/$as_me: WARNING: /" >&2 5124 ;; 5125esac 5126echo "$as_me:$LINENO: checking for $ac_header" >&5 5127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5128if eval "test \"\${$as_ac_Header+set}\" = set"; then 5129 echo $ECHO_N "(cached) $ECHO_C" >&6 5130else 5131 eval "$as_ac_Header=\$ac_header_preproc" 5132fi 5133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5134echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5135 5136fi 5137if test `eval echo '${'$as_ac_Header'}'` = yes; then 5138 cat >>confdefs.h <<_ACEOF 5139#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5140_ACEOF 5141 5142fi 5143 5144done 5145 5146 5147echo "$as_me:$LINENO: checking for pid_t" >&5 5148echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 5149if test "${ac_cv_type_pid_t+set}" = set; then 5150 echo $ECHO_N "(cached) $ECHO_C" >&6 5151else 5152 cat >conftest.$ac_ext <<_ACEOF 5153/* confdefs.h. */ 5154_ACEOF 5155cat confdefs.h >>conftest.$ac_ext 5156cat >>conftest.$ac_ext <<_ACEOF 5157/* end confdefs.h. */ 5158$ac_includes_default 5159int 5160main () 5161{ 5162if ((pid_t *) 0) 5163 return 0; 5164if (sizeof (pid_t)) 5165 return 0; 5166 ; 5167 return 0; 5168} 5169_ACEOF 5170rm -f conftest.$ac_objext 5171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5172 (eval $ac_compile) 2>conftest.er1 5173 ac_status=$? 5174 grep -v '^ *+' conftest.er1 >conftest.err 5175 rm -f conftest.er1 5176 cat conftest.err >&5 5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5178 (exit $ac_status); } && 5179 { ac_try='test -z "$ac_c_werror_flag" 5180 || test ! -s conftest.err' 5181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5182 (eval $ac_try) 2>&5 5183 ac_status=$? 5184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5185 (exit $ac_status); }; } && 5186 { ac_try='test -s conftest.$ac_objext' 5187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5188 (eval $ac_try) 2>&5 5189 ac_status=$? 5190 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5191 (exit $ac_status); }; }; then 5192 ac_cv_type_pid_t=yes 5193else 5194 echo "$as_me: failed program was:" >&5 5195sed 's/^/| /' conftest.$ac_ext >&5 5196 5197ac_cv_type_pid_t=no 5198fi 5199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5200fi 5201echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 5202echo "${ECHO_T}$ac_cv_type_pid_t" >&6 5203if test $ac_cv_type_pid_t = yes; then 5204 : 5205else 5206 5207cat >>confdefs.h <<_ACEOF 5208#define pid_t int 5209_ACEOF 5210 5211fi 5212 5213echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 5214echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 5215if test "${ac_cv_c_const+set}" = set; then 5216 echo $ECHO_N "(cached) $ECHO_C" >&6 5217else 5218 cat >conftest.$ac_ext <<_ACEOF 5219/* confdefs.h. */ 5220_ACEOF 5221cat confdefs.h >>conftest.$ac_ext 5222cat >>conftest.$ac_ext <<_ACEOF 5223/* end confdefs.h. */ 5224 5225int 5226main () 5227{ 5228/* FIXME: Include the comments suggested by Paul. */ 5229#ifndef __cplusplus 5230 /* Ultrix mips cc rejects this. */ 5231 typedef int charset[2]; 5232 const charset x; 5233 /* SunOS 4.1.1 cc rejects this. */ 5234 char const *const *ccp; 5235 char **p; 5236 /* NEC SVR4.0.2 mips cc rejects this. */ 5237 struct point {int x, y;}; 5238 static struct point const zero = {0,0}; 5239 /* AIX XL C 1.02.0.0 rejects this. 5240 It does not let you subtract one const X* pointer from another in 5241 an arm of an if-expression whose if-part is not a constant 5242 expression */ 5243 const char *g = "string"; 5244 ccp = &g + (g ? g-g : 0); 5245 /* HPUX 7.0 cc rejects these. */ 5246 ++ccp; 5247 p = (char**) ccp; 5248 ccp = (char const *const *) p; 5249 { /* SCO 3.2v4 cc rejects this. */ 5250 char *t; 5251 char const *s = 0 ? (char *) 0 : (char const *) 0; 5252 5253 *t++ = 0; 5254 } 5255 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5256 int x[] = {25, 17}; 5257 const int *foo = &x[0]; 5258 ++foo; 5259 } 5260 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5261 typedef const int *iptr; 5262 iptr p = 0; 5263 ++p; 5264 } 5265 { /* AIX XL C 1.02.0.0 rejects this saying 5266 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5267 struct s { int j; const int *ap[3]; }; 5268 struct s *b; b->j = 5; 5269 } 5270 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5271 const int foo = 10; 5272 } 5273#endif 5274 5275 ; 5276 return 0; 5277} 5278_ACEOF 5279rm -f conftest.$ac_objext 5280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5281 (eval $ac_compile) 2>conftest.er1 5282 ac_status=$? 5283 grep -v '^ *+' conftest.er1 >conftest.err 5284 rm -f conftest.er1 5285 cat conftest.err >&5 5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5287 (exit $ac_status); } && 5288 { ac_try='test -z "$ac_c_werror_flag" 5289 || test ! -s conftest.err' 5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5291 (eval $ac_try) 2>&5 5292 ac_status=$? 5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5294 (exit $ac_status); }; } && 5295 { ac_try='test -s conftest.$ac_objext' 5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5297 (eval $ac_try) 2>&5 5298 ac_status=$? 5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5300 (exit $ac_status); }; }; then 5301 ac_cv_c_const=yes 5302else 5303 echo "$as_me: failed program was:" >&5 5304sed 's/^/| /' conftest.$ac_ext >&5 5305 5306ac_cv_c_const=no 5307fi 5308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5309fi 5310echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 5311echo "${ECHO_T}$ac_cv_c_const" >&6 5312if test $ac_cv_c_const = no; then 5313 5314cat >>confdefs.h <<\_ACEOF 5315#define const 5316_ACEOF 5317 5318fi 5319 5320 5321# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 5322# for constant arguments. Useless! 5323echo "$as_me:$LINENO: checking for working alloca.h" >&5 5324echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 5325if test "${ac_cv_working_alloca_h+set}" = set; then 5326 echo $ECHO_N "(cached) $ECHO_C" >&6 5327else 5328 cat >conftest.$ac_ext <<_ACEOF 5329/* confdefs.h. */ 5330_ACEOF 5331cat confdefs.h >>conftest.$ac_ext 5332cat >>conftest.$ac_ext <<_ACEOF 5333/* end confdefs.h. */ 5334#include <alloca.h> 5335int 5336main () 5337{ 5338char *p = (char *) alloca (2 * sizeof (int)); 5339 ; 5340 return 0; 5341} 5342_ACEOF 5343rm -f conftest.$ac_objext conftest$ac_exeext 5344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5345 (eval $ac_link) 2>conftest.er1 5346 ac_status=$? 5347 grep -v '^ *+' conftest.er1 >conftest.err 5348 rm -f conftest.er1 5349 cat conftest.err >&5 5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5351 (exit $ac_status); } && 5352 { ac_try='test -z "$ac_c_werror_flag" 5353 || test ! -s conftest.err' 5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5355 (eval $ac_try) 2>&5 5356 ac_status=$? 5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5358 (exit $ac_status); }; } && 5359 { ac_try='test -s conftest$ac_exeext' 5360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5361 (eval $ac_try) 2>&5 5362 ac_status=$? 5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5364 (exit $ac_status); }; }; then 5365 ac_cv_working_alloca_h=yes 5366else 5367 echo "$as_me: failed program was:" >&5 5368sed 's/^/| /' conftest.$ac_ext >&5 5369 5370ac_cv_working_alloca_h=no 5371fi 5372rm -f conftest.err conftest.$ac_objext \ 5373 conftest$ac_exeext conftest.$ac_ext 5374fi 5375echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 5376echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 5377if test $ac_cv_working_alloca_h = yes; then 5378 5379cat >>confdefs.h <<\_ACEOF 5380#define HAVE_ALLOCA_H 1 5381_ACEOF 5382 5383fi 5384 5385echo "$as_me:$LINENO: checking for alloca" >&5 5386echo $ECHO_N "checking for alloca... $ECHO_C" >&6 5387if test "${ac_cv_func_alloca_works+set}" = set; then 5388 echo $ECHO_N "(cached) $ECHO_C" >&6 5389else 5390 cat >conftest.$ac_ext <<_ACEOF 5391/* confdefs.h. */ 5392_ACEOF 5393cat confdefs.h >>conftest.$ac_ext 5394cat >>conftest.$ac_ext <<_ACEOF 5395/* end confdefs.h. */ 5396#ifdef __GNUC__ 5397# define alloca __builtin_alloca 5398#else 5399# ifdef _MSC_VER 5400# include <malloc.h> 5401# define alloca _alloca 5402# else 5403# if HAVE_ALLOCA_H 5404# include <alloca.h> 5405# else 5406# ifdef _AIX 5407 #pragma alloca 5408# else 5409# ifndef alloca /* predefined by HP cc +Olibcalls */ 5410char *alloca (); 5411# endif 5412# endif 5413# endif 5414# endif 5415#endif 5416 5417int 5418main () 5419{ 5420char *p = (char *) alloca (1); 5421 ; 5422 return 0; 5423} 5424_ACEOF 5425rm -f conftest.$ac_objext conftest$ac_exeext 5426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5427 (eval $ac_link) 2>conftest.er1 5428 ac_status=$? 5429 grep -v '^ *+' conftest.er1 >conftest.err 5430 rm -f conftest.er1 5431 cat conftest.err >&5 5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5433 (exit $ac_status); } && 5434 { ac_try='test -z "$ac_c_werror_flag" 5435 || test ! -s conftest.err' 5436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5437 (eval $ac_try) 2>&5 5438 ac_status=$? 5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5440 (exit $ac_status); }; } && 5441 { ac_try='test -s conftest$ac_exeext' 5442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5443 (eval $ac_try) 2>&5 5444 ac_status=$? 5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5446 (exit $ac_status); }; }; then 5447 ac_cv_func_alloca_works=yes 5448else 5449 echo "$as_me: failed program was:" >&5 5450sed 's/^/| /' conftest.$ac_ext >&5 5451 5452ac_cv_func_alloca_works=no 5453fi 5454rm -f conftest.err conftest.$ac_objext \ 5455 conftest$ac_exeext conftest.$ac_ext 5456fi 5457echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 5458echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 5459 5460if test $ac_cv_func_alloca_works = yes; then 5461 5462cat >>confdefs.h <<\_ACEOF 5463#define HAVE_ALLOCA 1 5464_ACEOF 5465 5466else 5467 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 5468# that cause trouble. Some versions do not even contain alloca or 5469# contain a buggy version. If you still want to use their alloca, 5470# use ar to extract alloca.o from them instead of compiling alloca.c. 5471 5472ALLOCA=alloca.$ac_objext 5473 5474cat >>confdefs.h <<\_ACEOF 5475#define C_ALLOCA 1 5476_ACEOF 5477 5478 5479echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 5480echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 5481if test "${ac_cv_os_cray+set}" = set; then 5482 echo $ECHO_N "(cached) $ECHO_C" >&6 5483else 5484 cat >conftest.$ac_ext <<_ACEOF 5485/* confdefs.h. */ 5486_ACEOF 5487cat confdefs.h >>conftest.$ac_ext 5488cat >>conftest.$ac_ext <<_ACEOF 5489/* end confdefs.h. */ 5490#if defined(CRAY) && ! defined(CRAY2) 5491webecray 5492#else 5493wenotbecray 5494#endif 5495 5496_ACEOF 5497if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5498 $EGREP "webecray" >/dev/null 2>&1; then 5499 ac_cv_os_cray=yes 5500else 5501 ac_cv_os_cray=no 5502fi 5503rm -f conftest* 5504 5505fi 5506echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 5507echo "${ECHO_T}$ac_cv_os_cray" >&6 5508if test $ac_cv_os_cray = yes; then 5509 for ac_func in _getb67 GETB67 getb67; do 5510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5511echo "$as_me:$LINENO: checking for $ac_func" >&5 5512echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5513if eval "test \"\${$as_ac_var+set}\" = set"; then 5514 echo $ECHO_N "(cached) $ECHO_C" >&6 5515else 5516 cat >conftest.$ac_ext <<_ACEOF 5517/* confdefs.h. */ 5518_ACEOF 5519cat confdefs.h >>conftest.$ac_ext 5520cat >>conftest.$ac_ext <<_ACEOF 5521/* end confdefs.h. */ 5522/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5523 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5524#define $ac_func innocuous_$ac_func 5525 5526/* System header to define __stub macros and hopefully few prototypes, 5527 which can conflict with char $ac_func (); below. 5528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5529 <limits.h> exists even on freestanding compilers. */ 5530 5531#ifdef __STDC__ 5532# include <limits.h> 5533#else 5534# include <assert.h> 5535#endif 5536 5537#undef $ac_func 5538 5539/* Override any gcc2 internal prototype to avoid an error. */ 5540#ifdef __cplusplus 5541extern "C" 5542{ 5543#endif 5544/* We use char because int might match the return type of a gcc2 5545 builtin and then its argument prototype would still apply. */ 5546char $ac_func (); 5547/* The GNU C library defines this for functions which it implements 5548 to always fail with ENOSYS. Some functions are actually named 5549 something starting with __ and the normal name is an alias. */ 5550#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5551choke me 5552#else 5553char (*f) () = $ac_func; 5554#endif 5555#ifdef __cplusplus 5556} 5557#endif 5558 5559int 5560main () 5561{ 5562return f != $ac_func; 5563 ; 5564 return 0; 5565} 5566_ACEOF 5567rm -f conftest.$ac_objext conftest$ac_exeext 5568if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5569 (eval $ac_link) 2>conftest.er1 5570 ac_status=$? 5571 grep -v '^ *+' conftest.er1 >conftest.err 5572 rm -f conftest.er1 5573 cat conftest.err >&5 5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5575 (exit $ac_status); } && 5576 { ac_try='test -z "$ac_c_werror_flag" 5577 || test ! -s conftest.err' 5578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5579 (eval $ac_try) 2>&5 5580 ac_status=$? 5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5582 (exit $ac_status); }; } && 5583 { ac_try='test -s conftest$ac_exeext' 5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5585 (eval $ac_try) 2>&5 5586 ac_status=$? 5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5588 (exit $ac_status); }; }; then 5589 eval "$as_ac_var=yes" 5590else 5591 echo "$as_me: failed program was:" >&5 5592sed 's/^/| /' conftest.$ac_ext >&5 5593 5594eval "$as_ac_var=no" 5595fi 5596rm -f conftest.err conftest.$ac_objext \ 5597 conftest$ac_exeext conftest.$ac_ext 5598fi 5599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5600echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5601if test `eval echo '${'$as_ac_var'}'` = yes; then 5602 5603cat >>confdefs.h <<_ACEOF 5604#define CRAY_STACKSEG_END $ac_func 5605_ACEOF 5606 5607 break 5608fi 5609 5610 done 5611fi 5612 5613echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 5614echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 5615if test "${ac_cv_c_stack_direction+set}" = set; then 5616 echo $ECHO_N "(cached) $ECHO_C" >&6 5617else 5618 if test "$cross_compiling" = yes; then 5619 ac_cv_c_stack_direction=0 5620else 5621 cat >conftest.$ac_ext <<_ACEOF 5622/* confdefs.h. */ 5623_ACEOF 5624cat confdefs.h >>conftest.$ac_ext 5625cat >>conftest.$ac_ext <<_ACEOF 5626/* end confdefs.h. */ 5627int 5628find_stack_direction () 5629{ 5630 static char *addr = 0; 5631 auto char dummy; 5632 if (addr == 0) 5633 { 5634 addr = &dummy; 5635 return find_stack_direction (); 5636 } 5637 else 5638 return (&dummy > addr) ? 1 : -1; 5639} 5640 5641int 5642main () 5643{ 5644 exit (find_stack_direction () < 0); 5645} 5646_ACEOF 5647rm -f conftest$ac_exeext 5648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5649 (eval $ac_link) 2>&5 5650 ac_status=$? 5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5654 (eval $ac_try) 2>&5 5655 ac_status=$? 5656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5657 (exit $ac_status); }; }; then 5658 ac_cv_c_stack_direction=1 5659else 5660 echo "$as_me: program exited with status $ac_status" >&5 5661echo "$as_me: failed program was:" >&5 5662sed 's/^/| /' conftest.$ac_ext >&5 5663 5664( exit $ac_status ) 5665ac_cv_c_stack_direction=-1 5666fi 5667rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5668fi 5669fi 5670echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 5671echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 5672 5673cat >>confdefs.h <<_ACEOF 5674#define STACK_DIRECTION $ac_cv_c_stack_direction 5675_ACEOF 5676 5677 5678fi 5679 5680 5681 5682 5683for ac_func in strerror atexit strdup 5684do 5685as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 5686echo "$as_me:$LINENO: checking for $ac_func" >&5 5687echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 5688if eval "test \"\${$as_ac_var+set}\" = set"; then 5689 echo $ECHO_N "(cached) $ECHO_C" >&6 5690else 5691 cat >conftest.$ac_ext <<_ACEOF 5692/* confdefs.h. */ 5693_ACEOF 5694cat confdefs.h >>conftest.$ac_ext 5695cat >>conftest.$ac_ext <<_ACEOF 5696/* end confdefs.h. */ 5697/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 5698 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 5699#define $ac_func innocuous_$ac_func 5700 5701/* System header to define __stub macros and hopefully few prototypes, 5702 which can conflict with char $ac_func (); below. 5703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5704 <limits.h> exists even on freestanding compilers. */ 5705 5706#ifdef __STDC__ 5707# include <limits.h> 5708#else 5709# include <assert.h> 5710#endif 5711 5712#undef $ac_func 5713 5714/* Override any gcc2 internal prototype to avoid an error. */ 5715#ifdef __cplusplus 5716extern "C" 5717{ 5718#endif 5719/* We use char because int might match the return type of a gcc2 5720 builtin and then its argument prototype would still apply. */ 5721char $ac_func (); 5722/* The GNU C library defines this for functions which it implements 5723 to always fail with ENOSYS. Some functions are actually named 5724 something starting with __ and the normal name is an alias. */ 5725#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 5726choke me 5727#else 5728char (*f) () = $ac_func; 5729#endif 5730#ifdef __cplusplus 5731} 5732#endif 5733 5734int 5735main () 5736{ 5737return f != $ac_func; 5738 ; 5739 return 0; 5740} 5741_ACEOF 5742rm -f conftest.$ac_objext conftest$ac_exeext 5743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5744 (eval $ac_link) 2>conftest.er1 5745 ac_status=$? 5746 grep -v '^ *+' conftest.er1 >conftest.err 5747 rm -f conftest.er1 5748 cat conftest.err >&5 5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5750 (exit $ac_status); } && 5751 { ac_try='test -z "$ac_c_werror_flag" 5752 || test ! -s conftest.err' 5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5754 (eval $ac_try) 2>&5 5755 ac_status=$? 5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5757 (exit $ac_status); }; } && 5758 { ac_try='test -s conftest$ac_exeext' 5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5760 (eval $ac_try) 2>&5 5761 ac_status=$? 5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5763 (exit $ac_status); }; }; then 5764 eval "$as_ac_var=yes" 5765else 5766 echo "$as_me: failed program was:" >&5 5767sed 's/^/| /' conftest.$ac_ext >&5 5768 5769eval "$as_ac_var=no" 5770fi 5771rm -f conftest.err conftest.$ac_objext \ 5772 conftest$ac_exeext conftest.$ac_ext 5773fi 5774echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 5775echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 5776if test `eval echo '${'$as_ac_var'}'` = yes; then 5777 cat >>confdefs.h <<_ACEOF 5778#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 5779_ACEOF 5780 5781fi 5782done 5783 5784 5785 5786# Check whether --with-Xaw or --without-Xaw was given. 5787if test "${with_Xaw+set}" = set; then 5788 withval="$with_Xaw" 5789 5790fi; 5791 5792# Check whether --with-motif or --without-motif was given. 5793if test "${with_motif+set}" = set; then 5794 withval="$with_motif" 5795 5796fi; 5797 5798# Check whether --with-toolkit or --without-toolkit was given. 5799if test "${with_toolkit+set}" = set; then 5800 withval="$with_toolkit" 5801 5802fi; 5803 5804case "$with_toolkit" in 5805motif)with_motif=yes 5806 cat >>confdefs.h <<\_ACEOF 5807#define TK TK_MOTIF 5808_ACEOF 5809 5810 ;; 5811xaw) with_Xaw=yes 5812 cat >>confdefs.h <<\_ACEOF 5813#define TK TK_XAW 5814_ACEOF 5815 5816 ;; 5817none) with_Xaw=no 5818 with_motif=no 5819 cat >>confdefs.h <<\_ACEOF 5820#define TK TK_NONE 5821_ACEOF 5822 5823 ;; 5824"") ;; # no tk specified, use first available 5825*) { { echo "$as_me:$LINENO: error: invalid toolkit name, use motif, xaw, or none" >&5 5826echo "$as_me: error: invalid toolkit name, use motif, xaw, or none" >&2;} 5827 { (exit 1); exit 1; }; } 5828 ;; 5829esac 5830 5831 5832 5833 5834# if --with-Xaw was specified, check libXaw first 5835if test x$with_Xaw = xyes 5836then 5837 5838 echo "$as_me:$LINENO: checking for main in -lXaw3d" >&5 5839echo $ECHO_N "checking for main in -lXaw3d... $ECHO_C" >&6 5840if test "${ac_cv_lib_Xaw3d_main+set}" = set; then 5841 echo $ECHO_N "(cached) $ECHO_C" >&6 5842else 5843 ac_check_lib_save_LIBS=$LIBS 5844LIBS="-lXaw3d -lXt -lXmu -Xext -lX11 $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS $LIBS" 5845cat >conftest.$ac_ext <<_ACEOF 5846/* confdefs.h. */ 5847_ACEOF 5848cat confdefs.h >>conftest.$ac_ext 5849cat >>conftest.$ac_ext <<_ACEOF 5850/* end confdefs.h. */ 5851 5852 5853int 5854main () 5855{ 5856main (); 5857 ; 5858 return 0; 5859} 5860_ACEOF 5861rm -f conftest.$ac_objext conftest$ac_exeext 5862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5863 (eval $ac_link) 2>conftest.er1 5864 ac_status=$? 5865 grep -v '^ *+' conftest.er1 >conftest.err 5866 rm -f conftest.er1 5867 cat conftest.err >&5 5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5869 (exit $ac_status); } && 5870 { ac_try='test -z "$ac_c_werror_flag" 5871 || test ! -s conftest.err' 5872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5873 (eval $ac_try) 2>&5 5874 ac_status=$? 5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5876 (exit $ac_status); }; } && 5877 { ac_try='test -s conftest$ac_exeext' 5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5879 (eval $ac_try) 2>&5 5880 ac_status=$? 5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5882 (exit $ac_status); }; }; then 5883 ac_cv_lib_Xaw3d_main=yes 5884else 5885 echo "$as_me: failed program was:" >&5 5886sed 's/^/| /' conftest.$ac_ext >&5 5887 5888ac_cv_lib_Xaw3d_main=no 5889fi 5890rm -f conftest.err conftest.$ac_objext \ 5891 conftest$ac_exeext conftest.$ac_ext 5892LIBS=$ac_check_lib_save_LIBS 5893fi 5894echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_main" >&5 5895echo "${ECHO_T}$ac_cv_lib_Xaw3d_main" >&6 5896if test $ac_cv_lib_Xaw3d_main = yes; then 5897 5898 TOOLKIT_LIBS="-lXaw3d" 5899 cat >>confdefs.h <<\_ACEOF 5900#define HAVE_LIBXAW 1 5901_ACEOF 5902 5903 5904fi 5905 5906 5907 if test -z "$TOOLKIT_LIBS"; then 5908 5909 echo "$as_me:$LINENO: checking for main in -lXaw" >&5 5910echo $ECHO_N "checking for main in -lXaw... $ECHO_C" >&6 5911if test "${ac_cv_lib_Xaw_main+set}" = set; then 5912 echo $ECHO_N "(cached) $ECHO_C" >&6 5913else 5914 ac_check_lib_save_LIBS=$LIBS 5915LIBS="-lXaw -lXt -lXmu -Xext -lX11 $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS $LIBS" 5916cat >conftest.$ac_ext <<_ACEOF 5917/* confdefs.h. */ 5918_ACEOF 5919cat confdefs.h >>conftest.$ac_ext 5920cat >>conftest.$ac_ext <<_ACEOF 5921/* end confdefs.h. */ 5922 5923 5924int 5925main () 5926{ 5927main (); 5928 ; 5929 return 0; 5930} 5931_ACEOF 5932rm -f conftest.$ac_objext conftest$ac_exeext 5933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5934 (eval $ac_link) 2>conftest.er1 5935 ac_status=$? 5936 grep -v '^ *+' conftest.er1 >conftest.err 5937 rm -f conftest.er1 5938 cat conftest.err >&5 5939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5940 (exit $ac_status); } && 5941 { ac_try='test -z "$ac_c_werror_flag" 5942 || test ! -s conftest.err' 5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5944 (eval $ac_try) 2>&5 5945 ac_status=$? 5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5947 (exit $ac_status); }; } && 5948 { ac_try='test -s conftest$ac_exeext' 5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5950 (eval $ac_try) 2>&5 5951 ac_status=$? 5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5953 (exit $ac_status); }; }; then 5954 ac_cv_lib_Xaw_main=yes 5955else 5956 echo "$as_me: failed program was:" >&5 5957sed 's/^/| /' conftest.$ac_ext >&5 5958 5959ac_cv_lib_Xaw_main=no 5960fi 5961rm -f conftest.err conftest.$ac_objext \ 5962 conftest$ac_exeext conftest.$ac_ext 5963LIBS=$ac_check_lib_save_LIBS 5964fi 5965echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_main" >&5 5966echo "${ECHO_T}$ac_cv_lib_Xaw_main" >&6 5967if test $ac_cv_lib_Xaw_main = yes; then 5968 5969 TOOLKIT_LIBS="-lXaw" 5970 cat >>confdefs.h <<\_ACEOF 5971#define HAVE_LIBXAW 1 5972_ACEOF 5973 5974 5975fi 5976 5977 5978 fi 5979fi 5980 5981# if we don't use Xaw directly, test for Motif 5982if test x$ac_cv_lib_Xaw_main != xyes -a x$ac_cv_lib_Xaw3d_main != xyes \ 5983 || test x$with_Xaw != xyes 5984then 5985 5986if test "$with_motif" != no; then 5987 5988motif_includes=NONE 5989motif_libraries=NONE 5990 5991echo "$as_me:$LINENO: checking for Motif" >&5 5992echo $ECHO_N "checking for Motif... $ECHO_C" >&6 5993if test "x$with_motif" = xno; then 5994 no_motif=yes 5995else 5996 if test "x$motif_includes" != xNONE && test "x$motif_libraries" != xNONE; then 5997 no_motif= 5998 else 5999if test "${ac_cv_path_motif+set}" = set; then 6000 echo $ECHO_N "(cached) $ECHO_C" >&6 6001else 6002 # One or both of these vars are not set, and there is no cached value. 6003no_motif=yes 6004test -z "$motif_direct_test_library" && motif_direct_test_library=Xm 6005test -z "$motif_direct_test_function" && motif_direct_test_function=XmCreatePushButton 6006test -z "$motif_direct_test_include" && motif_direct_test_include=Xm/Xm.h 6007 for ac_dir in \ 6008 /usr/include/Motif1.2 \ 6009 /usr/Motif1.2/include \ 6010 \ 6011 /usr/X11R6/include \ 6012 /usr/X11R5/include \ 6013 \ 6014 /usr/include/X11R6 \ 6015 /usr/include/X11R5 \ 6016 \ 6017 /usr/local/X11R6/include \ 6018 /usr/local/X11R5/include \ 6019 \ 6020 /usr/local/include/X11R6 \ 6021 /usr/local/include/X11R5 \ 6022 \ 6023 /usr/X11/include \ 6024 /usr/include/X11 \ 6025 /usr/local/X11/include \ 6026 /usr/local/include/X11 \ 6027 \ 6028 /usr/X386/include \ 6029 /usr/x386/include \ 6030 /usr/XFree86/include/X11 \ 6031 \ 6032 /usr/dt/include \ 6033 \ 6034 /usr/include \ 6035 /usr/local/include \ 6036 /usr/unsupported/include \ 6037 /usr/athena/include \ 6038 /usr/local/x11r5/include \ 6039 /usr/lpp/Xamples/include \ 6040 ; \ 6041 do 6042 if test -r "$ac_dir/$motif_direct_test_include"; then 6043 no_motif= ac_motif_includes=$ac_dir 6044 break 6045 fi 6046 done 6047 6048# Check for the libraries. 6049# See if we find them without any special options. 6050# Don't add to $LIBS permanently. 6051#ac_save_LIBS="$LIBS" 6052#LIBS="-l$motif_direct_test_library $LIBS" 6053# First see if replacing the include by lib works. 6054for ac_dir in `echo "$ac_motif_includes" | sed s/include/lib/` \ 6055 /usr/lib/Motif1.2 \ 6056 /usr/Motif1.2/lib \ 6057 \ 6058 /usr/X11R6/lib \ 6059 /usr/X11R5/lib \ 6060 \ 6061 /usr/lib/X11R6 \ 6062 /usr/lib/X11R5 \ 6063 \ 6064 /usr/local/X11R6/lib \ 6065 /usr/local/X11R5/lib \ 6066 \ 6067 /usr/local/lib/X11R6 \ 6068 /usr/local/lib/X11R5 \ 6069 \ 6070 /usr/X11/lib \ 6071 /usr/lib/X11 \ 6072 /usr/local/X11/lib \ 6073 \ 6074 /usr/X386/lib \ 6075 /usr/x386/lib \ 6076 /usr/XFree86/lib/X11 \ 6077 \ 6078 /usr/lib \ 6079 /usr/local/lib \ 6080 /usr/unsupported/lib \ 6081 /usr/athena/lib \ 6082 /usr/local/x11r5/lib \ 6083 /usr/lpp/Xamples/lib \ 6084 ; \ 6085do 6086 for ac_extension in a so sl; do 6087 if test -r $ac_dir/lib${motif_direct_test_library}.$ac_extension; then 6088 no_motif= ac_motif_libraries=$ac_dir 6089 break 2 6090 fi 6091 done 6092done 6093 6094if test "$no_motif" = yes; then 6095 ac_cv_path_motif="no_motif=yes" 6096else 6097 ac_cv_path_motif="no_motif= ac_motif_includes=$ac_motif_includes ac_motif_libraries=$ac_motif_libraries" 6098fi 6099fi 6100 fi 6101 eval "$ac_cv_path_motif" 6102fi # with_motif != no 6103 6104if test "$no_motif" = yes; then 6105 echo "$as_me:$LINENO: result: no" >&5 6106echo "${ECHO_T}no" >&6 6107else 6108 test "x$motif_includes" = xNONE && motif_includes=$ac_motif_includes 6109 test "x$motif_libraries" = xNONE && motif_libraries=$ac_motif_libraries 6110 ac_cv_path_motif="no_motif= ac_motif_includes=$motif_includes ac_motif_libraries=$motif_libraries" 6111 echo "$as_me:$LINENO: result: libraries $motif_libraries, headers $motif_includes" >&5 6112echo "${ECHO_T}libraries $motif_libraries, headers $motif_includes" >&6 6113fi 6114 6115if test x$no_motif != xyes 6116then 6117 cat >>confdefs.h <<\_ACEOF 6118#define HAVE_MOTIF 1 6119_ACEOF 6120 6121 if test "x$motif_includes" != x && test "x$motif_includes" != x/usr/include 6122 then 6123 TOOLKIT_INCLUDE="-I$motif_includes" 6124 6125 fi 6126 TOOLKIT_LIBS="-lXm" 6127 if test "x$motif_libraries" != x && test "x$motif_libraries" != x/usr/lib 6128 then 6129 case "$X_LIBS" in 6130 *-R*) TOOLKIT_LIBS="-R$motif_libraries $TOOLKIT_LIBS";; 6131 esac 6132 TOOLKIT_LIBS="-L$motif_libraries $TOOLKIT_LIBS" 6133 fi 6134 6135 # motif can require additional libs 6136 echo "$as_me:$LINENO: checking for regex in -lgen" >&5 6137echo $ECHO_N "checking for regex in -lgen... $ECHO_C" >&6 6138if test "${ac_cv_lib_gen_regex+set}" = set; then 6139 echo $ECHO_N "(cached) $ECHO_C" >&6 6140else 6141 ac_check_lib_save_LIBS=$LIBS 6142LIBS="-lgen $LIBS" 6143cat >conftest.$ac_ext <<_ACEOF 6144/* confdefs.h. */ 6145_ACEOF 6146cat confdefs.h >>conftest.$ac_ext 6147cat >>conftest.$ac_ext <<_ACEOF 6148/* end confdefs.h. */ 6149 6150/* Override any gcc2 internal prototype to avoid an error. */ 6151#ifdef __cplusplus 6152extern "C" 6153#endif 6154/* We use char because int might match the return type of a gcc2 6155 builtin and then its argument prototype would still apply. */ 6156char regex (); 6157int 6158main () 6159{ 6160regex (); 6161 ; 6162 return 0; 6163} 6164_ACEOF 6165rm -f conftest.$ac_objext conftest$ac_exeext 6166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6167 (eval $ac_link) 2>conftest.er1 6168 ac_status=$? 6169 grep -v '^ *+' conftest.er1 >conftest.err 6170 rm -f conftest.er1 6171 cat conftest.err >&5 6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6173 (exit $ac_status); } && 6174 { ac_try='test -z "$ac_c_werror_flag" 6175 || test ! -s conftest.err' 6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6177 (eval $ac_try) 2>&5 6178 ac_status=$? 6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6180 (exit $ac_status); }; } && 6181 { ac_try='test -s conftest$ac_exeext' 6182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6183 (eval $ac_try) 2>&5 6184 ac_status=$? 6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6186 (exit $ac_status); }; }; then 6187 ac_cv_lib_gen_regex=yes 6188else 6189 echo "$as_me: failed program was:" >&5 6190sed 's/^/| /' conftest.$ac_ext >&5 6191 6192ac_cv_lib_gen_regex=no 6193fi 6194rm -f conftest.err conftest.$ac_objext \ 6195 conftest$ac_exeext conftest.$ac_ext 6196LIBS=$ac_check_lib_save_LIBS 6197fi 6198echo "$as_me:$LINENO: result: $ac_cv_lib_gen_regex" >&5 6199echo "${ECHO_T}$ac_cv_lib_gen_regex" >&6 6200if test $ac_cv_lib_gen_regex = yes; then 6201 TOOLKIT_LIBS="$TOOLKIT_LIBS -lgen" 6202fi 6203 6204 echo "$as_me:$LINENO: checking for main in -lintl" >&5 6205echo $ECHO_N "checking for main in -lintl... $ECHO_C" >&6 6206if test "${ac_cv_lib_intl_main+set}" = set; then 6207 echo $ECHO_N "(cached) $ECHO_C" >&6 6208else 6209 ac_check_lib_save_LIBS=$LIBS 6210LIBS="-lintl $LIBS" 6211cat >conftest.$ac_ext <<_ACEOF 6212/* confdefs.h. */ 6213_ACEOF 6214cat confdefs.h >>conftest.$ac_ext 6215cat >>conftest.$ac_ext <<_ACEOF 6216/* end confdefs.h. */ 6217 6218 6219int 6220main () 6221{ 6222main (); 6223 ; 6224 return 0; 6225} 6226_ACEOF 6227rm -f conftest.$ac_objext conftest$ac_exeext 6228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6229 (eval $ac_link) 2>conftest.er1 6230 ac_status=$? 6231 grep -v '^ *+' conftest.er1 >conftest.err 6232 rm -f conftest.er1 6233 cat conftest.err >&5 6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6235 (exit $ac_status); } && 6236 { ac_try='test -z "$ac_c_werror_flag" 6237 || test ! -s conftest.err' 6238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6239 (eval $ac_try) 2>&5 6240 ac_status=$? 6241 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6242 (exit $ac_status); }; } && 6243 { ac_try='test -s conftest$ac_exeext' 6244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6245 (eval $ac_try) 2>&5 6246 ac_status=$? 6247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6248 (exit $ac_status); }; }; then 6249 ac_cv_lib_intl_main=yes 6250else 6251 echo "$as_me: failed program was:" >&5 6252sed 's/^/| /' conftest.$ac_ext >&5 6253 6254ac_cv_lib_intl_main=no 6255fi 6256rm -f conftest.err conftest.$ac_objext \ 6257 conftest$ac_exeext conftest.$ac_ext 6258LIBS=$ac_check_lib_save_LIBS 6259fi 6260echo "$as_me:$LINENO: result: $ac_cv_lib_intl_main" >&5 6261echo "${ECHO_T}$ac_cv_lib_intl_main" >&6 6262if test $ac_cv_lib_intl_main = yes; then 6263 TOOLKIT_LIBS="$TOOLKIT_LIBS -lintl" 6264fi 6265 6266 6267fi # !motif 6268fi # with_motif 6269 6270fi # libxaw 6271 6272# if Motif not found, fall back to Xaw 6273if test x$no_motif = xyes 6274then 6275 if test -z "$TOOLKIT_LIBS" 6276 then 6277 6278 echo "$as_me:$LINENO: checking for main in -lXaw3d" >&5 6279echo $ECHO_N "checking for main in -lXaw3d... $ECHO_C" >&6 6280if test "${ac_cv_lib_Xaw3d_main+set}" = set; then 6281 echo $ECHO_N "(cached) $ECHO_C" >&6 6282else 6283 ac_check_lib_save_LIBS=$LIBS 6284LIBS="-lXaw3d -lXt -lXmu -Xext -lX11 $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS $LIBS" 6285cat >conftest.$ac_ext <<_ACEOF 6286/* confdefs.h. */ 6287_ACEOF 6288cat confdefs.h >>conftest.$ac_ext 6289cat >>conftest.$ac_ext <<_ACEOF 6290/* end confdefs.h. */ 6291 6292 6293int 6294main () 6295{ 6296main (); 6297 ; 6298 return 0; 6299} 6300_ACEOF 6301rm -f conftest.$ac_objext conftest$ac_exeext 6302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6303 (eval $ac_link) 2>conftest.er1 6304 ac_status=$? 6305 grep -v '^ *+' conftest.er1 >conftest.err 6306 rm -f conftest.er1 6307 cat conftest.err >&5 6308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6309 (exit $ac_status); } && 6310 { ac_try='test -z "$ac_c_werror_flag" 6311 || test ! -s conftest.err' 6312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6313 (eval $ac_try) 2>&5 6314 ac_status=$? 6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6316 (exit $ac_status); }; } && 6317 { ac_try='test -s conftest$ac_exeext' 6318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6319 (eval $ac_try) 2>&5 6320 ac_status=$? 6321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6322 (exit $ac_status); }; }; then 6323 ac_cv_lib_Xaw3d_main=yes 6324else 6325 echo "$as_me: failed program was:" >&5 6326sed 's/^/| /' conftest.$ac_ext >&5 6327 6328ac_cv_lib_Xaw3d_main=no 6329fi 6330rm -f conftest.err conftest.$ac_objext \ 6331 conftest$ac_exeext conftest.$ac_ext 6332LIBS=$ac_check_lib_save_LIBS 6333fi 6334echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_main" >&5 6335echo "${ECHO_T}$ac_cv_lib_Xaw3d_main" >&6 6336if test $ac_cv_lib_Xaw3d_main = yes; then 6337 6338 TOOLKIT_LIBS="-lXaw3d" 6339 cat >>confdefs.h <<\_ACEOF 6340#define HAVE_LIBXAW 1 6341_ACEOF 6342 6343 6344fi 6345 6346 6347 if test -z "$TOOLKIT_LIBS"; then 6348 6349 echo "$as_me:$LINENO: checking for main in -lXaw" >&5 6350echo $ECHO_N "checking for main in -lXaw... $ECHO_C" >&6 6351if test "${ac_cv_lib_Xaw_main+set}" = set; then 6352 echo $ECHO_N "(cached) $ECHO_C" >&6 6353else 6354 ac_check_lib_save_LIBS=$LIBS 6355LIBS="-lXaw -lXt -lXmu -Xext -lX11 $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS $LIBS" 6356cat >conftest.$ac_ext <<_ACEOF 6357/* confdefs.h. */ 6358_ACEOF 6359cat confdefs.h >>conftest.$ac_ext 6360cat >>conftest.$ac_ext <<_ACEOF 6361/* end confdefs.h. */ 6362 6363 6364int 6365main () 6366{ 6367main (); 6368 ; 6369 return 0; 6370} 6371_ACEOF 6372rm -f conftest.$ac_objext conftest$ac_exeext 6373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6374 (eval $ac_link) 2>conftest.er1 6375 ac_status=$? 6376 grep -v '^ *+' conftest.er1 >conftest.err 6377 rm -f conftest.er1 6378 cat conftest.err >&5 6379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6380 (exit $ac_status); } && 6381 { ac_try='test -z "$ac_c_werror_flag" 6382 || test ! -s conftest.err' 6383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6384 (eval $ac_try) 2>&5 6385 ac_status=$? 6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6387 (exit $ac_status); }; } && 6388 { ac_try='test -s conftest$ac_exeext' 6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6390 (eval $ac_try) 2>&5 6391 ac_status=$? 6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6393 (exit $ac_status); }; }; then 6394 ac_cv_lib_Xaw_main=yes 6395else 6396 echo "$as_me: failed program was:" >&5 6397sed 's/^/| /' conftest.$ac_ext >&5 6398 6399ac_cv_lib_Xaw_main=no 6400fi 6401rm -f conftest.err conftest.$ac_objext \ 6402 conftest$ac_exeext conftest.$ac_ext 6403LIBS=$ac_check_lib_save_LIBS 6404fi 6405echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_main" >&5 6406echo "${ECHO_T}$ac_cv_lib_Xaw_main" >&6 6407if test $ac_cv_lib_Xaw_main = yes; then 6408 6409 TOOLKIT_LIBS="-lXaw" 6410 cat >>confdefs.h <<\_ACEOF 6411#define HAVE_LIBXAW 1 6412_ACEOF 6413 6414 6415fi 6416 6417 6418 fi 6419 fi 6420 if test x$ac_cv_lib_Xaw_main != xyes -a x$ac_cv_lib_Xaw3d_main != xyes \ 6421 || test x$with_Xaw = xno 6422 then 6423 { echo "$as_me:$LINENO: WARNING: Neither Xaw3d" >&5 6424echo "$as_me: WARNING: Neither Xaw3d" >&2;} 6425 fi 6426fi 6427 6428 6429 6430if uname -X 2>/dev/null | grep 3.2v5 >/dev/null 6431then 6432 # this dirty trick is used to force dynamic 6433 # compilation with gcc on sco v5 6434 LIBS="$LIBS /lib/libc.so" 6435fi 6436 6437 ac_config_files="$ac_config_files Makefile icons/Makefile keymaps/Makefile xmodmap/Makefile" 6438cat >confcache <<\_ACEOF 6439# This file is a shell script that caches the results of configure 6440# tests run on this system so they can be shared between configure 6441# scripts and configure runs, see configure's option --config-cache. 6442# It is not useful on other systems. If it contains results you don't 6443# want to keep, you may remove or edit it. 6444# 6445# config.status only pays attention to the cache file if you give it 6446# the --recheck option to rerun configure. 6447# 6448# `ac_cv_env_foo' variables (set or unset) will be overridden when 6449# loading this file, other *unset* `ac_cv_foo' will be assigned the 6450# following values. 6451 6452_ACEOF 6453 6454# The following way of writing the cache mishandles newlines in values, 6455# but we know of no workaround that is simple, portable, and efficient. 6456# So, don't put newlines in cache variables' values. 6457# Ultrix sh set writes to stderr and can't be redirected directly, 6458# and sets the high bit in the cache file unless we assign to the vars. 6459{ 6460 (set) 2>&1 | 6461 case `(ac_space=' '; set | grep ac_space) 2>&1` in 6462 *ac_space=\ *) 6463 # `set' does not quote correctly, so add quotes (double-quote 6464 # substitution turns \\\\ into \\, and sed turns \\ into \). 6465 sed -n \ 6466 "s/'/'\\\\''/g; 6467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 6468 ;; 6469 *) 6470 # `set' quotes correctly as required by POSIX, so do not add quotes. 6471 sed -n \ 6472 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 6473 ;; 6474 esac; 6475} | 6476 sed ' 6477 t clear 6478 : clear 6479 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 6480 t end 6481 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 6482 : end' >>confcache 6483if diff $cache_file confcache >/dev/null 2>&1; then :; else 6484 if test -w $cache_file; then 6485 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 6486 cat confcache >$cache_file 6487 else 6488 echo "not updating unwritable cache $cache_file" 6489 fi 6490fi 6491rm -f confcache 6492 6493test "x$prefix" = xNONE && prefix=$ac_default_prefix 6494# Let make expand exec_prefix. 6495test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 6496 6497# VPATH may cause trouble with some makes, so we remove $(srcdir), 6498# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 6499# trailing colons and then remove the whole line if VPATH becomes empty 6500# (actually we leave an empty line to preserve line numbers). 6501if test "x$srcdir" = x.; then 6502 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 6503s/:*\$(srcdir):*/:/; 6504s/:*\${srcdir}:*/:/; 6505s/:*@srcdir@:*/:/; 6506s/^\([^=]*=[ ]*\):*/\1/; 6507s/:*$//; 6508s/^[^=]*=[ ]*$//; 6509}' 6510fi 6511 6512DEFS=-DHAVE_CONFIG_H 6513 6514ac_libobjs= 6515ac_ltlibobjs= 6516for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 6517 # 1. Remove the extension, and $U if already installed. 6518 ac_i=`echo "$ac_i" | 6519 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 6520 # 2. Add them. 6521 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 6522 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 6523done 6524LIBOBJS=$ac_libobjs 6525 6526LTLIBOBJS=$ac_ltlibobjs 6527 6528 6529if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 6530 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 6531Usually this means the macro was only invoked conditionally." >&5 6532echo "$as_me: error: conditional \"AMDEP\" was never defined. 6533Usually this means the macro was only invoked conditionally." >&2;} 6534 { (exit 1); exit 1; }; } 6535fi 6536if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 6537 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 6538Usually this means the macro was only invoked conditionally." >&5 6539echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 6540Usually this means the macro was only invoked conditionally." >&2;} 6541 { (exit 1); exit 1; }; } 6542fi 6543 6544: ${CONFIG_STATUS=./config.status} 6545ac_clean_files_save=$ac_clean_files 6546ac_clean_files="$ac_clean_files $CONFIG_STATUS" 6547{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 6548echo "$as_me: creating $CONFIG_STATUS" >&6;} 6549cat >$CONFIG_STATUS <<_ACEOF 6550#! $SHELL 6551# Generated by $as_me. 6552# Run this file to recreate the current configuration. 6553# Compiler output produced by configure, useful for debugging 6554# configure, is in config.log if it exists. 6555 6556debug=false 6557ac_cs_recheck=false 6558ac_cs_silent=false 6559SHELL=\${CONFIG_SHELL-$SHELL} 6560_ACEOF 6561 6562cat >>$CONFIG_STATUS <<\_ACEOF 6563## --------------------- ## 6564## M4sh Initialization. ## 6565## --------------------- ## 6566 6567# Be Bourne compatible 6568if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 6569 emulate sh 6570 NULLCMD=: 6571 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 6572 # is contrary to our usage. Disable this feature. 6573 alias -g '${1+"$@"}'='"$@"' 6574elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 6575 set -o posix 6576fi 6577DUALCASE=1; export DUALCASE # for MKS sh 6578 6579# Support unset when possible. 6580if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6581 as_unset=unset 6582else 6583 as_unset=false 6584fi 6585 6586 6587# Work around bugs in pre-3.0 UWIN ksh. 6588$as_unset ENV MAIL MAILPATH 6589PS1='$ ' 6590PS2='> ' 6591PS4='+ ' 6592 6593# NLS nuisances. 6594for as_var in \ 6595 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 6596 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 6597 LC_TELEPHONE LC_TIME 6598do 6599 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 6600 eval $as_var=C; export $as_var 6601 else 6602 $as_unset $as_var 6603 fi 6604done 6605 6606# Required to use basename. 6607if expr a : '\(a\)' >/dev/null 2>&1; then 6608 as_expr=expr 6609else 6610 as_expr=false 6611fi 6612 6613if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 6614 as_basename=basename 6615else 6616 as_basename=false 6617fi 6618 6619 6620# Name of the executable. 6621as_me=`$as_basename "$0" || 6622$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 6623 X"$0" : 'X\(//\)$' \| \ 6624 X"$0" : 'X\(/\)$' \| \ 6625 . : '\(.\)' 2>/dev/null || 6626echo X/"$0" | 6627 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 6628 /^X\/\(\/\/\)$/{ s//\1/; q; } 6629 /^X\/\(\/\).*/{ s//\1/; q; } 6630 s/.*/./; q'` 6631 6632 6633# PATH needs CR, and LINENO needs CR and PATH. 6634# Avoid depending upon Character Ranges. 6635as_cr_letters='abcdefghijklmnopqrstuvwxyz' 6636as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 6637as_cr_Letters=$as_cr_letters$as_cr_LETTERS 6638as_cr_digits='0123456789' 6639as_cr_alnum=$as_cr_Letters$as_cr_digits 6640 6641# The user is always right. 6642if test "${PATH_SEPARATOR+set}" != set; then 6643 echo "#! /bin/sh" >conf$$.sh 6644 echo "exit 0" >>conf$$.sh 6645 chmod +x conf$$.sh 6646 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 6647 PATH_SEPARATOR=';' 6648 else 6649 PATH_SEPARATOR=: 6650 fi 6651 rm -f conf$$.sh 6652fi 6653 6654 6655 as_lineno_1=$LINENO 6656 as_lineno_2=$LINENO 6657 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 6658 test "x$as_lineno_1" != "x$as_lineno_2" && 6659 test "x$as_lineno_3" = "x$as_lineno_2" || { 6660 # Find who we are. Look in the path if we contain no path at all 6661 # relative or not. 6662 case $0 in 6663 *[\\/]* ) as_myself=$0 ;; 6664 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6665for as_dir in $PATH 6666do 6667 IFS=$as_save_IFS 6668 test -z "$as_dir" && as_dir=. 6669 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 6670done 6671 6672 ;; 6673 esac 6674 # We did not find ourselves, most probably we were run as `sh COMMAND' 6675 # in which case we are not to be found in the path. 6676 if test "x$as_myself" = x; then 6677 as_myself=$0 6678 fi 6679 if test ! -f "$as_myself"; then 6680 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 6681echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 6682 { (exit 1); exit 1; }; } 6683 fi 6684 case $CONFIG_SHELL in 6685 '') 6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6687for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 6688do 6689 IFS=$as_save_IFS 6690 test -z "$as_dir" && as_dir=. 6691 for as_base in sh bash ksh sh5; do 6692 case $as_dir in 6693 /*) 6694 if ("$as_dir/$as_base" -c ' 6695 as_lineno_1=$LINENO 6696 as_lineno_2=$LINENO 6697 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 6698 test "x$as_lineno_1" != "x$as_lineno_2" && 6699 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 6700 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 6701 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 6702 CONFIG_SHELL=$as_dir/$as_base 6703 export CONFIG_SHELL 6704 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 6705 fi;; 6706 esac 6707 done 6708done 6709;; 6710 esac 6711 6712 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 6713 # uniformly replaced by the line number. The first 'sed' inserts a 6714 # line-number line before each line; the second 'sed' does the real 6715 # work. The second script uses 'N' to pair each line-number line 6716 # with the numbered line, and appends trailing '-' during 6717 # substitution so that $LINENO is not a special case at line end. 6718 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 6719 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 6720 sed '=' <$as_myself | 6721 sed ' 6722 N 6723 s,$,-, 6724 : loop 6725 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 6726 t loop 6727 s,-$,, 6728 s,^['$as_cr_digits']*\n,, 6729 ' >$as_me.lineno && 6730 chmod +x $as_me.lineno || 6731 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 6732echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 6733 { (exit 1); exit 1; }; } 6734 6735 # Don't try to exec as it changes $[0], causing all sort of problems 6736 # (the dirname of $[0] is not the place where we might find the 6737 # original and so on. Autoconf is especially sensible to this). 6738 . ./$as_me.lineno 6739 # Exit status is that of the last command. 6740 exit 6741} 6742 6743 6744case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 6745 *c*,-n*) ECHO_N= ECHO_C=' 6746' ECHO_T=' ' ;; 6747 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 6748 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 6749esac 6750 6751if expr a : '\(a\)' >/dev/null 2>&1; then 6752 as_expr=expr 6753else 6754 as_expr=false 6755fi 6756 6757rm -f conf$$ conf$$.exe conf$$.file 6758echo >conf$$.file 6759if ln -s conf$$.file conf$$ 2>/dev/null; then 6760 # We could just check for DJGPP; but this test a) works b) is more generic 6761 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 6762 if test -f conf$$.exe; then 6763 # Don't use ln at all; we don't have any links 6764 as_ln_s='cp -p' 6765 else 6766 as_ln_s='ln -s' 6767 fi 6768elif ln conf$$.file conf$$ 2>/dev/null; then 6769 as_ln_s=ln 6770else 6771 as_ln_s='cp -p' 6772fi 6773rm -f conf$$ conf$$.exe conf$$.file 6774 6775if mkdir -p . 2>/dev/null; then 6776 as_mkdir_p=: 6777else 6778 test -d ./-p && rmdir ./-p 6779 as_mkdir_p=false 6780fi 6781 6782as_executable_p="test -f" 6783 6784# Sed expression to map a string onto a valid CPP name. 6785as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 6786 6787# Sed expression to map a string onto a valid variable name. 6788as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 6789 6790 6791# IFS 6792# We need space, tab and new line, in precisely that order. 6793as_nl=' 6794' 6795IFS=" $as_nl" 6796 6797# CDPATH. 6798$as_unset CDPATH 6799 6800exec 6>&1 6801 6802# Open the log real soon, to keep \$[0] and so on meaningful, and to 6803# report actual input values of CONFIG_FILES etc. instead of their 6804# values after options handling. Logging --version etc. is OK. 6805exec 5>>config.log 6806{ 6807 echo 6808 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 6809## Running $as_me. ## 6810_ASBOX 6811} >&5 6812cat >&5 <<_CSEOF 6813 6814This file was extended by $as_me, which was 6815generated by GNU Autoconf 2.59. Invocation command line was 6816 6817 CONFIG_FILES = $CONFIG_FILES 6818 CONFIG_HEADERS = $CONFIG_HEADERS 6819 CONFIG_LINKS = $CONFIG_LINKS 6820 CONFIG_COMMANDS = $CONFIG_COMMANDS 6821 $ $0 $@ 6822 6823_CSEOF 6824echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 6825echo >&5 6826_ACEOF 6827 6828# Files that config.status was made for. 6829if test -n "$ac_config_files"; then 6830 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 6831fi 6832 6833if test -n "$ac_config_headers"; then 6834 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 6835fi 6836 6837if test -n "$ac_config_links"; then 6838 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 6839fi 6840 6841if test -n "$ac_config_commands"; then 6842 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 6843fi 6844 6845cat >>$CONFIG_STATUS <<\_ACEOF 6846 6847ac_cs_usage="\ 6848\`$as_me' instantiates files from templates according to the 6849current configuration. 6850 6851Usage: $0 [OPTIONS] [FILE]... 6852 6853 -h, --help print this help, then exit 6854 -V, --version print version number, then exit 6855 -q, --quiet do not print progress messages 6856 -d, --debug don't remove temporary files 6857 --recheck update $as_me by reconfiguring in the same conditions 6858 --file=FILE[:TEMPLATE] 6859 instantiate the configuration file FILE 6860 --header=FILE[:TEMPLATE] 6861 instantiate the configuration header FILE 6862 6863Configuration files: 6864$config_files 6865 6866Configuration headers: 6867$config_headers 6868 6869Configuration commands: 6870$config_commands 6871 6872Report bugs to <bug-autoconf@gnu.org>." 6873_ACEOF 6874 6875cat >>$CONFIG_STATUS <<_ACEOF 6876ac_cs_version="\\ 6877config.status 6878configured by $0, generated by GNU Autoconf 2.59, 6879 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 6880 6881Copyright (C) 2003 Free Software Foundation, Inc. 6882This config.status script is free software; the Free Software Foundation 6883gives unlimited permission to copy, distribute and modify it." 6884srcdir=$srcdir 6885INSTALL="$INSTALL" 6886_ACEOF 6887 6888cat >>$CONFIG_STATUS <<\_ACEOF 6889# If no file are specified by the user, then we need to provide default 6890# value. By we need to know if files were specified by the user. 6891ac_need_defaults=: 6892while test $# != 0 6893do 6894 case $1 in 6895 --*=*) 6896 ac_option=`expr "x$1" : 'x\([^=]*\)='` 6897 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 6898 ac_shift=: 6899 ;; 6900 -*) 6901 ac_option=$1 6902 ac_optarg=$2 6903 ac_shift=shift 6904 ;; 6905 *) # This is not an option, so the user has probably given explicit 6906 # arguments. 6907 ac_option=$1 6908 ac_need_defaults=false;; 6909 esac 6910 6911 case $ac_option in 6912 # Handling of the options. 6913_ACEOF 6914cat >>$CONFIG_STATUS <<\_ACEOF 6915 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 6916 ac_cs_recheck=: ;; 6917 --version | --vers* | -V ) 6918 echo "$ac_cs_version"; exit 0 ;; 6919 --he | --h) 6920 # Conflict between --help and --header 6921 { { echo "$as_me:$LINENO: error: ambiguous option: $1 6922Try \`$0 --help' for more information." >&5 6923echo "$as_me: error: ambiguous option: $1 6924Try \`$0 --help' for more information." >&2;} 6925 { (exit 1); exit 1; }; };; 6926 --help | --hel | -h ) 6927 echo "$ac_cs_usage"; exit 0 ;; 6928 --debug | --d* | -d ) 6929 debug=: ;; 6930 --file | --fil | --fi | --f ) 6931 $ac_shift 6932 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 6933 ac_need_defaults=false;; 6934 --header | --heade | --head | --hea ) 6935 $ac_shift 6936 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 6937 ac_need_defaults=false;; 6938 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 6939 | -silent | --silent | --silen | --sile | --sil | --si | --s) 6940 ac_cs_silent=: ;; 6941 6942 # This is an error. 6943 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 6944Try \`$0 --help' for more information." >&5 6945echo "$as_me: error: unrecognized option: $1 6946Try \`$0 --help' for more information." >&2;} 6947 { (exit 1); exit 1; }; } ;; 6948 6949 *) ac_config_targets="$ac_config_targets $1" ;; 6950 6951 esac 6952 shift 6953done 6954 6955ac_configure_extra_args= 6956 6957if $ac_cs_silent; then 6958 exec 6>/dev/null 6959 ac_configure_extra_args="$ac_configure_extra_args --silent" 6960fi 6961 6962_ACEOF 6963cat >>$CONFIG_STATUS <<_ACEOF 6964if \$ac_cs_recheck; then 6965 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 6966 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 6967fi 6968 6969_ACEOF 6970 6971cat >>$CONFIG_STATUS <<_ACEOF 6972# 6973# INIT-COMMANDS section. 6974# 6975 6976AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 6977 6978_ACEOF 6979 6980 6981 6982cat >>$CONFIG_STATUS <<\_ACEOF 6983for ac_config_target in $ac_config_targets 6984do 6985 case "$ac_config_target" in 6986 # Handling of arguments. 6987 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 6988 "icons/Makefile" ) CONFIG_FILES="$CONFIG_FILES icons/Makefile" ;; 6989 "keymaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES keymaps/Makefile" ;; 6990 "xmodmap/Makefile" ) CONFIG_FILES="$CONFIG_FILES xmodmap/Makefile" ;; 6991 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 6992 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 6993 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 6994echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 6995 { (exit 1); exit 1; }; };; 6996 esac 6997done 6998 6999# If the user did not use the arguments to specify the items to instantiate, 7000# then the envvar interface is used. Set only those that are not. 7001# We use the long form for the default assignment because of an extremely 7002# bizarre bug on SunOS 4.1.3. 7003if $ac_need_defaults; then 7004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 7005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 7006 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 7007fi 7008 7009# Have a temporary directory for convenience. Make it in the build tree 7010# simply because there is no reason to put it here, and in addition, 7011# creating and moving files from /tmp can sometimes cause problems. 7012# Create a temporary directory, and hook for its removal unless debugging. 7013$debug || 7014{ 7015 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 7016 trap '{ (exit 1); exit 1; }' 1 2 13 15 7017} 7018 7019# Create a (secure) tmp directory for tmp files. 7020 7021{ 7022 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 7023 test -n "$tmp" && test -d "$tmp" 7024} || 7025{ 7026 tmp=./confstat$$-$RANDOM 7027 (umask 077 && mkdir $tmp) 7028} || 7029{ 7030 echo "$me: cannot create a temporary directory in ." >&2 7031 { (exit 1); exit 1; } 7032} 7033 7034_ACEOF 7035 7036cat >>$CONFIG_STATUS <<_ACEOF 7037 7038# 7039# CONFIG_FILES section. 7040# 7041 7042# No need to generate the scripts if there are no CONFIG_FILES. 7043# This happens for instance when ./config.status config.h 7044if test -n "\$CONFIG_FILES"; then 7045 # Protect against being on the right side of a sed subst in config.status. 7046 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 7047 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 7048s,@SHELL@,$SHELL,;t t 7049s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 7050s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 7051s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 7052s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 7053s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 7054s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 7055s,@exec_prefix@,$exec_prefix,;t t 7056s,@prefix@,$prefix,;t t 7057s,@program_transform_name@,$program_transform_name,;t t 7058s,@bindir@,$bindir,;t t 7059s,@sbindir@,$sbindir,;t t 7060s,@libexecdir@,$libexecdir,;t t 7061s,@datadir@,$datadir,;t t 7062s,@sysconfdir@,$sysconfdir,;t t 7063s,@sharedstatedir@,$sharedstatedir,;t t 7064s,@localstatedir@,$localstatedir,;t t 7065s,@libdir@,$libdir,;t t 7066s,@includedir@,$includedir,;t t 7067s,@oldincludedir@,$oldincludedir,;t t 7068s,@infodir@,$infodir,;t t 7069s,@mandir@,$mandir,;t t 7070s,@build_alias@,$build_alias,;t t 7071s,@host_alias@,$host_alias,;t t 7072s,@target_alias@,$target_alias,;t t 7073s,@DEFS@,$DEFS,;t t 7074s,@ECHO_C@,$ECHO_C,;t t 7075s,@ECHO_N@,$ECHO_N,;t t 7076s,@ECHO_T@,$ECHO_T,;t t 7077s,@LIBS@,$LIBS,;t t 7078s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 7079s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 7080s,@INSTALL_DATA@,$INSTALL_DATA,;t t 7081s,@CYGPATH_W@,$CYGPATH_W,;t t 7082s,@PACKAGE@,$PACKAGE,;t t 7083s,@VERSION@,$VERSION,;t t 7084s,@ACLOCAL@,$ACLOCAL,;t t 7085s,@AUTOCONF@,$AUTOCONF,;t t 7086s,@AUTOMAKE@,$AUTOMAKE,;t t 7087s,@AUTOHEADER@,$AUTOHEADER,;t t 7088s,@MAKEINFO@,$MAKEINFO,;t t 7089s,@install_sh@,$install_sh,;t t 7090s,@STRIP@,$STRIP,;t t 7091s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 7092s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 7093s,@mkdir_p@,$mkdir_p,;t t 7094s,@AWK@,$AWK,;t t 7095s,@SET_MAKE@,$SET_MAKE,;t t 7096s,@am__leading_dot@,$am__leading_dot,;t t 7097s,@AMTAR@,$AMTAR,;t t 7098s,@am__tar@,$am__tar,;t t 7099s,@am__untar@,$am__untar,;t t 7100s,@CC@,$CC,;t t 7101s,@CFLAGS@,$CFLAGS,;t t 7102s,@LDFLAGS@,$LDFLAGS,;t t 7103s,@CPPFLAGS@,$CPPFLAGS,;t t 7104s,@ac_ct_CC@,$ac_ct_CC,;t t 7105s,@EXEEXT@,$EXEEXT,;t t 7106s,@OBJEXT@,$OBJEXT,;t t 7107s,@DEPDIR@,$DEPDIR,;t t 7108s,@am__include@,$am__include,;t t 7109s,@am__quote@,$am__quote,;t t 7110s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 7111s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 7112s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 7113s,@CCDEPMODE@,$CCDEPMODE,;t t 7114s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 7115s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 7116s,@LN_S@,$LN_S,;t t 7117s,@M4@,$M4,;t t 7118s,@CPP@,$CPP,;t t 7119s,@X_CFLAGS@,$X_CFLAGS,;t t 7120s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 7121s,@X_LIBS@,$X_LIBS,;t t 7122s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 7123s,@EGREP@,$EGREP,;t t 7124s,@ALLOCA@,$ALLOCA,;t t 7125s,@TOOLKIT_INCLUDE@,$TOOLKIT_INCLUDE,;t t 7126s,@TOOLKIT_LIBS@,$TOOLKIT_LIBS,;t t 7127s,@LIBOBJS@,$LIBOBJS,;t t 7128s,@LTLIBOBJS@,$LTLIBOBJS,;t t 7129CEOF 7130 7131_ACEOF 7132 7133 cat >>$CONFIG_STATUS <<\_ACEOF 7134 # Split the substitutions into bite-sized pieces for seds with 7135 # small command number limits, like on Digital OSF/1 and HP-UX. 7136 ac_max_sed_lines=48 7137 ac_sed_frag=1 # Number of current file. 7138 ac_beg=1 # First line for current file. 7139 ac_end=$ac_max_sed_lines # Line after last line for current file. 7140 ac_more_lines=: 7141 ac_sed_cmds= 7142 while $ac_more_lines; do 7143 if test $ac_beg -gt 1; then 7144 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 7145 else 7146 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 7147 fi 7148 if test ! -s $tmp/subs.frag; then 7149 ac_more_lines=false 7150 else 7151 # The purpose of the label and of the branching condition is to 7152 # speed up the sed processing (if there are no `@' at all, there 7153 # is no need to browse any of the substitutions). 7154 # These are the two extra sed commands mentioned above. 7155 (echo ':t 7156 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 7157 if test -z "$ac_sed_cmds"; then 7158 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 7159 else 7160 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 7161 fi 7162 ac_sed_frag=`expr $ac_sed_frag + 1` 7163 ac_beg=$ac_end 7164 ac_end=`expr $ac_end + $ac_max_sed_lines` 7165 fi 7166 done 7167 if test -z "$ac_sed_cmds"; then 7168 ac_sed_cmds=cat 7169 fi 7170fi # test -n "$CONFIG_FILES" 7171 7172_ACEOF 7173cat >>$CONFIG_STATUS <<\_ACEOF 7174for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 7175 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 7176 case $ac_file in 7177 - | *:- | *:-:* ) # input from stdin 7178 cat >$tmp/stdin 7179 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7180 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7181 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7182 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7183 * ) ac_file_in=$ac_file.in ;; 7184 esac 7185 7186 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 7187 ac_dir=`(dirname "$ac_file") 2>/dev/null || 7188$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7189 X"$ac_file" : 'X\(//\)[^/]' \| \ 7190 X"$ac_file" : 'X\(//\)$' \| \ 7191 X"$ac_file" : 'X\(/\)' \| \ 7192 . : '\(.\)' 2>/dev/null || 7193echo X"$ac_file" | 7194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7195 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7196 /^X\(\/\/\)$/{ s//\1/; q; } 7197 /^X\(\/\).*/{ s//\1/; q; } 7198 s/.*/./; q'` 7199 { if $as_mkdir_p; then 7200 mkdir -p "$ac_dir" 7201 else 7202 as_dir="$ac_dir" 7203 as_dirs= 7204 while test ! -d "$as_dir"; do 7205 as_dirs="$as_dir $as_dirs" 7206 as_dir=`(dirname "$as_dir") 2>/dev/null || 7207$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7208 X"$as_dir" : 'X\(//\)[^/]' \| \ 7209 X"$as_dir" : 'X\(//\)$' \| \ 7210 X"$as_dir" : 'X\(/\)' \| \ 7211 . : '\(.\)' 2>/dev/null || 7212echo X"$as_dir" | 7213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7214 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7215 /^X\(\/\/\)$/{ s//\1/; q; } 7216 /^X\(\/\).*/{ s//\1/; q; } 7217 s/.*/./; q'` 7218 done 7219 test ! -n "$as_dirs" || mkdir $as_dirs 7220 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7221echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7222 { (exit 1); exit 1; }; }; } 7223 7224 ac_builddir=. 7225 7226if test "$ac_dir" != .; then 7227 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 7228 # A "../" for each directory in $ac_dir_suffix. 7229 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 7230else 7231 ac_dir_suffix= ac_top_builddir= 7232fi 7233 7234case $srcdir in 7235 .) # No --srcdir option. We are building in place. 7236 ac_srcdir=. 7237 if test -z "$ac_top_builddir"; then 7238 ac_top_srcdir=. 7239 else 7240 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 7241 fi ;; 7242 [\\/]* | ?:[\\/]* ) # Absolute path. 7243 ac_srcdir=$srcdir$ac_dir_suffix; 7244 ac_top_srcdir=$srcdir ;; 7245 *) # Relative path. 7246 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 7247 ac_top_srcdir=$ac_top_builddir$srcdir ;; 7248esac 7249 7250# Do not use `cd foo && pwd` to compute absolute paths, because 7251# the directories may not exist. 7252case `pwd` in 7253.) ac_abs_builddir="$ac_dir";; 7254*) 7255 case "$ac_dir" in 7256 .) ac_abs_builddir=`pwd`;; 7257 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 7258 *) ac_abs_builddir=`pwd`/"$ac_dir";; 7259 esac;; 7260esac 7261case $ac_abs_builddir in 7262.) ac_abs_top_builddir=${ac_top_builddir}.;; 7263*) 7264 case ${ac_top_builddir}. in 7265 .) ac_abs_top_builddir=$ac_abs_builddir;; 7266 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 7267 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 7268 esac;; 7269esac 7270case $ac_abs_builddir in 7271.) ac_abs_srcdir=$ac_srcdir;; 7272*) 7273 case $ac_srcdir in 7274 .) ac_abs_srcdir=$ac_abs_builddir;; 7275 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 7276 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 7277 esac;; 7278esac 7279case $ac_abs_builddir in 7280.) ac_abs_top_srcdir=$ac_top_srcdir;; 7281*) 7282 case $ac_top_srcdir in 7283 .) ac_abs_top_srcdir=$ac_abs_builddir;; 7284 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 7285 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 7286 esac;; 7287esac 7288 7289 7290 case $INSTALL in 7291 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 7292 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 7293 esac 7294 7295 if test x"$ac_file" != x-; then 7296 { echo "$as_me:$LINENO: creating $ac_file" >&5 7297echo "$as_me: creating $ac_file" >&6;} 7298 rm -f "$ac_file" 7299 fi 7300 # Let's still pretend it is `configure' which instantiates (i.e., don't 7301 # use $as_me), people would be surprised to read: 7302 # /* config.h. Generated by config.status. */ 7303 if test x"$ac_file" = x-; then 7304 configure_input= 7305 else 7306 configure_input="$ac_file. " 7307 fi 7308 configure_input=$configure_input"Generated from `echo $ac_file_in | 7309 sed 's,.*/,,'` by configure." 7310 7311 # First look for the input files in the build tree, otherwise in the 7312 # src tree. 7313 ac_file_inputs=`IFS=: 7314 for f in $ac_file_in; do 7315 case $f in 7316 -) echo $tmp/stdin ;; 7317 [\\/$]*) 7318 # Absolute (can't be DOS-style, as IFS=:) 7319 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7320echo "$as_me: error: cannot find input file: $f" >&2;} 7321 { (exit 1); exit 1; }; } 7322 echo "$f";; 7323 *) # Relative 7324 if test -f "$f"; then 7325 # Build tree 7326 echo "$f" 7327 elif test -f "$srcdir/$f"; then 7328 # Source tree 7329 echo "$srcdir/$f" 7330 else 7331 # /dev/null tree 7332 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7333echo "$as_me: error: cannot find input file: $f" >&2;} 7334 { (exit 1); exit 1; }; } 7335 fi;; 7336 esac 7337 done` || { (exit 1); exit 1; } 7338_ACEOF 7339cat >>$CONFIG_STATUS <<_ACEOF 7340 sed "$ac_vpsub 7341$extrasub 7342_ACEOF 7343cat >>$CONFIG_STATUS <<\_ACEOF 7344:t 7345/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 7346s,@configure_input@,$configure_input,;t t 7347s,@srcdir@,$ac_srcdir,;t t 7348s,@abs_srcdir@,$ac_abs_srcdir,;t t 7349s,@top_srcdir@,$ac_top_srcdir,;t t 7350s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 7351s,@builddir@,$ac_builddir,;t t 7352s,@abs_builddir@,$ac_abs_builddir,;t t 7353s,@top_builddir@,$ac_top_builddir,;t t 7354s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 7355s,@INSTALL@,$ac_INSTALL,;t t 7356" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 7357 rm -f $tmp/stdin 7358 if test x"$ac_file" != x-; then 7359 mv $tmp/out $ac_file 7360 else 7361 cat $tmp/out 7362 rm -f $tmp/out 7363 fi 7364 7365done 7366_ACEOF 7367cat >>$CONFIG_STATUS <<\_ACEOF 7368 7369# 7370# CONFIG_HEADER section. 7371# 7372 7373# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 7374# NAME is the cpp macro being defined and VALUE is the value it is being given. 7375# 7376# ac_d sets the value in "#define NAME VALUE" lines. 7377ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 7378ac_dB='[ ].*$,\1#\2' 7379ac_dC=' ' 7380ac_dD=',;t' 7381# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 7382ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 7383ac_uB='$,\1#\2define\3' 7384ac_uC=' ' 7385ac_uD=',;t' 7386 7387for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 7388 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 7389 case $ac_file in 7390 - | *:- | *:-:* ) # input from stdin 7391 cat >$tmp/stdin 7392 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7393 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7394 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 7395 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 7396 * ) ac_file_in=$ac_file.in ;; 7397 esac 7398 7399 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 7400echo "$as_me: creating $ac_file" >&6;} 7401 7402 # First look for the input files in the build tree, otherwise in the 7403 # src tree. 7404 ac_file_inputs=`IFS=: 7405 for f in $ac_file_in; do 7406 case $f in 7407 -) echo $tmp/stdin ;; 7408 [\\/$]*) 7409 # Absolute (can't be DOS-style, as IFS=:) 7410 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7411echo "$as_me: error: cannot find input file: $f" >&2;} 7412 { (exit 1); exit 1; }; } 7413 # Do quote $f, to prevent DOS paths from being IFS'd. 7414 echo "$f";; 7415 *) # Relative 7416 if test -f "$f"; then 7417 # Build tree 7418 echo "$f" 7419 elif test -f "$srcdir/$f"; then 7420 # Source tree 7421 echo "$srcdir/$f" 7422 else 7423 # /dev/null tree 7424 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 7425echo "$as_me: error: cannot find input file: $f" >&2;} 7426 { (exit 1); exit 1; }; } 7427 fi;; 7428 esac 7429 done` || { (exit 1); exit 1; } 7430 # Remove the trailing spaces. 7431 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 7432 7433_ACEOF 7434 7435# Transform confdefs.h into two sed scripts, `conftest.defines' and 7436# `conftest.undefs', that substitutes the proper values into 7437# config.h.in to produce config.h. The first handles `#define' 7438# templates, and the second `#undef' templates. 7439# And first: Protect against being on the right side of a sed subst in 7440# config.status. Protect against being in an unquoted here document 7441# in config.status. 7442rm -f conftest.defines conftest.undefs 7443# Using a here document instead of a string reduces the quoting nightmare. 7444# Putting comments in sed scripts is not portable. 7445# 7446# `end' is used to avoid that the second main sed command (meant for 7447# 0-ary CPP macros) applies to n-ary macro definitions. 7448# See the Autoconf documentation for `clear'. 7449cat >confdef2sed.sed <<\_ACEOF 7450s/[\\&,]/\\&/g 7451s,[\\$`],\\&,g 7452t clear 7453: clear 7454s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 7455t end 7456s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 7457: end 7458_ACEOF 7459# If some macros were called several times there might be several times 7460# the same #defines, which is useless. Nevertheless, we may not want to 7461# sort them, since we want the *last* AC-DEFINE to be honored. 7462uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 7463sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 7464rm -f confdef2sed.sed 7465 7466# This sed command replaces #undef with comments. This is necessary, for 7467# example, in the case of _POSIX_SOURCE, which is predefined and required 7468# on some systems where configure will not decide to define it. 7469cat >>conftest.undefs <<\_ACEOF 7470s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 7471_ACEOF 7472 7473# Break up conftest.defines because some shells have a limit on the size 7474# of here documents, and old seds have small limits too (100 cmds). 7475echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 7476echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 7477echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 7478echo ' :' >>$CONFIG_STATUS 7479rm -f conftest.tail 7480while grep . conftest.defines >/dev/null 7481do 7482 # Write a limited-size here document to $tmp/defines.sed. 7483 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 7484 # Speed up: don't consider the non `#define' lines. 7485 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 7486 # Work around the forget-to-reset-the-flag bug. 7487 echo 't clr' >>$CONFIG_STATUS 7488 echo ': clr' >>$CONFIG_STATUS 7489 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 7490 echo 'CEOF 7491 sed -f $tmp/defines.sed $tmp/in >$tmp/out 7492 rm -f $tmp/in 7493 mv $tmp/out $tmp/in 7494' >>$CONFIG_STATUS 7495 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 7496 rm -f conftest.defines 7497 mv conftest.tail conftest.defines 7498done 7499rm -f conftest.defines 7500echo ' fi # grep' >>$CONFIG_STATUS 7501echo >>$CONFIG_STATUS 7502 7503# Break up conftest.undefs because some shells have a limit on the size 7504# of here documents, and old seds have small limits too (100 cmds). 7505echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 7506rm -f conftest.tail 7507while grep . conftest.undefs >/dev/null 7508do 7509 # Write a limited-size here document to $tmp/undefs.sed. 7510 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 7511 # Speed up: don't consider the non `#undef' 7512 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 7513 # Work around the forget-to-reset-the-flag bug. 7514 echo 't clr' >>$CONFIG_STATUS 7515 echo ': clr' >>$CONFIG_STATUS 7516 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 7517 echo 'CEOF 7518 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 7519 rm -f $tmp/in 7520 mv $tmp/out $tmp/in 7521' >>$CONFIG_STATUS 7522 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 7523 rm -f conftest.undefs 7524 mv conftest.tail conftest.undefs 7525done 7526rm -f conftest.undefs 7527 7528cat >>$CONFIG_STATUS <<\_ACEOF 7529 # Let's still pretend it is `configure' which instantiates (i.e., don't 7530 # use $as_me), people would be surprised to read: 7531 # /* config.h. Generated by config.status. */ 7532 if test x"$ac_file" = x-; then 7533 echo "/* Generated by configure. */" >$tmp/config.h 7534 else 7535 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 7536 fi 7537 cat $tmp/in >>$tmp/config.h 7538 rm -f $tmp/in 7539 if test x"$ac_file" != x-; then 7540 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 7541 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 7542echo "$as_me: $ac_file is unchanged" >&6;} 7543 else 7544 ac_dir=`(dirname "$ac_file") 2>/dev/null || 7545$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7546 X"$ac_file" : 'X\(//\)[^/]' \| \ 7547 X"$ac_file" : 'X\(//\)$' \| \ 7548 X"$ac_file" : 'X\(/\)' \| \ 7549 . : '\(.\)' 2>/dev/null || 7550echo X"$ac_file" | 7551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7552 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7553 /^X\(\/\/\)$/{ s//\1/; q; } 7554 /^X\(\/\).*/{ s//\1/; q; } 7555 s/.*/./; q'` 7556 { if $as_mkdir_p; then 7557 mkdir -p "$ac_dir" 7558 else 7559 as_dir="$ac_dir" 7560 as_dirs= 7561 while test ! -d "$as_dir"; do 7562 as_dirs="$as_dir $as_dirs" 7563 as_dir=`(dirname "$as_dir") 2>/dev/null || 7564$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7565 X"$as_dir" : 'X\(//\)[^/]' \| \ 7566 X"$as_dir" : 'X\(//\)$' \| \ 7567 X"$as_dir" : 'X\(/\)' \| \ 7568 . : '\(.\)' 2>/dev/null || 7569echo X"$as_dir" | 7570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7571 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7572 /^X\(\/\/\)$/{ s//\1/; q; } 7573 /^X\(\/\).*/{ s//\1/; q; } 7574 s/.*/./; q'` 7575 done 7576 test ! -n "$as_dirs" || mkdir $as_dirs 7577 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7578echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7579 { (exit 1); exit 1; }; }; } 7580 7581 rm -f $ac_file 7582 mv $tmp/config.h $ac_file 7583 fi 7584 else 7585 cat $tmp/config.h 7586 rm -f $tmp/config.h 7587 fi 7588# Compute $ac_file's index in $config_headers. 7589_am_stamp_count=1 7590for _am_header in $config_headers :; do 7591 case $_am_header in 7592 $ac_file | $ac_file:* ) 7593 break ;; 7594 * ) 7595 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 7596 esac 7597done 7598echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 7599$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7600 X$ac_file : 'X\(//\)[^/]' \| \ 7601 X$ac_file : 'X\(//\)$' \| \ 7602 X$ac_file : 'X\(/\)' \| \ 7603 . : '\(.\)' 2>/dev/null || 7604echo X$ac_file | 7605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7606 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7607 /^X\(\/\/\)$/{ s//\1/; q; } 7608 /^X\(\/\).*/{ s//\1/; q; } 7609 s/.*/./; q'`/stamp-h$_am_stamp_count 7610done 7611_ACEOF 7612cat >>$CONFIG_STATUS <<\_ACEOF 7613 7614# 7615# CONFIG_COMMANDS section. 7616# 7617for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 7618 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 7619 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 7620 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 7621$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7622 X"$ac_dest" : 'X\(//\)[^/]' \| \ 7623 X"$ac_dest" : 'X\(//\)$' \| \ 7624 X"$ac_dest" : 'X\(/\)' \| \ 7625 . : '\(.\)' 2>/dev/null || 7626echo X"$ac_dest" | 7627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7628 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7629 /^X\(\/\/\)$/{ s//\1/; q; } 7630 /^X\(\/\).*/{ s//\1/; q; } 7631 s/.*/./; q'` 7632 { if $as_mkdir_p; then 7633 mkdir -p "$ac_dir" 7634 else 7635 as_dir="$ac_dir" 7636 as_dirs= 7637 while test ! -d "$as_dir"; do 7638 as_dirs="$as_dir $as_dirs" 7639 as_dir=`(dirname "$as_dir") 2>/dev/null || 7640$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7641 X"$as_dir" : 'X\(//\)[^/]' \| \ 7642 X"$as_dir" : 'X\(//\)$' \| \ 7643 X"$as_dir" : 'X\(/\)' \| \ 7644 . : '\(.\)' 2>/dev/null || 7645echo X"$as_dir" | 7646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7647 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7648 /^X\(\/\/\)$/{ s//\1/; q; } 7649 /^X\(\/\).*/{ s//\1/; q; } 7650 s/.*/./; q'` 7651 done 7652 test ! -n "$as_dirs" || mkdir $as_dirs 7653 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 7654echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 7655 { (exit 1); exit 1; }; }; } 7656 7657 ac_builddir=. 7658 7659if test "$ac_dir" != .; then 7660 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 7661 # A "../" for each directory in $ac_dir_suffix. 7662 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 7663else 7664 ac_dir_suffix= ac_top_builddir= 7665fi 7666 7667case $srcdir in 7668 .) # No --srcdir option. We are building in place. 7669 ac_srcdir=. 7670 if test -z "$ac_top_builddir"; then 7671 ac_top_srcdir=. 7672 else 7673 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 7674 fi ;; 7675 [\\/]* | ?:[\\/]* ) # Absolute path. 7676 ac_srcdir=$srcdir$ac_dir_suffix; 7677 ac_top_srcdir=$srcdir ;; 7678 *) # Relative path. 7679 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 7680 ac_top_srcdir=$ac_top_builddir$srcdir ;; 7681esac 7682 7683# Do not use `cd foo && pwd` to compute absolute paths, because 7684# the directories may not exist. 7685case `pwd` in 7686.) ac_abs_builddir="$ac_dir";; 7687*) 7688 case "$ac_dir" in 7689 .) ac_abs_builddir=`pwd`;; 7690 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 7691 *) ac_abs_builddir=`pwd`/"$ac_dir";; 7692 esac;; 7693esac 7694case $ac_abs_builddir in 7695.) ac_abs_top_builddir=${ac_top_builddir}.;; 7696*) 7697 case ${ac_top_builddir}. in 7698 .) ac_abs_top_builddir=$ac_abs_builddir;; 7699 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 7700 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 7701 esac;; 7702esac 7703case $ac_abs_builddir in 7704.) ac_abs_srcdir=$ac_srcdir;; 7705*) 7706 case $ac_srcdir in 7707 .) ac_abs_srcdir=$ac_abs_builddir;; 7708 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 7709 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 7710 esac;; 7711esac 7712case $ac_abs_builddir in 7713.) ac_abs_top_srcdir=$ac_top_srcdir;; 7714*) 7715 case $ac_top_srcdir in 7716 .) ac_abs_top_srcdir=$ac_abs_builddir;; 7717 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 7718 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 7719 esac;; 7720esac 7721 7722 7723 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 7724echo "$as_me: executing $ac_dest commands" >&6;} 7725 case $ac_dest in 7726 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 7727 # Strip MF so we end up with the name of the file. 7728 mf=`echo "$mf" | sed -e 's/:.*$//'` 7729 # Check whether this is an Automake generated Makefile or not. 7730 # We used to match only the files named `Makefile.in', but 7731 # some people rename them; so instead we look at the file content. 7732 # Grep'ing the first line is not enough: some people post-process 7733 # each Makefile.in and add a new line on top of each file to say so. 7734 # So let's grep whole file. 7735 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 7736 dirpart=`(dirname "$mf") 2>/dev/null || 7737$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7738 X"$mf" : 'X\(//\)[^/]' \| \ 7739 X"$mf" : 'X\(//\)$' \| \ 7740 X"$mf" : 'X\(/\)' \| \ 7741 . : '\(.\)' 2>/dev/null || 7742echo X"$mf" | 7743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7744 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7745 /^X\(\/\/\)$/{ s//\1/; q; } 7746 /^X\(\/\).*/{ s//\1/; q; } 7747 s/.*/./; q'` 7748 else 7749 continue 7750 fi 7751 # Extract the definition of DEPDIR, am__include, and am__quote 7752 # from the Makefile without running `make'. 7753 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 7754 test -z "$DEPDIR" && continue 7755 am__include=`sed -n 's/^am__include = //p' < "$mf"` 7756 test -z "am__include" && continue 7757 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 7758 # When using ansi2knr, U may be empty or an underscore; expand it 7759 U=`sed -n 's/^U = //p' < "$mf"` 7760 # Find all dependency output files, they are included files with 7761 # $(DEPDIR) in their names. We invoke sed twice because it is the 7762 # simplest approach to changing $(DEPDIR) to its actual value in the 7763 # expansion. 7764 for file in `sed -n " 7765 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 7766 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 7767 # Make sure the directory exists. 7768 test -f "$dirpart/$file" && continue 7769 fdir=`(dirname "$file") 2>/dev/null || 7770$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7771 X"$file" : 'X\(//\)[^/]' \| \ 7772 X"$file" : 'X\(//\)$' \| \ 7773 X"$file" : 'X\(/\)' \| \ 7774 . : '\(.\)' 2>/dev/null || 7775echo X"$file" | 7776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7777 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7778 /^X\(\/\/\)$/{ s//\1/; q; } 7779 /^X\(\/\).*/{ s//\1/; q; } 7780 s/.*/./; q'` 7781 { if $as_mkdir_p; then 7782 mkdir -p $dirpart/$fdir 7783 else 7784 as_dir=$dirpart/$fdir 7785 as_dirs= 7786 while test ! -d "$as_dir"; do 7787 as_dirs="$as_dir $as_dirs" 7788 as_dir=`(dirname "$as_dir") 2>/dev/null || 7789$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 7790 X"$as_dir" : 'X\(//\)[^/]' \| \ 7791 X"$as_dir" : 'X\(//\)$' \| \ 7792 X"$as_dir" : 'X\(/\)' \| \ 7793 . : '\(.\)' 2>/dev/null || 7794echo X"$as_dir" | 7795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 7796 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 7797 /^X\(\/\/\)$/{ s//\1/; q; } 7798 /^X\(\/\).*/{ s//\1/; q; } 7799 s/.*/./; q'` 7800 done 7801 test ! -n "$as_dirs" || mkdir $as_dirs 7802 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 7803echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 7804 { (exit 1); exit 1; }; }; } 7805 7806 # echo "creating $dirpart/$file" 7807 echo '# dummy' > "$dirpart/$file" 7808 done 7809done 7810 ;; 7811 esac 7812done 7813_ACEOF 7814 7815cat >>$CONFIG_STATUS <<\_ACEOF 7816 7817{ (exit 0); exit 0; } 7818_ACEOF 7819chmod +x $CONFIG_STATUS 7820ac_clean_files=$ac_clean_files_save 7821 7822 7823# configure is writing to config.log, and then calls config.status. 7824# config.status does its own redirection, appending to config.log. 7825# Unfortunately, on DOS this fails, as config.log is still kept open 7826# by configure, so config.status won't be able to write to it; its 7827# output is simply discarded. So we exec the FD to /dev/null, 7828# effectively closing config.log, so it can be properly (re)opened and 7829# appended to by config.status. When coming back to configure, we 7830# need to make the FD available again. 7831if test "$no_create" != yes; then 7832 ac_cs_success=: 7833 ac_config_status_args= 7834 test "$silent" = yes && 7835 ac_config_status_args="$ac_config_status_args --quiet" 7836 exec 5>/dev/null 7837 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 7838 exec 5>>config.log 7839 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 7840 # would make configure fail if this is the last instruction. 7841 $ac_cs_success || { (exit 1); exit 1; } 7842fi 7843 7844