1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.2 5# Copyright (C) 1992, 1993, 1994 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: 14 15# Initialize some variables set by options. 16# The variables have the same names as the options, with 17# dashes changed to underlines. 18build=NONE 19cache_file=./config.cache 20exec_prefix=NONE 21host=NONE 22no_create= 23nonopt=NONE 24no_recursion= 25prefix=NONE 26program_prefix=NONE 27program_suffix=NONE 28program_transform_name=s,x,x, 29silent= 30site= 31srcdir= 32target=NONE 33verbose= 34x_includes=NONE 35x_libraries=NONE 36 37# Initialize some other variables. 38subdirs= 39 40ac_prev= 41for ac_option 42do 43 44 # If the previous option needs an argument, assign it. 45 if test -n "$ac_prev"; then 46 eval "$ac_prev=\$ac_option" 47 ac_prev= 48 continue 49 fi 50 51 case "$ac_option" in 52 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 53 *) ac_optarg= ;; 54 esac 55 56 # Accept the important Cygnus configure options, so we can diagnose typos. 57 58 case "$ac_option" in 59 60 -build | --build | --buil | --bui | --bu | --b) 61 ac_prev=build ;; 62 -build=* | --build=* | --buil=* | --bui=* | --bu=* | --b=*) 63 build="$ac_optarg" ;; 64 65 -cache-file | --cache-file | --cache-fil | --cache-fi \ 66 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 67 ac_prev=cache_file ;; 68 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 69 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 70 cache_file="$ac_optarg" ;; 71 72 -disable-* | --disable-*) 73 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 74 # Reject names that are not valid shell variable names. 75 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 76 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 77 fi 78 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 79 eval "enable_${ac_feature}=no" ;; 80 81 -enable-* | --enable-*) 82 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 83 # Reject names that are not valid shell variable names. 84 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 85 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 86 fi 87 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 88 case "$ac_option" in 89 *=*) ;; 90 *) ac_optarg=yes ;; 91 esac 92 eval "enable_${ac_feature}='$ac_optarg'" ;; 93 94 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 95 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 96 | --exec | --exe | --ex) 97 ac_prev=exec_prefix ;; 98 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 99 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 100 | --exec=* | --exe=* | --ex=*) 101 exec_prefix="$ac_optarg" ;; 102 103 -gas | --gas | --ga | --g) 104 # Obsolete; use --with-gas. 105 with_gas=yes ;; 106 107 -help | --help | --hel | --he) 108 # Omit some internal or obsolete options to make the list less imposing. 109 # This message is too long to be a string in the A/UX 3.1 sh. 110 cat << EOF 111Usage: configure [options] [host] 112Options: [defaults in brackets after descriptions] 113Configuration: 114 --cache-file=FILE cache test results in FILE 115 --help print this message 116 --no-create do not create output files 117 --quiet, --silent do not print \`checking...' messages 118 --version print the version of autoconf that created configure 119Directory and file names: 120 --prefix=PREFIX install architecture-independent files in PREFIX 121 [$ac_default_prefix] 122 --exec-prefix=PREFIX install architecture-dependent files in PREFIX 123 [same as prefix] 124 --srcdir=DIR find the sources in DIR [configure dir or ..] 125 --program-prefix=PREFIX prepend PREFIX to installed program names 126 --program-suffix=SUFFIX append SUFFIX to installed program names 127 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 128Host type: 129 --build=BUILD configure for building on BUILD [BUILD=HOST] 130 --host=HOST configure for HOST [guessed] 131 --target=TARGET configure for TARGET [TARGET=HOST] 132Features and packages: 133 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 134 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 135 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 136 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 137 --x-includes=DIR X include files are in DIR 138 --x-libraries=DIR X library files are in DIR 139--enable and --with options recognized:$ac_help 140EOF 141 exit 0 ;; 142 143 -host | --host | --hos | --ho) 144 ac_prev=host ;; 145 -host=* | --host=* | --hos=* | --ho=*) 146 host="$ac_optarg" ;; 147 148 -nfp | --nfp | --nf) 149 # Obsolete; use --without-fp. 150 with_fp=no ;; 151 152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 153 | --no-cr | --no-c) 154 no_create=yes ;; 155 156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 158 no_recursion=yes ;; 159 160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 161 ac_prev=prefix ;; 162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 163 prefix="$ac_optarg" ;; 164 165 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 166 | --program-pre | --program-pr | --program-p) 167 ac_prev=program_prefix ;; 168 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 170 program_prefix="$ac_optarg" ;; 171 172 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 173 | --program-suf | --program-su | --program-s) 174 ac_prev=program_suffix ;; 175 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 177 program_suffix="$ac_optarg" ;; 178 179 -program-transform-name | --program-transform-name \ 180 | --program-transform-nam | --program-transform-na \ 181 | --program-transform-n | --program-transform- \ 182 | --program-transform | --program-transfor \ 183 | --program-transfo | --program-transf \ 184 | --program-trans | --program-tran \ 185 | --progr-tra | --program-tr | --program-t) 186 ac_prev=program_transform_name ;; 187 -program-transform-name=* | --program-transform-name=* \ 188 | --program-transform-nam=* | --program-transform-na=* \ 189 | --program-transform-n=* | --program-transform-=* \ 190 | --program-transform=* | --program-transfor=* \ 191 | --program-transfo=* | --program-transf=* \ 192 | --program-trans=* | --program-tran=* \ 193 | --progr-tra=* | --program-tr=* | --program-t=*) 194 program_transform_name="$ac_optarg" ;; 195 196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 197 | -silent | --silent | --silen | --sile | --sil) 198 silent=yes ;; 199 200 -site | --site | --sit) 201 ac_prev=site ;; 202 -site=* | --site=* | --sit=*) 203 site="$ac_optarg" ;; 204 205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 206 ac_prev=srcdir ;; 207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 208 srcdir="$ac_optarg" ;; 209 210 -target | --target | --targe | --targ | --tar | --ta | --t) 211 ac_prev=target ;; 212 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 213 target="$ac_optarg" ;; 214 215 -v | -verbose | --verbose | --verbos | --verbo | --verb) 216 verbose=yes ;; 217 218 -version | --version | --versio | --versi | --vers) 219 echo "configure generated by autoconf version 2.2" 220 exit 0 ;; 221 222 -with-* | --with-*) 223 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 224 # Reject names that are not valid shell variable names. 225 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 226 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 227 fi 228 ac_package=`echo $ac_package| sed 's/-/_/g'` 229 case "$ac_option" in 230 *=*) ;; 231 *) ac_optarg=yes ;; 232 esac 233 eval "with_${ac_package}='$ac_optarg'" ;; 234 235 -without-* | --without-*) 236 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 237 # Reject names that are not valid shell variable names. 238 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 239 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 240 fi 241 ac_package=`echo $ac_package| sed 's/-/_/g'` 242 eval "with_${ac_package}=no" ;; 243 244 --x) 245 # Obsolete; use --with-x. 246 with_x=yes ;; 247 248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 249 | --x-incl | --x-inc | --x-in | --x-i) 250 ac_prev=x_includes ;; 251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 253 x_includes="$ac_optarg" ;; 254 255 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 257 ac_prev=x_libraries ;; 258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 260 x_libraries="$ac_optarg" ;; 261 262 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 263 ;; 264 265 *) 266 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 267 echo "configure: warning: $ac_option: invalid host type" 1>&2 268 fi 269 if test "x$nonopt" != xNONE; then 270 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 271 fi 272 nonopt="$ac_option" 273 ;; 274 275 esac 276done 277 278if test -n "$ac_prev"; then 279 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 280fi 281 282trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 283 284# File descriptor usage: 285# 0 standard input 286# 1 file creation 287# 2 errors and warnings 288# 3 some systems may open it to /dev/tty 289# 4 used on the Kubota Titan 290# 6 checking for... messages and results 291# 5 compiler messages saved in config.log 292if test "$silent" = yes; then 293 exec 6>/dev/null 294else 295 exec 6>&1 296fi 297exec 5>./config.log 298 299echo "\ 300This file contains any messages produced by compilers while 301running configure, to aid debugging if configure makes a mistake. 302" 1>&5 303 304# Strip out --no-create and --no-recursion so they do not pile up. 305# Also quote any args containing shell metacharacters. 306ac_configure_args= 307for ac_arg 308do 309 case "$ac_arg" in 310 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 311 | --no-cr | --no-c) ;; 312 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 313 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 314 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 315 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 316 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 317 esac 318done 319 320# NLS nuisances. 321# Only set LANG and LC_ALL to C if already set. 322# These must not be set unconditionally because not all systems understand 323# e.g. LANG=C (notably SCO). 324if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 325if test "${LANG+set}" = set; then LANG=C; export LANG; fi 326 327# confdefs.h avoids OS command line length limits that DEFS can exceed. 328rm -rf conftest* confdefs.h 329# AIX cpp loses on an empty file, so make sure it contains at least a newline. 330echo > confdefs.h 331 332# A filename unique to this package, relative to the directory that 333# configure is in, which we can look for to find out if srcdir is correct. 334ac_unique_file=xpx.doc 335 336# Find the source files, if location was not specified. 337if test -z "$srcdir"; then 338 ac_srcdir_defaulted=yes 339 # Try the directory containing this script, then its parent. 340 ac_prog=$0 341 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 342 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 343 srcdir=$ac_confdir 344 if test ! -r $srcdir/$ac_unique_file; then 345 srcdir=.. 346 fi 347else 348 ac_srcdir_defaulted=no 349fi 350if test ! -r $srcdir/$ac_unique_file; then 351 if test "$ac_srcdir_defaulted" = yes; then 352 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 353 else 354 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 355 fi 356fi 357srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 358 359# Prefer explicitly selected file to automatically selected ones. 360if test -z "$CONFIG_SITE"; then 361 if test "x$prefix" != xNONE; then 362 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 363 else 364 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 365 fi 366fi 367for ac_site_file in $CONFIG_SITE; do 368 if test -r "$ac_site_file"; then 369 echo "loading site script $ac_site_file" 370 . "$ac_site_file" 371 fi 372done 373 374if test -r "$cache_file"; then 375 echo "loading cache $cache_file" 376 . $cache_file 377else 378 echo "creating cache $cache_file" 379 > $cache_file 380fi 381 382ac_ext=c 383# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 384ac_cpp='$CPP $CPPFLAGS' 385ac_compile='${CC-cc} conftest.$ac_ext $CFLAGS $CPPFLAGS -c 1>&5 2>&5' 386ac_link='${CC-cc} conftest.$ac_ext $CFLAGS $CPPFLAGS $LDFLAGS -o conftest $LIBS 1>&5 2>&5' 387 388if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 389 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 390 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 391 ac_n= ac_c=' 392' ac_t=' ' 393 else 394 ac_n=-n ac_c= ac_t= 395 fi 396else 397 ac_n= ac_c='\c' ac_t= 398fi 399 400 401 402 403echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 404# On Suns, sometimes $CPP names a directory. 405if test -n "$CPP" && test -d "$CPP"; then 406 CPP= 407fi 408if test -z "$CPP"; then 409if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 410 echo $ac_n "(cached) $ac_c" 1>&6 411else 412 # This must be in double quotes, not single quotes, because CPP may get 413 # substituted into the Makefile and "${CC-cc}" will confuse make. 414 CPP="${CC-cc} -E" 415 # On the NeXT, cc -E runs the code through the compiler's parser, 416 # not just through cpp. 417 cat > conftest.$ac_ext <<EOF 418#line 419 "configure" 419#include "confdefs.h" 420#include <assert.h> 421Syntax Error 422EOF 423eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 424ac_err=`grep -v '^ *+' conftest.out` 425if test -z "$ac_err"; then 426 : 427else 428 echo "$ac_err" >&5 429 rm -rf conftest* 430 CPP="${CC-cc} -E -traditional-cpp" 431 cat > conftest.$ac_ext <<EOF 432#line 433 "configure" 433#include "confdefs.h" 434#include <assert.h> 435Syntax Error 436EOF 437eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 438ac_err=`grep -v '^ *+' conftest.out` 439if test -z "$ac_err"; then 440 : 441else 442 echo "$ac_err" >&5 443 rm -rf conftest* 444 CPP=/lib/cpp 445fi 446rm -f conftest* 447fi 448rm -f conftest* 449 ac_cv_prog_CPP="$CPP" 450fi 451fi 452CPP="$ac_cv_prog_CPP" 453echo "$ac_t""$CPP" 1>&6 454 455# If we cannot run a trivial program, we must be cross compiling. 456echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6 457if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then 458 echo $ac_n "(cached) $ac_c" 1>&6 459else 460 if test "$cross_compiling" = yes; then 461 ac_cv_c_cross=yes 462else 463cat > conftest.$ac_ext <<EOF 464#line 465 "configure" 465#include "confdefs.h" 466main(){return(0);} 467EOF 468eval $ac_link 469if test -s conftest && (./conftest; exit) 2>/dev/null; then 470 ac_cv_c_cross=no 471else 472 ac_cv_c_cross=yes 473fi 474fi 475rm -fr conftest* 476fi 477cross_compiling=$ac_cv_c_cross 478echo "$ac_t""$ac_cv_c_cross" 1>&6 479 480echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 481if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 482 echo $ac_n "(cached) $ac_c" 1>&6 483else 484 cat > conftest.$ac_ext <<EOF 485#line 486 "configure" 486#include "confdefs.h" 487#include <stdlib.h> 488#include <stdarg.h> 489#include <string.h> 490#include <float.h> 491EOF 492eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 493ac_err=`grep -v '^ *+' conftest.out` 494if test -z "$ac_err"; then 495 rm -rf conftest* 496 ac_cv_header_stdc=yes 497else 498 echo "$ac_err" >&5 499 rm -rf conftest* 500 ac_cv_header_stdc=no 501fi 502rm -f conftest* 503 504if test $ac_cv_header_stdc = yes; then 505 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 506cat > conftest.$ac_ext <<EOF 507#line 508 "configure" 508#include "confdefs.h" 509#include <string.h> 510EOF 511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 512 egrep "memchr" >/dev/null 2>&1; then 513 : 514else 515 rm -rf conftest* 516 ac_cv_header_stdc=no 517fi 518rm -f conftest* 519 520fi 521 522if test $ac_cv_header_stdc = yes; then 523 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 524cat > conftest.$ac_ext <<EOF 525#line 526 "configure" 526#include "confdefs.h" 527#include <stdlib.h> 528EOF 529if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 530 egrep "free" >/dev/null 2>&1; then 531 : 532else 533 rm -rf conftest* 534 ac_cv_header_stdc=no 535fi 536rm -f conftest* 537 538fi 539 540if test $ac_cv_header_stdc = yes; then 541 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 542if test "$cross_compiling" = yes; then 543 ac_cv_header_stdc=no 544else 545cat > conftest.$ac_ext <<EOF 546#line 547 "configure" 547#include "confdefs.h" 548#include <ctype.h> 549#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 550#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 551#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 552int main () { int i; for (i = 0; i < 256; i++) 553if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 554exit (0); } 555 556EOF 557eval $ac_link 558if test -s conftest && (./conftest; exit) 2>/dev/null; then 559 : 560else 561 ac_cv_header_stdc=no 562fi 563fi 564rm -fr conftest* 565fi 566fi 567echo "$ac_t""$ac_cv_header_stdc" 1>&6 568if test $ac_cv_header_stdc = yes; then 569 cat >> confdefs.h <<\EOF 570#define STDC_HEADERS 1 571EOF 572 573fi 574 575ac_header_dirent=no 576for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h 577do 578ac_safe=`echo "$ac_hdr" | tr './\055' '___'` 579echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6 580if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then 581 echo $ac_n "(cached) $ac_c" 1>&6 582else 583 cat > conftest.$ac_ext <<EOF 584#line 585 "configure" 585#include "confdefs.h" 586#include <sys/types.h> 587#include <$ac_hdr> 588int main() { return 0; } 589int t() { 590DIR *dirp = 0; 591; return 0; } 592EOF 593if eval $ac_compile; then 594 rm -rf conftest* 595 eval "ac_cv_header_dirent_$ac_safe=yes" 596else 597 rm -rf conftest* 598 eval "ac_cv_header_dirent_$ac_safe=no" 599fi 600rm -f conftest* 601 602fi 603if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then 604 echo "$ac_t""yes" 1>&6 605 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` 606 cat >> confdefs.h <<EOF 607#define $ac_tr_hdr 1 608EOF 609 ac_header_dirent=$ac_hdr; break 610else 611 echo "$ac_t""no" 1>&6 612fi 613done 614# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 615if test $ac_header_dirent = dirent.h; then 616echo $ac_n "checking for -ldir""... $ac_c" 1>&6 617if eval "test \"`echo '$''{'ac_cv_lib_dir'+set}'`\" = set"; then 618 echo $ac_n "(cached) $ac_c" 1>&6 619else 620 ac_save_LIBS="$LIBS" 621LIBS="-ldir $LIBS" 622cat > conftest.$ac_ext <<EOF 623#line 624 "configure" 624#include "confdefs.h" 625 626int main() { return 0; } 627int t() { 628opendir() 629; return 0; } 630EOF 631if eval $ac_link; then 632 rm -rf conftest* 633 eval "ac_cv_lib_dir=yes" 634else 635 rm -rf conftest* 636 eval "ac_cv_lib_dir=no" 637fi 638rm -f conftest* 639LIBS="$ac_save_LIBS" 640 641fi 642if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then 643 echo "$ac_t""yes" 1>&6 644 LIBS="$LIBS -ldir" 645else 646 echo "$ac_t""no" 1>&6 647fi 648 649else 650echo $ac_n "checking for -lx""... $ac_c" 1>&6 651if eval "test \"`echo '$''{'ac_cv_lib_x'+set}'`\" = set"; then 652 echo $ac_n "(cached) $ac_c" 1>&6 653else 654 ac_save_LIBS="$LIBS" 655LIBS="-lx $LIBS" 656cat > conftest.$ac_ext <<EOF 657#line 658 "configure" 658#include "confdefs.h" 659 660int main() { return 0; } 661int t() { 662opendir() 663; return 0; } 664EOF 665if eval $ac_link; then 666 rm -rf conftest* 667 eval "ac_cv_lib_x=yes" 668else 669 rm -rf conftest* 670 eval "ac_cv_lib_x=no" 671fi 672rm -f conftest* 673LIBS="$ac_save_LIBS" 674 675fi 676if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then 677 echo "$ac_t""yes" 1>&6 678 LIBS="$LIBS -lx" 679else 680 echo "$ac_t""no" 1>&6 681fi 682 683fi 684 685echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 686if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 687 echo $ac_n "(cached) $ac_c" 1>&6 688else 689 cat > conftest.$ac_ext <<EOF 690#line 691 "configure" 691#include "confdefs.h" 692#include <sys/types.h> 693#include <sys/time.h> 694#include <time.h> 695int main() { return 0; } 696int t() { 697struct tm *tp; 698; return 0; } 699EOF 700if eval $ac_compile; then 701 rm -rf conftest* 702 ac_cv_header_time=yes 703else 704 rm -rf conftest* 705 ac_cv_header_time=no 706fi 707rm -f conftest* 708 709fi 710echo "$ac_t""$ac_cv_header_time" 1>&6 711if test $ac_cv_header_time = yes; then 712 cat >> confdefs.h <<\EOF 713#define TIME_WITH_SYS_TIME 1 714EOF 715 716fi 717 718for ac_hdr in stdlib.h string.h strings.h stdarg.h varargs.h sys/dir.h\ 719 unistd.h malloc.h sys/wait.h sys/time.h math.h 720do 721ac_safe=`echo "$ac_hdr" | tr './\055' '___'` 722echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 723if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 724 echo $ac_n "(cached) $ac_c" 1>&6 725else 726 cat > conftest.$ac_ext <<EOF 727#line 728 "configure" 728#include "confdefs.h" 729#include <$ac_hdr> 730EOF 731eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 732ac_err=`grep -v '^ *+' conftest.out` 733if test -z "$ac_err"; then 734 rm -rf conftest* 735 eval "ac_cv_header_$ac_safe=yes" 736else 737 echo "$ac_err" >&5 738 rm -rf conftest* 739 eval "ac_cv_header_$ac_safe=no" 740fi 741rm -f conftest* 742fi 743if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 744 echo "$ac_t""yes" 1>&6 745 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'` 746 cat >> confdefs.h <<EOF 747#define $ac_tr_hdr 1 748EOF 749 750else 751 echo "$ac_t""no" 1>&6 752fi 753done 754 755 756echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 757if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 758 echo $ac_n "(cached) $ac_c" 1>&6 759else 760 cat > conftest.$ac_ext <<EOF 761#line 762 "configure" 762#include "confdefs.h" 763#include <sys/types.h> 764#include <signal.h> 765#ifdef signal 766#undef signal 767#endif 768#ifdef __cplusplus 769extern "C" 770#endif 771void (*signal ()) (); 772int main() { return 0; } 773int t() { 774int i; 775; return 0; } 776EOF 777if eval $ac_compile; then 778 rm -rf conftest* 779 ac_cv_type_signal=void 780else 781 rm -rf conftest* 782 ac_cv_type_signal=int 783fi 784rm -f conftest* 785 786fi 787echo "$ac_t""$ac_cv_type_signal" 1>&6 788cat >> confdefs.h <<EOF 789#define RETSIGTYPE $ac_cv_type_signal 790EOF 791 792 793for ac_func in strchr memcpy bzero usleep gettimeofday\ 794 opendir closedir readdir getcwd vfork 795do 796echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 797if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 798 echo $ac_n "(cached) $ac_c" 1>&6 799else 800 cat > conftest.$ac_ext <<EOF 801#line 802 "configure" 802#include "confdefs.h" 803/* System header to define __stub macros and hopefully few prototypes, 804 which can conflict with char $ac_func(); below. */ 805#include <assert.h> 806/* Override any gcc2 internal prototype to avoid an error. */ 807char $ac_func(); 808 809int main() { return 0; } 810int t() { 811 812/* The GNU C library defines this for functions which it implements 813 to always fail with ENOSYS. Some functions are actually named 814 something starting with __ and the normal name is an alias. */ 815#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 816choke me 817#else 818$ac_func(); 819#endif 820 821; return 0; } 822EOF 823if eval $ac_link; then 824 rm -rf conftest* 825 eval "ac_cv_func_$ac_func=yes" 826else 827 rm -rf conftest* 828 eval "ac_cv_func_$ac_func=no" 829fi 830rm -f conftest* 831 832fi 833if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 834 echo "$ac_t""yes" 1>&6 835 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'` 836 cat >> confdefs.h <<EOF 837#define $ac_tr_func 1 838EOF 839 840else 841 echo "$ac_t""no" 1>&6 842fi 843done 844 845 846 847 848trap '' 1 2 15 849cat > confcache <<\EOF 850# This file is a shell script that caches the results of configure 851# tests run on this system so they can be shared between configure 852# scripts and configure runs. It is not useful on other systems. 853# If it contains results you don't want to keep, you may remove or edit it. 854# 855# By default, configure uses ./config.cache as the cache file, 856# creating it if it does not exist already. You can give configure 857# the --cache-file=FILE option to use a different cache file; that is 858# what configure does when it calls configure scripts in 859# subdirectories, so they share the cache. 860# Giving --cache-file=/dev/null disables caching, for debugging configure. 861# config.status only pays attention to the cache file if you give it the 862# --recheck option to rerun configure. 863# 864EOF 865# Ultrix sh set writes to stderr and can't be redirected directly, 866# and sets the high bit in the cache file unless we assign to the vars. 867(set) 2>&1 | 868 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \ 869 >> confcache 870if cmp -s $cache_file confcache; then 871 : 872else 873 if test -w $cache_file; then 874 echo "updating cache $cache_file" 875 cat confcache > $cache_file 876 else 877 echo "not updating unwritable cache $cache_file" 878 fi 879fi 880rm -f confcache 881 882trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 883 884test "x$prefix" = xNONE && prefix=$ac_default_prefix 885# Let make expand exec_prefix. 886test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 887 888# Any assignment to VPATH causes Sun make to only execute 889# the first set of double-colon rules, so remove it if not needed. 890# If there is a colon in the path, we need to keep it. 891if test "x$srcdir" = x.; then 892 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 893fi 894 895trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 896 897DEFS=-DHAVE_CONFIG_H 898 899# Without the "./", some shells look in PATH for config.status. 900: ${CONFIG_STATUS=./config.status} 901 902echo creating $CONFIG_STATUS 903rm -f $CONFIG_STATUS 904cat > $CONFIG_STATUS <<EOF 905#! /bin/sh 906# Generated automatically by configure. 907# Run this file to recreate the current configuration. 908# This directory was configured as follows, 909# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 910# 911# $0 $ac_configure_args 912# 913# Compiler output produced by configure, useful for debugging 914# configure, is in ./config.log if it exists. 915 916ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 917for ac_option 918do 919 case "\$ac_option" in 920 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 921 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 922 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 923 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 924 echo "$CONFIG_STATUS generated by autoconf version 2.2" 925 exit 0 ;; 926 -help | --help | --hel | --he | --h) 927 echo "\$ac_cs_usage"; exit 0 ;; 928 *) echo "\$ac_cs_usage"; exit 1 ;; 929 esac 930done 931 932ac_given_srcdir=$srcdir 933 934trap 'rm -fr `echo config.h | tr : " "` conftest*; exit 1' 1 2 15 935 936# Protect against being on the right side of a sed subst in config.status. 937sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g; 938 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF 939$ac_vpsub 940$extrasub 941s%@CFLAGS@%$CFLAGS%g 942s%@CPPFLAGS@%$CPPFLAGS%g 943s%@CXXFLAGS@%$CXXFLAGS%g 944s%@DEFS@%$DEFS%g 945s%@LDFLAGS@%$LDFLAGS%g 946s%@LIBS@%$LIBS%g 947s%@exec_prefix@%$exec_prefix%g 948s%@prefix@%$prefix%g 949s%@program_transform_name@%$program_transform_name%g 950s%@CPP@%$CPP%g 951 952CEOF 953EOF 954cat >> $CONFIG_STATUS <<EOF 955 956CONFIG_FILES=\${CONFIG_FILES-""} 957EOF 958cat >> $CONFIG_STATUS <<\EOF 959for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 960 # Support "outfile[:infile]", defaulting infile="outfile.in". 961 case "$ac_file" in 962 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` 963 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 964 *) ac_file_in="${ac_file}.in" ;; 965 esac 966 967 # Adjust relative srcdir, etc. for subdirectories. 968 969 # Remove last slash and all that follows it. Not all systems have dirname. 970 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 971 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 972 # The file is in a subdirectory. 973 test ! -d "$ac_dir" && mkdir "$ac_dir" 974 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 975 # A "../" for each directory in $ac_dir_suffix. 976 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 977 else 978 ac_dir_suffix= ac_dots= 979 fi 980 981 case "$ac_given_srcdir" in 982 .) srcdir=. 983 if test -z "$ac_dots"; then top_srcdir=. 984 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 985 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 986 *) # Relative path. 987 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 988 top_srcdir="$ac_dots$ac_given_srcdir" ;; 989 esac 990 991 echo creating "$ac_file" 992 rm -f "$ac_file" 993 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 994 case "$ac_file" in 995 *Makefile*) ac_comsub="1i\\ 996# $configure_input" ;; 997 *) ac_comsub= ;; 998 esac 999 sed -e "$ac_comsub 1000s%@configure_input@%$configure_input%g 1001s%@srcdir@%$srcdir%g 1002s%@top_srcdir@%$top_srcdir%g 1003" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file 1004fi; done 1005rm -f conftest.subs 1006 1007# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 1008# NAME is the cpp macro being defined and VALUE is the value it is being given. 1009# 1010# ac_d sets the value in "#define NAME VALUE" lines. 1011ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 1012ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 1013ac_dC='\3' 1014ac_dD='%g' 1015# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 1016ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1017ac_uB='\([ ]\)%\1#\2define\3' 1018ac_uC=' ' 1019ac_uD='\4%g' 1020# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 1021ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 1022ac_eB='$%\1#\2define\3' 1023ac_eC=' ' 1024ac_eD='%g' 1025 1026CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"} 1027for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 1028 # Support "outfile[:infile]", defaulting infile="outfile.in". 1029 case "$ac_file" in 1030 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'` 1031 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 1032 *) ac_file_in="${ac_file}.in" ;; 1033 esac 1034 1035 echo creating $ac_file 1036 1037 rm -f conftest.frag conftest.in conftest.out 1038 cp $ac_given_srcdir/$ac_file_in conftest.in 1039 1040EOF 1041 1042# Transform confdefs.h into a sed script conftest.vals that substitutes 1043# the proper values into config.h.in to produce config.h. And first: 1044# Protect against being on the right side of a sed subst in config.status. 1045# Protect against being in an unquoted here document in config.status. 1046rm -f conftest.vals 1047cat > conftest.hdr <<\EOF 1048s/[\\&%]/\\&/g 1049s%[\\$`]%\\&%g 1050s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 1051s%ac_d%ac_u%gp 1052s%ac_u%ac_e%gp 1053EOF 1054sed -n -f conftest.hdr confdefs.h > conftest.vals 1055rm -f conftest.hdr 1056 1057# This sed command replaces #undef with comments. This is necessary, for 1058# example, in the case of _POSIX_SOURCE, which is predefined and required 1059# on some systems where configure will not decide to define it. 1060cat >> conftest.vals <<\EOF 1061s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 1062EOF 1063 1064# Break up conftest.vals because some shells have a limit on 1065# the size of here documents, and old seds have small limits too. 1066# Maximum number of lines to put in a single here document. 1067ac_max_here_lines=12 1068 1069rm -f conftest.tail 1070while : 1071do 1072 ac_lines=`grep -c . conftest.vals` 1073 # grep -c gives empty output for an empty file on some AIX systems. 1074 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 1075 # Write a limited-size here document to conftest.frag. 1076 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 1077 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 1078 echo 'CEOF 1079 sed -f conftest.frag conftest.in > conftest.out 1080 rm -f conftest.in 1081 mv conftest.out conftest.in 1082' >> $CONFIG_STATUS 1083 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 1084 rm -f conftest.vals 1085 mv conftest.tail conftest.vals 1086done 1087rm -f conftest.vals 1088 1089cat >> $CONFIG_STATUS <<\EOF 1090 rm -f conftest.frag conftest.h 1091 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 1092 cat conftest.in >> conftest.h 1093 rm -f conftest.in 1094 if cmp -s $ac_file conftest.h 2>/dev/null; then 1095 echo "$ac_file is unchanged" 1096 rm -f conftest.h 1097 else 1098 rm -f $ac_file 1099 mv conftest.h $ac_file 1100 fi 1101fi; done 1102 1103 1104 1105exit 0 1106EOF 1107chmod +x $CONFIG_STATUS 1108rm -fr confdefs* $ac_clean_files 1109test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 1110 1111