1#! /bin/sh 2 3# Guess values for system-dependent variables and create Makefiles. 4# Generated automatically using autoconf version 2.13 5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. 6# 7# This configure script is free software; the Free Software Foundation 8# gives unlimited permission to copy, distribute and modify it. 9 10# Defaults: 11ac_help= 12ac_default_prefix=/usr/local 13# Any additions from configure.in: 14ac_help="$ac_help 15 --enable-shared[=PKGS] build shared libraries [default=yes]" 16ac_help="$ac_help 17 --enable-static[=PKGS] build static libraries [default=yes]" 18ac_help="$ac_help 19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" 20ac_help="$ac_help 21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]" 22ac_help="$ac_help 23 --disable-libtool-lock avoid locking (might break parallel builds)" 24ac_help="$ac_help 25 --with-x11-driver=no Used to disable x11 driver" 26ac_help="$ac_help 27 --with-slang-driver=no Used to disable slang driver" 28ac_help="$ac_help 29 --with-curses-driver=no/yes Used to disable/force curses driver" 30ac_help="$ac_help 31 --with-gpm-mouse=base-dir Specifies the base gpm directory" 32ac_help="$ac_help 33 --with-x use the X Window System" 34ac_help="$ac_help 35 --with-sunos-curses Used to force SunOS 4.x curses" 36ac_help="$ac_help 37 --with-osf1-curses Used to force OSF/1 curses" 38ac_help="$ac_help 39 --with-vcurses[=incdir] Used to force SysV curses" 40ac_help="$ac_help 41 --with-ncurses[=base-dir] Compile with ncurses/locate base dir" 42 43# Initialize some variables set by options. 44# The variables have the same names as the options, with 45# dashes changed to underlines. 46build=NONE 47cache_file=./config.cache 48exec_prefix=NONE 49host=NONE 50no_create= 51nonopt=NONE 52no_recursion= 53prefix=NONE 54program_prefix=NONE 55program_suffix=NONE 56program_transform_name=s,x,x, 57silent= 58site= 59srcdir= 60target=NONE 61verbose= 62x_includes=NONE 63x_libraries=NONE 64bindir='${exec_prefix}/bin' 65sbindir='${exec_prefix}/sbin' 66libexecdir='${exec_prefix}/libexec' 67datadir='${prefix}/share' 68sysconfdir='${prefix}/etc' 69sharedstatedir='${prefix}/com' 70localstatedir='${prefix}/var' 71libdir='${exec_prefix}/lib' 72includedir='${prefix}/include' 73oldincludedir='/usr/include' 74infodir='${prefix}/info' 75mandir='${prefix}/man' 76 77# Initialize some other variables. 78subdirs= 79MFLAGS= MAKEFLAGS= 80SHELL=${CONFIG_SHELL-/bin/sh} 81# Maximum number of lines to put in a shell here document. 82ac_max_here_lines=12 83 84ac_prev= 85for ac_option 86do 87 88 # If the previous option needs an argument, assign it. 89 if test -n "$ac_prev"; then 90 eval "$ac_prev=\$ac_option" 91 ac_prev= 92 continue 93 fi 94 95 case "$ac_option" in 96 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; 97 *) ac_optarg= ;; 98 esac 99 100 # Accept the important Cygnus configure options, so we can diagnose typos. 101 102 case "$ac_option" in 103 104 -bindir | --bindir | --bindi | --bind | --bin | --bi) 105 ac_prev=bindir ;; 106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 107 bindir="$ac_optarg" ;; 108 109 -build | --build | --buil | --bui | --bu) 110 ac_prev=build ;; 111 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 112 build="$ac_optarg" ;; 113 114 -cache-file | --cache-file | --cache-fil | --cache-fi \ 115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 116 ac_prev=cache_file ;; 117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 119 cache_file="$ac_optarg" ;; 120 121 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 122 ac_prev=datadir ;; 123 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 124 | --da=*) 125 datadir="$ac_optarg" ;; 126 127 -disable-* | --disable-*) 128 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` 129 # Reject names that are not valid shell variable names. 130 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then 131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 132 fi 133 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 134 eval "enable_${ac_feature}=no" ;; 135 136 -enable-* | --enable-*) 137 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` 138 # Reject names that are not valid shell variable names. 139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then 140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } 141 fi 142 ac_feature=`echo $ac_feature| sed 's/-/_/g'` 143 case "$ac_option" in 144 *=*) ;; 145 *) ac_optarg=yes ;; 146 esac 147 eval "enable_${ac_feature}='$ac_optarg'" ;; 148 149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 151 | --exec | --exe | --ex) 152 ac_prev=exec_prefix ;; 153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 155 | --exec=* | --exe=* | --ex=*) 156 exec_prefix="$ac_optarg" ;; 157 158 -gas | --gas | --ga | --g) 159 # Obsolete; use --with-gas. 160 with_gas=yes ;; 161 162 -help | --help | --hel | --he) 163 # Omit some internal or obsolete options to make the list less imposing. 164 # This message is too long to be a string in the A/UX 3.1 sh. 165 cat << EOF 166Usage: configure [options] [host] 167Options: [defaults in brackets after descriptions] 168Configuration: 169 --cache-file=FILE cache test results in FILE 170 --help print this message 171 --no-create do not create output files 172 --quiet, --silent do not print \`checking...' messages 173 --version print the version of autoconf that created configure 174Directory and file names: 175 --prefix=PREFIX install architecture-independent files in PREFIX 176 [$ac_default_prefix] 177 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 178 [same as prefix] 179 --bindir=DIR user executables in DIR [EPREFIX/bin] 180 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] 181 --libexecdir=DIR program executables in DIR [EPREFIX/libexec] 182 --datadir=DIR read-only architecture-independent data in DIR 183 [PREFIX/share] 184 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] 185 --sharedstatedir=DIR modifiable architecture-independent data in DIR 186 [PREFIX/com] 187 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] 188 --libdir=DIR object code libraries in DIR [EPREFIX/lib] 189 --includedir=DIR C header files in DIR [PREFIX/include] 190 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] 191 --infodir=DIR info documentation in DIR [PREFIX/info] 192 --mandir=DIR man documentation in DIR [PREFIX/man] 193 --srcdir=DIR find the sources in DIR [configure dir or ..] 194 --program-prefix=PREFIX prepend PREFIX to installed program names 195 --program-suffix=SUFFIX append SUFFIX to installed program names 196 --program-transform-name=PROGRAM 197 run sed PROGRAM on installed program names 198EOF 199 cat << EOF 200Host type: 201 --build=BUILD configure for building on BUILD [BUILD=HOST] 202 --host=HOST configure for HOST [guessed] 203 --target=TARGET configure for TARGET [TARGET=HOST] 204Features and packages: 205 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 206 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 207 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 208 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 209 --x-includes=DIR X include files are in DIR 210 --x-libraries=DIR X library files are in DIR 211EOF 212 if test -n "$ac_help"; then 213 echo "--enable and --with options recognized:$ac_help" 214 fi 215 exit 0 ;; 216 217 -host | --host | --hos | --ho) 218 ac_prev=host ;; 219 -host=* | --host=* | --hos=* | --ho=*) 220 host="$ac_optarg" ;; 221 222 -includedir | --includedir | --includedi | --included | --include \ 223 | --includ | --inclu | --incl | --inc) 224 ac_prev=includedir ;; 225 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 226 | --includ=* | --inclu=* | --incl=* | --inc=*) 227 includedir="$ac_optarg" ;; 228 229 -infodir | --infodir | --infodi | --infod | --info | --inf) 230 ac_prev=infodir ;; 231 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 232 infodir="$ac_optarg" ;; 233 234 -libdir | --libdir | --libdi | --libd) 235 ac_prev=libdir ;; 236 -libdir=* | --libdir=* | --libdi=* | --libd=*) 237 libdir="$ac_optarg" ;; 238 239 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 240 | --libexe | --libex | --libe) 241 ac_prev=libexecdir ;; 242 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 243 | --libexe=* | --libex=* | --libe=*) 244 libexecdir="$ac_optarg" ;; 245 246 -localstatedir | --localstatedir | --localstatedi | --localstated \ 247 | --localstate | --localstat | --localsta | --localst \ 248 | --locals | --local | --loca | --loc | --lo) 249 ac_prev=localstatedir ;; 250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 251 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 252 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 253 localstatedir="$ac_optarg" ;; 254 255 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 256 ac_prev=mandir ;; 257 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 258 mandir="$ac_optarg" ;; 259 260 -nfp | --nfp | --nf) 261 # Obsolete; use --without-fp. 262 with_fp=no ;; 263 264 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 265 | --no-cr | --no-c) 266 no_create=yes ;; 267 268 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 269 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 270 no_recursion=yes ;; 271 272 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 273 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 274 | --oldin | --oldi | --old | --ol | --o) 275 ac_prev=oldincludedir ;; 276 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 277 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 278 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 279 oldincludedir="$ac_optarg" ;; 280 281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 282 ac_prev=prefix ;; 283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 284 prefix="$ac_optarg" ;; 285 286 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 287 | --program-pre | --program-pr | --program-p) 288 ac_prev=program_prefix ;; 289 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 290 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 291 program_prefix="$ac_optarg" ;; 292 293 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 294 | --program-suf | --program-su | --program-s) 295 ac_prev=program_suffix ;; 296 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 297 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 298 program_suffix="$ac_optarg" ;; 299 300 -program-transform-name | --program-transform-name \ 301 | --program-transform-nam | --program-transform-na \ 302 | --program-transform-n | --program-transform- \ 303 | --program-transform | --program-transfor \ 304 | --program-transfo | --program-transf \ 305 | --program-trans | --program-tran \ 306 | --progr-tra | --program-tr | --program-t) 307 ac_prev=program_transform_name ;; 308 -program-transform-name=* | --program-transform-name=* \ 309 | --program-transform-nam=* | --program-transform-na=* \ 310 | --program-transform-n=* | --program-transform-=* \ 311 | --program-transform=* | --program-transfor=* \ 312 | --program-transfo=* | --program-transf=* \ 313 | --program-trans=* | --program-tran=* \ 314 | --progr-tra=* | --program-tr=* | --program-t=*) 315 program_transform_name="$ac_optarg" ;; 316 317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 318 | -silent | --silent | --silen | --sile | --sil) 319 silent=yes ;; 320 321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 322 ac_prev=sbindir ;; 323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 324 | --sbi=* | --sb=*) 325 sbindir="$ac_optarg" ;; 326 327 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 329 | --sharedst | --shareds | --shared | --share | --shar \ 330 | --sha | --sh) 331 ac_prev=sharedstatedir ;; 332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 335 | --sha=* | --sh=*) 336 sharedstatedir="$ac_optarg" ;; 337 338 -site | --site | --sit) 339 ac_prev=site ;; 340 -site=* | --site=* | --sit=*) 341 site="$ac_optarg" ;; 342 343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 344 ac_prev=srcdir ;; 345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 346 srcdir="$ac_optarg" ;; 347 348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 349 | --syscon | --sysco | --sysc | --sys | --sy) 350 ac_prev=sysconfdir ;; 351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 353 sysconfdir="$ac_optarg" ;; 354 355 -target | --target | --targe | --targ | --tar | --ta | --t) 356 ac_prev=target ;; 357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 358 target="$ac_optarg" ;; 359 360 -v | -verbose | --verbose | --verbos | --verbo | --verb) 361 verbose=yes ;; 362 363 -version | --version | --versio | --versi | --vers) 364 echo "configure generated by autoconf version 2.13" 365 exit 0 ;; 366 367 -with-* | --with-*) 368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` 369 # Reject names that are not valid shell variable names. 370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then 371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 372 fi 373 ac_package=`echo $ac_package| sed 's/-/_/g'` 374 case "$ac_option" in 375 *=*) ;; 376 *) ac_optarg=yes ;; 377 esac 378 eval "with_${ac_package}='$ac_optarg'" ;; 379 380 -without-* | --without-*) 381 ac_package=`echo $ac_option|sed -e 's/-*without-//'` 382 # Reject names that are not valid shell variable names. 383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then 384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } 385 fi 386 ac_package=`echo $ac_package| sed 's/-/_/g'` 387 eval "with_${ac_package}=no" ;; 388 389 --x) 390 # Obsolete; use --with-x. 391 with_x=yes ;; 392 393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 394 | --x-incl | --x-inc | --x-in | --x-i) 395 ac_prev=x_includes ;; 396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 398 x_includes="$ac_optarg" ;; 399 400 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 402 ac_prev=x_libraries ;; 403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 405 x_libraries="$ac_optarg" ;; 406 407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } 408 ;; 409 410 *) 411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then 412 echo "configure: warning: $ac_option: invalid host type" 1>&2 413 fi 414 if test "x$nonopt" != xNONE; then 415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } 416 fi 417 nonopt="$ac_option" 418 ;; 419 420 esac 421done 422 423if test -n "$ac_prev"; then 424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } 425fi 426 427trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 428 429# File descriptor usage: 430# 0 standard input 431# 1 file creation 432# 2 errors and warnings 433# 3 some systems may open it to /dev/tty 434# 4 used on the Kubota Titan 435# 6 checking for... messages and results 436# 5 compiler messages saved in config.log 437if test "$silent" = yes; then 438 exec 6>/dev/null 439else 440 exec 6>&1 441fi 442exec 5>./config.log 443 444echo "\ 445This file contains any messages produced by compilers while 446running configure, to aid debugging if configure makes a mistake. 447" 1>&5 448 449# Strip out --no-create and --no-recursion so they do not pile up. 450# Also quote any args containing shell metacharacters. 451ac_configure_args= 452for ac_arg 453do 454 case "$ac_arg" in 455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 456 | --no-cr | --no-c) ;; 457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; 459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) 460 ac_configure_args="$ac_configure_args '$ac_arg'" ;; 461 *) ac_configure_args="$ac_configure_args $ac_arg" ;; 462 esac 463done 464 465# NLS nuisances. 466# Only set these to C if already set. These must not be set unconditionally 467# because not all systems understand e.g. LANG=C (notably SCO). 468# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! 469# Non-C LC_CTYPE values break the ctype check. 470if test "${LANG+set}" = set; then LANG=C; export LANG; fi 471if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi 472if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi 473if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi 474 475# confdefs.h avoids OS command line length limits that DEFS can exceed. 476rm -rf conftest* confdefs.h 477# AIX cpp loses on an empty file, so make sure it contains at least a newline. 478echo > confdefs.h 479 480# A filename unique to this package, relative to the directory that 481# configure is in, which we can look for to find out if srcdir is correct. 482ac_unique_file=src/aalib.c 483 484# Find the source files, if location was not specified. 485if test -z "$srcdir"; then 486 ac_srcdir_defaulted=yes 487 # Try the directory containing this script, then its parent. 488 ac_prog=$0 489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` 490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. 491 srcdir=$ac_confdir 492 if test ! -r $srcdir/$ac_unique_file; then 493 srcdir=.. 494 fi 495else 496 ac_srcdir_defaulted=no 497fi 498if test ! -r $srcdir/$ac_unique_file; then 499 if test "$ac_srcdir_defaulted" = yes; then 500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } 501 else 502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } 503 fi 504fi 505srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` 506 507# Prefer explicitly selected file to automatically selected ones. 508if test -z "$CONFIG_SITE"; then 509 if test "x$prefix" != xNONE; then 510 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 511 else 512 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 513 fi 514fi 515for ac_site_file in $CONFIG_SITE; do 516 if test -r "$ac_site_file"; then 517 echo "loading site script $ac_site_file" 518 . "$ac_site_file" 519 fi 520done 521 522if test -r "$cache_file"; then 523 echo "loading cache $cache_file" 524 . $cache_file 525else 526 echo "creating cache $cache_file" 527 > $cache_file 528fi 529 530ac_ext=c 531# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 532ac_cpp='$CPP $CPPFLAGS' 533ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 534ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 535cross_compiling=$ac_cv_prog_cc_cross 536 537ac_exeext= 538ac_objext=o 539if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then 540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. 541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then 542 ac_n= ac_c=' 543' ac_t=' ' 544 else 545 ac_n=-n ac_c= ac_t= 546 fi 547else 548 ac_n= ac_c='\c' ac_t= 549fi 550 551 552ac_aux_dir= 553for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 554 if test -f $ac_dir/install-sh; then 555 ac_aux_dir=$ac_dir 556 ac_install_sh="$ac_aux_dir/install-sh -c" 557 break 558 elif test -f $ac_dir/install.sh; then 559 ac_aux_dir=$ac_dir 560 ac_install_sh="$ac_aux_dir/install.sh -c" 561 break 562 fi 563done 564if test -z "$ac_aux_dir"; then 565 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } 566fi 567ac_config_guess=$ac_aux_dir/config.guess 568ac_config_sub=$ac_aux_dir/config.sub 569ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. 570 571# Find a good install program. We prefer a C program (faster), 572# so one script is as good as another. But avoid the broken or 573# incompatible versions: 574# SysV /etc/install, /usr/sbin/install 575# SunOS /usr/etc/install 576# IRIX /sbin/install 577# AIX /bin/install 578# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 579# AFS /usr/afsws/bin/install, which mishandles nonexistent args 580# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 581# ./install, which can be erroneously created by make from ./install.sh. 582echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 583echo "configure:584: checking for a BSD compatible install" >&5 584if test -z "$INSTALL"; then 585if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 586 echo $ac_n "(cached) $ac_c" 1>&6 587else 588 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 589 for ac_dir in $PATH; do 590 # Account for people who put trailing slashes in PATH elements. 591 case "$ac_dir/" in 592 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 593 *) 594 # OSF1 and SCO ODT 3.0 have their own names for install. 595 # Don't use installbsd from OSF since it installs stuff as root 596 # by default. 597 for ac_prog in ginstall scoinst install; do 598 if test -f $ac_dir/$ac_prog; then 599 if test $ac_prog = install && 600 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 601 # AIX install. It has an incompatible calling convention. 602 : 603 else 604 ac_cv_path_install="$ac_dir/$ac_prog -c" 605 break 2 606 fi 607 fi 608 done 609 ;; 610 esac 611 done 612 IFS="$ac_save_IFS" 613 614fi 615 if test "${ac_cv_path_install+set}" = set; then 616 INSTALL="$ac_cv_path_install" 617 else 618 # As a last resort, use the slow shell script. We don't cache a 619 # path for INSTALL within a source directory, because that will 620 # break other packages using the cache if that directory is 621 # removed, or if the path is relative. 622 INSTALL="$ac_install_sh" 623 fi 624fi 625echo "$ac_t""$INSTALL" 1>&6 626 627# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 628# It thinks the first close brace ends the variable substitution. 629test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 630 631test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 632 633test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 634 635echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 636echo "configure:637: checking whether build environment is sane" >&5 637# Just in case 638sleep 1 639echo timestamp > conftestfile 640# Do `set' in a subshell so we don't clobber the current shell's 641# arguments. Must try -L first in case configure is actually a 642# symlink; some systems play weird games with the mod time of symlinks 643# (eg FreeBSD returns the mod time of the symlink's containing 644# directory). 645if ( 646 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 647 if test "$*" = "X"; then 648 # -L didn't work. 649 set X `ls -t $srcdir/configure conftestfile` 650 fi 651 if test "$*" != "X $srcdir/configure conftestfile" \ 652 && test "$*" != "X conftestfile $srcdir/configure"; then 653 654 # If neither matched, then we have a broken ls. This can happen 655 # if, for instance, CONFIG_SHELL is bash and it inherits a 656 # broken ls alias from the environment. This has actually 657 # happened. Such a system could not be considered "sane". 658 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken 659alias in your environment" 1>&2; exit 1; } 660 fi 661 662 test "$2" = conftestfile 663 ) 664then 665 # Ok. 666 : 667else 668 { echo "configure: error: newly created file is older than distributed files! 669Check your system clock" 1>&2; exit 1; } 670fi 671rm -f conftest* 672echo "$ac_t""yes" 1>&6 673if test "$program_transform_name" = s,x,x,; then 674 program_transform_name= 675else 676 # Double any \ or $. echo might interpret backslashes. 677 cat <<\EOF_SED > conftestsed 678s,\\,\\\\,g; s,\$,$$,g 679EOF_SED 680 program_transform_name="`echo $program_transform_name|sed -f conftestsed`" 681 rm -f conftestsed 682fi 683test "$program_prefix" != NONE && 684 program_transform_name="s,^,${program_prefix},; $program_transform_name" 685# Use a double $ so make ignores it. 686test "$program_suffix" != NONE && 687 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" 688 689# sed with no file args requires a program. 690test "$program_transform_name" = "" && program_transform_name="s,x,x," 691 692echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 693echo "configure:694: checking whether ${MAKE-make} sets \${MAKE}" >&5 694set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 695if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 696 echo $ac_n "(cached) $ac_c" 1>&6 697else 698 cat > conftestmake <<\EOF 699all: 700 @echo 'ac_maketemp="${MAKE}"' 701EOF 702# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 703eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 704if test -n "$ac_maketemp"; then 705 eval ac_cv_prog_make_${ac_make}_set=yes 706else 707 eval ac_cv_prog_make_${ac_make}_set=no 708fi 709rm -f conftestmake 710fi 711if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 712 echo "$ac_t""yes" 1>&6 713 SET_MAKE= 714else 715 echo "$ac_t""no" 1>&6 716 SET_MAKE="MAKE=${MAKE-make}" 717fi 718 719 720PACKAGE=aalib 721 722VERSION=1.4.0 723 724if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 725 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } 726fi 727cat >> confdefs.h <<EOF 728#define PACKAGE "$PACKAGE" 729EOF 730 731cat >> confdefs.h <<EOF 732#define VERSION "$VERSION" 733EOF 734 735 736 737missing_dir=`cd $ac_aux_dir && pwd` 738echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 739echo "configure:740: checking for working aclocal" >&5 740# Run test in a subshell; some versions of sh will print an error if 741# an executable is not found, even if stderr is redirected. 742# Redirect stdin to placate older versions of autoconf. Sigh. 743if (aclocal --version) < /dev/null > /dev/null 2>&1; then 744 ACLOCAL=aclocal 745 echo "$ac_t""found" 1>&6 746else 747 ACLOCAL="$missing_dir/missing aclocal" 748 echo "$ac_t""missing" 1>&6 749fi 750 751echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 752echo "configure:753: checking for working autoconf" >&5 753# Run test in a subshell; some versions of sh will print an error if 754# an executable is not found, even if stderr is redirected. 755# Redirect stdin to placate older versions of autoconf. Sigh. 756if (autoconf --version) < /dev/null > /dev/null 2>&1; then 757 AUTOCONF=autoconf 758 echo "$ac_t""found" 1>&6 759else 760 AUTOCONF="$missing_dir/missing autoconf" 761 echo "$ac_t""missing" 1>&6 762fi 763 764echo $ac_n "checking for working automake""... $ac_c" 1>&6 765echo "configure:766: checking for working automake" >&5 766# Run test in a subshell; some versions of sh will print an error if 767# an executable is not found, even if stderr is redirected. 768# Redirect stdin to placate older versions of autoconf. Sigh. 769if (automake --version) < /dev/null > /dev/null 2>&1; then 770 AUTOMAKE=automake 771 echo "$ac_t""found" 1>&6 772else 773 AUTOMAKE="$missing_dir/missing automake" 774 echo "$ac_t""missing" 1>&6 775fi 776 777echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 778echo "configure:779: checking for working autoheader" >&5 779# Run test in a subshell; some versions of sh will print an error if 780# an executable is not found, even if stderr is redirected. 781# Redirect stdin to placate older versions of autoconf. Sigh. 782if (autoheader --version) < /dev/null > /dev/null 2>&1; then 783 AUTOHEADER=autoheader 784 echo "$ac_t""found" 1>&6 785else 786 AUTOHEADER="$missing_dir/missing autoheader" 787 echo "$ac_t""missing" 1>&6 788fi 789 790echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 791echo "configure:792: checking for working makeinfo" >&5 792# Run test in a subshell; some versions of sh will print an error if 793# an executable is not found, even if stderr is redirected. 794# Redirect stdin to placate older versions of autoconf. Sigh. 795if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 796 MAKEINFO="/usr/local/bin/makeinfo --no-split" 797 echo "$ac_t""found" 1>&6 798else 799 MAKEINFO="$missing_dir/missing makeinfo" 800 echo "$ac_t""missing" 1>&6 801fi 802 803 804 805# Make sure we can run config.sub. 806if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : 807else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } 808fi 809 810echo $ac_n "checking host system type""... $ac_c" 1>&6 811echo "configure:812: checking host system type" >&5 812 813host_alias=$host 814case "$host_alias" in 815NONE) 816 case $nonopt in 817 NONE) 818 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : 819 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } 820 fi ;; 821 *) host_alias=$nonopt ;; 822 esac ;; 823esac 824 825host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` 826host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 827host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 828host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 829echo "$ac_t""$host" 1>&6 830 831echo $ac_n "checking target system type""... $ac_c" 1>&6 832echo "configure:833: checking target system type" >&5 833 834target_alias=$target 835case "$target_alias" in 836NONE) 837 case $nonopt in 838 NONE) target_alias=$host_alias ;; 839 *) target_alias=$nonopt ;; 840 esac ;; 841esac 842 843target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` 844target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 845target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 846target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 847echo "$ac_t""$target" 1>&6 848 849 850 851 852 853 854 855AALIB_CFLAGS="" 856AALIB_LIBS="-laa" 857 858if test x$enable_video = xtrue; then 859 if test "$VIDEO_SUBDIRS" = ""; then 860 { echo "configure: error: *** No video drivers are enabled!" 1>&2; exit 1; } 861 fi 862fi 863 864 865x_driver_test=yes 866curses_driver_test=yes 867linux_driver_test=yes 868slang_driver_test=yes 869force_curses_driver=false 870x_kbddriver_test=yes 871curses_kbddriver_test=yes 872slang_kbddriver_test=yes 873curses_mousedriver_test=yes 874gpm_mousedriver_test=yes 875x_mousedriver_test=yes 876 877use_cc_g_flag=no 878# Extract the first word of "gcc", so it can be a program name with args. 879set dummy gcc; ac_word=$2 880echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 881echo "configure:882: checking for $ac_word" >&5 882if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 883 echo $ac_n "(cached) $ac_c" 1>&6 884else 885 if test -n "$CC"; then 886 ac_cv_prog_CC="$CC" # Let the user override the test. 887else 888 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 889 ac_dummy="$PATH" 890 for ac_dir in $ac_dummy; do 891 test -z "$ac_dir" && ac_dir=. 892 if test -f $ac_dir/$ac_word; then 893 ac_cv_prog_CC="gcc" 894 break 895 fi 896 done 897 IFS="$ac_save_ifs" 898fi 899fi 900CC="$ac_cv_prog_CC" 901if test -n "$CC"; then 902 echo "$ac_t""$CC" 1>&6 903else 904 echo "$ac_t""no" 1>&6 905fi 906 907if test -z "$CC"; then 908 # Extract the first word of "cc", so it can be a program name with args. 909set dummy cc; ac_word=$2 910echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 911echo "configure:912: checking for $ac_word" >&5 912if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 913 echo $ac_n "(cached) $ac_c" 1>&6 914else 915 if test -n "$CC"; then 916 ac_cv_prog_CC="$CC" # Let the user override the test. 917else 918 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 919 ac_prog_rejected=no 920 ac_dummy="$PATH" 921 for ac_dir in $ac_dummy; do 922 test -z "$ac_dir" && ac_dir=. 923 if test -f $ac_dir/$ac_word; then 924 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then 925 ac_prog_rejected=yes 926 continue 927 fi 928 ac_cv_prog_CC="cc" 929 break 930 fi 931 done 932 IFS="$ac_save_ifs" 933if test $ac_prog_rejected = yes; then 934 # We found a bogon in the path, so make sure we never use it. 935 set dummy $ac_cv_prog_CC 936 shift 937 if test $# -gt 0; then 938 # We chose a different compiler from the bogus one. 939 # However, it has the same basename, so the bogon will be chosen 940 # first if we set CC to just the basename; use the full file name. 941 shift 942 set dummy "$ac_dir/$ac_word" "$@" 943 shift 944 ac_cv_prog_CC="$@" 945 fi 946fi 947fi 948fi 949CC="$ac_cv_prog_CC" 950if test -n "$CC"; then 951 echo "$ac_t""$CC" 1>&6 952else 953 echo "$ac_t""no" 1>&6 954fi 955 956 if test -z "$CC"; then 957 case "`uname -s`" in 958 *win32* | *WIN32*) 959 # Extract the first word of "cl", so it can be a program name with args. 960set dummy cl; ac_word=$2 961echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 962echo "configure:963: checking for $ac_word" >&5 963if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 964 echo $ac_n "(cached) $ac_c" 1>&6 965else 966 if test -n "$CC"; then 967 ac_cv_prog_CC="$CC" # Let the user override the test. 968else 969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 970 ac_dummy="$PATH" 971 for ac_dir in $ac_dummy; do 972 test -z "$ac_dir" && ac_dir=. 973 if test -f $ac_dir/$ac_word; then 974 ac_cv_prog_CC="cl" 975 break 976 fi 977 done 978 IFS="$ac_save_ifs" 979fi 980fi 981CC="$ac_cv_prog_CC" 982if test -n "$CC"; then 983 echo "$ac_t""$CC" 1>&6 984else 985 echo "$ac_t""no" 1>&6 986fi 987 ;; 988 esac 989 fi 990 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } 991fi 992 993echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 994echo "configure:995: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 995 996ac_ext=c 997# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 998ac_cpp='$CPP $CPPFLAGS' 999ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1000ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1001cross_compiling=$ac_cv_prog_cc_cross 1002 1003cat > conftest.$ac_ext << EOF 1004 1005#line 1006 "configure" 1006#include "confdefs.h" 1007 1008main(){return(0);} 1009EOF 1010if { (eval echo configure:1011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1011 ac_cv_prog_cc_works=yes 1012 # If we can't run a trivial program, we are probably using a cross compiler. 1013 if (./conftest; exit) 2>/dev/null; then 1014 ac_cv_prog_cc_cross=no 1015 else 1016 ac_cv_prog_cc_cross=yes 1017 fi 1018else 1019 echo "configure: failed program was:" >&5 1020 cat conftest.$ac_ext >&5 1021 ac_cv_prog_cc_works=no 1022fi 1023rm -fr conftest* 1024ac_ext=c 1025# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 1026ac_cpp='$CPP $CPPFLAGS' 1027ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 1028ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 1029cross_compiling=$ac_cv_prog_cc_cross 1030 1031echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 1032if test $ac_cv_prog_cc_works = no; then 1033 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } 1034fi 1035echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1036echo "configure:1037: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1037echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1038cross_compiling=$ac_cv_prog_cc_cross 1039 1040echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1041echo "configure:1042: checking whether we are using GNU C" >&5 1042if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1043 echo $ac_n "(cached) $ac_c" 1>&6 1044else 1045 cat > conftest.c <<EOF 1046#ifdef __GNUC__ 1047 yes; 1048#endif 1049EOF 1050if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1051 ac_cv_prog_gcc=yes 1052else 1053 ac_cv_prog_gcc=no 1054fi 1055fi 1056 1057echo "$ac_t""$ac_cv_prog_gcc" 1>&6 1058 1059if test $ac_cv_prog_gcc = yes; then 1060 GCC=yes 1061else 1062 GCC= 1063fi 1064 1065ac_test_CFLAGS="${CFLAGS+set}" 1066ac_save_CFLAGS="$CFLAGS" 1067CFLAGS= 1068echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1069echo "configure:1070: checking whether ${CC-cc} accepts -g" >&5 1070if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1071 echo $ac_n "(cached) $ac_c" 1>&6 1072else 1073 echo 'void f(){}' > conftest.c 1074if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then 1075 ac_cv_prog_cc_g=yes 1076else 1077 ac_cv_prog_cc_g=no 1078fi 1079rm -f conftest* 1080 1081fi 1082 1083echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 1084if test "$ac_test_CFLAGS" = set; then 1085 CFLAGS="$ac_save_CFLAGS" 1086elif test $ac_cv_prog_cc_g = yes; then 1087 if test "$GCC" = yes; then 1088 CFLAGS="-g -O2" 1089 else 1090 CFLAGS="-g" 1091 fi 1092else 1093 if test "$GCC" = yes; then 1094 CFLAGS="-O2" 1095 else 1096 CFLAGS= 1097 fi 1098fi 1099 1100# Check whether --enable-shared or --disable-shared was given. 1101if test "${enable_shared+set}" = set; then 1102 enableval="$enable_shared" 1103 p=${PACKAGE-default} 1104case "$enableval" in 1105yes) enable_shared=yes ;; 1106no) enable_shared=no ;; 1107*) 1108 enable_shared=no 1109 # Look at the argument we got. We use all the common list separators. 1110 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1111 for pkg in $enableval; do 1112 if test "X$pkg" = "X$p"; then 1113 enable_shared=yes 1114 fi 1115 done 1116 IFS="$ac_save_ifs" 1117 ;; 1118esac 1119else 1120 enable_shared=yes 1121fi 1122 1123# Check whether --enable-static or --disable-static was given. 1124if test "${enable_static+set}" = set; then 1125 enableval="$enable_static" 1126 p=${PACKAGE-default} 1127case "$enableval" in 1128yes) enable_static=yes ;; 1129no) enable_static=no ;; 1130*) 1131 enable_static=no 1132 # Look at the argument we got. We use all the common list separators. 1133 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1134 for pkg in $enableval; do 1135 if test "X$pkg" = "X$p"; then 1136 enable_static=yes 1137 fi 1138 done 1139 IFS="$ac_save_ifs" 1140 ;; 1141esac 1142else 1143 enable_static=yes 1144fi 1145 1146# Check whether --enable-fast-install or --disable-fast-install was given. 1147if test "${enable_fast_install+set}" = set; then 1148 enableval="$enable_fast_install" 1149 p=${PACKAGE-default} 1150case "$enableval" in 1151yes) enable_fast_install=yes ;; 1152no) enable_fast_install=no ;; 1153*) 1154 enable_fast_install=no 1155 # Look at the argument we got. We use all the common list separators. 1156 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1157 for pkg in $enableval; do 1158 if test "X$pkg" = "X$p"; then 1159 enable_fast_install=yes 1160 fi 1161 done 1162 IFS="$ac_save_ifs" 1163 ;; 1164esac 1165else 1166 enable_fast_install=yes 1167fi 1168 1169echo $ac_n "checking build system type""... $ac_c" 1>&6 1170echo "configure:1171: checking build system type" >&5 1171 1172build_alias=$build 1173case "$build_alias" in 1174NONE) 1175 case $nonopt in 1176 NONE) build_alias=$host_alias ;; 1177 *) build_alias=$nonopt ;; 1178 esac ;; 1179esac 1180 1181build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` 1182build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1183build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1184build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1185echo "$ac_t""$build" 1>&6 1186 1187# Extract the first word of "ranlib", so it can be a program name with args. 1188set dummy ranlib; ac_word=$2 1189echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1190echo "configure:1191: checking for $ac_word" >&5 1191if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1192 echo $ac_n "(cached) $ac_c" 1>&6 1193else 1194 if test -n "$RANLIB"; then 1195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 1196else 1197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1198 ac_dummy="$PATH" 1199 for ac_dir in $ac_dummy; do 1200 test -z "$ac_dir" && ac_dir=. 1201 if test -f $ac_dir/$ac_word; then 1202 ac_cv_prog_RANLIB="ranlib" 1203 break 1204 fi 1205 done 1206 IFS="$ac_save_ifs" 1207 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" 1208fi 1209fi 1210RANLIB="$ac_cv_prog_RANLIB" 1211if test -n "$RANLIB"; then 1212 echo "$ac_t""$RANLIB" 1>&6 1213else 1214 echo "$ac_t""no" 1>&6 1215fi 1216 1217# Check whether --with-gnu-ld or --without-gnu-ld was given. 1218if test "${with_gnu_ld+set}" = set; then 1219 withval="$with_gnu_ld" 1220 test "$withval" = no || with_gnu_ld=yes 1221else 1222 with_gnu_ld=no 1223fi 1224 1225ac_prog=ld 1226if test "$ac_cv_prog_gcc" = yes; then 1227 # Check if gcc -print-prog-name=ld gives a path. 1228 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 1229echo "configure:1230: checking for ld used by GCC" >&5 1230 ac_prog=`($CC -print-prog-name=ld) 2>&5` 1231 case "$ac_prog" in 1232 # Accept absolute paths. 1233 [\\/]* | [A-Za-z]:[\\/]*) 1234 re_direlt='/[^/][^/]*/\.\./' 1235 # Canonicalize the path of ld 1236 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 1237 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 1238 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 1239 done 1240 test -z "$LD" && LD="$ac_prog" 1241 ;; 1242 "") 1243 # If it fails, then pretend we aren't using GCC. 1244 ac_prog=ld 1245 ;; 1246 *) 1247 # If it is relative, then search for the first ld in PATH. 1248 with_gnu_ld=unknown 1249 ;; 1250 esac 1251elif test "$with_gnu_ld" = yes; then 1252 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 1253echo "configure:1254: checking for GNU ld" >&5 1254else 1255 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 1256echo "configure:1257: checking for non-GNU ld" >&5 1257fi 1258if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then 1259 echo $ac_n "(cached) $ac_c" 1>&6 1260else 1261 if test -z "$LD"; then 1262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 1263 for ac_dir in $PATH; do 1264 test -z "$ac_dir" && ac_dir=. 1265 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 1266 ac_cv_path_LD="$ac_dir/$ac_prog" 1267 # Check to see if the program is GNU ld. I'd rather use --version, 1268 # but apparently some GNU ld's only accept -v. 1269 # Break only if it was the GNU/non-GNU ld that we prefer. 1270 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 1271 test "$with_gnu_ld" != no && break 1272 else 1273 test "$with_gnu_ld" != yes && break 1274 fi 1275 fi 1276 done 1277 IFS="$ac_save_ifs" 1278else 1279 ac_cv_path_LD="$LD" # Let the user override the test with a path. 1280fi 1281fi 1282 1283LD="$ac_cv_path_LD" 1284if test -n "$LD"; then 1285 echo "$ac_t""$LD" 1>&6 1286else 1287 echo "$ac_t""no" 1>&6 1288fi 1289test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } 1290echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 1291echo "configure:1292: checking if the linker ($LD) is GNU ld" >&5 1292if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then 1293 echo $ac_n "(cached) $ac_c" 1>&6 1294else 1295 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 1296if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 1297 ac_cv_prog_gnu_ld=yes 1298else 1299 ac_cv_prog_gnu_ld=no 1300fi 1301fi 1302 1303echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 1304 1305 1306echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 1307echo "configure:1308: checking for BSD-compatible nm" >&5 1308if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then 1309 echo $ac_n "(cached) $ac_c" 1>&6 1310else 1311 if test -n "$NM"; then 1312 # Let the user override the test. 1313 ac_cv_path_NM="$NM" 1314else 1315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 1316 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 1317 test -z "$ac_dir" && ac_dir=. 1318 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then 1319 # Check to see if the nm accepts a BSD-compat flag. 1320 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 1321 # nm: unknown option "B" ignored 1322 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 1323 ac_cv_path_NM="$ac_dir/nm -B" 1324 break 1325 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 1326 ac_cv_path_NM="$ac_dir/nm -p" 1327 break 1328 else 1329 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but 1330 continue # so that we can try to find one that supports BSD flags 1331 fi 1332 fi 1333 done 1334 IFS="$ac_save_ifs" 1335 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm 1336fi 1337fi 1338 1339NM="$ac_cv_path_NM" 1340echo "$ac_t""$NM" 1>&6 1341 1342echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1343echo "configure:1344: checking whether ln -s works" >&5 1344if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1345 echo $ac_n "(cached) $ac_c" 1>&6 1346else 1347 rm -f conftestdata 1348if ln -s X conftestdata 2>/dev/null 1349then 1350 rm -f conftestdata 1351 ac_cv_prog_LN_S="ln -s" 1352else 1353 ac_cv_prog_LN_S=ln 1354fi 1355fi 1356LN_S="$ac_cv_prog_LN_S" 1357if test "$ac_cv_prog_LN_S" = "ln -s"; then 1358 echo "$ac_t""yes" 1>&6 1359else 1360 echo "$ac_t""no" 1>&6 1361fi 1362 1363 1364case "$target" in 1365NONE) lt_target="$host" ;; 1366*) lt_target="$target" ;; 1367esac 1368 1369# Check for any special flags to pass to ltconfig. 1370libtool_flags="--cache-file=$cache_file" 1371test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" 1372test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" 1373test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" 1374test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" 1375test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" 1376 1377 1378# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 1379if test "${enable_libtool_lock+set}" = set; then 1380 enableval="$enable_libtool_lock" 1381 : 1382fi 1383 1384test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" 1385test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" 1386 1387# Some flags need to be propagated to the compiler or linker for good 1388# libtool support. 1389case "$lt_target" in 1390*-*-irix6*) 1391 # Find out which ABI we are using. 1392 echo '#line 1393 "configure"' > conftest.$ac_ext 1393 if { (eval echo configure:1394: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1394 case "`/usr/bin/file conftest.o`" in 1395 *32-bit*) 1396 LD="${LD-ld} -32" 1397 ;; 1398 *N32*) 1399 LD="${LD-ld} -n32" 1400 ;; 1401 *64-bit*) 1402 LD="${LD-ld} -64" 1403 ;; 1404 esac 1405 fi 1406 rm -rf conftest* 1407 ;; 1408 1409*-*-sco3.2v5*) 1410 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 1411 SAVE_CFLAGS="$CFLAGS" 1412 CFLAGS="$CFLAGS -belf" 1413 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 1414echo "configure:1415: checking whether the C compiler needs -belf" >&5 1415if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then 1416 echo $ac_n "(cached) $ac_c" 1>&6 1417else 1418 cat > conftest.$ac_ext <<EOF 1419#line 1420 "configure" 1420#include "confdefs.h" 1421 1422int main() { 1423 1424; return 0; } 1425EOF 1426if { (eval echo configure:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1427 rm -rf conftest* 1428 lt_cv_cc_needs_belf=yes 1429else 1430 echo "configure: failed program was:" >&5 1431 cat conftest.$ac_ext >&5 1432 rm -rf conftest* 1433 lt_cv_cc_needs_belf=no 1434fi 1435rm -f conftest* 1436fi 1437 1438echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 1439 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 1440 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 1441 CFLAGS="$SAVE_CFLAGS" 1442 fi 1443 ;; 1444 1445 1446esac 1447 1448 1449# Save cache, so that ltconfig can load it 1450cat > confcache <<\EOF 1451# This file is a shell script that caches the results of configure 1452# tests run on this system so they can be shared between configure 1453# scripts and configure runs. It is not useful on other systems. 1454# If it contains results you don't want to keep, you may remove or edit it. 1455# 1456# By default, configure uses ./config.cache as the cache file, 1457# creating it if it does not exist already. You can give configure 1458# the --cache-file=FILE option to use a different cache file; that is 1459# what configure does when it calls configure scripts in 1460# subdirectories, so they share the cache. 1461# Giving --cache-file=/dev/null disables caching, for debugging configure. 1462# config.status only pays attention to the cache file if you give it the 1463# --recheck option to rerun configure. 1464# 1465EOF 1466# The following way of writing the cache mishandles newlines in values, 1467# but we know of no workaround that is simple, portable, and efficient. 1468# So, don't put newlines in cache variables' values. 1469# Ultrix sh set writes to stderr and can't be redirected directly, 1470# and sets the high bit in the cache file unless we assign to the vars. 1471(set) 2>&1 | 1472 case `(ac_space=' '; set | grep ac_space) 2>&1` in 1473 *ac_space=\ *) 1474 # `set' does not quote correctly, so add quotes (double-quote substitution 1475 # turns \\\\ into \\, and sed turns \\ into \). 1476 sed -n \ 1477 -e "s/'/'\\\\''/g" \ 1478 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 1479 ;; 1480 *) 1481 # `set' quotes correctly as required by POSIX, so do not add quotes. 1482 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 1483 ;; 1484 esac >> confcache 1485if cmp -s $cache_file confcache; then 1486 : 1487else 1488 if test -w $cache_file; then 1489 echo "updating cache $cache_file" 1490 cat confcache > $cache_file 1491 else 1492 echo "not updating unwritable cache $cache_file" 1493 fi 1494fi 1495rm -f confcache 1496 1497 1498# Actually configure libtool. ac_aux_dir is where install-sh is found. 1499CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ 1500LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ 1501LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ 1502DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ 1503${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ 1504$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \ 1505|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; } 1506 1507# Reload cache, that may have been modified by ltconfig 1508if test -r "$cache_file"; then 1509 echo "loading cache $cache_file" 1510 . $cache_file 1511else 1512 echo "creating cache $cache_file" 1513 > $cache_file 1514fi 1515 1516 1517# This can be used to rebuild libtool when needed 1518LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" 1519 1520# Always use our own libtool. 1521LIBTOOL='$(SHELL) $(top_builddir)/libtool' 1522 1523# Redirect the config.log output again, so that the ltconfig log is not 1524# clobbered by the next message. 1525exec 5>>./config.log 1526 1527echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 1528echo "configure:1529: checking whether ${MAKE-make} sets \${MAKE}" >&5 1529set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 1530if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then 1531 echo $ac_n "(cached) $ac_c" 1>&6 1532else 1533 cat > conftestmake <<\EOF 1534all: 1535 @echo 'ac_maketemp="${MAKE}"' 1536EOF 1537# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1538eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` 1539if test -n "$ac_maketemp"; then 1540 eval ac_cv_prog_make_${ac_make}_set=yes 1541else 1542 eval ac_cv_prog_make_${ac_make}_set=no 1543fi 1544rm -f conftestmake 1545fi 1546if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1547 echo "$ac_t""yes" 1>&6 1548 SET_MAKE= 1549else 1550 echo "$ac_t""no" 1>&6 1551 SET_MAKE="MAKE=${MAKE-make}" 1552fi 1553 1554# Find a good install program. We prefer a C program (faster), 1555# so one script is as good as another. But avoid the broken or 1556# incompatible versions: 1557# SysV /etc/install, /usr/sbin/install 1558# SunOS /usr/etc/install 1559# IRIX /sbin/install 1560# AIX /bin/install 1561# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1562# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1563# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1564# ./install, which can be erroneously created by make from ./install.sh. 1565echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1566echo "configure:1567: checking for a BSD compatible install" >&5 1567if test -z "$INSTALL"; then 1568if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then 1569 echo $ac_n "(cached) $ac_c" 1>&6 1570else 1571 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" 1572 for ac_dir in $PATH; do 1573 # Account for people who put trailing slashes in PATH elements. 1574 case "$ac_dir/" in 1575 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 1576 *) 1577 # OSF1 and SCO ODT 3.0 have their own names for install. 1578 # Don't use installbsd from OSF since it installs stuff as root 1579 # by default. 1580 for ac_prog in ginstall scoinst install; do 1581 if test -f $ac_dir/$ac_prog; then 1582 if test $ac_prog = install && 1583 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 1584 # AIX install. It has an incompatible calling convention. 1585 : 1586 else 1587 ac_cv_path_install="$ac_dir/$ac_prog -c" 1588 break 2 1589 fi 1590 fi 1591 done 1592 ;; 1593 esac 1594 done 1595 IFS="$ac_save_IFS" 1596 1597fi 1598 if test "${ac_cv_path_install+set}" = set; then 1599 INSTALL="$ac_cv_path_install" 1600 else 1601 # As a last resort, use the slow shell script. We don't cache a 1602 # path for INSTALL within a source directory, because that will 1603 # break other packages using the cache if that directory is 1604 # removed, or if the path is relative. 1605 INSTALL="$ac_install_sh" 1606 fi 1607fi 1608echo "$ac_t""$INSTALL" 1>&6 1609 1610# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1611# It thinks the first close brace ends the variable substitution. 1612test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1613 1614test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' 1615 1616test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1617 1618 1619 1620# Extract the first word of "uname", so it can be a program name with args. 1621set dummy uname; ac_word=$2 1622echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1623echo "configure:1624: checking for $ac_word" >&5 1624if eval "test \"`echo '$''{'ac_cv_prog_system'+set}'`\" = set"; then 1625 echo $ac_n "(cached) $ac_c" 1>&6 1626else 1627 if test -n "$system"; then 1628 ac_cv_prog_system="$system" # Let the user override the test. 1629else 1630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1631 ac_dummy="$PATH" 1632 for ac_dir in $ac_dummy; do 1633 test -z "$ac_dir" && ac_dir=. 1634 if test -f $ac_dir/$ac_word; then 1635 ac_cv_prog_system="`uname`" 1636 break 1637 fi 1638 done 1639 IFS="$ac_save_ifs" 1640 test -z "$ac_cv_prog_system" && ac_cv_prog_system="unknown" 1641fi 1642fi 1643system="$ac_cv_prog_system" 1644if test -n "$system"; then 1645 echo "$ac_t""$system" 1>&6 1646else 1647 echo "$ac_t""no" 1>&6 1648fi 1649 1650if test "x$system" = xLinux; then 1651# Extract the first word of "uname", so it can be a program name with args. 1652set dummy uname; ac_word=$2 1653echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1654echo "configure:1655: checking for $ac_word" >&5 1655if eval "test \"`echo '$''{'ac_cv_prog_machine'+set}'`\" = set"; then 1656 echo $ac_n "(cached) $ac_c" 1>&6 1657else 1658 if test -n "$machine"; then 1659 ac_cv_prog_machine="$machine" # Let the user override the test. 1660else 1661 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 1662 ac_dummy="$PATH" 1663 for ac_dir in $ac_dummy; do 1664 test -z "$ac_dir" && ac_dir=. 1665 if test -f $ac_dir/$ac_word; then 1666 ac_cv_prog_machine="`uname --machine`" 1667 break 1668 fi 1669 done 1670 IFS="$ac_save_ifs" 1671 test -z "$ac_cv_prog_machine" && ac_cv_prog_machine="unknown" 1672fi 1673fi 1674machine="$ac_cv_prog_machine" 1675if test -n "$machine"; then 1676 echo "$ac_t""$machine" 1>&6 1677else 1678 echo "$ac_t""no" 1>&6 1679fi 1680 1681fi 1682echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1683echo "configure:1684: checking how to run the C preprocessor" >&5 1684# On Suns, sometimes $CPP names a directory. 1685if test -n "$CPP" && test -d "$CPP"; then 1686 CPP= 1687fi 1688if test -z "$CPP"; then 1689if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then 1690 echo $ac_n "(cached) $ac_c" 1>&6 1691else 1692 # This must be in double quotes, not single quotes, because CPP may get 1693 # substituted into the Makefile and "${CC-cc}" will confuse make. 1694 CPP="${CC-cc} -E" 1695 # On the NeXT, cc -E runs the code through the compiler's parser, 1696 # not just through cpp. 1697 cat > conftest.$ac_ext <<EOF 1698#line 1699 "configure" 1699#include "confdefs.h" 1700#include <assert.h> 1701Syntax Error 1702EOF 1703ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1704{ (eval echo configure:1705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1705ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1706if test -z "$ac_err"; then 1707 : 1708else 1709 echo "$ac_err" >&5 1710 echo "configure: failed program was:" >&5 1711 cat conftest.$ac_ext >&5 1712 rm -rf conftest* 1713 CPP="${CC-cc} -E -traditional-cpp" 1714 cat > conftest.$ac_ext <<EOF 1715#line 1716 "configure" 1716#include "confdefs.h" 1717#include <assert.h> 1718Syntax Error 1719EOF 1720ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1721{ (eval echo configure:1722: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1722ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1723if test -z "$ac_err"; then 1724 : 1725else 1726 echo "$ac_err" >&5 1727 echo "configure: failed program was:" >&5 1728 cat conftest.$ac_ext >&5 1729 rm -rf conftest* 1730 CPP="${CC-cc} -nologo -E" 1731 cat > conftest.$ac_ext <<EOF 1732#line 1733 "configure" 1733#include "confdefs.h" 1734#include <assert.h> 1735Syntax Error 1736EOF 1737ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1738{ (eval echo configure:1739: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1739ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1740if test -z "$ac_err"; then 1741 : 1742else 1743 echo "$ac_err" >&5 1744 echo "configure: failed program was:" >&5 1745 cat conftest.$ac_ext >&5 1746 rm -rf conftest* 1747 CPP=/lib/cpp 1748fi 1749rm -f conftest* 1750fi 1751rm -f conftest* 1752fi 1753rm -f conftest* 1754 ac_cv_prog_CPP="$CPP" 1755fi 1756 CPP="$ac_cv_prog_CPP" 1757else 1758 ac_cv_prog_CPP="$CPP" 1759fi 1760echo "$ac_t""$CPP" 1>&6 1761 1762echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1763echo "configure:1764: checking for ANSI C header files" >&5 1764if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1765 echo $ac_n "(cached) $ac_c" 1>&6 1766else 1767 cat > conftest.$ac_ext <<EOF 1768#line 1769 "configure" 1769#include "confdefs.h" 1770#include <stdlib.h> 1771#include <stdarg.h> 1772#include <string.h> 1773#include <float.h> 1774EOF 1775ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1776{ (eval echo configure:1777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1777ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1778if test -z "$ac_err"; then 1779 rm -rf conftest* 1780 ac_cv_header_stdc=yes 1781else 1782 echo "$ac_err" >&5 1783 echo "configure: failed program was:" >&5 1784 cat conftest.$ac_ext >&5 1785 rm -rf conftest* 1786 ac_cv_header_stdc=no 1787fi 1788rm -f conftest* 1789 1790if test $ac_cv_header_stdc = yes; then 1791 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1792cat > conftest.$ac_ext <<EOF 1793#line 1794 "configure" 1794#include "confdefs.h" 1795#include <string.h> 1796EOF 1797if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1798 egrep "memchr" >/dev/null 2>&1; then 1799 : 1800else 1801 rm -rf conftest* 1802 ac_cv_header_stdc=no 1803fi 1804rm -f conftest* 1805 1806fi 1807 1808if test $ac_cv_header_stdc = yes; then 1809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1810cat > conftest.$ac_ext <<EOF 1811#line 1812 "configure" 1812#include "confdefs.h" 1813#include <stdlib.h> 1814EOF 1815if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1816 egrep "free" >/dev/null 2>&1; then 1817 : 1818else 1819 rm -rf conftest* 1820 ac_cv_header_stdc=no 1821fi 1822rm -f conftest* 1823 1824fi 1825 1826if test $ac_cv_header_stdc = yes; then 1827 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1828if test "$cross_compiling" = yes; then 1829 : 1830else 1831 cat > conftest.$ac_ext <<EOF 1832#line 1833 "configure" 1833#include "confdefs.h" 1834#include <ctype.h> 1835#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1836#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1837#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1838int main () { int i; for (i = 0; i < 256; i++) 1839if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1840exit (0); } 1841 1842EOF 1843if { (eval echo configure:1844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1844then 1845 : 1846else 1847 echo "configure: failed program was:" >&5 1848 cat conftest.$ac_ext >&5 1849 rm -fr conftest* 1850 ac_cv_header_stdc=no 1851fi 1852rm -fr conftest* 1853fi 1854 1855fi 1856fi 1857 1858echo "$ac_t""$ac_cv_header_stdc" 1>&6 1859if test $ac_cv_header_stdc = yes; then 1860 cat >> confdefs.h <<\EOF 1861#define STDC_HEADERS 1 1862EOF 1863 1864fi 1865 1866echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6 1867echo "configure:1868: checking for pow in -lm" >&5 1868ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'` 1869if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 1870 echo $ac_n "(cached) $ac_c" 1>&6 1871else 1872 ac_save_LIBS="$LIBS" 1873LIBS="-lm $LIBS" 1874cat > conftest.$ac_ext <<EOF 1875#line 1876 "configure" 1876#include "confdefs.h" 1877/* Override any gcc2 internal prototype to avoid an error. */ 1878/* We use char because int might match the return type of a gcc2 1879 builtin and then its argument prototype would still apply. */ 1880char pow(); 1881 1882int main() { 1883pow() 1884; return 0; } 1885EOF 1886if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1887 rm -rf conftest* 1888 eval "ac_cv_lib_$ac_lib_var=yes" 1889else 1890 echo "configure: failed program was:" >&5 1891 cat conftest.$ac_ext >&5 1892 rm -rf conftest* 1893 eval "ac_cv_lib_$ac_lib_var=no" 1894fi 1895rm -f conftest* 1896LIBS="$ac_save_LIBS" 1897 1898fi 1899if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 1900 echo "$ac_t""yes" 1>&6 1901 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 1902 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 1903 cat >> confdefs.h <<EOF 1904#define $ac_tr_lib 1 1905EOF 1906 1907 LIBS="-lm $LIBS" 1908 1909else 1910 echo "$ac_t""no" 1>&6 1911fi 1912 1913 1914if test "x$ac_cv_lib_m_pow" = xyes; then 1915 AALIB_LIBS="$AALIB_LIBS -lm" 1916fi 1917 1918cc_uses_g=yes 1919if test x$GCC = xyes; then 1920 if test x$ac_cv_prog_gcc_g = xyes; then 1921 : 1922 else 1923 cc_uses_g=no 1924 fi 1925fi 1926 1927# Check whether --with-x11-driver or --without-x11-driver was given. 1928if test "${with_x11_driver+set}" = set; then 1929 withval="$with_x11_driver" 1930 1931 if test x$withval = xno; then 1932 x_driver_test=no 1933 fi 1934 1935fi 1936 1937# Check whether --with-slang-driver or --without-slang-driver was given. 1938if test "${with_slang_driver+set}" = set; then 1939 withval="$with_slang_driver" 1940 1941 if test x$withval = xno; then 1942 slang_driver_test=no 1943 fi 1944 1945fi 1946 1947# Check whether --with-curses-driver or --without-curses-driver was given. 1948if test "${with_curses_driver+set}" = set; then 1949 withval="$with_curses_driver" 1950 1951 if test x$withval = xno; then 1952 curses_driver_test=no 1953 fi 1954 if test x$withval = xyes; then 1955 force_curses_driver=true 1956 fi 1957 1958fi 1959 1960# Check whether --with-gpm-mouse or --without-gpm-mouse was given. 1961if test "${with_gpm_mouse+set}" = set; then 1962 withval="$with_gpm_mouse" 1963 if test x$withval = xyes 1964 then 1965 echo "configure: warning: Usage is: --with-gpm-mouse=base-dir" 1>&2 1966 else 1967 LIBS="$LIBS -L$withval/lib -lgpm" 1968 cat >> confdefs.h <<\EOF 1969#define GPM_MOUSEDRIVER 1 1970EOF 1971 1972 gpm_mousedriver=true 1973 CFLAGS="$CFLAGS -I$withval/include" 1974 AALIB_LIBS="$AALIB_LIBS -L$withval/lib -lgpm" 1975 echo "$ac_t""defining use_gpm" 1>&6 1976 fi 1977 1978fi 1979 1980 1981if test "$x_driver_test" = yes; then 1982# If we find X, set shell vars x_includes and x_libraries to the 1983# paths, otherwise set no_x=yes. 1984# Uses ac_ vars as temps to allow command line to override cache and checks. 1985# --without-x overrides everything else, but does not touch the cache. 1986echo $ac_n "checking for X""... $ac_c" 1>&6 1987echo "configure:1988: checking for X" >&5 1988 1989# Check whether --with-x or --without-x was given. 1990if test "${with_x+set}" = set; then 1991 withval="$with_x" 1992 : 1993fi 1994 1995# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 1996if test "x$with_x" = xno; then 1997 # The user explicitly disabled X. 1998 have_x=disabled 1999else 2000 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 2001 # Both variables are already set. 2002 have_x=yes 2003 else 2004if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then 2005 echo $ac_n "(cached) $ac_c" 1>&6 2006else 2007 # One or both of the vars are not set, and there is no cached value. 2008ac_x_includes=NO ac_x_libraries=NO 2009rm -fr conftestdir 2010if mkdir conftestdir; then 2011 cd conftestdir 2012 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 2013 cat > Imakefile <<'EOF' 2014acfindx: 2015 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 2016EOF 2017 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 2018 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2019 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 2020 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 2021 for ac_extension in a so sl; do 2022 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 2023 test -f $ac_im_libdir/libX11.$ac_extension; then 2024 ac_im_usrlibdir=$ac_im_libdir; break 2025 fi 2026 done 2027 # Screen out bogus values from the imake configuration. They are 2028 # bogus both because they are the default anyway, and because 2029 # using them would break gcc on systems where it needs fixed includes. 2030 case "$ac_im_incroot" in 2031 /usr/include) ;; 2032 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;; 2033 esac 2034 case "$ac_im_usrlibdir" in 2035 /usr/lib | /lib) ;; 2036 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;; 2037 esac 2038 fi 2039 cd .. 2040 rm -fr conftestdir 2041fi 2042 2043if test "$ac_x_includes" = NO; then 2044 # Guess where to find include files, by looking for this one X11 .h file. 2045 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h 2046 2047 # First, try using that file with no special directory specified. 2048cat > conftest.$ac_ext <<EOF 2049#line 2050 "configure" 2050#include "confdefs.h" 2051#include <$x_direct_test_include> 2052EOF 2053ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2054{ (eval echo configure:2055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2055ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2056if test -z "$ac_err"; then 2057 rm -rf conftest* 2058 # We can compile using X headers with no special include directory. 2059ac_x_includes= 2060else 2061 echo "$ac_err" >&5 2062 echo "configure: failed program was:" >&5 2063 cat conftest.$ac_ext >&5 2064 rm -rf conftest* 2065 # Look for the header file in a standard set of common directories. 2066# Check X11 before X11Rn because it is often a symlink to the current release. 2067 for ac_dir in \ 2068 /usr/X11/include \ 2069 /usr/X11R6/include \ 2070 /usr/X11R5/include \ 2071 /usr/X11R4/include \ 2072 \ 2073 /usr/include/X11 \ 2074 /usr/include/X11R6 \ 2075 /usr/include/X11R5 \ 2076 /usr/include/X11R4 \ 2077 \ 2078 /usr/local/X11/include \ 2079 /usr/local/X11R6/include \ 2080 /usr/local/X11R5/include \ 2081 /usr/local/X11R4/include \ 2082 \ 2083 /usr/local/include/X11 \ 2084 /usr/local/include/X11R6 \ 2085 /usr/local/include/X11R5 \ 2086 /usr/local/include/X11R4 \ 2087 \ 2088 /usr/X386/include \ 2089 /usr/x386/include \ 2090 /usr/XFree86/include/X11 \ 2091 \ 2092 /usr/include \ 2093 /usr/local/include \ 2094 /usr/unsupported/include \ 2095 /usr/athena/include \ 2096 /usr/local/x11r5/include \ 2097 /usr/lpp/Xamples/include \ 2098 \ 2099 /usr/openwin/include \ 2100 /usr/openwin/share/include \ 2101 ; \ 2102 do 2103 if test -r "$ac_dir/$x_direct_test_include"; then 2104 ac_x_includes=$ac_dir 2105 break 2106 fi 2107 done 2108fi 2109rm -f conftest* 2110fi # $ac_x_includes = NO 2111 2112if test "$ac_x_libraries" = NO; then 2113 # Check for the libraries. 2114 2115 test -z "$x_direct_test_library" && x_direct_test_library=Xt 2116 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc 2117 2118 # See if we find them without any special options. 2119 # Don't add to $LIBS permanently. 2120 ac_save_LIBS="$LIBS" 2121 LIBS="-l$x_direct_test_library $LIBS" 2122cat > conftest.$ac_ext <<EOF 2123#line 2124 "configure" 2124#include "confdefs.h" 2125 2126int main() { 2127${x_direct_test_function}() 2128; return 0; } 2129EOF 2130if { (eval echo configure:2131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2131 rm -rf conftest* 2132 LIBS="$ac_save_LIBS" 2133# We can link X programs with no special library path. 2134ac_x_libraries= 2135else 2136 echo "configure: failed program was:" >&5 2137 cat conftest.$ac_ext >&5 2138 rm -rf conftest* 2139 LIBS="$ac_save_LIBS" 2140# First see if replacing the include by lib works. 2141# Check X11 before X11Rn because it is often a symlink to the current release. 2142for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \ 2143 /usr/X11/lib \ 2144 /usr/X11R6/lib \ 2145 /usr/X11R5/lib \ 2146 /usr/X11R4/lib \ 2147 \ 2148 /usr/lib/X11 \ 2149 /usr/lib/X11R6 \ 2150 /usr/lib/X11R5 \ 2151 /usr/lib/X11R4 \ 2152 \ 2153 /usr/local/X11/lib \ 2154 /usr/local/X11R6/lib \ 2155 /usr/local/X11R5/lib \ 2156 /usr/local/X11R4/lib \ 2157 \ 2158 /usr/local/lib/X11 \ 2159 /usr/local/lib/X11R6 \ 2160 /usr/local/lib/X11R5 \ 2161 /usr/local/lib/X11R4 \ 2162 \ 2163 /usr/X386/lib \ 2164 /usr/x386/lib \ 2165 /usr/XFree86/lib/X11 \ 2166 \ 2167 /usr/lib \ 2168 /usr/local/lib \ 2169 /usr/unsupported/lib \ 2170 /usr/athena/lib \ 2171 /usr/local/x11r5/lib \ 2172 /usr/lpp/Xamples/lib \ 2173 /lib/usr/lib/X11 \ 2174 \ 2175 /usr/openwin/lib \ 2176 /usr/openwin/share/lib \ 2177 ; \ 2178do 2179 for ac_extension in a so sl; do 2180 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then 2181 ac_x_libraries=$ac_dir 2182 break 2 2183 fi 2184 done 2185done 2186fi 2187rm -f conftest* 2188fi # $ac_x_libraries = NO 2189 2190if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then 2191 # Didn't find X anywhere. Cache the known absence of X. 2192 ac_cv_have_x="have_x=no" 2193else 2194 # Record where we found X for the cache. 2195 ac_cv_have_x="have_x=yes \ 2196 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 2197fi 2198fi 2199 fi 2200 eval "$ac_cv_have_x" 2201fi # $with_x != no 2202 2203if test "$have_x" != yes; then 2204 echo "$ac_t""$have_x" 1>&6 2205 no_x=yes 2206else 2207 # If each of the values was on the command line, it overrides each guess. 2208 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 2209 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 2210 # Update the cache value to reflect the command line values. 2211 ac_cv_have_x="have_x=yes \ 2212 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 2213 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6 2214fi 2215 2216if test "$no_x" = yes; then 2217 # Not all programs may use this symbol, but it does not hurt to define it. 2218 cat >> confdefs.h <<\EOF 2219#define X_DISPLAY_MISSING 1 2220EOF 2221 2222 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 2223else 2224 if test -n "$x_includes"; then 2225 X_CFLAGS="$X_CFLAGS -I$x_includes" 2226 fi 2227 2228 # It would also be nice to do this for all -L options, not just this one. 2229 if test -n "$x_libraries"; then 2230 X_LIBS="$X_LIBS -L$x_libraries" 2231 # For Solaris; some versions of Sun CC require a space after -R and 2232 # others require no space. Words are not sufficient . . . . 2233 case "`(uname -sr) 2>/dev/null`" in 2234 "SunOS 5"*) 2235 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6 2236echo "configure:2237: checking whether -R must be followed by a space" >&5 2237 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries" 2238 cat > conftest.$ac_ext <<EOF 2239#line 2240 "configure" 2240#include "confdefs.h" 2241 2242int main() { 2243 2244; return 0; } 2245EOF 2246if { (eval echo configure:2247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2247 rm -rf conftest* 2248 ac_R_nospace=yes 2249else 2250 echo "configure: failed program was:" >&5 2251 cat conftest.$ac_ext >&5 2252 rm -rf conftest* 2253 ac_R_nospace=no 2254fi 2255rm -f conftest* 2256 if test $ac_R_nospace = yes; then 2257 echo "$ac_t""no" 1>&6 2258 X_LIBS="$X_LIBS -R$x_libraries" 2259 else 2260 LIBS="$ac_xsave_LIBS -R $x_libraries" 2261 cat > conftest.$ac_ext <<EOF 2262#line 2263 "configure" 2263#include "confdefs.h" 2264 2265int main() { 2266 2267; return 0; } 2268EOF 2269if { (eval echo configure:2270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2270 rm -rf conftest* 2271 ac_R_space=yes 2272else 2273 echo "configure: failed program was:" >&5 2274 cat conftest.$ac_ext >&5 2275 rm -rf conftest* 2276 ac_R_space=no 2277fi 2278rm -f conftest* 2279 if test $ac_R_space = yes; then 2280 echo "$ac_t""yes" 1>&6 2281 X_LIBS="$X_LIBS -R $x_libraries" 2282 else 2283 echo "$ac_t""neither works" 1>&6 2284 fi 2285 fi 2286 LIBS="$ac_xsave_LIBS" 2287 esac 2288 fi 2289 2290 # Check for system-dependent libraries X programs must link with. 2291 # Do this before checking for the system-independent R6 libraries 2292 # (-lICE), since we may need -lsocket or whatever for X linking. 2293 2294 if test "$ISC" = yes; then 2295 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 2296 else 2297 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X 2298 # libraries were built with DECnet support. And karl@cs.umb.edu says 2299 # the Alpha needs dnet_stub (dnet does not exist). 2300 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 2301echo "configure:2302: checking for dnet_ntoa in -ldnet" >&5 2302ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` 2303if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2304 echo $ac_n "(cached) $ac_c" 1>&6 2305else 2306 ac_save_LIBS="$LIBS" 2307LIBS="-ldnet $LIBS" 2308cat > conftest.$ac_ext <<EOF 2309#line 2310 "configure" 2310#include "confdefs.h" 2311/* Override any gcc2 internal prototype to avoid an error. */ 2312/* We use char because int might match the return type of a gcc2 2313 builtin and then its argument prototype would still apply. */ 2314char dnet_ntoa(); 2315 2316int main() { 2317dnet_ntoa() 2318; return 0; } 2319EOF 2320if { (eval echo configure:2321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2321 rm -rf conftest* 2322 eval "ac_cv_lib_$ac_lib_var=yes" 2323else 2324 echo "configure: failed program was:" >&5 2325 cat conftest.$ac_ext >&5 2326 rm -rf conftest* 2327 eval "ac_cv_lib_$ac_lib_var=no" 2328fi 2329rm -f conftest* 2330LIBS="$ac_save_LIBS" 2331 2332fi 2333if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2334 echo "$ac_t""yes" 1>&6 2335 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 2336else 2337 echo "$ac_t""no" 1>&6 2338fi 2339 2340 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 2341 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6 2342echo "configure:2343: checking for dnet_ntoa in -ldnet_stub" >&5 2343ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'` 2344if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2345 echo $ac_n "(cached) $ac_c" 1>&6 2346else 2347 ac_save_LIBS="$LIBS" 2348LIBS="-ldnet_stub $LIBS" 2349cat > conftest.$ac_ext <<EOF 2350#line 2351 "configure" 2351#include "confdefs.h" 2352/* Override any gcc2 internal prototype to avoid an error. */ 2353/* We use char because int might match the return type of a gcc2 2354 builtin and then its argument prototype would still apply. */ 2355char dnet_ntoa(); 2356 2357int main() { 2358dnet_ntoa() 2359; return 0; } 2360EOF 2361if { (eval echo configure:2362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2362 rm -rf conftest* 2363 eval "ac_cv_lib_$ac_lib_var=yes" 2364else 2365 echo "configure: failed program was:" >&5 2366 cat conftest.$ac_ext >&5 2367 rm -rf conftest* 2368 eval "ac_cv_lib_$ac_lib_var=no" 2369fi 2370rm -f conftest* 2371LIBS="$ac_save_LIBS" 2372 2373fi 2374if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2375 echo "$ac_t""yes" 1>&6 2376 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 2377else 2378 echo "$ac_t""no" 1>&6 2379fi 2380 2381 fi 2382 2383 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 2384 # to get the SysV transport functions. 2385 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4) 2386 # needs -lnsl. 2387 # The nsl library prevents programs from opening the X display 2388 # on Irix 5.2, according to dickey@clark.net. 2389 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6 2390echo "configure:2391: checking for gethostbyname" >&5 2391if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then 2392 echo $ac_n "(cached) $ac_c" 1>&6 2393else 2394 cat > conftest.$ac_ext <<EOF 2395#line 2396 "configure" 2396#include "confdefs.h" 2397/* System header to define __stub macros and hopefully few prototypes, 2398 which can conflict with char gethostbyname(); below. */ 2399#include <assert.h> 2400/* Override any gcc2 internal prototype to avoid an error. */ 2401/* We use char because int might match the return type of a gcc2 2402 builtin and then its argument prototype would still apply. */ 2403char gethostbyname(); 2404 2405int main() { 2406 2407/* The GNU C library defines this for functions which it implements 2408 to always fail with ENOSYS. Some functions are actually named 2409 something starting with __ and the normal name is an alias. */ 2410#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 2411choke me 2412#else 2413gethostbyname(); 2414#endif 2415 2416; return 0; } 2417EOF 2418if { (eval echo configure:2419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2419 rm -rf conftest* 2420 eval "ac_cv_func_gethostbyname=yes" 2421else 2422 echo "configure: failed program was:" >&5 2423 cat conftest.$ac_ext >&5 2424 rm -rf conftest* 2425 eval "ac_cv_func_gethostbyname=no" 2426fi 2427rm -f conftest* 2428fi 2429 2430if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then 2431 echo "$ac_t""yes" 1>&6 2432 : 2433else 2434 echo "$ac_t""no" 1>&6 2435fi 2436 2437 if test $ac_cv_func_gethostbyname = no; then 2438 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6 2439echo "configure:2440: checking for gethostbyname in -lnsl" >&5 2440ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'` 2441if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2442 echo $ac_n "(cached) $ac_c" 1>&6 2443else 2444 ac_save_LIBS="$LIBS" 2445LIBS="-lnsl $LIBS" 2446cat > conftest.$ac_ext <<EOF 2447#line 2448 "configure" 2448#include "confdefs.h" 2449/* Override any gcc2 internal prototype to avoid an error. */ 2450/* We use char because int might match the return type of a gcc2 2451 builtin and then its argument prototype would still apply. */ 2452char gethostbyname(); 2453 2454int main() { 2455gethostbyname() 2456; return 0; } 2457EOF 2458if { (eval echo configure:2459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2459 rm -rf conftest* 2460 eval "ac_cv_lib_$ac_lib_var=yes" 2461else 2462 echo "configure: failed program was:" >&5 2463 cat conftest.$ac_ext >&5 2464 rm -rf conftest* 2465 eval "ac_cv_lib_$ac_lib_var=no" 2466fi 2467rm -f conftest* 2468LIBS="$ac_save_LIBS" 2469 2470fi 2471if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2472 echo "$ac_t""yes" 1>&6 2473 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 2474else 2475 echo "$ac_t""no" 1>&6 2476fi 2477 2478 fi 2479 2480 # lieder@skyler.mavd.honeywell.com says without -lsocket, 2481 # socket/setsockopt and other routines are undefined under SCO ODT 2482 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 2483 # on later versions), says simon@lia.di.epfl.ch: it contains 2484 # gethostby* variants that don't use the nameserver (or something). 2485 # -lsocket must be given before -lnsl if both are needed. 2486 # We assume that if connect needs -lnsl, so does gethostbyname. 2487 echo $ac_n "checking for connect""... $ac_c" 1>&6 2488echo "configure:2489: checking for connect" >&5 2489if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then 2490 echo $ac_n "(cached) $ac_c" 1>&6 2491else 2492 cat > conftest.$ac_ext <<EOF 2493#line 2494 "configure" 2494#include "confdefs.h" 2495/* System header to define __stub macros and hopefully few prototypes, 2496 which can conflict with char connect(); below. */ 2497#include <assert.h> 2498/* Override any gcc2 internal prototype to avoid an error. */ 2499/* We use char because int might match the return type of a gcc2 2500 builtin and then its argument prototype would still apply. */ 2501char connect(); 2502 2503int main() { 2504 2505/* The GNU C library defines this for functions which it implements 2506 to always fail with ENOSYS. Some functions are actually named 2507 something starting with __ and the normal name is an alias. */ 2508#if defined (__stub_connect) || defined (__stub___connect) 2509choke me 2510#else 2511connect(); 2512#endif 2513 2514; return 0; } 2515EOF 2516if { (eval echo configure:2517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2517 rm -rf conftest* 2518 eval "ac_cv_func_connect=yes" 2519else 2520 echo "configure: failed program was:" >&5 2521 cat conftest.$ac_ext >&5 2522 rm -rf conftest* 2523 eval "ac_cv_func_connect=no" 2524fi 2525rm -f conftest* 2526fi 2527 2528if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then 2529 echo "$ac_t""yes" 1>&6 2530 : 2531else 2532 echo "$ac_t""no" 1>&6 2533fi 2534 2535 if test $ac_cv_func_connect = no; then 2536 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6 2537echo "configure:2538: checking for connect in -lsocket" >&5 2538ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'` 2539if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2540 echo $ac_n "(cached) $ac_c" 1>&6 2541else 2542 ac_save_LIBS="$LIBS" 2543LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 2544cat > conftest.$ac_ext <<EOF 2545#line 2546 "configure" 2546#include "confdefs.h" 2547/* Override any gcc2 internal prototype to avoid an error. */ 2548/* We use char because int might match the return type of a gcc2 2549 builtin and then its argument prototype would still apply. */ 2550char connect(); 2551 2552int main() { 2553connect() 2554; return 0; } 2555EOF 2556if { (eval echo configure:2557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2557 rm -rf conftest* 2558 eval "ac_cv_lib_$ac_lib_var=yes" 2559else 2560 echo "configure: failed program was:" >&5 2561 cat conftest.$ac_ext >&5 2562 rm -rf conftest* 2563 eval "ac_cv_lib_$ac_lib_var=no" 2564fi 2565rm -f conftest* 2566LIBS="$ac_save_LIBS" 2567 2568fi 2569if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2570 echo "$ac_t""yes" 1>&6 2571 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 2572else 2573 echo "$ac_t""no" 1>&6 2574fi 2575 2576 fi 2577 2578 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX. 2579 echo $ac_n "checking for remove""... $ac_c" 1>&6 2580echo "configure:2581: checking for remove" >&5 2581if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then 2582 echo $ac_n "(cached) $ac_c" 1>&6 2583else 2584 cat > conftest.$ac_ext <<EOF 2585#line 2586 "configure" 2586#include "confdefs.h" 2587/* System header to define __stub macros and hopefully few prototypes, 2588 which can conflict with char remove(); below. */ 2589#include <assert.h> 2590/* Override any gcc2 internal prototype to avoid an error. */ 2591/* We use char because int might match the return type of a gcc2 2592 builtin and then its argument prototype would still apply. */ 2593char remove(); 2594 2595int main() { 2596 2597/* The GNU C library defines this for functions which it implements 2598 to always fail with ENOSYS. Some functions are actually named 2599 something starting with __ and the normal name is an alias. */ 2600#if defined (__stub_remove) || defined (__stub___remove) 2601choke me 2602#else 2603remove(); 2604#endif 2605 2606; return 0; } 2607EOF 2608if { (eval echo configure:2609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2609 rm -rf conftest* 2610 eval "ac_cv_func_remove=yes" 2611else 2612 echo "configure: failed program was:" >&5 2613 cat conftest.$ac_ext >&5 2614 rm -rf conftest* 2615 eval "ac_cv_func_remove=no" 2616fi 2617rm -f conftest* 2618fi 2619 2620if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then 2621 echo "$ac_t""yes" 1>&6 2622 : 2623else 2624 echo "$ac_t""no" 1>&6 2625fi 2626 2627 if test $ac_cv_func_remove = no; then 2628 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6 2629echo "configure:2630: checking for remove in -lposix" >&5 2630ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'` 2631if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2632 echo $ac_n "(cached) $ac_c" 1>&6 2633else 2634 ac_save_LIBS="$LIBS" 2635LIBS="-lposix $LIBS" 2636cat > conftest.$ac_ext <<EOF 2637#line 2638 "configure" 2638#include "confdefs.h" 2639/* Override any gcc2 internal prototype to avoid an error. */ 2640/* We use char because int might match the return type of a gcc2 2641 builtin and then its argument prototype would still apply. */ 2642char remove(); 2643 2644int main() { 2645remove() 2646; return 0; } 2647EOF 2648if { (eval echo configure:2649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2649 rm -rf conftest* 2650 eval "ac_cv_lib_$ac_lib_var=yes" 2651else 2652 echo "configure: failed program was:" >&5 2653 cat conftest.$ac_ext >&5 2654 rm -rf conftest* 2655 eval "ac_cv_lib_$ac_lib_var=no" 2656fi 2657rm -f conftest* 2658LIBS="$ac_save_LIBS" 2659 2660fi 2661if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2662 echo "$ac_t""yes" 1>&6 2663 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 2664else 2665 echo "$ac_t""no" 1>&6 2666fi 2667 2668 fi 2669 2670 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 2671 echo $ac_n "checking for shmat""... $ac_c" 1>&6 2672echo "configure:2673: checking for shmat" >&5 2673if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then 2674 echo $ac_n "(cached) $ac_c" 1>&6 2675else 2676 cat > conftest.$ac_ext <<EOF 2677#line 2678 "configure" 2678#include "confdefs.h" 2679/* System header to define __stub macros and hopefully few prototypes, 2680 which can conflict with char shmat(); below. */ 2681#include <assert.h> 2682/* Override any gcc2 internal prototype to avoid an error. */ 2683/* We use char because int might match the return type of a gcc2 2684 builtin and then its argument prototype would still apply. */ 2685char shmat(); 2686 2687int main() { 2688 2689/* The GNU C library defines this for functions which it implements 2690 to always fail with ENOSYS. Some functions are actually named 2691 something starting with __ and the normal name is an alias. */ 2692#if defined (__stub_shmat) || defined (__stub___shmat) 2693choke me 2694#else 2695shmat(); 2696#endif 2697 2698; return 0; } 2699EOF 2700if { (eval echo configure:2701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2701 rm -rf conftest* 2702 eval "ac_cv_func_shmat=yes" 2703else 2704 echo "configure: failed program was:" >&5 2705 cat conftest.$ac_ext >&5 2706 rm -rf conftest* 2707 eval "ac_cv_func_shmat=no" 2708fi 2709rm -f conftest* 2710fi 2711 2712if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then 2713 echo "$ac_t""yes" 1>&6 2714 : 2715else 2716 echo "$ac_t""no" 1>&6 2717fi 2718 2719 if test $ac_cv_func_shmat = no; then 2720 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6 2721echo "configure:2722: checking for shmat in -lipc" >&5 2722ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'` 2723if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2724 echo $ac_n "(cached) $ac_c" 1>&6 2725else 2726 ac_save_LIBS="$LIBS" 2727LIBS="-lipc $LIBS" 2728cat > conftest.$ac_ext <<EOF 2729#line 2730 "configure" 2730#include "confdefs.h" 2731/* Override any gcc2 internal prototype to avoid an error. */ 2732/* We use char because int might match the return type of a gcc2 2733 builtin and then its argument prototype would still apply. */ 2734char shmat(); 2735 2736int main() { 2737shmat() 2738; return 0; } 2739EOF 2740if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2741 rm -rf conftest* 2742 eval "ac_cv_lib_$ac_lib_var=yes" 2743else 2744 echo "configure: failed program was:" >&5 2745 cat conftest.$ac_ext >&5 2746 rm -rf conftest* 2747 eval "ac_cv_lib_$ac_lib_var=no" 2748fi 2749rm -f conftest* 2750LIBS="$ac_save_LIBS" 2751 2752fi 2753if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2754 echo "$ac_t""yes" 1>&6 2755 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 2756else 2757 echo "$ac_t""no" 1>&6 2758fi 2759 2760 fi 2761 fi 2762 2763 # Check for libraries that X11R6 Xt/Xaw programs need. 2764 ac_save_LDFLAGS="$LDFLAGS" 2765 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 2766 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 2767 # check for ICE first), but we must link in the order -lSM -lICE or 2768 # we get undefined symbols. So assume we have SM if we have ICE. 2769 # These have to be linked with before -lX11, unlike the other 2770 # libraries we check for below, so use a different variable. 2771 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu. 2772 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6 2773echo "configure:2774: checking for IceConnectionNumber in -lICE" >&5 2774ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'` 2775if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2776 echo $ac_n "(cached) $ac_c" 1>&6 2777else 2778 ac_save_LIBS="$LIBS" 2779LIBS="-lICE $X_EXTRA_LIBS $LIBS" 2780cat > conftest.$ac_ext <<EOF 2781#line 2782 "configure" 2782#include "confdefs.h" 2783/* Override any gcc2 internal prototype to avoid an error. */ 2784/* We use char because int might match the return type of a gcc2 2785 builtin and then its argument prototype would still apply. */ 2786char IceConnectionNumber(); 2787 2788int main() { 2789IceConnectionNumber() 2790; return 0; } 2791EOF 2792if { (eval echo configure:2793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2793 rm -rf conftest* 2794 eval "ac_cv_lib_$ac_lib_var=yes" 2795else 2796 echo "configure: failed program was:" >&5 2797 cat conftest.$ac_ext >&5 2798 rm -rf conftest* 2799 eval "ac_cv_lib_$ac_lib_var=no" 2800fi 2801rm -f conftest* 2802LIBS="$ac_save_LIBS" 2803 2804fi 2805if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2806 echo "$ac_t""yes" 1>&6 2807 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 2808else 2809 echo "$ac_t""no" 1>&6 2810fi 2811 2812 LDFLAGS="$ac_save_LDFLAGS" 2813 2814fi 2815 2816if test "x$no_x" = x; then 2817 x_driver=true 2818 cat >> confdefs.h <<\EOF 2819#define X11_DRIVER 1 2820EOF 2821 2822 LIBS="$LIBS $X_EXTRA_LIBS $X_LIBS -lX11" 2823 AALIB_LIBS="$AALIB_LIBS $X_EXTRA_LIBS $X_LIBS -lX11" 2824 CFLAGS="$CFLAGS $X_CFLAGS" 2825fi 2826 2827fi 2828if test "$gpm_mousedriver_test" = yes; then 2829 echo $ac_n "checking for Gpm_Repeat in -lgpm""... $ac_c" 1>&6 2830echo "configure:2831: checking for Gpm_Repeat in -lgpm" >&5 2831ac_lib_var=`echo gpm'_'Gpm_Repeat | sed 'y%./+-%__p_%'` 2832if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 2833 echo $ac_n "(cached) $ac_c" 1>&6 2834else 2835 ac_save_LIBS="$LIBS" 2836LIBS="-lgpm $LIBS" 2837cat > conftest.$ac_ext <<EOF 2838#line 2839 "configure" 2839#include "confdefs.h" 2840/* Override any gcc2 internal prototype to avoid an error. */ 2841/* We use char because int might match the return type of a gcc2 2842 builtin and then its argument prototype would still apply. */ 2843char Gpm_Repeat(); 2844 2845int main() { 2846Gpm_Repeat() 2847; return 0; } 2848EOF 2849if { (eval echo configure:2850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2850 rm -rf conftest* 2851 eval "ac_cv_lib_$ac_lib_var=yes" 2852else 2853 echo "configure: failed program was:" >&5 2854 cat conftest.$ac_ext >&5 2855 rm -rf conftest* 2856 eval "ac_cv_lib_$ac_lib_var=no" 2857fi 2858rm -f conftest* 2859LIBS="$ac_save_LIBS" 2860 2861fi 2862if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 2863 echo "$ac_t""yes" 1>&6 2864 2865 cat >> confdefs.h <<\EOF 2866#define GPM_MOUSEDRIVER 1 2867EOF 2868 2869 gpm_mousedriver=true 2870 AALIB_LIBS="$AALIB_LIBS -lgpm" 2871 LIBS="$LIBS -lgpm" 2872else 2873 echo "$ac_t""no" 1>&6 2874fi 2875 2876fi 2877 2878 2879 2880 2881 2882search_ncurses=true 2883 2884 2885 2886 2887 2888 2889XCURSES="" 2890 2891 2892 2893# Check whether --with-sunos-curses or --without-sunos-curses was given. 2894if test "${with_sunos_curses+set}" = set; then 2895 withval="$with_sunos_curses" 2896 2897 if test x$withval = xyes; then 2898 2899 search_ncurses=false 2900 curses_driver=true 2901 screen_manager="SunOS 4.x /usr/5include curses" 2902 echo "$ac_t""Using SunOS 4.x /usr/5include curses" 1>&6 2903 cat >> confdefs.h <<\EOF 2904#define SUNOS_CURSES 1 2905EOF 2906 2907 cat >> confdefs.h <<\EOF 2908#define NO_COLOR_SUPPORT 1 2909EOF 2910 2911 cat >> confdefs.h <<\EOF 2912#define USE_SYSV_CURSES 1 2913EOF 2914 2915 CFLAGS="$CFLAGS -I/usr/5include" 2916 XCURSES="xcurses.o /usr/5lib/libcurses.a /usr/5lib/libtermcap.a" 2917 echo "$ac_t""Please note that some screen refreshs may fail" 1>&6 2918 echo "configure: warning: Reconsider using Slang" 1>&2 2919 2920 fi 2921 2922fi 2923 2924 2925# Check whether --with-osf1-curses or --without-osf1-curses was given. 2926if test "${with_osf1_curses+set}" = set; then 2927 withval="$with_osf1_curses" 2928 2929 if test x$withval = xyes; then 2930 2931 echo "$ac_t""Using OSF1 curses" 1>&6 2932 search_ncurses=false 2933 curses_driver=true 2934 screen_manager="OSF1 curses" 2935 cat >> confdefs.h <<\EOF 2936#define NO_COLOR_SUPPORT 1 2937EOF 2938 2939 cat >> confdefs.h <<\EOF 2940#define USE_SYSV_CURSES 1 2941EOF 2942 2943 XCURSES="xcurses.o" 2944 LIBS="$LIBS -lcurses" 2945 AALIB_LIBS="$AALIB_LIBS -lcurses" 2946 2947 fi 2948 2949fi 2950 2951 2952# Check whether --with-vcurses or --without-vcurses was given. 2953if test "${with_vcurses+set}" = set; then 2954 withval="$with_vcurses" 2955 if test x$withval = xyes; then 2956 CFLAGS="$CFLAGS" 2957 else 2958 CFLAGS="$CFLAGS -I$withval" 2959 fi 2960 2961 echo "$ac_t""Using SysV curses" 1>&6 2962 curses_driver=true 2963 cat >> confdefs.h <<\EOF 2964#define USE_SYSV_CURSES 1 2965EOF 2966 2967 XCURSES="" 2968 search_ncurses=false 2969 screen_manager="SysV/curses" 2970 LIBS="$LIBS -lcurses" 2971 AALIB_LIBS="$AALIB_LIBS -lcurses" 2972 2973 2974fi 2975 2976 2977# Check whether --with-ncurses or --without-ncurses was given. 2978if test "${with_ncurses+set}" = set; then 2979 withval="$with_ncurses" 2980 if test x$withval = xyes 2981 then 2982 search_ncurses=true 2983 else 2984 LIBS="$LIBS -L$withval/lib -lncurses" 2985 AALIB_LIBS="$AALIB_LIBS -L$withval/lib -lncurses" 2986 CFLAGS="$CFLAGS -I$withval/include" 2987 search_ncurses=false 2988 curses_driver=true 2989 screen_manager="ncurses" 2990 cat >> confdefs.h <<\EOF 2991#define USE_NCURSES 1 2992EOF 2993 2994 fi 2995 2996fi 2997 2998 2999if test "$slang_driver_test" = yes; then 3000 3001 3002 if $search_slang 3003 then 3004 if test -f /usr/include/slang.h 3005 then 3006 LIBS1="$LIBS" 3007 LIBS="$LIBS " 3008 echo $ac_n "checking for SLsmg_init_smg in -lslang""... $ac_c" 1>&6 3009echo "configure:3010: checking for SLsmg_init_smg in -lslang" >&5 3010ac_lib_var=`echo slang'_'SLsmg_init_smg | sed 'y%./+-%__p_%'` 3011if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3012 echo $ac_n "(cached) $ac_c" 1>&6 3013else 3014 ac_save_LIBS="$LIBS" 3015LIBS="-lslang $LIBS" 3016cat > conftest.$ac_ext <<EOF 3017#line 3018 "configure" 3018#include "confdefs.h" 3019/* Override any gcc2 internal prototype to avoid an error. */ 3020/* We use char because int might match the return type of a gcc2 3021 builtin and then its argument prototype would still apply. */ 3022char SLsmg_init_smg(); 3023 3024int main() { 3025SLsmg_init_smg() 3026; return 0; } 3027EOF 3028if { (eval echo configure:3029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3029 rm -rf conftest* 3030 eval "ac_cv_lib_$ac_lib_var=yes" 3031else 3032 echo "configure: failed program was:" >&5 3033 cat conftest.$ac_ext >&5 3034 rm -rf conftest* 3035 eval "ac_cv_lib_$ac_lib_var=no" 3036fi 3037rm -f conftest* 3038LIBS="$ac_save_LIBS" 3039 3040fi 3041if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3042 echo "$ac_t""yes" 1>&6 3043 ac_tr_lib=HAVE_LIB`echo slang | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 3044 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3045 cat >> confdefs.h <<EOF 3046#define $ac_tr_lib 1 3047EOF 3048 3049 LIBS="-lslang $LIBS" 3050 3051else 3052 echo "$ac_t""no" 1>&6 3053fi 3054 3055 if test "x$ac_cv_lib_slang_SLsmg_init_smg" = xyes; then 3056 echo "$ac_t""Found slang on /usr/include/slang.h" 1>&6 3057 AALIB_LIBS="$AALIB_LIBS -lslang" 3058 LIBS="$LIBS " 3059 CFLAGS="$CFLAGS -I/usr/include " 3060 slang_driver=true 3061 search_slang=false 3062 cat >> confdefs.h <<\EOF 3063#define SLANG_DRIVER 1 3064EOF 3065 3066 else 3067 unset ac_cv_lib_slang_SLsmg_init_smg 3068 LIBS="$LIBS1" 3069 fi 3070 fi 3071 fi 3072 3073 3074 if $search_slang 3075 then 3076 if test -f /usr/include/slang/slang.h 3077 then 3078 LIBS1="$LIBS" 3079 LIBS="$LIBS " 3080 echo $ac_n "checking for SLsmg_init_smg in -lslang""... $ac_c" 1>&6 3081echo "configure:3082: checking for SLsmg_init_smg in -lslang" >&5 3082ac_lib_var=`echo slang'_'SLsmg_init_smg | sed 'y%./+-%__p_%'` 3083if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3084 echo $ac_n "(cached) $ac_c" 1>&6 3085else 3086 ac_save_LIBS="$LIBS" 3087LIBS="-lslang $LIBS" 3088cat > conftest.$ac_ext <<EOF 3089#line 3090 "configure" 3090#include "confdefs.h" 3091/* Override any gcc2 internal prototype to avoid an error. */ 3092/* We use char because int might match the return type of a gcc2 3093 builtin and then its argument prototype would still apply. */ 3094char SLsmg_init_smg(); 3095 3096int main() { 3097SLsmg_init_smg() 3098; return 0; } 3099EOF 3100if { (eval echo configure:3101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3101 rm -rf conftest* 3102 eval "ac_cv_lib_$ac_lib_var=yes" 3103else 3104 echo "configure: failed program was:" >&5 3105 cat conftest.$ac_ext >&5 3106 rm -rf conftest* 3107 eval "ac_cv_lib_$ac_lib_var=no" 3108fi 3109rm -f conftest* 3110LIBS="$ac_save_LIBS" 3111 3112fi 3113if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3114 echo "$ac_t""yes" 1>&6 3115 ac_tr_lib=HAVE_LIB`echo slang | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 3116 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3117 cat >> confdefs.h <<EOF 3118#define $ac_tr_lib 1 3119EOF 3120 3121 LIBS="-lslang $LIBS" 3122 3123else 3124 echo "$ac_t""no" 1>&6 3125fi 3126 3127 if test "x$ac_cv_lib_slang_SLsmg_init_smg" = xyes; then 3128 echo "$ac_t""Found slang on /usr/include/slang/slang.h" 1>&6 3129 AALIB_LIBS="$AALIB_LIBS -lslang" 3130 LIBS="$LIBS " 3131 CFLAGS="$CFLAGS -I/usr/include/slang " 3132 slang_driver=true 3133 search_slang=false 3134 cat >> confdefs.h <<\EOF 3135#define SLANG_DRIVER 1 3136EOF 3137 3138 else 3139 unset ac_cv_lib_slang_SLsmg_init_smg 3140 LIBS="$LIBS1" 3141 fi 3142 fi 3143 fi 3144 3145 3146 if $search_slang 3147 then 3148 if test -f /usr/local/include/slang.h 3149 then 3150 LIBS1="$LIBS" 3151 LIBS="$LIBS " 3152 echo $ac_n "checking for SLsmg_init_smg in -lslang""... $ac_c" 1>&6 3153echo "configure:3154: checking for SLsmg_init_smg in -lslang" >&5 3154ac_lib_var=`echo slang'_'SLsmg_init_smg | sed 'y%./+-%__p_%'` 3155if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3156 echo $ac_n "(cached) $ac_c" 1>&6 3157else 3158 ac_save_LIBS="$LIBS" 3159LIBS="-lslang $LIBS" 3160cat > conftest.$ac_ext <<EOF 3161#line 3162 "configure" 3162#include "confdefs.h" 3163/* Override any gcc2 internal prototype to avoid an error. */ 3164/* We use char because int might match the return type of a gcc2 3165 builtin and then its argument prototype would still apply. */ 3166char SLsmg_init_smg(); 3167 3168int main() { 3169SLsmg_init_smg() 3170; return 0; } 3171EOF 3172if { (eval echo configure:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3173 rm -rf conftest* 3174 eval "ac_cv_lib_$ac_lib_var=yes" 3175else 3176 echo "configure: failed program was:" >&5 3177 cat conftest.$ac_ext >&5 3178 rm -rf conftest* 3179 eval "ac_cv_lib_$ac_lib_var=no" 3180fi 3181rm -f conftest* 3182LIBS="$ac_save_LIBS" 3183 3184fi 3185if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3186 echo "$ac_t""yes" 1>&6 3187 ac_tr_lib=HAVE_LIB`echo slang | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 3188 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3189 cat >> confdefs.h <<EOF 3190#define $ac_tr_lib 1 3191EOF 3192 3193 LIBS="-lslang $LIBS" 3194 3195else 3196 echo "$ac_t""no" 1>&6 3197fi 3198 3199 if test "x$ac_cv_lib_slang_SLsmg_init_smg" = xyes; then 3200 echo "$ac_t""Found slang on /usr/local/include/slang.h" 1>&6 3201 AALIB_LIBS="$AALIB_LIBS -lslang" 3202 LIBS="$LIBS " 3203 CFLAGS="$CFLAGS -I/usr/local/include/slang " 3204 slang_driver=true 3205 search_slang=false 3206 cat >> confdefs.h <<\EOF 3207#define SLANG_DRIVER 1 3208EOF 3209 3210 else 3211 unset ac_cv_lib_slang_SLsmg_init_smg 3212 LIBS="$LIBS1" 3213 fi 3214 fi 3215 fi 3216 3217 3218 if $search_slang 3219 then 3220 if test -f /usr/local/include/slang/slang.h 3221 then 3222 LIBS1="$LIBS" 3223 LIBS="$LIBS " 3224 echo $ac_n "checking for SLsmg_init_smg in -lslang""... $ac_c" 1>&6 3225echo "configure:3226: checking for SLsmg_init_smg in -lslang" >&5 3226ac_lib_var=`echo slang'_'SLsmg_init_smg | sed 'y%./+-%__p_%'` 3227if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3228 echo $ac_n "(cached) $ac_c" 1>&6 3229else 3230 ac_save_LIBS="$LIBS" 3231LIBS="-lslang $LIBS" 3232cat > conftest.$ac_ext <<EOF 3233#line 3234 "configure" 3234#include "confdefs.h" 3235/* Override any gcc2 internal prototype to avoid an error. */ 3236/* We use char because int might match the return type of a gcc2 3237 builtin and then its argument prototype would still apply. */ 3238char SLsmg_init_smg(); 3239 3240int main() { 3241SLsmg_init_smg() 3242; return 0; } 3243EOF 3244if { (eval echo configure:3245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3245 rm -rf conftest* 3246 eval "ac_cv_lib_$ac_lib_var=yes" 3247else 3248 echo "configure: failed program was:" >&5 3249 cat conftest.$ac_ext >&5 3250 rm -rf conftest* 3251 eval "ac_cv_lib_$ac_lib_var=no" 3252fi 3253rm -f conftest* 3254LIBS="$ac_save_LIBS" 3255 3256fi 3257if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3258 echo "$ac_t""yes" 1>&6 3259 ac_tr_lib=HAVE_LIB`echo slang | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 3260 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3261 cat >> confdefs.h <<EOF 3262#define $ac_tr_lib 1 3263EOF 3264 3265 LIBS="-lslang $LIBS" 3266 3267else 3268 echo "$ac_t""no" 1>&6 3269fi 3270 3271 if test "x$ac_cv_lib_slang_SLsmg_init_smg" = xyes; then 3272 echo "$ac_t""Found slang on /usr/local/include/slang/slang.h" 1>&6 3273 AALIB_LIBS="$AALIB_LIBS -lslang" 3274 LIBS="$LIBS " 3275 CFLAGS="$CFLAGS -I/usr/local/include/slang " 3276 slang_driver=true 3277 search_slang=false 3278 cat >> confdefs.h <<\EOF 3279#define SLANG_DRIVER 1 3280EOF 3281 3282 else 3283 unset ac_cv_lib_slang_SLsmg_init_smg 3284 LIBS="$LIBS1" 3285 fi 3286 fi 3287 fi 3288 3289 if test "$slang_driver" = true; then 3290 if test "$force_curses_driver" = false; then 3291 echo "Disabling curses driver since slang is available" 3292 curses_driver_test=no 3293 fi 3294 fi 3295fi 3296 3297 3298 3299 3300 3301if test "$curses_driver_test" = yes; then 3302if $search_ncurses 3303then 3304 echo "checking "location of curses"" 1>&6 3305echo "configure:3306: checking "location of curses"" >&5 3306 3307 3308 if $search_ncurses 3309 then 3310 if test -f /usr/include/ncurses.h 3311 then 3312 LIBS1="$LIBS" 3313 LIBS="$LIBS " 3314 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6 3315echo "configure:3316: checking for initscr in -lncurses" >&5 3316ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'` 3317if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3318 echo $ac_n "(cached) $ac_c" 1>&6 3319else 3320 ac_save_LIBS="$LIBS" 3321LIBS="-lncurses $LIBS" 3322cat > conftest.$ac_ext <<EOF 3323#line 3324 "configure" 3324#include "confdefs.h" 3325/* Override any gcc2 internal prototype to avoid an error. */ 3326/* We use char because int might match the return type of a gcc2 3327 builtin and then its argument prototype would still apply. */ 3328char initscr(); 3329 3330int main() { 3331initscr() 3332; return 0; } 3333EOF 3334if { (eval echo configure:3335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3335 rm -rf conftest* 3336 eval "ac_cv_lib_$ac_lib_var=yes" 3337else 3338 echo "configure: failed program was:" >&5 3339 cat conftest.$ac_ext >&5 3340 rm -rf conftest* 3341 eval "ac_cv_lib_$ac_lib_var=no" 3342fi 3343rm -f conftest* 3344LIBS="$ac_save_LIBS" 3345 3346fi 3347if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3348 echo "$ac_t""yes" 1>&6 3349 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 3350 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3351 cat >> confdefs.h <<EOF 3352#define $ac_tr_lib 1 3353EOF 3354 3355 LIBS="-lncurses $LIBS" 3356 3357else 3358 echo "$ac_t""no" 1>&6 3359fi 3360 3361 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then 3362 echo "$ac_t""Found ncurses on /usr/include/ncurses.h" 1>&6 3363 AALIB_LIBS="$AALIB_LIBS -lncurses" 3364 LIBS="$LIBS " 3365 CFLAGS="$CFLAGS -I/usr/include/ncurses " 3366 search_ncurses=false 3367 curses_driver=true 3368 screen_manager="ncurses on /usr/include" 3369 cat >> confdefs.h <<\EOF 3370#define USE_NCURSES 1 3371EOF 3372 3373 else 3374 unset ac_cv_lib_ncurses_initscr 3375 LIBS="$LIBS1" 3376 fi 3377 fi 3378 fi 3379 3380 3381 if $search_ncurses 3382 then 3383 if test -f /usr/include/ncurses/ncurses.h 3384 then 3385 LIBS1="$LIBS" 3386 LIBS="$LIBS " 3387 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6 3388echo "configure:3389: checking for initscr in -lncurses" >&5 3389ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'` 3390if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3391 echo $ac_n "(cached) $ac_c" 1>&6 3392else 3393 ac_save_LIBS="$LIBS" 3394LIBS="-lncurses $LIBS" 3395cat > conftest.$ac_ext <<EOF 3396#line 3397 "configure" 3397#include "confdefs.h" 3398/* Override any gcc2 internal prototype to avoid an error. */ 3399/* We use char because int might match the return type of a gcc2 3400 builtin and then its argument prototype would still apply. */ 3401char initscr(); 3402 3403int main() { 3404initscr() 3405; return 0; } 3406EOF 3407if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3408 rm -rf conftest* 3409 eval "ac_cv_lib_$ac_lib_var=yes" 3410else 3411 echo "configure: failed program was:" >&5 3412 cat conftest.$ac_ext >&5 3413 rm -rf conftest* 3414 eval "ac_cv_lib_$ac_lib_var=no" 3415fi 3416rm -f conftest* 3417LIBS="$ac_save_LIBS" 3418 3419fi 3420if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3421 echo "$ac_t""yes" 1>&6 3422 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 3423 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3424 cat >> confdefs.h <<EOF 3425#define $ac_tr_lib 1 3426EOF 3427 3428 LIBS="-lncurses $LIBS" 3429 3430else 3431 echo "$ac_t""no" 1>&6 3432fi 3433 3434 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then 3435 echo "$ac_t""Found ncurses on /usr/include/ncurses/ncurses.h" 1>&6 3436 AALIB_LIBS="$AALIB_LIBS -lncurses" 3437 LIBS="$LIBS " 3438 CFLAGS="$CFLAGS -I/usr/include/ncurses" 3439 search_ncurses=false 3440 curses_driver=true 3441 screen_manager="ncurses on /usr/include/ncurses" 3442 cat >> confdefs.h <<\EOF 3443#define USE_NCURSES 1 3444EOF 3445 3446 else 3447 unset ac_cv_lib_ncurses_initscr 3448 LIBS="$LIBS1" 3449 fi 3450 fi 3451 fi 3452 3453 3454 if $search_ncurses 3455 then 3456 if test -f /usr/local/include/ncurses.h 3457 then 3458 LIBS1="$LIBS" 3459 LIBS="$LIBS " 3460 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6 3461echo "configure:3462: checking for initscr in -lncurses" >&5 3462ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'` 3463if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3464 echo $ac_n "(cached) $ac_c" 1>&6 3465else 3466 ac_save_LIBS="$LIBS" 3467LIBS="-lncurses $LIBS" 3468cat > conftest.$ac_ext <<EOF 3469#line 3470 "configure" 3470#include "confdefs.h" 3471/* Override any gcc2 internal prototype to avoid an error. */ 3472/* We use char because int might match the return type of a gcc2 3473 builtin and then its argument prototype would still apply. */ 3474char initscr(); 3475 3476int main() { 3477initscr() 3478; return 0; } 3479EOF 3480if { (eval echo configure:3481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3481 rm -rf conftest* 3482 eval "ac_cv_lib_$ac_lib_var=yes" 3483else 3484 echo "configure: failed program was:" >&5 3485 cat conftest.$ac_ext >&5 3486 rm -rf conftest* 3487 eval "ac_cv_lib_$ac_lib_var=no" 3488fi 3489rm -f conftest* 3490LIBS="$ac_save_LIBS" 3491 3492fi 3493if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3494 echo "$ac_t""yes" 1>&6 3495 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 3496 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3497 cat >> confdefs.h <<EOF 3498#define $ac_tr_lib 1 3499EOF 3500 3501 LIBS="-lncurses $LIBS" 3502 3503else 3504 echo "$ac_t""no" 1>&6 3505fi 3506 3507 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then 3508 echo "$ac_t""Found ncurses on /usr/local/include/ncurses.h" 1>&6 3509 AALIB_LIBS="$AALIB_LIBS -lncurses" 3510 LIBS="$LIBS " 3511 CFLAGS="$CFLAGS -L/usr/local/lib" 3512 search_ncurses=false 3513 curses_driver=true 3514 screen_manager=-I/usr/local/include 3515 cat >> confdefs.h <<\EOF 3516#define USE_NCURSES 1 3517EOF 3518 3519 else 3520 unset ac_cv_lib_ncurses_initscr 3521 LIBS="$LIBS1" 3522 fi 3523 fi 3524 fi 3525 3526 3527 if $search_ncurses 3528 then 3529 if test -f /usr/local/include/ncurses/ncurses.h 3530 then 3531 LIBS1="$LIBS" 3532 LIBS="$LIBS -L/usr/local/lib -L/usr/local/lib/ncurses" 3533 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6 3534echo "configure:3535: checking for initscr in -lncurses" >&5 3535ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'` 3536if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3537 echo $ac_n "(cached) $ac_c" 1>&6 3538else 3539 ac_save_LIBS="$LIBS" 3540LIBS="-lncurses $LIBS" 3541cat > conftest.$ac_ext <<EOF 3542#line 3543 "configure" 3543#include "confdefs.h" 3544/* Override any gcc2 internal prototype to avoid an error. */ 3545/* We use char because int might match the return type of a gcc2 3546 builtin and then its argument prototype would still apply. */ 3547char initscr(); 3548 3549int main() { 3550initscr() 3551; return 0; } 3552EOF 3553if { (eval echo configure:3554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3554 rm -rf conftest* 3555 eval "ac_cv_lib_$ac_lib_var=yes" 3556else 3557 echo "configure: failed program was:" >&5 3558 cat conftest.$ac_ext >&5 3559 rm -rf conftest* 3560 eval "ac_cv_lib_$ac_lib_var=no" 3561fi 3562rm -f conftest* 3563LIBS="$ac_save_LIBS" 3564 3565fi 3566if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3567 echo "$ac_t""yes" 1>&6 3568 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 3569 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3570 cat >> confdefs.h <<EOF 3571#define $ac_tr_lib 1 3572EOF 3573 3574 LIBS="-lncurses $LIBS" 3575 3576else 3577 echo "$ac_t""no" 1>&6 3578fi 3579 3580 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then 3581 echo "$ac_t""Found ncurses on /usr/local/include/ncurses/ncurses.h" 1>&6 3582 AALIB_LIBS="$AALIB_LIBS -L/usr/local/lib -L/usr/local/lib/ncurses -lncurses" 3583 LIBS="$LIBS -L/usr/local/lib -L/usr/local/lib/ncurses" 3584 CFLAGS="$CFLAGS -I/usr/local/include/ncurses" 3585 search_ncurses=false 3586 curses_driver=true 3587 screen_manager="ncurses on /usr/local/include/ncurses" 3588 cat >> confdefs.h <<\EOF 3589#define USE_NCURSES 1 3590EOF 3591 3592 else 3593 unset ac_cv_lib_ncurses_initscr 3594 LIBS="$LIBS1" 3595 fi 3596 fi 3597 fi 3598 3599 3600 3601 if $search_ncurses 3602 then 3603 if test -f /usr/local/include/ncurses/curses.h 3604 then 3605 LIBS1="$LIBS" 3606 LIBS="$LIBS -L/usr/local/lib" 3607 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6 3608echo "configure:3609: checking for initscr in -lncurses" >&5 3609ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'` 3610if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3611 echo $ac_n "(cached) $ac_c" 1>&6 3612else 3613 ac_save_LIBS="$LIBS" 3614LIBS="-lncurses $LIBS" 3615cat > conftest.$ac_ext <<EOF 3616#line 3617 "configure" 3617#include "confdefs.h" 3618/* Override any gcc2 internal prototype to avoid an error. */ 3619/* We use char because int might match the return type of a gcc2 3620 builtin and then its argument prototype would still apply. */ 3621char initscr(); 3622 3623int main() { 3624initscr() 3625; return 0; } 3626EOF 3627if { (eval echo configure:3628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3628 rm -rf conftest* 3629 eval "ac_cv_lib_$ac_lib_var=yes" 3630else 3631 echo "configure: failed program was:" >&5 3632 cat conftest.$ac_ext >&5 3633 rm -rf conftest* 3634 eval "ac_cv_lib_$ac_lib_var=no" 3635fi 3636rm -f conftest* 3637LIBS="$ac_save_LIBS" 3638 3639fi 3640if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3641 echo "$ac_t""yes" 1>&6 3642 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 3643 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3644 cat >> confdefs.h <<EOF 3645#define $ac_tr_lib 1 3646EOF 3647 3648 LIBS="-lncurses $LIBS" 3649 3650else 3651 echo "$ac_t""no" 1>&6 3652fi 3653 3654 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then 3655 echo "$ac_t""Found ncurses on /usr/local/include/ncurses/curses.h" 1>&6 3656 AALIB_LIBS="$AALIB_LIBS -L/usr/local/lib -lncurses" 3657 LIBS="$LIBS -L/usr/local/lib" 3658 CFLAGS="$CFLAGS -I/usr/local/include/ncurses -DRENAMED_NCURSES" 3659 search_ncurses=false 3660 curses_driver=true 3661 screen_manager="renamed ncurses on /usr/local/.../ncurses" 3662 cat >> confdefs.h <<\EOF 3663#define USE_NCURSES 1 3664EOF 3665 3666 else 3667 unset ac_cv_lib_ncurses_initscr 3668 LIBS="$LIBS1" 3669 fi 3670 fi 3671 fi 3672 3673 3674 3675 if $search_ncurses 3676 then 3677 if test -f /usr/include/ncurses/curses.h 3678 then 3679 LIBS1="$LIBS" 3680 LIBS="$LIBS " 3681 echo $ac_n "checking for initscr in -lncurses""... $ac_c" 1>&6 3682echo "configure:3683: checking for initscr in -lncurses" >&5 3683ac_lib_var=`echo ncurses'_'initscr | sed 'y%./+-%__p_%'` 3684if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3685 echo $ac_n "(cached) $ac_c" 1>&6 3686else 3687 ac_save_LIBS="$LIBS" 3688LIBS="-lncurses $LIBS" 3689cat > conftest.$ac_ext <<EOF 3690#line 3691 "configure" 3691#include "confdefs.h" 3692/* Override any gcc2 internal prototype to avoid an error. */ 3693/* We use char because int might match the return type of a gcc2 3694 builtin and then its argument prototype would still apply. */ 3695char initscr(); 3696 3697int main() { 3698initscr() 3699; return 0; } 3700EOF 3701if { (eval echo configure:3702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3702 rm -rf conftest* 3703 eval "ac_cv_lib_$ac_lib_var=yes" 3704else 3705 echo "configure: failed program was:" >&5 3706 cat conftest.$ac_ext >&5 3707 rm -rf conftest* 3708 eval "ac_cv_lib_$ac_lib_var=no" 3709fi 3710rm -f conftest* 3711LIBS="$ac_save_LIBS" 3712 3713fi 3714if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3715 echo "$ac_t""yes" 1>&6 3716 ac_tr_lib=HAVE_LIB`echo ncurses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 3717 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3718 cat >> confdefs.h <<EOF 3719#define $ac_tr_lib 1 3720EOF 3721 3722 LIBS="-lncurses $LIBS" 3723 3724else 3725 echo "$ac_t""no" 1>&6 3726fi 3727 3728 if test "x$ac_cv_lib_ncurses_initscr" = xyes; then 3729 echo "$ac_t""Found ncurses on /usr/include/ncurses/curses.h" 1>&6 3730 AALIB_LIBS="$AALIB_LIBS -lncurses" 3731 LIBS="$LIBS " 3732 CFLAGS="$CFLAGS -I/usr/include/ncurses -DRENAMED_NCURSES" 3733 search_ncurses=false 3734 curses_driver=true 3735 screen_manager="renamed ncurses on /usr/include/ncurses" 3736 cat >> confdefs.h <<\EOF 3737#define USE_NCURSES 1 3738EOF 3739 3740 else 3741 unset ac_cv_lib_ncurses_initscr 3742 LIBS="$LIBS1" 3743 fi 3744 fi 3745 fi 3746 3747 3748 if $search_ncurses 3749 then 3750 if test -f /usr/include/curses.h 3751 then 3752 LIBS1="$LIBS" 3753 LIBS="$LIBS " 3754 echo $ac_n "checking for initscr in -lcurses""... $ac_c" 1>&6 3755echo "configure:3756: checking for initscr in -lcurses" >&5 3756ac_lib_var=`echo curses'_'initscr | sed 'y%./+-%__p_%'` 3757if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 3758 echo $ac_n "(cached) $ac_c" 1>&6 3759else 3760 ac_save_LIBS="$LIBS" 3761LIBS="-lcurses $LIBS" 3762cat > conftest.$ac_ext <<EOF 3763#line 3764 "configure" 3764#include "confdefs.h" 3765/* Override any gcc2 internal prototype to avoid an error. */ 3766/* We use char because int might match the return type of a gcc2 3767 builtin and then its argument prototype would still apply. */ 3768char initscr(); 3769 3770int main() { 3771initscr() 3772; return 0; } 3773EOF 3774if { (eval echo configure:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3775 rm -rf conftest* 3776 eval "ac_cv_lib_$ac_lib_var=yes" 3777else 3778 echo "configure: failed program was:" >&5 3779 cat conftest.$ac_ext >&5 3780 rm -rf conftest* 3781 eval "ac_cv_lib_$ac_lib_var=no" 3782fi 3783rm -f conftest* 3784LIBS="$ac_save_LIBS" 3785 3786fi 3787if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 3788 echo "$ac_t""yes" 1>&6 3789 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \ 3790 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` 3791 cat >> confdefs.h <<EOF 3792#define $ac_tr_lib 1 3793EOF 3794 3795 LIBS="-lcurses $LIBS" 3796 3797else 3798 echo "$ac_t""no" 1>&6 3799fi 3800 3801 if test "x$ac_cv_lib_curses_initscr" = xyes; then 3802 echo "$ac_t""Found generic curses on /usr/include/curses.h" 1>&6 3803 CFLAGS="$CFLAGS " 3804 search_ncurses=false 3805 curses_driver=true 3806 AALIB_LIBS="$AALIB_LIBS -lcurses" 3807 cat >> confdefs.h <<\EOF 3808#define CURSES_DRIVER 1 3809EOF 3810 3811 screen_manager="curses on /usr/include" 3812 cat >> confdefs.h <<\EOF 3813#define USE_CURSES 1 3814EOF 3815 3816 else 3817 unset ac_cv_lib_curses_initscr 3818 LIBS="$LIBS1" 3819 fi 3820 fi 3821 fi 3822 3823 3824 if $search_ncurses 3825 then 3826 cat > conftest.$ac_ext <<EOF 3827#line 3828 "configure" 3828#include "confdefs.h" 3829#include </usr/include/curses.h> 3830EOF 3831if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3832 egrep "init_color" >/dev/null 2>&1; then 3833 rm -rf conftest* 3834 3835 echo "$ac_t""Using SysV curses" 1>&6 3836 curses_driver=true 3837 cat >> confdefs.h <<\EOF 3838#define USE_SYSV_CURSES 1 3839EOF 3840 3841 XCURSES="" 3842 search_ncurses=false 3843 screen_manager="SysV/curses" 3844 LIBS="$LIBS -lcurses" 3845 AALIB_LIBS="$AALIB_LIBS -lcurses" 3846 3847fi 3848rm -f conftest* 3849 3850 fi 3851 3852 if $search_ncurses 3853 then 3854 if test -f /usr/5include/curses.h 3855 then 3856 3857 search_ncurses=false 3858 curses_driver=true 3859 screen_manager="SunOS 4.x /usr/5include curses" 3860 echo "$ac_t""Using SunOS 4.x /usr/5include curses" 1>&6 3861 cat >> confdefs.h <<\EOF 3862#define SUNOS_CURSES 1 3863EOF 3864 3865 cat >> confdefs.h <<\EOF 3866#define NO_COLOR_SUPPORT 1 3867EOF 3868 3869 cat >> confdefs.h <<\EOF 3870#define USE_SYSV_CURSES 1 3871EOF 3872 3873 CFLAGS="$CFLAGS -I/usr/5include" 3874 XCURSES="xcurses.o /usr/5lib/libcurses.a /usr/5lib/libtermcap.a" 3875 echo "$ac_t""Please note that some screen refreshs may fail" 1>&6 3876 echo "configure: warning: Reconsider using Slang" 1>&2 3877 3878 fi 3879 fi 3880fi 3881for ac_func in mousemask termattrs wredrawln redrawwin curs_set 3882do 3883echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3884echo "configure:3885: checking for $ac_func" >&5 3885if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3886 echo $ac_n "(cached) $ac_c" 1>&6 3887else 3888 cat > conftest.$ac_ext <<EOF 3889#line 3890 "configure" 3890#include "confdefs.h" 3891/* System header to define __stub macros and hopefully few prototypes, 3892 which can conflict with char $ac_func(); below. */ 3893#include <assert.h> 3894/* Override any gcc2 internal prototype to avoid an error. */ 3895/* We use char because int might match the return type of a gcc2 3896 builtin and then its argument prototype would still apply. */ 3897char $ac_func(); 3898 3899int main() { 3900 3901/* The GNU C library defines this for functions which it implements 3902 to always fail with ENOSYS. Some functions are actually named 3903 something starting with __ and the normal name is an alias. */ 3904#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3905choke me 3906#else 3907$ac_func(); 3908#endif 3909 3910; return 0; } 3911EOF 3912if { (eval echo configure:3913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3913 rm -rf conftest* 3914 eval "ac_cv_func_$ac_func=yes" 3915else 3916 echo "configure: failed program was:" >&5 3917 cat conftest.$ac_ext >&5 3918 rm -rf conftest* 3919 eval "ac_cv_func_$ac_func=no" 3920fi 3921rm -f conftest* 3922fi 3923 3924if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3925 echo "$ac_t""yes" 1>&6 3926 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3927 cat >> confdefs.h <<EOF 3928#define $ac_tr_func 1 3929EOF 3930 3931else 3932 echo "$ac_t""no" 1>&6 3933fi 3934done 3935 3936fi 3937 3938 3939echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 3940echo "configure:3941: checking for ANSI C header files" >&5 3941if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 3942 echo $ac_n "(cached) $ac_c" 1>&6 3943else 3944 cat > conftest.$ac_ext <<EOF 3945#line 3946 "configure" 3946#include "confdefs.h" 3947#include <stdlib.h> 3948#include <stdarg.h> 3949#include <string.h> 3950#include <float.h> 3951EOF 3952ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3953{ (eval echo configure:3954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3954ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3955if test -z "$ac_err"; then 3956 rm -rf conftest* 3957 ac_cv_header_stdc=yes 3958else 3959 echo "$ac_err" >&5 3960 echo "configure: failed program was:" >&5 3961 cat conftest.$ac_ext >&5 3962 rm -rf conftest* 3963 ac_cv_header_stdc=no 3964fi 3965rm -f conftest* 3966 3967if test $ac_cv_header_stdc = yes; then 3968 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3969cat > conftest.$ac_ext <<EOF 3970#line 3971 "configure" 3971#include "confdefs.h" 3972#include <string.h> 3973EOF 3974if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3975 egrep "memchr" >/dev/null 2>&1; then 3976 : 3977else 3978 rm -rf conftest* 3979 ac_cv_header_stdc=no 3980fi 3981rm -f conftest* 3982 3983fi 3984 3985if test $ac_cv_header_stdc = yes; then 3986 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3987cat > conftest.$ac_ext <<EOF 3988#line 3989 "configure" 3989#include "confdefs.h" 3990#include <stdlib.h> 3991EOF 3992if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3993 egrep "free" >/dev/null 2>&1; then 3994 : 3995else 3996 rm -rf conftest* 3997 ac_cv_header_stdc=no 3998fi 3999rm -f conftest* 4000 4001fi 4002 4003if test $ac_cv_header_stdc = yes; then 4004 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4005if test "$cross_compiling" = yes; then 4006 : 4007else 4008 cat > conftest.$ac_ext <<EOF 4009#line 4010 "configure" 4010#include "confdefs.h" 4011#include <ctype.h> 4012#define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4013#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4014#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4015int main () { int i; for (i = 0; i < 256; i++) 4016if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 4017exit (0); } 4018 4019EOF 4020if { (eval echo configure:4021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4021then 4022 : 4023else 4024 echo "configure: failed program was:" >&5 4025 cat conftest.$ac_ext >&5 4026 rm -fr conftest* 4027 ac_cv_header_stdc=no 4028fi 4029rm -fr conftest* 4030fi 4031 4032fi 4033fi 4034 4035echo "$ac_t""$ac_cv_header_stdc" 1>&6 4036if test $ac_cv_header_stdc = yes; then 4037 cat >> confdefs.h <<\EOF 4038#define STDC_HEADERS 1 4039EOF 4040 4041fi 4042 4043for ac_hdr in fcntl.h limits.h malloc.h sys/ioctl.h sys/time.h unistd.h 4044do 4045ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4046echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4047echo "configure:4048: checking for $ac_hdr" >&5 4048if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4049 echo $ac_n "(cached) $ac_c" 1>&6 4050else 4051 cat > conftest.$ac_ext <<EOF 4052#line 4053 "configure" 4053#include "confdefs.h" 4054#include <$ac_hdr> 4055EOF 4056ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4057{ (eval echo configure:4058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4058ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4059if test -z "$ac_err"; then 4060 rm -rf conftest* 4061 eval "ac_cv_header_$ac_safe=yes" 4062else 4063 echo "$ac_err" >&5 4064 echo "configure: failed program was:" >&5 4065 cat conftest.$ac_ext >&5 4066 rm -rf conftest* 4067 eval "ac_cv_header_$ac_safe=no" 4068fi 4069rm -f conftest* 4070fi 4071if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 4072 echo "$ac_t""yes" 1>&6 4073 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 4074 cat >> confdefs.h <<EOF 4075#define $ac_tr_hdr 1 4076EOF 4077 4078else 4079 echo "$ac_t""no" 1>&6 4080fi 4081done 4082 4083 4084echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6 4085echo "configure:4086: checking for st_rdev in struct stat" >&5 4086if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then 4087 echo $ac_n "(cached) $ac_c" 1>&6 4088else 4089 cat > conftest.$ac_ext <<EOF 4090#line 4091 "configure" 4091#include "confdefs.h" 4092#include <sys/types.h> 4093#include <sys/stat.h> 4094int main() { 4095struct stat s; s.st_rdev; 4096; return 0; } 4097EOF 4098if { (eval echo configure:4099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4099 rm -rf conftest* 4100 ac_cv_struct_st_rdev=yes 4101else 4102 echo "configure: failed program was:" >&5 4103 cat conftest.$ac_ext >&5 4104 rm -rf conftest* 4105 ac_cv_struct_st_rdev=no 4106fi 4107rm -f conftest* 4108fi 4109 4110echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6 4111if test $ac_cv_struct_st_rdev = yes; then 4112 cat >> confdefs.h <<\EOF 4113#define HAVE_ST_RDEV 1 4114EOF 4115 4116fi 4117 4118echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 4119echo "configure:4120: checking whether time.h and sys/time.h may both be included" >&5 4120if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 4121 echo $ac_n "(cached) $ac_c" 1>&6 4122else 4123 cat > conftest.$ac_ext <<EOF 4124#line 4125 "configure" 4125#include "confdefs.h" 4126#include <sys/types.h> 4127#include <sys/time.h> 4128#include <time.h> 4129int main() { 4130struct tm *tp; 4131; return 0; } 4132EOF 4133if { (eval echo configure:4134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4134 rm -rf conftest* 4135 ac_cv_header_time=yes 4136else 4137 echo "configure: failed program was:" >&5 4138 cat conftest.$ac_ext >&5 4139 rm -rf conftest* 4140 ac_cv_header_time=no 4141fi 4142rm -f conftest* 4143fi 4144 4145echo "$ac_t""$ac_cv_header_time" 1>&6 4146if test $ac_cv_header_time = yes; then 4147 cat >> confdefs.h <<\EOF 4148#define TIME_WITH_SYS_TIME 1 4149EOF 4150 4151fi 4152 4153 4154if test $ac_cv_prog_gcc = yes; then 4155 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 4156echo "configure:4157: checking whether ${CC-cc} needs -traditional" >&5 4157if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 4158 echo $ac_n "(cached) $ac_c" 1>&6 4159else 4160 ac_pattern="Autoconf.*'x'" 4161 cat > conftest.$ac_ext <<EOF 4162#line 4163 "configure" 4163#include "confdefs.h" 4164#include <sgtty.h> 4165Autoconf TIOCGETP 4166EOF 4167if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4168 egrep "$ac_pattern" >/dev/null 2>&1; then 4169 rm -rf conftest* 4170 ac_cv_prog_gcc_traditional=yes 4171else 4172 rm -rf conftest* 4173 ac_cv_prog_gcc_traditional=no 4174fi 4175rm -f conftest* 4176 4177 4178 if test $ac_cv_prog_gcc_traditional = no; then 4179 cat > conftest.$ac_ext <<EOF 4180#line 4181 "configure" 4181#include "confdefs.h" 4182#include <termio.h> 4183Autoconf TCGETA 4184EOF 4185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4186 egrep "$ac_pattern" >/dev/null 2>&1; then 4187 rm -rf conftest* 4188 ac_cv_prog_gcc_traditional=yes 4189fi 4190rm -f conftest* 4191 4192 fi 4193fi 4194 4195echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 4196 if test $ac_cv_prog_gcc_traditional = yes; then 4197 CC="$CC -traditional" 4198 fi 4199fi 4200 4201echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 4202echo "configure:4203: checking return type of signal handlers" >&5 4203if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 4204 echo $ac_n "(cached) $ac_c" 1>&6 4205else 4206 cat > conftest.$ac_ext <<EOF 4207#line 4208 "configure" 4208#include "confdefs.h" 4209#include <sys/types.h> 4210#include <signal.h> 4211#ifdef signal 4212#undef signal 4213#endif 4214#ifdef __cplusplus 4215extern "C" void (*signal (int, void (*)(int)))(int); 4216#else 4217void (*signal ()) (); 4218#endif 4219 4220int main() { 4221int i; 4222; return 0; } 4223EOF 4224if { (eval echo configure:4225: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4225 rm -rf conftest* 4226 ac_cv_type_signal=void 4227else 4228 echo "configure: failed program was:" >&5 4229 cat conftest.$ac_ext >&5 4230 rm -rf conftest* 4231 ac_cv_type_signal=int 4232fi 4233rm -f conftest* 4234fi 4235 4236echo "$ac_t""$ac_cv_type_signal" 1>&6 4237cat >> confdefs.h <<EOF 4238#define RETSIGTYPE $ac_cv_type_signal 4239EOF 4240 4241 4242for ac_func in strdup 4243do 4244echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 4245echo "configure:4246: checking for $ac_func" >&5 4246if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 4247 echo $ac_n "(cached) $ac_c" 1>&6 4248else 4249 cat > conftest.$ac_ext <<EOF 4250#line 4251 "configure" 4251#include "confdefs.h" 4252/* System header to define __stub macros and hopefully few prototypes, 4253 which can conflict with char $ac_func(); below. */ 4254#include <assert.h> 4255/* Override any gcc2 internal prototype to avoid an error. */ 4256/* We use char because int might match the return type of a gcc2 4257 builtin and then its argument prototype would still apply. */ 4258char $ac_func(); 4259 4260int main() { 4261 4262/* The GNU C library defines this for functions which it implements 4263 to always fail with ENOSYS. Some functions are actually named 4264 something starting with __ and the normal name is an alias. */ 4265#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 4266choke me 4267#else 4268$ac_func(); 4269#endif 4270 4271; return 0; } 4272EOF 4273if { (eval echo configure:4274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4274 rm -rf conftest* 4275 eval "ac_cv_func_$ac_func=yes" 4276else 4277 echo "configure: failed program was:" >&5 4278 cat conftest.$ac_ext >&5 4279 rm -rf conftest* 4280 eval "ac_cv_func_$ac_func=no" 4281fi 4282rm -f conftest* 4283fi 4284 4285if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 4286 echo "$ac_t""yes" 1>&6 4287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4288 cat >> confdefs.h <<EOF 4289#define $ac_tr_func 1 4290EOF 4291 4292else 4293 echo "$ac_t""no" 1>&6 4294fi 4295done 4296 4297 4298case "$target" in 4299 *-*-linux*) 4300 ARCH=linux 4301 ;; 4302 *-*-bsdi*) 4303 ARCH=bsdi 4304 ;; 4305 *-*-freebsd*) 4306 ARCH=freebsd 4307 ;; 4308 *-*-solaris*) 4309 ARCH=solaris 4310 ;; 4311 *) 4312 ARCH=other 4313 ;; 4314esac 4315 4316# Set runtime shared library paths as needed 4317 4318if test $ARCH = linux -o $ARCH = freebsd -o $ARCH = bsdi; then 4319 AALIB_RLD_FLAGS="-Wl,-rpath,\${exec_prefix}/lib" 4320fi 4321 4322if test $ARCH = solaris; then 4323 AALIB_RLD_FLAGS="-R\${exec_prefix}/lib" 4324fi 4325 4326 4327 4328 4329 4330 4331 4332# Set conditional variables for shared and static library selection. 4333# These are not used in any Makefile.am but in sdl-config.in. 4334 4335 4336if test "$enable_shared" = yes; then 4337 ENABLE_SHARED_TRUE= 4338 ENABLE_SHARED_FALSE='#' 4339else 4340 ENABLE_SHARED_TRUE='#' 4341 ENABLE_SHARED_FALSE= 4342fi 4343 4344 4345if test "$enable_static" = yes; then 4346 ENABLE_STATIC_TRUE= 4347 ENABLE_STATIC_FALSE='#' 4348else 4349 ENABLE_STATIC_TRUE='#' 4350 ENABLE_STATIC_FALSE= 4351fi 4352 4353echo "-----------------------------------------------------" 4354echo "CFLAGS $CFLAGS" 4355echo "LDFLAGS $LIBS" 4356echo "AA-LIBD $AALIB_LIBS" 4357echo "CC $CC" 4358echo "-----------------------------------------------------" 4359echo "Display drivers:" 4360if test "$slang_driver" = true; then 4361 echo " slang" 4362 if test "$slang_kbddriver_test" = yes; then 4363 cat >> confdefs.h <<\EOF 4364#define SLANG_KBDDRIVER 1 4365EOF 4366 4367 slang_kbddriver=true 4368 fi 4369fi 4370if test "$curses_driver" = true; then 4371 cat >> confdefs.h <<\EOF 4372#define CURSES_DRIVER 1 4373EOF 4374 4375 echo " curses" 4376 if test "$curses_kbddriver_test" = yes; then 4377 cat >> confdefs.h <<\EOF 4378#define CURSES_KBDDRIVER 1 4379EOF 4380 4381 curses_kbddriver=true 4382 fi 4383 if test "$curses_kbddriver_test" = yes; then 4384 if test "x$ac_cv_func_mousemask" = xyes; then 4385 cat >> confdefs.h <<\EOF 4386#define CURSES_MOUSEDRIVER 1 4387EOF 4388 4389 curses_mousedriver=true 4390 fi 4391 fi 4392fi 4393if test "$linux_driver_test" = yes; then 4394 if test "x$system" = xLinux; then 4395 echo " Linux console" 4396 cat >> confdefs.h <<\EOF 4397#define LINUX_DRIVER 1 4398EOF 4399 4400 cat >> confdefs.h <<\EOF 4401#define LINUX_KBDDRIVER 1 4402EOF 4403 4404 fi 4405fi 4406if test "$x_driver" = true; then 4407 echo " x11" 4408 if test "$x_kbddriver_test" = yes; then 4409 cat >> confdefs.h <<\EOF 4410#define X11_KBDDRIVER 1 4411EOF 4412 4413 x_kbddriver=true 4414 fi 4415 if test "$x_mousedriver_test" = yes; then 4416 cat >> confdefs.h <<\EOF 4417#define X11_MOUSEDRIVER 1 4418EOF 4419 4420 x_mousedriver=true 4421 fi 4422fi 4423echo "Keyboard drivers:" 4424if test "$linux_driver_test" = yes; then 4425 if test "x$system" = xLinux; then 4426 echo " Linux console" 4427 fi 4428fi 4429if test "$slang_kbddriver" = true; then 4430 echo " slang" 4431fi 4432if test "$curses_kbddriver" = true; then 4433 echo " curses" 4434fi 4435if test "$x_kbddriver" = true; then 4436 echo " X11" 4437fi 4438echo "Mouse drivers:" 4439if test "$curses_mousedriver" = true; then 4440 echo " curses" 4441fi 4442if test "$gpm_mousedriver" = true; then 4443 echo " gpm" 4444fi 4445if test "$x_mousedriver" = true; then 4446 echo " X11" 4447fi 4448echo "-----------------------------------------------------" 4449 4450 4451trap '' 1 2 15 4452cat > confcache <<\EOF 4453# This file is a shell script that caches the results of configure 4454# tests run on this system so they can be shared between configure 4455# scripts and configure runs. It is not useful on other systems. 4456# If it contains results you don't want to keep, you may remove or edit it. 4457# 4458# By default, configure uses ./config.cache as the cache file, 4459# creating it if it does not exist already. You can give configure 4460# the --cache-file=FILE option to use a different cache file; that is 4461# what configure does when it calls configure scripts in 4462# subdirectories, so they share the cache. 4463# Giving --cache-file=/dev/null disables caching, for debugging configure. 4464# config.status only pays attention to the cache file if you give it the 4465# --recheck option to rerun configure. 4466# 4467EOF 4468# The following way of writing the cache mishandles newlines in values, 4469# but we know of no workaround that is simple, portable, and efficient. 4470# So, don't put newlines in cache variables' values. 4471# Ultrix sh set writes to stderr and can't be redirected directly, 4472# and sets the high bit in the cache file unless we assign to the vars. 4473(set) 2>&1 | 4474 case `(ac_space=' '; set | grep ac_space) 2>&1` in 4475 *ac_space=\ *) 4476 # `set' does not quote correctly, so add quotes (double-quote substitution 4477 # turns \\\\ into \\, and sed turns \\ into \). 4478 sed -n \ 4479 -e "s/'/'\\\\''/g" \ 4480 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" 4481 ;; 4482 *) 4483 # `set' quotes correctly as required by POSIX, so do not add quotes. 4484 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' 4485 ;; 4486 esac >> confcache 4487if cmp -s $cache_file confcache; then 4488 : 4489else 4490 if test -w $cache_file; then 4491 echo "updating cache $cache_file" 4492 cat confcache > $cache_file 4493 else 4494 echo "not updating unwritable cache $cache_file" 4495 fi 4496fi 4497rm -f confcache 4498 4499trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 4500 4501test "x$prefix" = xNONE && prefix=$ac_default_prefix 4502# Let make expand exec_prefix. 4503test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4504 4505# Any assignment to VPATH causes Sun make to only execute 4506# the first set of double-colon rules, so remove it if not needed. 4507# If there is a colon in the path, we need to keep it. 4508if test "x$srcdir" = x.; then 4509 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' 4510fi 4511 4512trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 4513 4514DEFS=-DHAVE_CONFIG_H 4515 4516# Without the "./", some shells look in PATH for config.status. 4517: ${CONFIG_STATUS=./config.status} 4518 4519echo creating $CONFIG_STATUS 4520rm -f $CONFIG_STATUS 4521cat > $CONFIG_STATUS <<EOF 4522#! /bin/sh 4523# Generated automatically by configure. 4524# Run this file to recreate the current configuration. 4525# This directory was configured as follows, 4526# on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 4527# 4528# $0 $ac_configure_args 4529# 4530# Compiler output produced by configure, useful for debugging 4531# configure, is in ./config.log if it exists. 4532 4533ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" 4534for ac_option 4535do 4536 case "\$ac_option" in 4537 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4538 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" 4539 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; 4540 -version | --version | --versio | --versi | --vers | --ver | --ve | --v) 4541 echo "$CONFIG_STATUS generated by autoconf version 2.13" 4542 exit 0 ;; 4543 -help | --help | --hel | --he | --h) 4544 echo "\$ac_cs_usage"; exit 0 ;; 4545 *) echo "\$ac_cs_usage"; exit 1 ;; 4546 esac 4547done 4548 4549ac_given_srcdir=$srcdir 4550ac_given_INSTALL="$INSTALL" 4551 4552trap 'rm -fr `echo "Makefile man/Makefile doc/Makefile src/Makefile aalib-config src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 4553EOF 4554cat >> $CONFIG_STATUS <<EOF 4555 4556# Protect against being on the right side of a sed subst in config.status. 4557sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; 4558 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF 4559$ac_vpsub 4560$extrasub 4561s%@SHELL@%$SHELL%g 4562s%@CFLAGS@%$CFLAGS%g 4563s%@CPPFLAGS@%$CPPFLAGS%g 4564s%@CXXFLAGS@%$CXXFLAGS%g 4565s%@FFLAGS@%$FFLAGS%g 4566s%@DEFS@%$DEFS%g 4567s%@LDFLAGS@%$LDFLAGS%g 4568s%@LIBS@%$LIBS%g 4569s%@exec_prefix@%$exec_prefix%g 4570s%@prefix@%$prefix%g 4571s%@program_transform_name@%$program_transform_name%g 4572s%@bindir@%$bindir%g 4573s%@sbindir@%$sbindir%g 4574s%@libexecdir@%$libexecdir%g 4575s%@datadir@%$datadir%g 4576s%@sysconfdir@%$sysconfdir%g 4577s%@sharedstatedir@%$sharedstatedir%g 4578s%@localstatedir@%$localstatedir%g 4579s%@libdir@%$libdir%g 4580s%@includedir@%$includedir%g 4581s%@oldincludedir@%$oldincludedir%g 4582s%@infodir@%$infodir%g 4583s%@mandir@%$mandir%g 4584s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 4585s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g 4586s%@INSTALL_DATA@%$INSTALL_DATA%g 4587s%@PACKAGE@%$PACKAGE%g 4588s%@VERSION@%$VERSION%g 4589s%@ACLOCAL@%$ACLOCAL%g 4590s%@AUTOCONF@%$AUTOCONF%g 4591s%@AUTOMAKE@%$AUTOMAKE%g 4592s%@AUTOHEADER@%$AUTOHEADER%g 4593s%@MAKEINFO@%$MAKEINFO%g 4594s%@SET_MAKE@%$SET_MAKE%g 4595s%@host@%$host%g 4596s%@host_alias@%$host_alias%g 4597s%@host_cpu@%$host_cpu%g 4598s%@host_vendor@%$host_vendor%g 4599s%@host_os@%$host_os%g 4600s%@target@%$target%g 4601s%@target_alias@%$target_alias%g 4602s%@target_cpu@%$target_cpu%g 4603s%@target_vendor@%$target_vendor%g 4604s%@target_os@%$target_os%g 4605s%@CC@%$CC%g 4606s%@build@%$build%g 4607s%@build_alias@%$build_alias%g 4608s%@build_cpu@%$build_cpu%g 4609s%@build_vendor@%$build_vendor%g 4610s%@build_os@%$build_os%g 4611s%@RANLIB@%$RANLIB%g 4612s%@LN_S@%$LN_S%g 4613s%@LIBTOOL@%$LIBTOOL%g 4614s%@system@%$system%g 4615s%@machine@%$machine%g 4616s%@CPP@%$CPP%g 4617s%@X_CFLAGS@%$X_CFLAGS%g 4618s%@X_PRE_LIBS@%$X_PRE_LIBS%g 4619s%@X_LIBS@%$X_LIBS%g 4620s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g 4621s%@AALIB_CFLAGS@%$AALIB_CFLAGS%g 4622s%@AALIB_LIBS@%$AALIB_LIBS%g 4623s%@AALIB_RLD_FLAGS@%$AALIB_RLD_FLAGS%g 4624s%@XCURSES@%$XCURSES%g 4625s%@ENABLE_SHARED_TRUE@%$ENABLE_SHARED_TRUE%g 4626s%@ENABLE_SHARED_FALSE@%$ENABLE_SHARED_FALSE%g 4627s%@ENABLE_STATIC_TRUE@%$ENABLE_STATIC_TRUE%g 4628s%@ENABLE_STATIC_FALSE@%$ENABLE_STATIC_FALSE%g 4629 4630CEOF 4631EOF 4632 4633cat >> $CONFIG_STATUS <<\EOF 4634 4635# Split the substitutions into bite-sized pieces for seds with 4636# small command number limits, like on Digital OSF/1 and HP-UX. 4637ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. 4638ac_file=1 # Number of current file. 4639ac_beg=1 # First line for current file. 4640ac_end=$ac_max_sed_cmds # Line after last line for current file. 4641ac_more_lines=: 4642ac_sed_cmds="" 4643while $ac_more_lines; do 4644 if test $ac_beg -gt 1; then 4645 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file 4646 else 4647 sed "${ac_end}q" conftest.subs > conftest.s$ac_file 4648 fi 4649 if test ! -s conftest.s$ac_file; then 4650 ac_more_lines=false 4651 rm -f conftest.s$ac_file 4652 else 4653 if test -z "$ac_sed_cmds"; then 4654 ac_sed_cmds="sed -f conftest.s$ac_file" 4655 else 4656 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" 4657 fi 4658 ac_file=`expr $ac_file + 1` 4659 ac_beg=$ac_end 4660 ac_end=`expr $ac_end + $ac_max_sed_cmds` 4661 fi 4662done 4663if test -z "$ac_sed_cmds"; then 4664 ac_sed_cmds=cat 4665fi 4666EOF 4667 4668cat >> $CONFIG_STATUS <<EOF 4669 4670CONFIG_FILES=\${CONFIG_FILES-"Makefile man/Makefile doc/Makefile src/Makefile aalib-config"} 4671EOF 4672cat >> $CONFIG_STATUS <<\EOF 4673for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then 4674 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4675 case "$ac_file" in 4676 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 4677 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 4678 *) ac_file_in="${ac_file}.in" ;; 4679 esac 4680 4681 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. 4682 4683 # Remove last slash and all that follows it. Not all systems have dirname. 4684 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 4685 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4686 # The file is in a subdirectory. 4687 test ! -d "$ac_dir" && mkdir "$ac_dir" 4688 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" 4689 # A "../" for each directory in $ac_dir_suffix. 4690 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` 4691 else 4692 ac_dir_suffix= ac_dots= 4693 fi 4694 4695 case "$ac_given_srcdir" in 4696 .) srcdir=. 4697 if test -z "$ac_dots"; then top_srcdir=. 4698 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; 4699 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; 4700 *) # Relative path. 4701 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" 4702 top_srcdir="$ac_dots$ac_given_srcdir" ;; 4703 esac 4704 4705 case "$ac_given_INSTALL" in 4706 [/$]*) INSTALL="$ac_given_INSTALL" ;; 4707 *) INSTALL="$ac_dots$ac_given_INSTALL" ;; 4708 esac 4709 4710 echo creating "$ac_file" 4711 rm -f "$ac_file" 4712 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." 4713 case "$ac_file" in 4714 *Makefile*) ac_comsub="1i\\ 4715# $configure_input" ;; 4716 *) ac_comsub= ;; 4717 esac 4718 4719 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 4720 sed -e "$ac_comsub 4721s%@configure_input@%$configure_input%g 4722s%@srcdir@%$srcdir%g 4723s%@top_srcdir@%$top_srcdir%g 4724s%@INSTALL@%$INSTALL%g 4725" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file 4726fi; done 4727rm -f conftest.s* 4728 4729# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 4730# NAME is the cpp macro being defined and VALUE is the value it is being given. 4731# 4732# ac_d sets the value in "#define NAME VALUE" lines. 4733ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' 4734ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' 4735ac_dC='\3' 4736ac_dD='%g' 4737# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". 4738ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 4739ac_uB='\([ ]\)%\1#\2define\3' 4740ac_uC=' ' 4741ac_uD='\4%g' 4742# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 4743ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 4744ac_eB='$%\1#\2define\3' 4745ac_eC=' ' 4746ac_eD='%g' 4747 4748if test "${CONFIG_HEADERS+set}" != set; then 4749EOF 4750cat >> $CONFIG_STATUS <<EOF 4751 CONFIG_HEADERS="src/config.h" 4752EOF 4753cat >> $CONFIG_STATUS <<\EOF 4754fi 4755for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then 4756 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 4757 case "$ac_file" in 4758 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` 4759 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 4760 *) ac_file_in="${ac_file}.in" ;; 4761 esac 4762 4763 echo creating $ac_file 4764 4765 rm -f conftest.frag conftest.in conftest.out 4766 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` 4767 cat $ac_file_inputs > conftest.in 4768 4769EOF 4770 4771# Transform confdefs.h into a sed script conftest.vals that substitutes 4772# the proper values into config.h.in to produce config.h. And first: 4773# Protect against being on the right side of a sed subst in config.status. 4774# Protect against being in an unquoted here document in config.status. 4775rm -f conftest.vals 4776cat > conftest.hdr <<\EOF 4777s/[\\&%]/\\&/g 4778s%[\\$`]%\\&%g 4779s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp 4780s%ac_d%ac_u%gp 4781s%ac_u%ac_e%gp 4782EOF 4783sed -n -f conftest.hdr confdefs.h > conftest.vals 4784rm -f conftest.hdr 4785 4786# This sed command replaces #undef with comments. This is necessary, for 4787# example, in the case of _POSIX_SOURCE, which is predefined and required 4788# on some systems where configure will not decide to define it. 4789cat >> conftest.vals <<\EOF 4790s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% 4791EOF 4792 4793# Break up conftest.vals because some shells have a limit on 4794# the size of here documents, and old seds have small limits too. 4795 4796rm -f conftest.tail 4797while : 4798do 4799 ac_lines=`grep -c . conftest.vals` 4800 # grep -c gives empty output for an empty file on some AIX systems. 4801 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi 4802 # Write a limited-size here document to conftest.frag. 4803 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS 4804 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS 4805 echo 'CEOF 4806 sed -f conftest.frag conftest.in > conftest.out 4807 rm -f conftest.in 4808 mv conftest.out conftest.in 4809' >> $CONFIG_STATUS 4810 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail 4811 rm -f conftest.vals 4812 mv conftest.tail conftest.vals 4813done 4814rm -f conftest.vals 4815 4816cat >> $CONFIG_STATUS <<\EOF 4817 rm -f conftest.frag conftest.h 4818 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h 4819 cat conftest.in >> conftest.h 4820 rm -f conftest.in 4821 if cmp -s $ac_file conftest.h 2>/dev/null; then 4822 echo "$ac_file is unchanged" 4823 rm -f conftest.h 4824 else 4825 # Remove last slash and all that follows it. Not all systems have dirname. 4826 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` 4827 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then 4828 # The file is in a subdirectory. 4829 test ! -d "$ac_dir" && mkdir "$ac_dir" 4830 fi 4831 rm -f $ac_file 4832 mv conftest.h $ac_file 4833 fi 4834fi; done 4835 4836EOF 4837cat >> $CONFIG_STATUS <<EOF 4838 4839 4840EOF 4841cat >> $CONFIG_STATUS <<\EOF 4842test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h 4843chmod +x aalib-config 4844exit 0 4845EOF 4846chmod +x $CONFIG_STATUS 4847rm -fr confdefs* $ac_clean_files 4848test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 4849 4850