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