1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.13 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=${PREFIX} 13# Any additions from configure.in: 14ac_help="$ac_help 15 --with-x use the X Window System" 16ac_help="$ac_help 17 --enable-motif build with the Motif widget set" 18ac_help="$ac_help 19 --enable-athena build with the Athena widget set" 20ac_help="$ac_help 21 --enable-gtk build with the GTK widget set" 22 23# Initialize some variables set by options. 24# The variables have the same names as the options, with 25# dashes changed to underlines. 26build=NONE 27cache_file=./config.cache 28exec_prefix=NONE 29host=NONE 30no_create= 31nonopt=NONE 32no_recursion= 33prefix=NONE 34program_prefix=NONE 35program_suffix=NONE 36program_transform_name=s,x,x, 37silent= 38site= 39srcdir= 40target=NONE 41verbose= 42x_includes=NONE 43x_libraries=NONE 44bindir='${exec_prefix}/bin' 45sbindir='${exec_prefix}/sbin' 46libexecdir='${exec_prefix}/libexec' 47datadir='${prefix}/share' 48sysconfdir='${prefix}/etc' 49sharedstatedir='${prefix}/com' 50localstatedir='${prefix}/var' 51libdir='${exec_prefix}/lib' 52includedir='${prefix}/include' 53oldincludedir='/usr/include' 54infodir='${prefix}/info' 55mandir='${prefix}/man' 56 57# Initialize some other variables. 58subdirs= 59MFLAGS= MAKEFLAGS= 60SHELL=${CONFIG_SHELL-/bin/sh} 61# Maximum number of lines to put in a shell here document. 62ac_max_here_lines=12 63 64ac_prev= 65for ac_option 66do 67 68 # If the previous option needs an argument, assign it. 69 if test -n "$ac_prev"; then 70 eval "$ac_prev=\$ac_option" 71 ac_prev= 72 continue 73 fi 74 75 case "$ac_option" in 76 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 77 *) ac_optarg= ;; 78 esac 79 80 # Accept the important Cygnus configure options, so we can diagnose typos. 81 82 case "$ac_option" in 83 84 -bindir | --bindir | --bindi | --bind | --bin | --bi) 85 ac_prev=bindir ;; 86 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 87 bindir="$ac_optarg" ;; 88 89 -build | --build | --buil | --bui | --bu) 90 ac_prev=build ;; 91 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 92 build="$ac_optarg" ;; 93 94 -cache-file | --cache-file | --cache-fil | --cache-fi \ 95 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 96 ac_prev=cache_file ;; 97 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 98 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 99 cache_file="$ac_optarg" ;; 100 101 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 102 ac_prev=datadir ;; 103 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 104 | --da=*) 105 datadir="$ac_optarg" ;; 106 107 -disable-* | --disable-*) 108 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 109 # Reject names that are not valid shell variable names. 110 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 111 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 112 fi 113 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 114 eval "enable_${ac_feature}=no" ;; 115 116 -enable-* | --enable-*) 117 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 118 # Reject names that are not valid shell variable names. 119 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 121 fi 122 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 123 case "$ac_option" in 124 *=*) ;; 125 *) ac_optarg=yes ;; 126 esac 127 eval "enable_${ac_feature}='$ac_optarg'" ;; 128 129 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 130 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 131 | --exec | --exe | --ex) 132 ac_prev=exec_prefix ;; 133 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 134 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 135 | --exec=* | --exe=* | --ex=*) 136 exec_prefix="$ac_optarg" ;; 137 138 -gas | --gas | --ga | --g) 139 # Obsolete; use --with-gas. 140 with_gas=yes ;; 141 142 -help | --help | --hel | --he) 143 # Omit some internal or obsolete options to make the list less imposing. 144 # This message is too long to be a string in the A/UX 3.1 sh. 145 cat << EOF 146Usage: configure [options] [host] 147Options: [defaults in brackets after descriptions] 148Configuration: 149 --cache-file=FILE cache test results in FILE 150 --help print this message 151 --no-create do not create output files 152 --quiet, --silent do not print \`checking...' messages 153 --version print the version of autoconf that created configure 154Directory and file names: 155 --prefix=PREFIX install architecture-independent files in PREFIX 156 [$ac_default_prefix] 157 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 158 [same as prefix] 159 --bindir=DIR user executables in DIR [EPREFIX/bin] 160 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 161 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 162 --datadir=DIR read-only architecture-independent data in DIR 163 [PREFIX/share] 164 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 165 --sharedstatedir=DIR modifiable architecture-independent data in DIR 166 [PREFIX/com] 167 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 168 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 169 --includedir=DIR C header files in DIR [PREFIX/include] 170 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 171 --infodir=DIR info documentation in DIR [PREFIX/info] 172 --mandir=DIR man documentation in DIR [PREFIX/man] 173 --srcdir=DIR find the sources in DIR [configure dir or ..] 174 --program-prefix=PREFIX prepend PREFIX to installed program names 175 --program-suffix=SUFFIX append SUFFIX to installed program names 176 --program-transform-name=PROGRAM 177 run sed PROGRAM on installed program names 178EOF 179 cat << EOF 180Host type: 181 --build=BUILD configure for building on BUILD [BUILD=HOST] 182 --host=HOST configure for HOST [guessed] 183 --target=TARGET configure for TARGET [TARGET=HOST] 184Features and packages: 185 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 186 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 187 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 188 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 189 --x-includes=DIR X include files are in DIR 190 --x-libraries=DIR X library files are in DIR 191EOF 192 if test -n "$ac_help"; then 193 echo "--enable and --with options recognized:$ac_help" 194 fi 195 exit 0 ;; 196 197 -host | --host | --hos | --ho) 198 ac_prev=host ;; 199 -host=* | --host=* | --hos=* | --ho=*) 200 host="$ac_optarg" ;; 201 202 -includedir | --includedir | --includedi | --included | --include \ 203 | --includ | --inclu | --incl | --inc) 204 ac_prev=includedir ;; 205 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 206 | --includ=* | --inclu=* | --incl=* | --inc=*) 207 includedir="$ac_optarg" ;; 208 209 -infodir | --infodir | --infodi | --infod | --info | --inf) 210 ac_prev=infodir ;; 211 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 212 infodir="$ac_optarg" ;; 213 214 -libdir | --libdir | --libdi | --libd) 215 ac_prev=libdir ;; 216 -libdir=* | --libdir=* | --libdi=* | --libd=*) 217 libdir="$ac_optarg" ;; 218 219 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 220 | --libexe | --libex | --libe) 221 ac_prev=libexecdir ;; 222 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 223 | --libexe=* | --libex=* | --libe=*) 224 libexecdir="$ac_optarg" ;; 225 226 -localstatedir | --localstatedir | --localstatedi | --localstated \ 227 | --localstate | --localstat | --localsta | --localst \ 228 | --locals | --local | --loca | --loc | --lo) 229 ac_prev=localstatedir ;; 230 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 231 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 232 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 233 localstatedir="$ac_optarg" ;; 234 235 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 236 ac_prev=mandir ;; 237 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 238 mandir="$ac_optarg" ;; 239 240 -nfp | --nfp | --nf) 241 # Obsolete; use --without-fp. 242 with_fp=no ;; 243 244 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 245 | --no-cr | --no-c) 246 no_create=yes ;; 247 248 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 249 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 250 no_recursion=yes ;; 251 252 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 253 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 254 | --oldin | --oldi | --old | --ol | --o) 255 ac_prev=oldincludedir ;; 256 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 257 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 258 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 259 oldincludedir="$ac_optarg" ;; 260 261 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 262 ac_prev=prefix ;; 263 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 264 prefix="$ac_optarg" ;; 265 266 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 267 | --program-pre | --program-pr | --program-p) 268 ac_prev=program_prefix ;; 269 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 270 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 271 program_prefix="$ac_optarg" ;; 272 273 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 274 | --program-suf | --program-su | --program-s) 275 ac_prev=program_suffix ;; 276 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 277 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 278 program_suffix="$ac_optarg" ;; 279 280 -program-transform-name | --program-transform-name \ 281 | --program-transform-nam | --program-transform-na \ 282 | --program-transform-n | --program-transform- \ 283 | --program-transform | --program-transfor \ 284 | --program-transfo | --program-transf \ 285 | --program-trans | --program-tran \ 286 | --progr-tra | --program-tr | --program-t) 287 ac_prev=program_transform_name ;; 288 -program-transform-name=* | --program-transform-name=* \ 289 | --program-transform-nam=* | --program-transform-na=* \ 290 | --program-transform-n=* | --program-transform-=* \ 291 | --program-transform=* | --program-transfor=* \ 292 | --program-transfo=* | --program-transf=* \ 293 | --program-trans=* | --program-tran=* \ 294 | --progr-tra=* | --program-tr=* | --program-t=*) 295 program_transform_name="$ac_optarg" ;; 296 297 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 298 | -silent | --silent | --silen | --sile | --sil) 299 silent=yes ;; 300 301 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 302 ac_prev=sbindir ;; 303 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 304 | --sbi=* | --sb=*) 305 sbindir="$ac_optarg" ;; 306 307 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 308 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 309 | --sharedst | --shareds | --shared | --share | --shar \ 310 | --sha | --sh) 311 ac_prev=sharedstatedir ;; 312 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 313 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 314 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 315 | --sha=* | --sh=*) 316 sharedstatedir="$ac_optarg" ;; 317 318 -site | --site | --sit) 319 ac_prev=site ;; 320 -site=* | --site=* | --sit=*) 321 site="$ac_optarg" ;; 322 323 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 324 ac_prev=srcdir ;; 325 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 326 srcdir="$ac_optarg" ;; 327 328 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 329 | --syscon | --sysco | --sysc | --sys | --sy) 330 ac_prev=sysconfdir ;; 331 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 332 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 333 sysconfdir="$ac_optarg" ;; 334 335 -target | --target | --targe | --targ | --tar | --ta | --t) 336 ac_prev=target ;; 337 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 338 target="$ac_optarg" ;; 339 340 -v | -verbose | --verbose | --verbos | --verbo | --verb) 341 verbose=yes ;; 342 343 -version | --version | --versio | --versi | --vers) 344 echo "configure generated by autoconf version 2.13" 345 exit 0 ;; 346 347 -with-* | --with-*) 348 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 349 # Reject names that are not valid shell variable names. 350 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 351 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 352 fi 353 ac_package=`echo $ac_package| sed 's/-/_/g'` 354 case "$ac_option" in 355 *=*) ;; 356 *) ac_optarg=yes ;; 357 esac 358 eval "with_${ac_package}='$ac_optarg'" ;; 359 360 -without-* | --without-*) 361 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 362 # Reject names that are not valid shell variable names. 363 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 365 fi 366 ac_package=`echo $ac_package| sed 's/-/_/g'` 367 eval "with_${ac_package}=no" ;; 368 369 --x) 370 # Obsolete; use --with-x. 371 with_x=yes ;; 372 373 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 374 | --x-incl | --x-inc | --x-in | --x-i) 375 ac_prev=x_includes ;; 376 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 377 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 378 x_includes="$ac_optarg" ;; 379 380 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 381 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 382 ac_prev=x_libraries ;; 383 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 384 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 385 x_libraries="$ac_optarg" ;; 386 387 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 388 ;; 389 390 *) 391 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 392 echo "configure: warning: $ac_option: invalid host type" 1>&2 393 fi 394 if test "x$nonopt" != xNONE; then 395 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 396 fi 397 nonopt="$ac_option" 398 ;; 399 400 esac 401done 402 403if test -n "$ac_prev"; then 404 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 405fi 406 407trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 408 409# File descriptor usage: 410# 0 standard input 411# 1 file creation 412# 2 errors and warnings 413# 3 some systems may open it to /dev/tty 414# 4 used on the Kubota Titan 415# 6 checking for... messages and results 416# 5 compiler messages saved in config.log 417if test "$silent" = yes; then 418 exec 6>/dev/null 419else 420 exec 6>&1 421fi 422exec 5>./config.log 423 424echo "\ 425This file contains any messages produced by compilers while 426running configure, to aid debugging if configure makes a mistake. 427" 1>&5 428 429# Strip out --no-create and --no-recursion so they do not pile up. 430# Also quote any args containing shell metacharacters. 431ac_configure_args= 432for ac_arg 433do 434 case "$ac_arg" in 435 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 436 | --no-cr | --no-c) ;; 437 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 438 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 439 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 440 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 441 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 442 esac 443done 444 445# NLS nuisances. 446# Only set these to C if already set. These must not be set unconditionally 447# because not all systems understand e.g. LANG=C (notably SCO). 448# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 449# Non-C LC_CTYPE values break the ctype check. 450if test "${LANG+set}" = set; then LANG=C; export LANG; fi 451if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 452if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 453if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 454 455# confdefs.h avoids OS command line length limits that DEFS can exceed. 456rm -rf conftest* confdefs.h 457# AIX cpp loses on an empty file, so make sure it contains at least a newline. 458echo > confdefs.h 459 460# A filename unique to this package, relative to the directory that 461# configure is in, which we can look for to find out if srcdir is correct. 462ac_unique_file=Bucket.h 463 464# Find the source files, if location was not specified. 465if test -z "$srcdir"; then 466 ac_srcdir_defaulted=yes 467 # Try the directory containing this script, then its parent. 468 ac_prog=$0 469 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 470 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 471 srcdir=$ac_confdir 472 if test ! -r $srcdir/$ac_unique_file; then 473 srcdir=.. 474 fi 475else 476 ac_srcdir_defaulted=no 477fi 478if test ! -r $srcdir/$ac_unique_file; then 479 if test "$ac_srcdir_defaulted" = yes; then 480 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 481 else 482 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 483 fi 484fi 485srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 486 487# Prefer explicitly selected file to automatically selected ones. 488if test -z "$CONFIG_SITE"; then 489 if test "x$prefix" != xNONE; then 490 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 491 else 492 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 493 fi 494fi 495for ac_site_file in $CONFIG_SITE; do 496 if test -r "$ac_site_file"; then 497 echo "loading site script $ac_site_file" 498 . "$ac_site_file" 499 fi 500done 501 502if test -r "$cache_file"; then 503 echo "loading cache $cache_file" 504 . $cache_file 505else 506 echo "creating cache $cache_file" 507 > $cache_file 508fi 509 510ac_ext=c 511# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 512ac_cpp='$CPP $CPPFLAGS' 513ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 514ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 515cross_compiling=$ac_cv_prog_cc_cross 516 517ac_exeext= 518ac_objext=o 519if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 520 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 521 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 522 ac_n= ac_c=' 523' ac_t=' ' 524 else 525 ac_n=-n ac_c= ac_t= 526 fi 527else 528 ac_n= ac_c='\c' ac_t= 529fi 530 531 532 533 534 535for ac_prog in 'bison -y' byacc 536do 537# Extract the first word of "$ac_prog", so it can be a program name with args. 538set dummy $ac_prog; ac_word=$2 539echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 540echo "configure:541: checking for $ac_word" >&5 541if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then 542 echo $ac_n "(cached) $ac_c" 1>&6 543else 544 if test -n "$YACC"; then 545 ac_cv_prog_YACC="$YACC" # Let the user override the test. 546else 547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 548 ac_dummy="$PATH" 549 for ac_dir in $ac_dummy; do 550 test -z "$ac_dir" && ac_dir=. 551 if test -f $ac_dir/$ac_word; then 552 ac_cv_prog_YACC="$ac_prog" 553 break 554 fi 555 done 556 IFS="$ac_save_ifs" 557fi 558fi 559YACC="$ac_cv_prog_YACC" 560if test -n "$YACC"; then 561 echo "$ac_t""$YACC" 1>&6 562else 563 echo "$ac_t""no" 1>&6 564fi 565 566test -n "$YACC" && break 567done 568test -n "$YACC" || YACC="yacc" 569 570# Extract the first word of "gcc", so it can be a program name with args. 571set dummy gcc; ac_word=$2 572echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 573echo "configure:574: checking for $ac_word" >&5 574if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 575 echo $ac_n "(cached) $ac_c" 1>&6 576else 577 if test -n "$CC"; then 578 ac_cv_prog_CC="$CC" # Let the user override the test. 579else 580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 581 ac_dummy="$PATH" 582 for ac_dir in $ac_dummy; do 583 test -z "$ac_dir" && ac_dir=. 584 if test -f $ac_dir/$ac_word; then 585 ac_cv_prog_CC="gcc" 586 break 587 fi 588 done 589 IFS="$ac_save_ifs" 590fi 591fi 592CC="$ac_cv_prog_CC" 593if test -n "$CC"; then 594 echo "$ac_t""$CC" 1>&6 595else 596 echo "$ac_t""no" 1>&6 597fi 598 599if test -z "$CC"; then 600 # Extract the first word of "cc", so it can be a program name with args. 601set dummy cc; ac_word=$2 602echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 603echo "configure:604: checking for $ac_word" >&5 604if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 605 echo $ac_n "(cached) $ac_c" 1>&6 606else 607 if test -n "$CC"; then 608 ac_cv_prog_CC="$CC" # Let the user override the test. 609else 610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 611 ac_prog_rejected=no 612 ac_dummy="$PATH" 613 for ac_dir in $ac_dummy; do 614 test -z "$ac_dir" && ac_dir=. 615 if test -f $ac_dir/$ac_word; then 616 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 617 ac_prog_rejected=yes 618 continue 619 fi 620 ac_cv_prog_CC="cc" 621 break 622 fi 623 done 624 IFS="$ac_save_ifs" 625if test $ac_prog_rejected = yes; then 626 # We found a bogon in the path, so make sure we never use it. 627 set dummy $ac_cv_prog_CC 628 shift 629 if test $# -gt 0; then 630 # We chose a different compiler from the bogus one. 631 # However, it has the same basename, so the bogon will be chosen 632 # first if we set CC to just the basename; use the full file name. 633 shift 634 set dummy "$ac_dir/$ac_word" "$@" 635 shift 636 ac_cv_prog_CC="$@" 637 fi 638fi 639fi 640fi 641CC="$ac_cv_prog_CC" 642if test -n "$CC"; then 643 echo "$ac_t""$CC" 1>&6 644else 645 echo "$ac_t""no" 1>&6 646fi 647 648 if test -z "$CC"; then 649 case "`uname -s`" in 650 *win32* | *WIN32*) 651 # Extract the first word of "cl", so it can be a program name with args. 652set dummy cl; ac_word=$2 653echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 654echo "configure:655: checking for $ac_word" >&5 655if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 656 echo $ac_n "(cached) $ac_c" 1>&6 657else 658 if test -n "$CC"; then 659 ac_cv_prog_CC="$CC" # Let the user override the test. 660else 661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 662 ac_dummy="$PATH" 663 for ac_dir in $ac_dummy; do 664 test -z "$ac_dir" && ac_dir=. 665 if test -f $ac_dir/$ac_word; then 666 ac_cv_prog_CC="cl" 667 break 668 fi 669 done 670 IFS="$ac_save_ifs" 671fi 672fi 673CC="$ac_cv_prog_CC" 674if test -n "$CC"; then 675 echo "$ac_t""$CC" 1>&6 676else 677 echo "$ac_t""no" 1>&6 678fi 679 ;; 680 esac 681 fi 682 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 683fi 684 685echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 686echo "configure:687: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 687 688ac_ext=c 689# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 690ac_cpp='$CPP $CPPFLAGS' 691ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 692ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 693cross_compiling=$ac_cv_prog_cc_cross 694 695cat > conftest.$ac_ext << EOF 696 697#line 698 "configure" 698#include "confdefs.h" 699 700main(){return(0);} 701EOF 702if { (eval echo configure:703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 703 ac_cv_prog_cc_works=yes 704 # If we can't run a trivial program, we are probably using a cross compiler. 705 if (./conftest; exit) 2>/dev/null; then 706 ac_cv_prog_cc_cross=no 707 else 708 ac_cv_prog_cc_cross=yes 709 fi 710else 711 echo "configure: failed program was:" >&5 712 cat conftest.$ac_ext >&5 713 ac_cv_prog_cc_works=no 714fi 715rm -fr conftest* 716ac_ext=c 717# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 718ac_cpp='$CPP $CPPFLAGS' 719ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 720ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 721cross_compiling=$ac_cv_prog_cc_cross 722 723echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 724if test $ac_cv_prog_cc_works = no; then 725 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 726fi 727echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 728echo "configure:729: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 729echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 730cross_compiling=$ac_cv_prog_cc_cross 731 732echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 733echo "configure:734: checking whether we are using GNU C" >&5 734if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 735 echo $ac_n "(cached) $ac_c" 1>&6 736else 737 cat > conftest.c <<EOF 738#ifdef __GNUC__ 739 yes; 740#endif 741EOF 742if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:743: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 743 ac_cv_prog_gcc=yes 744else 745 ac_cv_prog_gcc=no 746fi 747fi 748 749echo "$ac_t""$ac_cv_prog_gcc" 1>&6 750 751if test $ac_cv_prog_gcc = yes; then 752 GCC=yes 753else 754 GCC= 755fi 756 757ac_test_CFLAGS="${CFLAGS+set}" 758ac_save_CFLAGS="$CFLAGS" 759CFLAGS= 760echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 761echo "configure:762: checking whether ${CC-cc} accepts -g" >&5 762if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 763 echo $ac_n "(cached) $ac_c" 1>&6 764else 765 echo 'void f(){}' > conftest.c 766if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 767 ac_cv_prog_cc_g=yes 768else 769 ac_cv_prog_cc_g=no 770fi 771rm -f conftest* 772 773fi 774 775echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 776if test "$ac_test_CFLAGS" = set; then 777 CFLAGS="$ac_save_CFLAGS" 778elif test $ac_cv_prog_cc_g = yes; then 779 if test "$GCC" = yes; then 780 CFLAGS="-g -O2" 781 else 782 CFLAGS="-g" 783 fi 784else 785 if test "$GCC" = yes; then 786 CFLAGS="-O2" 787 else 788 CFLAGS= 789 fi 790fi 791 792echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 793echo "configure:794: checking how to run the C preprocessor" >&5 794# On Suns, sometimes $CPP names a directory. 795if test -n "$CPP" && test -d "$CPP"; then 796 CPP= 797fi 798if test -z "$CPP"; then 799if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 800 echo $ac_n "(cached) $ac_c" 1>&6 801else 802 # This must be in double quotes, not single quotes, because CPP may get 803 # substituted into the Makefile and "${CC-cc}" will confuse make. 804 CPP="${CC-cc} -E" 805 # On the NeXT, cc -E runs the code through the compiler's parser, 806 # not just through cpp. 807 cat > conftest.$ac_ext <<EOF 808#line 809 "configure" 809#include "confdefs.h" 810#include <assert.h> 811Syntax Error 812EOF 813ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 814{ (eval echo configure:815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 815ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 816if test -z "$ac_err"; then 817 : 818else 819 echo "$ac_err" >&5 820 echo "configure: failed program was:" >&5 821 cat conftest.$ac_ext >&5 822 rm -rf conftest* 823 CPP="${CC-cc} -E -traditional-cpp" 824 cat > conftest.$ac_ext <<EOF 825#line 826 "configure" 826#include "confdefs.h" 827#include <assert.h> 828Syntax Error 829EOF 830ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 831{ (eval echo configure:832: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 832ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 833if test -z "$ac_err"; then 834 : 835else 836 echo "$ac_err" >&5 837 echo "configure: failed program was:" >&5 838 cat conftest.$ac_ext >&5 839 rm -rf conftest* 840 CPP="${CC-cc} -nologo -E" 841 cat > conftest.$ac_ext <<EOF 842#line 843 "configure" 843#include "confdefs.h" 844#include <assert.h> 845Syntax Error 846EOF 847ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 848{ (eval echo configure:849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 849ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 850if test -z "$ac_err"; then 851 : 852else 853 echo "$ac_err" >&5 854 echo "configure: failed program was:" >&5 855 cat conftest.$ac_ext >&5 856 rm -rf conftest* 857 CPP=/lib/cpp 858fi 859rm -f conftest* 860fi 861rm -f conftest* 862fi 863rm -f conftest* 864 ac_cv_prog_CPP="$CPP" 865fi 866 CPP="$ac_cv_prog_CPP" 867else 868 ac_cv_prog_CPP="$CPP" 869fi 870echo "$ac_t""$CPP" 1>&6 871 872# Extract the first word of "flex", so it can be a program name with args. 873set dummy flex; ac_word=$2 874echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 875echo "configure:876: checking for $ac_word" >&5 876if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then 877 echo $ac_n "(cached) $ac_c" 1>&6 878else 879 if test -n "$LEX"; then 880 ac_cv_prog_LEX="$LEX" # Let the user override the test. 881else 882 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 883 ac_dummy="$PATH" 884 for ac_dir in $ac_dummy; do 885 test -z "$ac_dir" && ac_dir=. 886 if test -f $ac_dir/$ac_word; then 887 ac_cv_prog_LEX="flex" 888 break 889 fi 890 done 891 IFS="$ac_save_ifs" 892 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex" 893fi 894fi 895LEX="$ac_cv_prog_LEX" 896if test -n "$LEX"; then 897 echo "$ac_t""$LEX" 1>&6 898else 899 echo "$ac_t""no" 1>&6 900fi 901 902if test -z "$LEXLIB" 903then 904 case "$LEX" in 905 flex*) ac_lib=fl ;; 906 *) ac_lib=l ;; 907 esac 908 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6 909echo "configure:910: checking for yywrap in -l$ac_lib" >&5 910ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'` 911if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 912 echo $ac_n "(cached) $ac_c" 1>&6 913else 914 ac_save_LIBS="$LIBS" 915LIBS="-l$ac_lib $LIBS" 916cat > conftest.$ac_ext <<EOF 917#line 918 "configure" 918#include "confdefs.h" 919/* Override any gcc2 internal prototype to avoid an error. */ 920/* We use char because int might match the return type of a gcc2 921 builtin and then its argument prototype would still apply. */ 922char yywrap(); 923 924int main() { 925yywrap() 926; return 0; } 927EOF 928if { (eval echo configure:929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 929 rm -rf conftest* 930 eval "ac_cv_lib_$ac_lib_var=yes" 931else 932 echo "configure: failed program was:" >&5 933 cat conftest.$ac_ext >&5 934 rm -rf conftest* 935 eval "ac_cv_lib_$ac_lib_var=no" 936fi 937rm -f conftest* 938LIBS="$ac_save_LIBS" 939 940fi 941if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 942 echo "$ac_t""yes" 1>&6 943 LEXLIB="-l$ac_lib" 944else 945 echo "$ac_t""no" 1>&6 946fi 947 948fi 949 950ac_aux_dir= 951for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 952 if test -f $ac_dir/install-sh; then 953 ac_aux_dir=$ac_dir 954 ac_install_sh="$ac_aux_dir/install-sh -c" 955 break 956 elif test -f $ac_dir/install.sh; then 957 ac_aux_dir=$ac_dir 958 ac_install_sh="$ac_aux_dir/install.sh -c" 959 break 960 fi 961done 962if test -z "$ac_aux_dir"; then 963 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 964fi 965ac_config_guess=$ac_aux_dir/config.guess 966ac_config_sub=$ac_aux_dir/config.sub 967ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 968 969# Find a good install program. We prefer a C program (faster), 970# so one script is as good as another. But avoid the broken or 971# incompatible versions: 972# SysV /etc/install, /usr/sbin/install 973# SunOS /usr/etc/install 974# IRIX /sbin/install 975# AIX /bin/install 976# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 977# AFS /usr/afsws/bin/install, which mishandles nonexistent args 978# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 979# ./install, which can be erroneously created by make from ./install.sh. 980echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 981echo "configure:982: checking for a BSD compatible install" >&5 982if test -z "$INSTALL"; then 983if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 984 echo $ac_n "(cached) $ac_c" 1>&6 985else 986 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 987 for ac_dir in $PATH; do 988 # Account for people who put trailing slashes in PATH elements. 989 case "$ac_dir/" in 990 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 991 *) 992 # OSF1 and SCO ODT 3.0 have their own names for install. 993 # Don't use installbsd from OSF since it installs stuff as root 994 # by default. 995 for ac_prog in ginstall scoinst install; do 996 if test -f $ac_dir/$ac_prog; then 997 if test $ac_prog = install && 998 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 999 # AIX install. It has an incompatible calling convention. 1000 : 1001 else 1002 ac_cv_path_install="$ac_dir/$ac_prog -c" 1003 break 2 1004 fi 1005 fi 1006 done 1007 ;; 1008 esac 1009 done 1010 IFS="$ac_save_IFS" 1011 1012fi 1013 if test "${ac_cv_path_install+set}" = set; then 1014 INSTALL="$ac_cv_path_install" 1015 else 1016 # As a last resort, use the slow shell script. We don't cache a 1017 # path for INSTALL within a source directory, because that will 1018 # break other packages using the cache if that directory is 1019 # removed, or if the path is relative. 1020 INSTALL="$ac_install_sh" 1021 fi 1022fi 1023echo "$ac_t""$INSTALL" 1>&6 1024 1025# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1026# It thinks the first close brace ends the variable substitution. 1027test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1028 1029test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1030 1031test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1032 1033echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1034echo "configure:1035: checking whether ln -s works" >&5 1035if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1036 echo $ac_n "(cached) $ac_c" 1>&6 1037else 1038 rm -f conftestdata 1039if ln -s X conftestdata 2>/dev/null 1040then 1041 rm -f conftestdata 1042 ac_cv_prog_LN_S="ln -s" 1043else 1044 ac_cv_prog_LN_S=ln 1045fi 1046fi 1047LN_S="$ac_cv_prog_LN_S" 1048if test "$ac_cv_prog_LN_S" = "ln -s"; then 1049 echo "$ac_t""yes" 1>&6 1050else 1051 echo "$ac_t""no" 1>&6 1052fi 1053 1054echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1055echo "configure:1056: checking whether ${MAKE-make} sets \${MAKE}" >&5 1056set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1057if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1058 echo $ac_n "(cached) $ac_c" 1>&6 1059else 1060 cat > conftestmake <<\EOF 1061all: 1062 @echo 'ac_maketemp="${MAKE}"' 1063EOF 1064# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1065eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 1066if test -n "$ac_maketemp"; then 1067 eval ac_cv_prog_make_${ac_make}_set=yes 1068else 1069 eval ac_cv_prog_make_${ac_make}_set=no 1070fi 1071rm -f conftestmake 1072fi 1073if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1074 echo "$ac_t""yes" 1>&6 1075 SET_MAKE= 1076else 1077 echo "$ac_t""no" 1>&6 1078 SET_MAKE="MAKE=${MAKE-make}" 1079fi 1080 1081# Extract the first word of "ranlib", so it can be a program name with args. 1082set dummy ranlib; ac_word=$2 1083echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1084echo "configure:1085: checking for $ac_word" >&5 1085if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1086 echo $ac_n "(cached) $ac_c" 1>&6 1087else 1088 if test -n "$RANLIB"; then 1089 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1090else 1091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1092 ac_dummy="$PATH" 1093 for ac_dir in $ac_dummy; do 1094 test -z "$ac_dir" && ac_dir=. 1095 if test -f $ac_dir/$ac_word; then 1096 ac_cv_prog_RANLIB="ranlib" 1097 break 1098 fi 1099 done 1100 IFS="$ac_save_ifs" 1101 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1102fi 1103fi 1104RANLIB="$ac_cv_prog_RANLIB" 1105if test -n "$RANLIB"; then 1106 echo "$ac_t""$RANLIB" 1>&6 1107else 1108 echo "$ac_t""no" 1>&6 1109fi 1110 1111for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 1112do 1113# Extract the first word of "$ac_prog", so it can be a program name with args. 1114set dummy $ac_prog; ac_word=$2 1115echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1116echo "configure:1117: checking for $ac_word" >&5 1117if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then 1118 echo $ac_n "(cached) $ac_c" 1>&6 1119else 1120 if test -n "$CXX"; then 1121 ac_cv_prog_CXX="$CXX" # Let the user override the test. 1122else 1123 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1124 ac_dummy="$PATH" 1125 for ac_dir in $ac_dummy; do 1126 test -z "$ac_dir" && ac_dir=. 1127 if test -f $ac_dir/$ac_word; then 1128 ac_cv_prog_CXX="$ac_prog" 1129 break 1130 fi 1131 done 1132 IFS="$ac_save_ifs" 1133fi 1134fi 1135CXX="$ac_cv_prog_CXX" 1136if test -n "$CXX"; then 1137 echo "$ac_t""$CXX" 1>&6 1138else 1139 echo "$ac_t""no" 1>&6 1140fi 1141 1142test -n "$CXX" && break 1143done 1144test -n "$CXX" || CXX="gcc" 1145 1146 1147echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1148echo "configure:1149: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 1149 1150ac_ext=C 1151# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1152ac_cpp='$CXXCPP $CPPFLAGS' 1153ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1154ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1155cross_compiling=$ac_cv_prog_cxx_cross 1156 1157cat > conftest.$ac_ext << EOF 1158 1159#line 1160 "configure" 1160#include "confdefs.h" 1161 1162int main(){return(0);} 1163EOF 1164if { (eval echo configure:1165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1165 ac_cv_prog_cxx_works=yes 1166 # If we can't run a trivial program, we are probably using a cross compiler. 1167 if (./conftest; exit) 2>/dev/null; then 1168 ac_cv_prog_cxx_cross=no 1169 else 1170 ac_cv_prog_cxx_cross=yes 1171 fi 1172else 1173 echo "configure: failed program was:" >&5 1174 cat conftest.$ac_ext >&5 1175 ac_cv_prog_cxx_works=no 1176fi 1177rm -fr conftest* 1178ac_ext=c 1179# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1180ac_cpp='$CPP $CPPFLAGS' 1181ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1182ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1183cross_compiling=$ac_cv_prog_cc_cross 1184 1185echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 1186if test $ac_cv_prog_cxx_works = no; then 1187 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } 1188fi 1189echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1190echo "configure:1191: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 1191echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 1192cross_compiling=$ac_cv_prog_cxx_cross 1193 1194echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 1195echo "configure:1196: checking whether we are using GNU C++" >&5 1196if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then 1197 echo $ac_n "(cached) $ac_c" 1>&6 1198else 1199 cat > conftest.C <<EOF 1200#ifdef __GNUC__ 1201 yes; 1202#endif 1203EOF 1204if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1205 ac_cv_prog_gxx=yes 1206else 1207 ac_cv_prog_gxx=no 1208fi 1209fi 1210 1211echo "$ac_t""$ac_cv_prog_gxx" 1>&6 1212 1213if test $ac_cv_prog_gxx = yes; then 1214 GXX=yes 1215else 1216 GXX= 1217fi 1218 1219ac_test_CXXFLAGS="${CXXFLAGS+set}" 1220ac_save_CXXFLAGS="$CXXFLAGS" 1221CXXFLAGS= 1222echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 1223echo "configure:1224: checking whether ${CXX-g++} accepts -g" >&5 1224if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then 1225 echo $ac_n "(cached) $ac_c" 1>&6 1226else 1227 echo 'void f(){}' > conftest.cc 1228if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then 1229 ac_cv_prog_cxx_g=yes 1230else 1231 ac_cv_prog_cxx_g=no 1232fi 1233rm -f conftest* 1234 1235fi 1236 1237echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 1238if test "$ac_test_CXXFLAGS" = set; then 1239 CXXFLAGS="$ac_save_CXXFLAGS" 1240elif test $ac_cv_prog_cxx_g = yes; then 1241 if test "$GXX" = yes; then 1242 CXXFLAGS="-g -O2" 1243 else 1244 CXXFLAGS="-g" 1245 fi 1246else 1247 if test "$GXX" = yes; then 1248 CXXFLAGS="-O2" 1249 else 1250 CXXFLAGS= 1251 fi 1252fi 1253 1254 1255# If we find X, set shell vars x_includes and x_libraries to the 1256# paths, otherwise set no_x=yes. 1257# Uses ac_ vars as temps to allow command line to override cache and checks. 1258# --without-x overrides everything else, but does not touch the cache. 1259echo $ac_n "checking for X""... $ac_c" 1>&6 1260echo "configure:1261: checking for X" >&5 1261 1262# Check whether --with-x or --without-x was given. 1263if test "${with_x+set}" = set; then 1264 withval="$with_x" 1265 : 1266fi 1267 1268# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 1269if test "x$with_x" = xno; then 1270 # The user explicitly disabled X. 1271 have_x=disabled 1272else 1273 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 1274 # Both variables are already set. 1275 have_x=yes 1276 else 1277if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 1278 echo $ac_n "(cached) $ac_c" 1>&6 1279else 1280 # One or both of the vars are not set, and there is no cached value. 1281ac_x_includes=NO ac_x_libraries=NO 1282rm -fr conftestdir 1283if mkdir conftestdir; then 1284 cd conftestdir 1285 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 1286 cat > Imakefile <<'EOF' 1287acfindx: 1288 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 1289EOF 1290 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 1291 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1292 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 1293 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 1294 for ac_extension in a so sl; do 1295 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 1296 test -f $ac_im_libdir/libX11.$ac_extension; then 1297 ac_im_usrlibdir=$ac_im_libdir; break 1298 fi 1299 done 1300 # Screen out bogus values from the imake configuration. They are 1301 # bogus both because they are the default anyway, and because 1302 # using them would break gcc on systems where it needs fixed includes. 1303 case "$ac_im_incroot" in 1304 /usr/include) ;; 1305 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 1306 esac 1307 case "$ac_im_usrlibdir" in 1308 /usr/lib | /lib) ;; 1309 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 1310 esac 1311 fi 1312 cd .. 1313 rm -fr conftestdir 1314fi 1315 1316if test "$ac_x_includes" = NO; then 1317 # Guess where to find include files, by looking for this one X11 .h file. 1318 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 1319 1320 # First, try using that file with no special directory specified. 1321cat > conftest.$ac_ext <<EOF 1322#line 1323 "configure" 1323#include "confdefs.h" 1324#include <$x_direct_test_include> 1325EOF 1326ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1327{ (eval echo configure:1328: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1328ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1329if test -z "$ac_err"; then 1330 rm -rf conftest* 1331 # We can compile using X headers with no special include directory. 1332ac_x_includes= 1333else 1334 echo "$ac_err" >&5 1335 echo "configure: failed program was:" >&5 1336 cat conftest.$ac_ext >&5 1337 rm -rf conftest* 1338 # Look for the header file in a standard set of common directories. 1339# Check X11 before X11Rn because it is often a symlink to the current release. 1340 for ac_dir in \ 1341 /usr/X11/include \ 1342 /usr/X11R6/include \ 1343 /usr/X11R5/include \ 1344 /usr/X11R4/include \ 1345 \ 1346 /usr/include/X11 \ 1347 /usr/include/X11R6 \ 1348 /usr/include/X11R5 \ 1349 /usr/include/X11R4 \ 1350 \ 1351 /usr/local/X11/include \ 1352 /usr/local/X11R6/include \ 1353 /usr/local/X11R5/include \ 1354 /usr/local/X11R4/include \ 1355 \ 1356 /usr/local/include/X11 \ 1357 /usr/local/include/X11R6 \ 1358 /usr/local/include/X11R5 \ 1359 /usr/local/include/X11R4 \ 1360 \ 1361 /usr/X386/include \ 1362 /usr/x386/include \ 1363 /usr/XFree86/include/X11 \ 1364 \ 1365 /usr/include \ 1366 /usr/local/include \ 1367 /usr/unsupported/include \ 1368 /usr/athena/include \ 1369 /usr/local/x11r5/include \ 1370 /usr/lpp/Xamples/include \ 1371 \ 1372 /usr/openwin/include \ 1373 /usr/openwin/share/include \ 1374 ; \ 1375 do 1376 if test -r "$ac_dir/$x_direct_test_include"; then 1377 ac_x_includes=$ac_dir 1378 break 1379 fi 1380 done 1381fi 1382rm -f conftest* 1383fi # $ac_x_includes = NO 1384 1385if test "$ac_x_libraries" = NO; then 1386 # Check for the libraries. 1387 1388 test -z "$x_direct_test_library" && x_direct_test_library=Xt 1389 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc 1390 1391 # See if we find them without any special options. 1392 # Don't add to $LIBS permanently. 1393 ac_save_LIBS="$LIBS" 1394 LIBS="-l$x_direct_test_library $LIBS" 1395cat > conftest.$ac_ext <<EOF 1396#line 1397 "configure" 1397#include "confdefs.h" 1398 1399int main() { 1400${x_direct_test_function}() 1401; return 0; } 1402EOF 1403if { (eval echo configure:1404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1404 rm -rf conftest* 1405 LIBS="$ac_save_LIBS" 1406# We can link X programs with no special library path. 1407ac_x_libraries= 1408else 1409 echo "configure: failed program was:" >&5 1410 cat conftest.$ac_ext >&5 1411 rm -rf conftest* 1412 LIBS="$ac_save_LIBS" 1413# First see if replacing the include by lib works. 1414# Check X11 before X11Rn because it is often a symlink to the current release. 1415for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ 1416 /usr/X11/lib \ 1417 /usr/X11R6/lib \ 1418 /usr/X11R5/lib \ 1419 /usr/X11R4/lib \ 1420 \ 1421 /usr/lib/X11 \ 1422 /usr/lib/X11R6 \ 1423 /usr/lib/X11R5 \ 1424 /usr/lib/X11R4 \ 1425 \ 1426 /usr/local/X11/lib \ 1427 /usr/local/X11R6/lib \ 1428 /usr/local/X11R5/lib \ 1429 /usr/local/X11R4/lib \ 1430 \ 1431 /usr/local/lib/X11 \ 1432 /usr/local/lib/X11R6 \ 1433 /usr/local/lib/X11R5 \ 1434 /usr/local/lib/X11R4 \ 1435 \ 1436 /usr/X386/lib \ 1437 /usr/x386/lib \ 1438 /usr/XFree86/lib/X11 \ 1439 \ 1440 /usr/lib \ 1441 /usr/local/lib \ 1442 /usr/unsupported/lib \ 1443 /usr/athena/lib \ 1444 /usr/local/x11r5/lib \ 1445 /usr/lpp/Xamples/lib \ 1446 /lib/usr/lib/X11 \ 1447 \ 1448 /usr/openwin/lib \ 1449 /usr/openwin/share/lib \ 1450 ; \ 1451do 1452 for ac_extension in a so sl; do 1453 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 1454 ac_x_libraries=$ac_dir 1455 break 2 1456 fi 1457 done 1458done 1459fi 1460rm -f conftest* 1461fi # $ac_x_libraries = NO 1462 1463if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 1464 # Didn't find X anywhere. Cache the known absence of X. 1465 ac_cv_have_x="have_x=no" 1466else 1467 # Record where we found X for the cache. 1468 ac_cv_have_x="have_x=yes \ 1469 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 1470fi 1471fi 1472 fi 1473 eval "$ac_cv_have_x" 1474fi # $with_x != no 1475 1476if test "$have_x" != yes; then 1477 echo "$ac_t""$have_x" 1>&6 1478 no_x=yes 1479else 1480 # If each of the values was on the command line, it overrides each guess. 1481 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 1482 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 1483 # Update the cache value to reflect the command line values. 1484 ac_cv_have_x="have_x=yes \ 1485 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 1486 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 1487fi 1488 1489if test "$no_x" = yes; then 1490 # Not all programs may use this symbol, but it does not hurt to define it. 1491 cat >> confdefs.h <<\EOF 1492#define X_DISPLAY_MISSING 1 1493EOF 1494 1495 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 1496else 1497 if test -n "$x_includes"; then 1498 X_CFLAGS="$X_CFLAGS -I$x_includes" 1499 fi 1500 1501 # It would also be nice to do this for all -L options, not just this one. 1502 if test -n "$x_libraries"; then 1503 X_LIBS="$X_LIBS -L$x_libraries" 1504 # For Solaris; some versions of Sun CC require a space after -R and 1505 # others require no space. Words are not sufficient . . . . 1506 case "`(uname -sr) 2>/dev/null`" in 1507 "SunOS 5"*) 1508 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 1509echo "configure:1510: checking whether -R must be followed by a space" >&5 1510 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 1511 cat > conftest.$ac_ext <<EOF 1512#line 1513 "configure" 1513#include "confdefs.h" 1514 1515int main() { 1516 1517; return 0; } 1518EOF 1519if { (eval echo configure:1520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1520 rm -rf conftest* 1521 ac_R_nospace=yes 1522else 1523 echo "configure: failed program was:" >&5 1524 cat conftest.$ac_ext >&5 1525 rm -rf conftest* 1526 ac_R_nospace=no 1527fi 1528rm -f conftest* 1529 if test $ac_R_nospace = yes; then 1530 echo "$ac_t""no" 1>&6 1531 X_LIBS="$X_LIBS -R$x_libraries" 1532 else 1533 LIBS="$ac_xsave_LIBS -R $x_libraries" 1534 cat > conftest.$ac_ext <<EOF 1535#line 1536 "configure" 1536#include "confdefs.h" 1537 1538int main() { 1539 1540; return 0; } 1541EOF 1542if { (eval echo configure:1543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1543 rm -rf conftest* 1544 ac_R_space=yes 1545else 1546 echo "configure: failed program was:" >&5 1547 cat conftest.$ac_ext >&5 1548 rm -rf conftest* 1549 ac_R_space=no 1550fi 1551rm -f conftest* 1552 if test $ac_R_space = yes; then 1553 echo "$ac_t""yes" 1>&6 1554 X_LIBS="$X_LIBS -R $x_libraries" 1555 else 1556 echo "$ac_t""neither works" 1>&6 1557 fi 1558 fi 1559 LIBS="$ac_xsave_LIBS" 1560 esac 1561 fi 1562 1563 # Check for system-dependent libraries X programs must link with. 1564 # Do this before checking for the system-independent R6 libraries 1565 # (-lICE), since we may need -lsocket or whatever for X linking. 1566 1567 if test "$ISC" = yes; then 1568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 1569 else 1570 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 1571 # libraries were built with DECnet support. And karl@cs.umb.edu says 1572 # the Alpha needs dnet_stub (dnet does not exist). 1573 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 1574echo "configure:1575: checking for dnet_ntoa in -ldnet" >&5 1575ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 1576if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1577 echo $ac_n "(cached) $ac_c" 1>&6 1578else 1579 ac_save_LIBS="$LIBS" 1580LIBS="-ldnet $LIBS" 1581cat > conftest.$ac_ext <<EOF 1582#line 1583 "configure" 1583#include "confdefs.h" 1584/* Override any gcc2 internal prototype to avoid an error. */ 1585/* We use char because int might match the return type of a gcc2 1586 builtin and then its argument prototype would still apply. */ 1587char dnet_ntoa(); 1588 1589int main() { 1590dnet_ntoa() 1591; return 0; } 1592EOF 1593if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1594 rm -rf conftest* 1595 eval "ac_cv_lib_$ac_lib_var=yes" 1596else 1597 echo "configure: failed program was:" >&5 1598 cat conftest.$ac_ext >&5 1599 rm -rf conftest* 1600 eval "ac_cv_lib_$ac_lib_var=no" 1601fi 1602rm -f conftest* 1603LIBS="$ac_save_LIBS" 1604 1605fi 1606if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1607 echo "$ac_t""yes" 1>&6 1608 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 1609else 1610 echo "$ac_t""no" 1>&6 1611fi 1612 1613 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 1614 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 1615echo "configure:1616: checking for dnet_ntoa in -ldnet_stub" >&5 1616ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 1617if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1618 echo $ac_n "(cached) $ac_c" 1>&6 1619else 1620 ac_save_LIBS="$LIBS" 1621LIBS="-ldnet_stub $LIBS" 1622cat > conftest.$ac_ext <<EOF 1623#line 1624 "configure" 1624#include "confdefs.h" 1625/* Override any gcc2 internal prototype to avoid an error. */ 1626/* We use char because int might match the return type of a gcc2 1627 builtin and then its argument prototype would still apply. */ 1628char dnet_ntoa(); 1629 1630int main() { 1631dnet_ntoa() 1632; return 0; } 1633EOF 1634if { (eval echo configure:1635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1635 rm -rf conftest* 1636 eval "ac_cv_lib_$ac_lib_var=yes" 1637else 1638 echo "configure: failed program was:" >&5 1639 cat conftest.$ac_ext >&5 1640 rm -rf conftest* 1641 eval "ac_cv_lib_$ac_lib_var=no" 1642fi 1643rm -f conftest* 1644LIBS="$ac_save_LIBS" 1645 1646fi 1647if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1648 echo "$ac_t""yes" 1>&6 1649 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 1650else 1651 echo "$ac_t""no" 1>&6 1652fi 1653 1654 fi 1655 1656 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 1657 # to get the SysV transport functions. 1658 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 1659 # needs -lnsl. 1660 # The nsl library prevents programs from opening the X display 1661 # on Irix 5.2, according to dickey@clark.net. 1662 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 1663echo "configure:1664: checking for gethostbyname" >&5 1664if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 1665 echo $ac_n "(cached) $ac_c" 1>&6 1666else 1667 cat > conftest.$ac_ext <<EOF 1668#line 1669 "configure" 1669#include "confdefs.h" 1670/* System header to define __stub macros and hopefully few prototypes, 1671 which can conflict with char gethostbyname(); below. */ 1672#include <assert.h> 1673/* Override any gcc2 internal prototype to avoid an error. */ 1674/* We use char because int might match the return type of a gcc2 1675 builtin and then its argument prototype would still apply. */ 1676char gethostbyname(); 1677 1678int main() { 1679 1680/* The GNU C library defines this for functions which it implements 1681 to always fail with ENOSYS. Some functions are actually named 1682 something starting with __ and the normal name is an alias. */ 1683#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 1684choke me 1685#else 1686gethostbyname(); 1687#endif 1688 1689; return 0; } 1690EOF 1691if { (eval echo configure:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1692 rm -rf conftest* 1693 eval "ac_cv_func_gethostbyname=yes" 1694else 1695 echo "configure: failed program was:" >&5 1696 cat conftest.$ac_ext >&5 1697 rm -rf conftest* 1698 eval "ac_cv_func_gethostbyname=no" 1699fi 1700rm -f conftest* 1701fi 1702 1703if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 1704 echo "$ac_t""yes" 1>&6 1705 : 1706else 1707 echo "$ac_t""no" 1>&6 1708fi 1709 1710 if test $ac_cv_func_gethostbyname = no; then 1711 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 1712echo "configure:1713: checking for gethostbyname in -lnsl" >&5 1713ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 1714if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1715 echo $ac_n "(cached) $ac_c" 1>&6 1716else 1717 ac_save_LIBS="$LIBS" 1718LIBS="-lnsl $LIBS" 1719cat > conftest.$ac_ext <<EOF 1720#line 1721 "configure" 1721#include "confdefs.h" 1722/* Override any gcc2 internal prototype to avoid an error. */ 1723/* We use char because int might match the return type of a gcc2 1724 builtin and then its argument prototype would still apply. */ 1725char gethostbyname(); 1726 1727int main() { 1728gethostbyname() 1729; return 0; } 1730EOF 1731if { (eval echo configure:1732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1732 rm -rf conftest* 1733 eval "ac_cv_lib_$ac_lib_var=yes" 1734else 1735 echo "configure: failed program was:" >&5 1736 cat conftest.$ac_ext >&5 1737 rm -rf conftest* 1738 eval "ac_cv_lib_$ac_lib_var=no" 1739fi 1740rm -f conftest* 1741LIBS="$ac_save_LIBS" 1742 1743fi 1744if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1745 echo "$ac_t""yes" 1>&6 1746 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 1747else 1748 echo "$ac_t""no" 1>&6 1749fi 1750 1751 fi 1752 1753 # lieder@skyler.mavd.honeywell.com says without -lsocket, 1754 # socket/setsockopt and other routines are undefined under SCO ODT 1755 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 1756 # on later versions), says simon@lia.di.epfl.ch: it contains 1757 # gethostby* variants that don't use the nameserver (or something). 1758 # -lsocket must be given before -lnsl if both are needed. 1759 # We assume that if connect needs -lnsl, so does gethostbyname. 1760 echo $ac_n "checking for connect""... $ac_c" 1>&6 1761echo "configure:1762: checking for connect" >&5 1762if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 1763 echo $ac_n "(cached) $ac_c" 1>&6 1764else 1765 cat > conftest.$ac_ext <<EOF 1766#line 1767 "configure" 1767#include "confdefs.h" 1768/* System header to define __stub macros and hopefully few prototypes, 1769 which can conflict with char connect(); below. */ 1770#include <assert.h> 1771/* Override any gcc2 internal prototype to avoid an error. */ 1772/* We use char because int might match the return type of a gcc2 1773 builtin and then its argument prototype would still apply. */ 1774char connect(); 1775 1776int main() { 1777 1778/* The GNU C library defines this for functions which it implements 1779 to always fail with ENOSYS. Some functions are actually named 1780 something starting with __ and the normal name is an alias. */ 1781#if defined (__stub_connect) || defined (__stub___connect) 1782choke me 1783#else 1784connect(); 1785#endif 1786 1787; return 0; } 1788EOF 1789if { (eval echo configure:1790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1790 rm -rf conftest* 1791 eval "ac_cv_func_connect=yes" 1792else 1793 echo "configure: failed program was:" >&5 1794 cat conftest.$ac_ext >&5 1795 rm -rf conftest* 1796 eval "ac_cv_func_connect=no" 1797fi 1798rm -f conftest* 1799fi 1800 1801if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 1802 echo "$ac_t""yes" 1>&6 1803 : 1804else 1805 echo "$ac_t""no" 1>&6 1806fi 1807 1808 if test $ac_cv_func_connect = no; then 1809 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 1810echo "configure:1811: checking for connect in -lsocket" >&5 1811ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 1812if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1813 echo $ac_n "(cached) $ac_c" 1>&6 1814else 1815 ac_save_LIBS="$LIBS" 1816LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 1817cat > conftest.$ac_ext <<EOF 1818#line 1819 "configure" 1819#include "confdefs.h" 1820/* Override any gcc2 internal prototype to avoid an error. */ 1821/* We use char because int might match the return type of a gcc2 1822 builtin and then its argument prototype would still apply. */ 1823char connect(); 1824 1825int main() { 1826connect() 1827; return 0; } 1828EOF 1829if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1830 rm -rf conftest* 1831 eval "ac_cv_lib_$ac_lib_var=yes" 1832else 1833 echo "configure: failed program was:" >&5 1834 cat conftest.$ac_ext >&5 1835 rm -rf conftest* 1836 eval "ac_cv_lib_$ac_lib_var=no" 1837fi 1838rm -f conftest* 1839LIBS="$ac_save_LIBS" 1840 1841fi 1842if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1843 echo "$ac_t""yes" 1>&6 1844 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 1845else 1846 echo "$ac_t""no" 1>&6 1847fi 1848 1849 fi 1850 1851 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 1852 echo $ac_n "checking for remove""... $ac_c" 1>&6 1853echo "configure:1854: checking for remove" >&5 1854if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then 1855 echo $ac_n "(cached) $ac_c" 1>&6 1856else 1857 cat > conftest.$ac_ext <<EOF 1858#line 1859 "configure" 1859#include "confdefs.h" 1860/* System header to define __stub macros and hopefully few prototypes, 1861 which can conflict with char remove(); below. */ 1862#include <assert.h> 1863/* Override any gcc2 internal prototype to avoid an error. */ 1864/* We use char because int might match the return type of a gcc2 1865 builtin and then its argument prototype would still apply. */ 1866char remove(); 1867 1868int main() { 1869 1870/* The GNU C library defines this for functions which it implements 1871 to always fail with ENOSYS. Some functions are actually named 1872 something starting with __ and the normal name is an alias. */ 1873#if defined (__stub_remove) || defined (__stub___remove) 1874choke me 1875#else 1876remove(); 1877#endif 1878 1879; return 0; } 1880EOF 1881if { (eval echo configure:1882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1882 rm -rf conftest* 1883 eval "ac_cv_func_remove=yes" 1884else 1885 echo "configure: failed program was:" >&5 1886 cat conftest.$ac_ext >&5 1887 rm -rf conftest* 1888 eval "ac_cv_func_remove=no" 1889fi 1890rm -f conftest* 1891fi 1892 1893if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 1894 echo "$ac_t""yes" 1>&6 1895 : 1896else 1897 echo "$ac_t""no" 1>&6 1898fi 1899 1900 if test $ac_cv_func_remove = no; then 1901 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 1902echo "configure:1903: checking for remove in -lposix" >&5 1903ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 1904if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1905 echo $ac_n "(cached) $ac_c" 1>&6 1906else 1907 ac_save_LIBS="$LIBS" 1908LIBS="-lposix $LIBS" 1909cat > conftest.$ac_ext <<EOF 1910#line 1911 "configure" 1911#include "confdefs.h" 1912/* Override any gcc2 internal prototype to avoid an error. */ 1913/* We use char because int might match the return type of a gcc2 1914 builtin and then its argument prototype would still apply. */ 1915char remove(); 1916 1917int main() { 1918remove() 1919; return 0; } 1920EOF 1921if { (eval echo configure:1922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1922 rm -rf conftest* 1923 eval "ac_cv_lib_$ac_lib_var=yes" 1924else 1925 echo "configure: failed program was:" >&5 1926 cat conftest.$ac_ext >&5 1927 rm -rf conftest* 1928 eval "ac_cv_lib_$ac_lib_var=no" 1929fi 1930rm -f conftest* 1931LIBS="$ac_save_LIBS" 1932 1933fi 1934if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1935 echo "$ac_t""yes" 1>&6 1936 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 1937else 1938 echo "$ac_t""no" 1>&6 1939fi 1940 1941 fi 1942 1943 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 1944 echo $ac_n "checking for shmat""... $ac_c" 1>&6 1945echo "configure:1946: checking for shmat" >&5 1946if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then 1947 echo $ac_n "(cached) $ac_c" 1>&6 1948else 1949 cat > conftest.$ac_ext <<EOF 1950#line 1951 "configure" 1951#include "confdefs.h" 1952/* System header to define __stub macros and hopefully few prototypes, 1953 which can conflict with char shmat(); below. */ 1954#include <assert.h> 1955/* Override any gcc2 internal prototype to avoid an error. */ 1956/* We use char because int might match the return type of a gcc2 1957 builtin and then its argument prototype would still apply. */ 1958char shmat(); 1959 1960int main() { 1961 1962/* The GNU C library defines this for functions which it implements 1963 to always fail with ENOSYS. Some functions are actually named 1964 something starting with __ and the normal name is an alias. */ 1965#if defined (__stub_shmat) || defined (__stub___shmat) 1966choke me 1967#else 1968shmat(); 1969#endif 1970 1971; return 0; } 1972EOF 1973if { (eval echo configure:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1974 rm -rf conftest* 1975 eval "ac_cv_func_shmat=yes" 1976else 1977 echo "configure: failed program was:" >&5 1978 cat conftest.$ac_ext >&5 1979 rm -rf conftest* 1980 eval "ac_cv_func_shmat=no" 1981fi 1982rm -f conftest* 1983fi 1984 1985if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 1986 echo "$ac_t""yes" 1>&6 1987 : 1988else 1989 echo "$ac_t""no" 1>&6 1990fi 1991 1992 if test $ac_cv_func_shmat = no; then 1993 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 1994echo "configure:1995: checking for shmat in -lipc" >&5 1995ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 1996if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1997 echo $ac_n "(cached) $ac_c" 1>&6 1998else 1999 ac_save_LIBS="$LIBS" 2000LIBS="-lipc $LIBS" 2001cat > conftest.$ac_ext <<EOF 2002#line 2003 "configure" 2003#include "confdefs.h" 2004/* Override any gcc2 internal prototype to avoid an error. */ 2005/* We use char because int might match the return type of a gcc2 2006 builtin and then its argument prototype would still apply. */ 2007char shmat(); 2008 2009int main() { 2010shmat() 2011; return 0; } 2012EOF 2013if { (eval echo configure:2014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2014 rm -rf conftest* 2015 eval "ac_cv_lib_$ac_lib_var=yes" 2016else 2017 echo "configure: failed program was:" >&5 2018 cat conftest.$ac_ext >&5 2019 rm -rf conftest* 2020 eval "ac_cv_lib_$ac_lib_var=no" 2021fi 2022rm -f conftest* 2023LIBS="$ac_save_LIBS" 2024 2025fi 2026if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2027 echo "$ac_t""yes" 1>&6 2028 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 2029else 2030 echo "$ac_t""no" 1>&6 2031fi 2032 2033 fi 2034 fi 2035 2036 # Check for libraries that X11R6 Xt/Xaw programs need. 2037 ac_save_LDFLAGS="$LDFLAGS" 2038 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 2039 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 2040 # check for ICE first), but we must link in the order -lSM -lICE or 2041 # we get undefined symbols. So assume we have SM if we have ICE. 2042 # These have to be linked with before -lX11, unlike the other 2043 # libraries we check for below, so use a different variable. 2044 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 2045 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 2046echo "configure:2047: checking for IceConnectionNumber in -lICE" >&5 2047ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 2048if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2049 echo $ac_n "(cached) $ac_c" 1>&6 2050else 2051 ac_save_LIBS="$LIBS" 2052LIBS="-lICE $X_EXTRA_LIBS $LIBS" 2053cat > conftest.$ac_ext <<EOF 2054#line 2055 "configure" 2055#include "confdefs.h" 2056/* Override any gcc2 internal prototype to avoid an error. */ 2057/* We use char because int might match the return type of a gcc2 2058 builtin and then its argument prototype would still apply. */ 2059char IceConnectionNumber(); 2060 2061int main() { 2062IceConnectionNumber() 2063; return 0; } 2064EOF 2065if { (eval echo configure:2066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2066 rm -rf conftest* 2067 eval "ac_cv_lib_$ac_lib_var=yes" 2068else 2069 echo "configure: failed program was:" >&5 2070 cat conftest.$ac_ext >&5 2071 rm -rf conftest* 2072 eval "ac_cv_lib_$ac_lib_var=no" 2073fi 2074rm -f conftest* 2075LIBS="$ac_save_LIBS" 2076 2077fi 2078if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2079 echo "$ac_t""yes" 1>&6 2080 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 2081else 2082 echo "$ac_t""no" 1>&6 2083fi 2084 2085 LDFLAGS="$ac_save_LDFLAGS" 2086 2087fi 2088 2089echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2090echo "configure:2091: checking for ANSI C header files" >&5 2091if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2092 echo $ac_n "(cached) $ac_c" 1>&6 2093else 2094 cat > conftest.$ac_ext <<EOF 2095#line 2096 "configure" 2096#include "confdefs.h" 2097#include <stdlib.h> 2098#include <stdarg.h> 2099#include <string.h> 2100#include <float.h> 2101EOF 2102ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2103{ (eval echo configure:2104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2104ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2105if test -z "$ac_err"; then 2106 rm -rf conftest* 2107 ac_cv_header_stdc=yes 2108else 2109 echo "$ac_err" >&5 2110 echo "configure: failed program was:" >&5 2111 cat conftest.$ac_ext >&5 2112 rm -rf conftest* 2113 ac_cv_header_stdc=no 2114fi 2115rm -f conftest* 2116 2117if test $ac_cv_header_stdc = yes; then 2118 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2119cat > conftest.$ac_ext <<EOF 2120#line 2121 "configure" 2121#include "confdefs.h" 2122#include <string.h> 2123EOF 2124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2125 egrep "memchr" >/dev/null 2>&1; then 2126 : 2127else 2128 rm -rf conftest* 2129 ac_cv_header_stdc=no 2130fi 2131rm -f conftest* 2132 2133fi 2134 2135if test $ac_cv_header_stdc = yes; then 2136 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2137cat > conftest.$ac_ext <<EOF 2138#line 2139 "configure" 2139#include "confdefs.h" 2140#include <stdlib.h> 2141EOF 2142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2143 egrep "free" >/dev/null 2>&1; then 2144 : 2145else 2146 rm -rf conftest* 2147 ac_cv_header_stdc=no 2148fi 2149rm -f conftest* 2150 2151fi 2152 2153if test $ac_cv_header_stdc = yes; then 2154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2155if test "$cross_compiling" = yes; then 2156 : 2157else 2158 cat > conftest.$ac_ext <<EOF 2159#line 2160 "configure" 2160#include "confdefs.h" 2161#include <ctype.h> 2162#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2163#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2164#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2165int main () { int i; for (i = 0; i < 256; i++) 2166if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2167exit (0); } 2168 2169EOF 2170if { (eval echo configure:2171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2171then 2172 : 2173else 2174 echo "configure: failed program was:" >&5 2175 cat conftest.$ac_ext >&5 2176 rm -fr conftest* 2177 ac_cv_header_stdc=no 2178fi 2179rm -fr conftest* 2180fi 2181 2182fi 2183fi 2184 2185echo "$ac_t""$ac_cv_header_stdc" 1>&6 2186if test $ac_cv_header_stdc = yes; then 2187 cat >> confdefs.h <<\EOF 2188#define STDC_HEADERS 1 2189EOF 2190 2191fi 2192 2193for ac_hdr in unistd.h 2194do 2195ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2196echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2197echo "configure:2198: checking for $ac_hdr" >&5 2198if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2199 echo $ac_n "(cached) $ac_c" 1>&6 2200else 2201 cat > conftest.$ac_ext <<EOF 2202#line 2203 "configure" 2203#include "confdefs.h" 2204#include <$ac_hdr> 2205EOF 2206ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2207{ (eval echo configure:2208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2208ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2209if test -z "$ac_err"; then 2210 rm -rf conftest* 2211 eval "ac_cv_header_$ac_safe=yes" 2212else 2213 echo "$ac_err" >&5 2214 echo "configure: failed program was:" >&5 2215 cat conftest.$ac_ext >&5 2216 rm -rf conftest* 2217 eval "ac_cv_header_$ac_safe=no" 2218fi 2219rm -f conftest* 2220fi 2221if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2222 echo "$ac_t""yes" 1>&6 2223 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2224 cat >> confdefs.h <<EOF 2225#define $ac_tr_hdr 1 2226EOF 2227 2228else 2229 echo "$ac_t""no" 1>&6 2230fi 2231done 2232 2233 2234echo $ac_n "checking for working const""... $ac_c" 1>&6 2235echo "configure:2236: checking for working const" >&5 2236if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2237 echo $ac_n "(cached) $ac_c" 1>&6 2238else 2239 cat > conftest.$ac_ext <<EOF 2240#line 2241 "configure" 2241#include "confdefs.h" 2242 2243int main() { 2244 2245/* Ultrix mips cc rejects this. */ 2246typedef int charset[2]; const charset x; 2247/* SunOS 4.1.1 cc rejects this. */ 2248char const *const *ccp; 2249char **p; 2250/* NEC SVR4.0.2 mips cc rejects this. */ 2251struct point {int x, y;}; 2252static struct point const zero = {0,0}; 2253/* AIX XL C 1.02.0.0 rejects this. 2254 It does not let you subtract one const X* pointer from another in an arm 2255 of an if-expression whose if-part is not a constant expression */ 2256const char *g = "string"; 2257ccp = &g + (g ? g-g : 0); 2258/* HPUX 7.0 cc rejects these. */ 2259++ccp; 2260p = (char**) ccp; 2261ccp = (char const *const *) p; 2262{ /* SCO 3.2v4 cc rejects this. */ 2263 char *t; 2264 char const *s = 0 ? (char *) 0 : (char const *) 0; 2265 2266 *t++ = 0; 2267} 2268{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 2269 int x[] = {25, 17}; 2270 const int *foo = &x[0]; 2271 ++foo; 2272} 2273{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 2274 typedef const int *iptr; 2275 iptr p = 0; 2276 ++p; 2277} 2278{ /* AIX XL C 1.02.0.0 rejects this saying 2279 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 2280 struct s { int j; const int *ap[3]; }; 2281 struct s *b; b->j = 5; 2282} 2283{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 2284 const int foo = 10; 2285} 2286 2287; return 0; } 2288EOF 2289if { (eval echo configure:2290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2290 rm -rf conftest* 2291 ac_cv_c_const=yes 2292else 2293 echo "configure: failed program was:" >&5 2294 cat conftest.$ac_ext >&5 2295 rm -rf conftest* 2296 ac_cv_c_const=no 2297fi 2298rm -f conftest* 2299fi 2300 2301echo "$ac_t""$ac_cv_c_const" 1>&6 2302if test $ac_cv_c_const = no; then 2303 cat >> confdefs.h <<\EOF 2304#define const 2305EOF 2306 2307fi 2308 2309 2310# Check whether --enable-motif or --disable-motif was given. 2311if test "${enable_motif+set}" = set; then 2312 enableval="$enable_motif" 2313 : 2314fi 2315 2316 2317if test "$enable_motif" != "no"; then 2318 saved_cflags="$CFLAGS" 2319 saved_libs="$LIBS" 2320 CFLAGS="$CFLAGS $X_CFLAGS" 2321 LIBS="$LIBS $X_LIBS $X_PRE_LIBS" 2322 echo $ac_n "checking for XmGetPixmap in -lXm""... $ac_c" 1>&6 2323echo "configure:2324: checking for XmGetPixmap in -lXm" >&5 2324ac_lib_var=`echo Xm'_'XmGetPixmap | sed 'y%./+-%__p_%'` 2325if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2326 echo $ac_n "(cached) $ac_c" 1>&6 2327else 2328 ac_save_LIBS="$LIBS" 2329LIBS="-lXm -lXt -lX11 $LIBS" 2330cat > conftest.$ac_ext <<EOF 2331#line 2332 "configure" 2332#include "confdefs.h" 2333/* Override any gcc2 internal prototype to avoid an error. */ 2334/* We use char because int might match the return type of a gcc2 2335 builtin and then its argument prototype would still apply. */ 2336char XmGetPixmap(); 2337 2338int main() { 2339XmGetPixmap() 2340; return 0; } 2341EOF 2342if { (eval echo configure:2343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2343 rm -rf conftest* 2344 eval "ac_cv_lib_$ac_lib_var=yes" 2345else 2346 echo "configure: failed program was:" >&5 2347 cat conftest.$ac_ext >&5 2348 rm -rf conftest* 2349 eval "ac_cv_lib_$ac_lib_var=no" 2350fi 2351rm -f conftest* 2352LIBS="$ac_save_LIBS" 2353 2354fi 2355if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2356 echo "$ac_t""yes" 1>&6 2357 motif=yes 2358else 2359 echo "$ac_t""no" 1>&6 2360fi 2361 2362 2363 if test "X$motif" = X"yes"; then 2364 cat >> confdefs.h <<\EOF 2365#define USE_MOTIF 1 2366EOF 2367 2368 WIDGET_LIBS="$WIDGET_LIBS -lXm" 2369 if test "X$libxp" = X"yes"; then 2370 WIDGET_LIBS="$WIDGET_LIBS -lXp -lXext" 2371 fi 2372 WIDGET_OBJS="$WIDGET_OBJS x11-motif.o" 2373 fi 2374 2375 CFLAGS=$saved_cflags 2376 LIBS=$saved_libs 2377fi 2378 2379# Check whether --enable-athena or --disable-athena was given. 2380if test "${enable_athena+set}" = set; then 2381 enableval="$enable_athena" 2382 : 2383fi 2384 2385 2386if test "$enable_athena" != "no"; then 2387 saved_cflags="$CFLAGS" 2388 saved_libs="$LIBS" 2389 CFLAGS="$CFLAGS $X_CFLAGS" 2390 LIBS="$LIBS $X_LIBS $X_PRE_LIBS" 2391 echo $ac_n "checking for XawInitializeWidgetSet in -lXaw3d""... $ac_c" 1>&6 2392echo "configure:2393: checking for XawInitializeWidgetSet in -lXaw3d" >&5 2393ac_lib_var=`echo Xaw3d'_'XawInitializeWidgetSet | sed 'y%./+-%__p_%'` 2394if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2395 echo $ac_n "(cached) $ac_c" 1>&6 2396else 2397 ac_save_LIBS="$LIBS" 2398LIBS="-lXaw3d -lXmu -lXt -lX11 $LIBS" 2399cat > conftest.$ac_ext <<EOF 2400#line 2401 "configure" 2401#include "confdefs.h" 2402/* Override any gcc2 internal prototype to avoid an error. */ 2403/* We use char because int might match the return type of a gcc2 2404 builtin and then its argument prototype would still apply. */ 2405char XawInitializeWidgetSet(); 2406 2407int main() { 2408XawInitializeWidgetSet() 2409; return 0; } 2410EOF 2411if { (eval echo configure:2412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2412 rm -rf conftest* 2413 eval "ac_cv_lib_$ac_lib_var=yes" 2414else 2415 echo "configure: failed program was:" >&5 2416 cat conftest.$ac_ext >&5 2417 rm -rf conftest* 2418 eval "ac_cv_lib_$ac_lib_var=no" 2419fi 2420rm -f conftest* 2421LIBS="$ac_save_LIBS" 2422 2423fi 2424if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2425 echo "$ac_t""yes" 1>&6 2426 athena=yes athena3d=yes 2427else 2428 echo "$ac_t""no" 1>&6 2429fi 2430 2431 2432 if test "X$athena" != X"yes"; then 2433 echo $ac_n "checking for XawInitializeWidgetSet in -lXaw""... $ac_c" 1>&6 2434echo "configure:2435: checking for XawInitializeWidgetSet in -lXaw" >&5 2435ac_lib_var=`echo Xaw'_'XawInitializeWidgetSet | sed 'y%./+-%__p_%'` 2436if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2437 echo $ac_n "(cached) $ac_c" 1>&6 2438else 2439 ac_save_LIBS="$LIBS" 2440LIBS="-lXaw -lXmu -lXt -lXpm -lX11 $LIBS" 2441cat > conftest.$ac_ext <<EOF 2442#line 2443 "configure" 2443#include "confdefs.h" 2444/* Override any gcc2 internal prototype to avoid an error. */ 2445/* We use char because int might match the return type of a gcc2 2446 builtin and then its argument prototype would still apply. */ 2447char XawInitializeWidgetSet(); 2448 2449int main() { 2450XawInitializeWidgetSet() 2451; return 0; } 2452EOF 2453if { (eval echo configure:2454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2454 rm -rf conftest* 2455 eval "ac_cv_lib_$ac_lib_var=yes" 2456else 2457 echo "configure: failed program was:" >&5 2458 cat conftest.$ac_ext >&5 2459 rm -rf conftest* 2460 eval "ac_cv_lib_$ac_lib_var=no" 2461fi 2462rm -f conftest* 2463LIBS="$ac_save_LIBS" 2464 2465fi 2466if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2467 echo "$ac_t""yes" 1>&6 2468 athena=yes 2469else 2470 echo "$ac_t""no" 1>&6 2471fi 2472 2473 fi 2474 2475 if test "X$athena" = X"yes"; then 2476 cat >> confdefs.h <<\EOF 2477#define USE_ATHENA 1 2478EOF 2479 2480 if test "X$athena3d" = X"yes"; then 2481 xawlib=-lXaw3d 2482 else 2483 xawlib=-lXaw 2484 fi 2485 WIDGET_LIBS="$WIDGET_LIBS $xawlib -lXmu" 2486 WIDGET_OBJS="$WIDGET_OBJS x11-athena.o" 2487 fi 2488 2489 CFLAGS=$saved_cflags 2490 LIBS=$saved_libs 2491fi 2492 2493if test "X$motif" = X"yes" -o "X$athena" = X"yes"; then 2494 WIDGET_LIBS="$WIDGET_LIBS -lXt -lXpm -lX11" 2495 WIDGET_OBJS="$WIDGET_OBJS x11.o" 2496 2497 2498fi 2499 2500# Check whether --enable-gtk or --disable-gtk was given. 2501if test "${enable_gtk+set}" = set; then 2502 enableval="$enable_gtk" 2503 : 2504fi 2505 2506 2507if test "$enable_gtk" != "no"; then 2508 # Extract the first word of "gtk-config", so it can be a program name with args. 2509set dummy gtk-config; ac_word=$2 2510echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2511echo "configure:2512: checking for $ac_word" >&5 2512if eval "test \"`echo '$''{'ac_cv_prog_GTKCONFIG'+set}'`\" = set"; then 2513 echo $ac_n "(cached) $ac_c" 1>&6 2514else 2515 if test -n "$GTKCONFIG"; then 2516 ac_cv_prog_GTKCONFIG="$GTKCONFIG" # Let the user override the test. 2517else 2518 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 2519 ac_dummy="$PATH" 2520 for ac_dir in $ac_dummy; do 2521 test -z "$ac_dir" && ac_dir=. 2522 if test -f $ac_dir/$ac_word; then 2523 ac_cv_prog_GTKCONFIG="yes" 2524 break 2525 fi 2526 done 2527 IFS="$ac_save_ifs" 2528 test -z "$ac_cv_prog_GTKCONFIG" && ac_cv_prog_GTKCONFIG="no" 2529fi 2530fi 2531GTKCONFIG="$ac_cv_prog_GTKCONFIG" 2532if test -n "$GTKCONFIG"; then 2533 echo "$ac_t""$GTKCONFIG" 1>&6 2534else 2535 echo "$ac_t""no" 1>&6 2536fi 2537 2538 2539 if test "X$GTKCONFIG" = X"yes"; then 2540 cat >> confdefs.h <<\EOF 2541#define USE_GTK 1 2542EOF 2543 2544 GTK_CFLAGS="`gtk-config --cflags`" 2545 WIDGET_LIBS="$WIDGET_LIBS `gtk-config --libs`" 2546 WIDGET_OBJS="$WIDGET_OBJS gtk.o" 2547 fi 2548fi 2549 2550 2551trap '' 1 2 15 2552cat > confcache <<\EOF 2553# This file is a shell script that caches the results of configure 2554# tests run on this system so they can be shared between configure 2555# scripts and configure runs. It is not useful on other systems. 2556# If it contains results you don't want to keep, you may remove or edit it. 2557# 2558# By default, configure uses ./config.cache as the cache file, 2559# creating it if it does not exist already. You can give configure 2560# the --cache-file=FILE option to use a different cache file; that is 2561# what configure does when it calls configure scripts in 2562# subdirectories, so they share the cache. 2563# Giving --cache-file=/dev/null disables caching, for debugging configure. 2564# config.status only pays attention to the cache file if you give it the 2565# --recheck option to rerun configure. 2566# 2567EOF 2568# The following way of writing the cache mishandles newlines in values, 2569# but we know of no workaround that is simple, portable, and efficient. 2570# So, don't put newlines in cache variables' values. 2571# Ultrix sh set writes to stderr and can't be redirected directly, 2572# and sets the high bit in the cache file unless we assign to the vars. 2573(set) 2>&1 | 2574 case `(ac_space=' '; set | grep ac_space) 2>&1` in 2575 *ac_space=\ *) 2576 # `set' does not quote correctly, so add quotes (double-quote substitution 2577 # turns \\\\ into \\, and sed turns \\ into \). 2578 sed -n \ 2579 -e "s/'/'\\\\''/g" \ 2580 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 2581 ;; 2582 *) 2583 # `set' quotes correctly as required by POSIX, so do not add quotes. 2584 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 2585 ;; 2586 esac >> confcache 2587if cmp -s $cache_file confcache; then 2588 : 2589else 2590 if test -w $cache_file; then 2591 echo "updating cache $cache_file" 2592 cat confcache > $cache_file 2593 else 2594 echo "not updating unwritable cache $cache_file" 2595 fi 2596fi 2597rm -f confcache 2598 2599trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 2600 2601test "x$prefix" = xNONE && prefix=$ac_default_prefix 2602# Let make expand exec_prefix. 2603test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2604 2605# Any assignment to VPATH causes Sun make to only execute 2606# the first set of double-colon rules, so remove it if not needed. 2607# If there is a colon in the path, we need to keep it. 2608if test "x$srcdir" = x.; then 2609 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 2610fi 2611 2612trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 2613 2614DEFS=-DHAVE_CONFIG_H 2615 2616# Without the "./", some shells look in PATH for config.status. 2617: ${CONFIG_STATUS=./config.status} 2618 2619echo creating $CONFIG_STATUS 2620rm -f $CONFIG_STATUS 2621cat > $CONFIG_STATUS <<EOF 2622#! /bin/sh 2623# Generated automatically by configure. 2624# Run this file to recreate the current configuration. 2625# This directory was configured as follows, 2626# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 2627# 2628# $0 $ac_configure_args 2629# 2630# Compiler output produced by configure, useful for debugging 2631# configure, is in ./config.log if it exists. 2632 2633ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 2634for ac_option 2635do 2636 case "\$ac_option" in 2637 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2638 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 2639 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 2640 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 2641 echo "$CONFIG_STATUS generated by autoconf version 2.13" 2642 exit 0 ;; 2643 -help | --help | --hel | --he | --h) 2644 echo "\$ac_cs_usage"; exit 0 ;; 2645 *) echo "\$ac_cs_usage"; exit 1 ;; 2646 esac 2647done 2648 2649ac_given_srcdir=$srcdir 2650ac_given_INSTALL="$INSTALL" 2651 2652trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 2653EOF 2654cat >> $CONFIG_STATUS <<EOF 2655 2656# Protect against being on the right side of a sed subst in config.status. 2657sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 2658 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 2659$ac_vpsub 2660$extrasub 2661s%@SHELL@%$SHELL%g 2662s%@CFLAGS@%$CFLAGS%g 2663s%@CPPFLAGS@%$CPPFLAGS%g 2664s%@CXXFLAGS@%$CXXFLAGS%g 2665s%@FFLAGS@%$FFLAGS%g 2666s%@DEFS@%$DEFS%g 2667s%@LDFLAGS@%$LDFLAGS%g 2668s%@LIBS@%$LIBS%g 2669s%@exec_prefix@%$exec_prefix%g 2670s%@prefix@%$prefix%g 2671s%@program_transform_name@%$program_transform_name%g 2672s%@bindir@%$bindir%g 2673s%@sbindir@%$sbindir%g 2674s%@libexecdir@%$libexecdir%g 2675s%@datadir@%$datadir%g 2676s%@sysconfdir@%$sysconfdir%g 2677s%@sharedstatedir@%$sharedstatedir%g 2678s%@localstatedir@%$localstatedir%g 2679s%@libdir@%$libdir%g 2680s%@includedir@%$includedir%g 2681s%@oldincludedir@%$oldincludedir%g 2682s%@infodir@%$infodir%g 2683s%@mandir@%$mandir%g 2684s%@YACC@%$YACC%g 2685s%@CC@%$CC%g 2686s%@CPP@%$CPP%g 2687s%@LEX@%$LEX%g 2688s%@LEXLIB@%$LEXLIB%g 2689s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 2690s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 2691s%@INSTALL_DATA@%$INSTALL_DATA%g 2692s%@LN_S@%$LN_S%g 2693s%@SET_MAKE@%$SET_MAKE%g 2694s%@RANLIB@%$RANLIB%g 2695s%@CXX@%$CXX%g 2696s%@X_CFLAGS@%$X_CFLAGS%g 2697s%@X_PRE_LIBS@%$X_PRE_LIBS%g 2698s%@X_LIBS@%$X_LIBS%g 2699s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g 2700s%@WIDGET_LIBS@%$WIDGET_LIBS%g 2701s%@WIDGET_OBJS@%$WIDGET_OBJS%g 2702s%@GTKCONFIG@%$GTKCONFIG%g 2703s%@GTK_CFLAGS@%$GTK_CFLAGS%g 2704 2705CEOF 2706EOF 2707 2708cat >> $CONFIG_STATUS <<\EOF 2709 2710# Split the substitutions into bite-sized pieces for seds with 2711# small command number limits, like on Digital OSF/1 and HP-UX. 2712ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 2713ac_file=1 # Number of current file. 2714ac_beg=1 # First line for current file. 2715ac_end=$ac_max_sed_cmds # Line after last line for current file. 2716ac_more_lines=: 2717ac_sed_cmds="" 2718while $ac_more_lines; do 2719 if test $ac_beg -gt 1; then 2720 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 2721 else 2722 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 2723 fi 2724 if test ! -s conftest.s$ac_file; then 2725 ac_more_lines=false 2726 rm -f conftest.s$ac_file 2727 else 2728 if test -z "$ac_sed_cmds"; then 2729 ac_sed_cmds="sed -f conftest.s$ac_file" 2730 else 2731 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 2732 fi 2733 ac_file=`expr $ac_file + 1` 2734 ac_beg=$ac_end 2735 ac_end=`expr $ac_end + $ac_max_sed_cmds` 2736 fi 2737done 2738if test -z "$ac_sed_cmds"; then 2739 ac_sed_cmds=cat 2740fi 2741EOF 2742 2743cat >> $CONFIG_STATUS <<EOF 2744 2745CONFIG_FILES=\${CONFIG_FILES-"Makefile"} 2746EOF 2747cat >> $CONFIG_STATUS <<\EOF 2748for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 2749 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2750 case "$ac_file" in 2751 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2752 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2753 *) ac_file_in="${ac_file}.in" ;; 2754 esac 2755 2756 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 2757 2758 # Remove last slash and all that follows it. Not all systems have dirname. 2759 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2760 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2761 # The file is in a subdirectory. 2762 test ! -d "$ac_dir" && mkdir "$ac_dir" 2763 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 2764 # A "../" for each directory in $ac_dir_suffix. 2765 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 2766 else 2767 ac_dir_suffix= ac_dots= 2768 fi 2769 2770 case "$ac_given_srcdir" in 2771 .) srcdir=. 2772 if test -z "$ac_dots"; then top_srcdir=. 2773 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 2774 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 2775 *) # Relative path. 2776 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 2777 top_srcdir="$ac_dots$ac_given_srcdir" ;; 2778 esac 2779 2780 case "$ac_given_INSTALL" in 2781 [/$]*) INSTALL="$ac_given_INSTALL" ;; 2782 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 2783 esac 2784 2785 echo creating "$ac_file" 2786 rm -f "$ac_file" 2787 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 2788 case "$ac_file" in 2789 *Makefile*) ac_comsub="1i\\ 2790# $configure_input" ;; 2791 *) ac_comsub= ;; 2792 esac 2793 2794 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2795 sed -e "$ac_comsub 2796s%@configure_input@%$configure_input%g 2797s%@srcdir@%$srcdir%g 2798s%@top_srcdir@%$top_srcdir%g 2799s%@INSTALL@%$INSTALL%g 2800" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 2801fi; done 2802rm -f conftest.s* 2803 2804# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 2805# NAME is the cpp macro being defined and VALUE is the value it is being given. 2806# 2807# ac_d sets the value in "#define NAME VALUE" lines. 2808ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 2809ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 2810ac_dC='\3' 2811ac_dD='%g' 2812# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 2813ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2814ac_uB='\([ ]\)%\1#\2define\3' 2815ac_uC=' ' 2816ac_uD='\4%g' 2817# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 2818ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 2819ac_eB='$%\1#\2define\3' 2820ac_eC=' ' 2821ac_eD='%g' 2822 2823if test "${CONFIG_HEADERS+set}" != set; then 2824EOF 2825cat >> $CONFIG_STATUS <<EOF 2826 CONFIG_HEADERS="config.h" 2827EOF 2828cat >> $CONFIG_STATUS <<\EOF 2829fi 2830for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 2831 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2832 case "$ac_file" in 2833 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 2834 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 2835 *) ac_file_in="${ac_file}.in" ;; 2836 esac 2837 2838 echo creating $ac_file 2839 2840 rm -f conftest.frag conftest.in conftest.out 2841 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 2842 cat $ac_file_inputs > conftest.in 2843 2844EOF 2845 2846# Transform confdefs.h into a sed script conftest.vals that substitutes 2847# the proper values into config.h.in to produce config.h. And first: 2848# Protect against being on the right side of a sed subst in config.status. 2849# Protect against being in an unquoted here document in config.status. 2850rm -f conftest.vals 2851cat > conftest.hdr <<\EOF 2852s/[\\&%]/\\&/g 2853s%[\\$`]%\\&%g 2854s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 2855s%ac_d%ac_u%gp 2856s%ac_u%ac_e%gp 2857EOF 2858sed -n -f conftest.hdr confdefs.h > conftest.vals 2859rm -f conftest.hdr 2860 2861# This sed command replaces #undef with comments. This is necessary, for 2862# example, in the case of _POSIX_SOURCE, which is predefined and required 2863# on some systems where configure will not decide to define it. 2864cat >> conftest.vals <<\EOF 2865s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 2866EOF 2867 2868# Break up conftest.vals because some shells have a limit on 2869# the size of here documents, and old seds have small limits too. 2870 2871rm -f conftest.tail 2872while : 2873do 2874 ac_lines=`grep -c . conftest.vals` 2875 # grep -c gives empty output for an empty file on some AIX systems. 2876 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 2877 # Write a limited-size here document to conftest.frag. 2878 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 2879 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 2880 echo 'CEOF 2881 sed -f conftest.frag conftest.in > conftest.out 2882 rm -f conftest.in 2883 mv conftest.out conftest.in 2884' >> $CONFIG_STATUS 2885 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 2886 rm -f conftest.vals 2887 mv conftest.tail conftest.vals 2888done 2889rm -f conftest.vals 2890 2891cat >> $CONFIG_STATUS <<\EOF 2892 rm -f conftest.frag conftest.h 2893 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 2894 cat conftest.in >> conftest.h 2895 rm -f conftest.in 2896 if cmp -s $ac_file conftest.h 2>/dev/null; then 2897 echo "$ac_file is unchanged" 2898 rm -f conftest.h 2899 else 2900 # Remove last slash and all that follows it. Not all systems have dirname. 2901 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 2902 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 2903 # The file is in a subdirectory. 2904 test ! -d "$ac_dir" && mkdir "$ac_dir" 2905 fi 2906 rm -f $ac_file 2907 mv conftest.h $ac_file 2908 fi 2909fi; done 2910 2911EOF 2912cat >> $CONFIG_STATUS <<EOF 2913 2914EOF 2915cat >> $CONFIG_STATUS <<\EOF 2916 2917exit 0 2918EOF 2919chmod +x $CONFIG_STATUS 2920rm -fr confdefs* $ac_clean_files 2921test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 2922 2923