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