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