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