3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
14 ac_default_prefix
=/usr
/local
16 --enable-debug create debugging code [default=no]"
18 --enable-interlace include code for image interlacing[default=yes]"
20 --with-x use the X Window System"
22 # Initialize some variables set by options.
23 # The variables have the same names as the options, with
24 # dashes changed to underlines.
26 cache_file
=.
/config.cache
35 program_transform_name
=s
,x
,x
,
43 bindir
='${exec_prefix}/bin'
44 sbindir
='${exec_prefix}/sbin'
45 libexecdir
='${exec_prefix}/libexec'
46 datadir
='${prefix}/share'
47 sysconfdir
='${prefix}/etc'
48 sharedstatedir
='${prefix}/com'
49 localstatedir
='${prefix}/var'
50 libdir
='${exec_prefix}/lib'
51 includedir
='${prefix}/include'
52 oldincludedir
='/usr/include'
53 infodir
='${prefix}/info'
54 mandir
='${prefix}/man'
56 # Initialize some other variables.
59 SHELL
=${CONFIG_SHELL-/bin/sh}
60 # Maximum number of lines to put in a shell here document.
67 # If the previous option needs an argument, assign it.
68 if test -n "$ac_prev"; then
69 eval "$ac_prev=\$ac_option"
75 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
79 # Accept the important Cygnus configure options, so we can diagnose typos.
83 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
85 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
86 bindir
="$ac_optarg" ;;
88 -build |
--build |
--buil |
--bui |
--bu)
90 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
93 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
94 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
96 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
97 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
98 cache_file
="$ac_optarg" ;;
100 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
102 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
104 datadir
="$ac_optarg" ;;
106 -disable-* |
--disable-*)
107 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
108 # Reject names that are not valid shell variable names.
109 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
110 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
113 eval "enable_${ac_feature}=no" ;;
115 -enable-* |
--enable-*)
116 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
126 eval "enable_${ac_feature}='$ac_optarg'" ;;
128 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
129 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
130 |
--exec |
--exe |
--ex)
131 ac_prev
=exec_prefix
;;
132 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
133 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
134 |
--exec=* |
--exe=* |
--ex=*)
135 exec_prefix
="$ac_optarg" ;;
137 -gas |
--gas |
--ga |
--g)
138 # Obsolete; use --with-gas.
141 -help |
--help |
--hel |
--he)
142 # Omit some internal or obsolete options to make the list less imposing.
143 # This message is too long to be a string in the A/UX 3.1 sh.
145 Usage: configure [options] [host]
146 Options: [defaults in brackets after descriptions]
148 --cache-file=FILE cache test results in FILE
149 --help print this message
150 --no-create do not create output files
151 --quiet, --silent do not print \`checking...' messages
152 --version print the version of autoconf that created configure
153 Directory and file names:
154 --prefix=PREFIX install architecture-independent files in PREFIX
156 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
158 --bindir=DIR user executables in DIR [EPREFIX/bin]
159 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
160 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
161 --datadir=DIR read-only architecture-independent data in DIR
163 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
164 --sharedstatedir=DIR modifiable architecture-independent data in DIR
166 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
167 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
168 --includedir=DIR C header files in DIR [PREFIX/include]
169 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
170 --infodir=DIR info documentation in DIR [PREFIX/info]
171 --mandir=DIR man documentation in DIR [PREFIX/man]
172 --srcdir=DIR find the sources in DIR [configure dir or ..]
173 --program-prefix=PREFIX prepend PREFIX to installed program names
174 --program-suffix=SUFFIX append SUFFIX to installed program names
175 --program-transform-name=PROGRAM
176 run sed PROGRAM on installed program names
180 --build=BUILD configure for building on BUILD [BUILD=HOST]
181 --host=HOST configure for HOST [guessed]
182 --target=TARGET configure for TARGET [TARGET=HOST]
183 Features and packages:
184 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
185 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
186 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
187 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
188 --x-includes=DIR X include files are in DIR
189 --x-libraries=DIR X library files are in DIR
191 if test -n "$ac_help"; then
192 echo "--enable and --with options recognized:$ac_help"
196 -host |
--host |
--hos |
--ho)
198 -host=* |
--host=* |
--hos=* |
--ho=*)
201 -includedir |
--includedir |
--includedi |
--included |
--include \
202 |
--includ |
--inclu |
--incl |
--inc)
203 ac_prev
=includedir
;;
204 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
205 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
206 includedir
="$ac_optarg" ;;
208 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
210 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
211 infodir
="$ac_optarg" ;;
213 -libdir |
--libdir |
--libdi |
--libd)
215 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
216 libdir
="$ac_optarg" ;;
218 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
219 |
--libexe |
--libex |
--libe)
220 ac_prev
=libexecdir
;;
221 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
222 |
--libexe=* |
--libex=* |
--libe=*)
223 libexecdir
="$ac_optarg" ;;
225 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
226 |
--localstate |
--localstat |
--localsta |
--localst \
227 |
--locals |
--local |
--loca |
--loc |
--lo)
228 ac_prev
=localstatedir
;;
229 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
230 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
231 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
232 localstatedir
="$ac_optarg" ;;
234 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
236 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
237 mandir
="$ac_optarg" ;;
240 # Obsolete; use --without-fp.
243 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
247 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
248 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
251 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
252 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
253 |
--oldin |
--oldi |
--old |
--ol |
--o)
254 ac_prev
=oldincludedir
;;
255 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
256 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
257 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
258 oldincludedir
="$ac_optarg" ;;
260 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
262 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
263 prefix
="$ac_optarg" ;;
265 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
266 |
--program-pre |
--program-pr |
--program-p)
267 ac_prev
=program_prefix
;;
268 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
269 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
270 program_prefix
="$ac_optarg" ;;
272 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
273 |
--program-suf |
--program-su |
--program-s)
274 ac_prev
=program_suffix
;;
275 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
276 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
277 program_suffix
="$ac_optarg" ;;
279 -program-transform-name |
--program-transform-name \
280 |
--program-transform-nam |
--program-transform-na \
281 |
--program-transform-n |
--program-transform- \
282 |
--program-transform |
--program-transfor \
283 |
--program-transfo |
--program-transf \
284 |
--program-trans |
--program-tran \
285 |
--progr-tra |
--program-tr |
--program-t)
286 ac_prev
=program_transform_name
;;
287 -program-transform-name=* |
--program-transform-name=* \
288 |
--program-transform-nam=* |
--program-transform-na=* \
289 |
--program-transform-n=* |
--program-transform-=* \
290 |
--program-transform=* |
--program-transfor=* \
291 |
--program-transfo=* |
--program-transf=* \
292 |
--program-trans=* |
--program-tran=* \
293 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
294 program_transform_name
="$ac_optarg" ;;
296 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
297 |
-silent |
--silent |
--silen |
--sile |
--sil)
300 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
302 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
304 sbindir
="$ac_optarg" ;;
306 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
307 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
308 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
310 ac_prev
=sharedstatedir
;;
311 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
312 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
313 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
315 sharedstatedir
="$ac_optarg" ;;
317 -site |
--site |
--sit)
319 -site=* |
--site=* |
--sit=*)
322 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
324 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
325 srcdir
="$ac_optarg" ;;
327 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
328 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
329 ac_prev
=sysconfdir
;;
330 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
331 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
332 sysconfdir
="$ac_optarg" ;;
334 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
336 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
337 target
="$ac_optarg" ;;
339 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
342 -version |
--version |
--versio |
--versi |
--vers)
343 echo "configure generated by autoconf version 2.13"
347 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
348 # Reject names that are not valid shell variable names.
349 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
350 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352 ac_package
=`echo $ac_package| sed 's/-/_/g'`
357 eval "with_${ac_package}='$ac_optarg'" ;;
359 -without-* |
--without-*)
360 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
361 # Reject names that are not valid shell variable names.
362 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
363 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 ac_package
=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}=no" ;;
369 # Obsolete; use --with-x.
372 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
373 |
--x-incl |
--x-inc |
--x-in |
--x-i)
374 ac_prev
=x_includes
;;
375 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
376 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
377 x_includes
="$ac_optarg" ;;
379 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
380 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
381 ac_prev
=x_libraries
;;
382 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
383 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
384 x_libraries
="$ac_optarg" ;;
386 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
390 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
391 echo "configure: warning: $ac_option: invalid host type" 1>&2
393 if test "x$nonopt" != xNONE
; then
394 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
402 if test -n "$ac_prev"; then
403 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408 # File descriptor usage:
411 # 2 errors and warnings
412 # 3 some systems may open it to /dev/tty
413 # 4 used on the Kubota Titan
414 # 6 checking for... messages and results
415 # 5 compiler messages saved in config.log
416 if test "$silent" = yes; then
424 This file contains any messages produced by compilers while
425 running configure, to aid debugging if configure makes a mistake.
428 # Strip out --no-create and --no-recursion so they do not pile up.
429 # Also quote any args containing shell metacharacters.
434 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
435 |
--no-cr |
--no-c) ;;
436 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
437 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
438 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
439 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
440 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
445 # Only set these to C if already set. These must not be set unconditionally
446 # because not all systems understand e.g. LANG=C (notably SCO).
447 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
448 # Non-C LC_CTYPE values break the ctype check.
449 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
450 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
451 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
452 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
454 # confdefs.h avoids OS command line length limits that DEFS can exceed.
455 rm -rf conftest
* confdefs.h
456 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
459 # A filename unique to this package, relative to the directory that
460 # configure is in, which we can look for to find out if srcdir is correct.
461 ac_unique_file
=bbkeys.cc
463 # Find the source files, if location was not specified.
464 if test -z "$srcdir"; then
465 ac_srcdir_defaulted
=yes
466 # Try the directory containing this script, then its parent.
468 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
469 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
471 if test ! -r $srcdir/$ac_unique_file; then
475 ac_srcdir_defaulted
=no
477 if test ! -r $srcdir/$ac_unique_file; then
478 if test "$ac_srcdir_defaulted" = yes; then
479 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
484 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
486 # Prefer explicitly selected file to automatically selected ones.
487 if test -z "$CONFIG_SITE"; then
488 if test "x$prefix" != xNONE
; then
489 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
491 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
494 for ac_site_file
in $CONFIG_SITE; do
495 if test -r "$ac_site_file"; then
496 echo "loading site script $ac_site_file"
501 if test -r "$cache_file"; then
502 echo "loading cache $cache_file"
505 echo "creating cache $cache_file"
510 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
511 ac_cpp
='$CPP $CPPFLAGS'
512 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
513 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
514 cross_compiling
=$ac_cv_prog_cc_cross
518 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
519 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
520 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
527 ac_n
= ac_c
='\c' ac_t
=
533 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
534 if test -f $ac_dir/install-sh
; then
536 ac_install_sh
="$ac_aux_dir/install-sh -c"
538 elif test -f $ac_dir/install.sh
; then
540 ac_install_sh
="$ac_aux_dir/install.sh -c"
544 if test -z "$ac_aux_dir"; then
545 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
547 ac_config_guess
=$ac_aux_dir/config.guess
548 ac_config_sub
=$ac_aux_dir/config.sub
549 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
551 # Find a good install program. We prefer a C program (faster),
552 # so one script is as good as another. But avoid the broken or
553 # incompatible versions:
554 # SysV /etc/install, /usr/sbin/install
555 # SunOS /usr/etc/install
558 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
559 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
560 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
561 # ./install, which can be erroneously created by make from ./install.sh.
562 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
563 echo "configure:564: checking for a BSD compatible install" >&5
564 if test -z "$INSTALL"; then
565 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
566 echo $ac_n "(cached) $ac_c" 1>&6
568 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
569 for ac_dir
in $PATH; do
570 # Account for people who put trailing slashes in PATH elements.
572 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
574 # OSF1 and SCO ODT 3.0 have their own names for install.
575 # Don't use installbsd from OSF since it installs stuff as root
577 for ac_prog
in ginstall scoinst
install; do
578 if test -f $ac_dir/$ac_prog; then
579 if test $ac_prog = install &&
580 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
581 # AIX install. It has an incompatible calling convention.
584 ac_cv_path_install
="$ac_dir/$ac_prog -c"
595 if test "${ac_cv_path_install+set}" = set; then
596 INSTALL
="$ac_cv_path_install"
598 # As a last resort, use the slow shell script. We don't cache a
599 # path for INSTALL within a source directory, because that will
600 # break other packages using the cache if that directory is
601 # removed, or if the path is relative.
602 INSTALL
="$ac_install_sh"
605 echo "$ac_t""$INSTALL" 1>&6
607 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
608 # It thinks the first close brace ends the variable substitution.
609 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
611 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
613 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
615 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
616 echo "configure:617: checking whether build environment is sane" >&5
619 echo timestamp
> conftestfile
620 # Do `set' in a subshell so we don't clobber the current shell's
621 # arguments. Must try -L first in case configure is actually a
622 # symlink; some systems play weird games with the mod time of symlinks
623 # (eg FreeBSD returns the mod time of the symlink's containing
626 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
627 if test "$*" = "X"; then
629 set X
`ls -t $srcdir/configure conftestfile`
631 if test "$*" != "X $srcdir/configure conftestfile" \
632 && test "$*" != "X conftestfile $srcdir/configure"; then
634 # If neither matched, then we have a broken ls. This can happen
635 # if, for instance, CONFIG_SHELL is bash and it inherits a
636 # broken ls alias from the environment. This has actually
637 # happened. Such a system could not be considered "sane".
638 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
639 alias in your environment" 1>&2; exit 1; }
642 test "$2" = conftestfile
648 { echo "configure: error: newly created file is older than distributed files!
649 Check your system clock" 1>&2; exit 1; }
652 echo "$ac_t""yes" 1>&6
653 if test "$program_transform_name" = s
,x
,x
,; then
654 program_transform_name
=
656 # Double any \ or $. echo might interpret backslashes.
657 cat <<\EOF_SED
> conftestsed
658 s
,\\,\\\\,g
; s
,\$
,$$
,g
660 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
663 test "$program_prefix" != NONE
&&
664 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
665 # Use a double $ so make ignores it.
666 test "$program_suffix" != NONE
&&
667 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
669 # sed with no file args requires a program.
670 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
672 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
673 echo "configure:674: checking whether ${MAKE-make} sets \${MAKE}" >&5
674 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
675 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
676 echo $ac_n "(cached) $ac_c" 1>&6
678 cat > conftestmake
<<\EOF
680 @
echo 'ac_maketemp="${MAKE}"'
682 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
683 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
684 if test -n "$ac_maketemp"; then
685 eval ac_cv_prog_make_
${ac_make}_set
=yes
687 eval ac_cv_prog_make_
${ac_make}_set
=no
691 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
692 echo "$ac_t""yes" 1>&6
695 echo "$ac_t""no" 1>&6
696 SET_MAKE
="MAKE=${MAKE-make}"
704 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
705 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
707 cat >> confdefs.h
<<EOF
708 #define PACKAGE "$PACKAGE"
711 cat >> confdefs.h
<<EOF
712 #define VERSION "$VERSION"
717 missing_dir
=`cd $ac_aux_dir && pwd`
718 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
719 echo "configure:720: checking for working aclocal" >&5
720 # Run test in a subshell; some versions of sh will print an error if
721 # an executable is not found, even if stderr is redirected.
722 # Redirect stdin to placate older versions of autoconf. Sigh.
723 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
725 echo "$ac_t""found" 1>&6
727 ACLOCAL
="$missing_dir/missing aclocal"
728 echo "$ac_t""missing" 1>&6
731 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
732 echo "configure:733: checking for working autoconf" >&5
733 # Run test in a subshell; some versions of sh will print an error if
734 # an executable is not found, even if stderr is redirected.
735 # Redirect stdin to placate older versions of autoconf. Sigh.
736 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
738 echo "$ac_t""found" 1>&6
740 AUTOCONF
="$missing_dir/missing autoconf"
741 echo "$ac_t""missing" 1>&6
744 echo $ac_n "checking for working automake""... $ac_c" 1>&6
745 echo "configure:746: checking for working automake" >&5
746 # Run test in a subshell; some versions of sh will print an error if
747 # an executable is not found, even if stderr is redirected.
748 # Redirect stdin to placate older versions of autoconf. Sigh.
749 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
751 echo "$ac_t""found" 1>&6
753 AUTOMAKE
="$missing_dir/missing automake"
754 echo "$ac_t""missing" 1>&6
757 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
758 echo "configure:759: checking for working autoheader" >&5
759 # Run test in a subshell; some versions of sh will print an error if
760 # an executable is not found, even if stderr is redirected.
761 # Redirect stdin to placate older versions of autoconf. Sigh.
762 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
763 AUTOHEADER
=autoheader
764 echo "$ac_t""found" 1>&6
766 AUTOHEADER
="$missing_dir/missing autoheader"
767 echo "$ac_t""missing" 1>&6
770 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
771 echo "configure:772: checking for working makeinfo" >&5
772 # Run test in a subshell; some versions of sh will print an error if
773 # an executable is not found, even if stderr is redirected.
774 # Redirect stdin to placate older versions of autoconf. Sigh.
775 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
777 echo "$ac_t""found" 1>&6
779 MAKEINFO
="$missing_dir/missing makeinfo"
780 echo "$ac_t""missing" 1>&6
791 # Extract the first word of "$ac_prog", so it can be a program name with args.
792 set dummy
$ac_prog; ac_word
=$2
793 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
794 echo "configure:795: checking for $ac_word" >&5
795 if eval "test \"`echo '$''{'ac_cv_prog_regex_cmd'+set}'`\" = set"; then
796 echo $ac_n "(cached) $ac_c" 1>&6
798 if test -n "$regex_cmd"; then
799 ac_cv_prog_regex_cmd
="$regex_cmd" # Let the user override the test.
801 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
803 for ac_dir
in $ac_dummy; do
804 test -z "$ac_dir" && ac_dir
=.
805 if test -f $ac_dir/$ac_word; then
806 ac_cv_prog_regex_cmd
="$ac_prog"
813 regex_cmd
="$ac_cv_prog_regex_cmd"
814 if test -n "$regex_cmd"; then
815 echo "$ac_t""$regex_cmd" 1>&6
817 echo "$ac_t""no" 1>&6
820 test -n "$regex_cmd" && break
823 if test x
$regex_cmd = "x"; then
824 { echo "configure: error: error. sed is required to build the default bbtoolsrc file." 1>&2; exit 1; }
833 # Check whether --enable-debug or --disable-debug was given.
834 if test "${enable_debug+set}" = set; then
835 enableval
="$enable_debug"
837 if test $enableval = "no";
839 test "$CFLAGS" = "" && CFLAGS
="-O2 -Wall"
840 test "$CXXFLAGS" = "" && CXXFLAGS
="-O2 -Wall"
841 test "$LDFLAGS" = "" && LDFLAGS
="-s"
844 test "$CFLAGS" = "" && CFLAGS
="-g -Wall -DDEBUG"
845 test "$CXXFLAGS" = "" && CXXFLAGS
="-g -Wall -DDEBUG"
846 test "$LDFLAGS" = "" && LDFLAGS
=""
852 test "$CFLAGS" = "" && CFLAGS
="-O2 -Wall"
853 test "$CXXFLAGS" = "" && CXXFLAGS
="-O2 -Wall"
854 test "$LDFLAGS" = "" && LDFLAGS
="-s"
860 echo $ac_n "checking whether to include interlacing image code""... $ac_c" 1>&6
861 echo "configure:862: checking whether to include interlacing image code" >&5
862 # Check whether --enable-interlace or --disable-interlace was given.
863 if test "${enable_interlace+set}" = set; then
864 enableval
="$enable_interlace"
865 if test x
$enableval = "xyes"; then
866 echo "$ac_t""yes" 1>&6
867 INTERLACE
="-DINTERLACE"
869 echo "$ac_t""no" 1>&6
872 echo "$ac_t""yes" 1>&6
873 INTERLACE
="-DINTERLACE"
879 # Extract the first word of "gcc", so it can be a program name with args.
880 set dummy gcc
; ac_word
=$2
881 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
882 echo "configure:883: checking for $ac_word" >&5
883 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
884 echo $ac_n "(cached) $ac_c" 1>&6
886 if test -n "$CC"; then
887 ac_cv_prog_CC
="$CC" # Let the user override the test.
889 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
891 for ac_dir
in $ac_dummy; do
892 test -z "$ac_dir" && ac_dir
=.
893 if test -f $ac_dir/$ac_word; then
902 if test -n "$CC"; then
903 echo "$ac_t""$CC" 1>&6
905 echo "$ac_t""no" 1>&6
908 if test -z "$CC"; then
909 # Extract the first word of "cc", so it can be a program name with args.
910 set dummy cc
; ac_word
=$2
911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
912 echo "configure:913: checking for $ac_word" >&5
913 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
914 echo $ac_n "(cached) $ac_c" 1>&6
916 if test -n "$CC"; then
917 ac_cv_prog_CC
="$CC" # Let the user override the test.
919 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
922 for ac_dir
in $ac_dummy; do
923 test -z "$ac_dir" && ac_dir
=.
924 if test -f $ac_dir/$ac_word; then
925 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
934 if test $ac_prog_rejected = yes; then
935 # We found a bogon in the path, so make sure we never use it.
936 set dummy
$ac_cv_prog_CC
938 if test $# -gt 0; then
939 # We chose a different compiler from the bogus one.
940 # However, it has the same basename, so the bogon will be chosen
941 # first if we set CC to just the basename; use the full file name.
943 set dummy
"$ac_dir/$ac_word" "$@"
951 if test -n "$CC"; then
952 echo "$ac_t""$CC" 1>&6
954 echo "$ac_t""no" 1>&6
957 if test -z "$CC"; then
960 # Extract the first word of "cl", so it can be a program name with args.
961 set dummy cl
; ac_word
=$2
962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
963 echo "configure:964: checking for $ac_word" >&5
964 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
965 echo $ac_n "(cached) $ac_c" 1>&6
967 if test -n "$CC"; then
968 ac_cv_prog_CC
="$CC" # Let the user override the test.
970 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
972 for ac_dir
in $ac_dummy; do
973 test -z "$ac_dir" && ac_dir
=.
974 if test -f $ac_dir/$ac_word; then
983 if test -n "$CC"; then
984 echo "$ac_t""$CC" 1>&6
986 echo "$ac_t""no" 1>&6
991 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
994 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
995 echo "configure:996: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
998 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
999 ac_cpp
='$CPP $CPPFLAGS'
1000 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1001 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1002 cross_compiling
=$ac_cv_prog_cc_cross
1004 cat > conftest.
$ac_ext << EOF
1006 #line 1007 "configure"
1007 #include "confdefs.h"
1011 if { (eval echo configure
:1012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1012 ac_cv_prog_cc_works
=yes
1013 # If we can't run a trivial program, we are probably using a cross compiler.
1014 if (.
/conftest
; exit) 2>/dev
/null
; then
1015 ac_cv_prog_cc_cross
=no
1017 ac_cv_prog_cc_cross
=yes
1020 echo "configure: failed program was:" >&5
1021 cat conftest.
$ac_ext >&5
1022 ac_cv_prog_cc_works
=no
1026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1027 ac_cpp
='$CPP $CPPFLAGS'
1028 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1029 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1030 cross_compiling
=$ac_cv_prog_cc_cross
1032 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1033 if test $ac_cv_prog_cc_works = no
; then
1034 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1036 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1037 echo "configure:1038: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1038 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1039 cross_compiling
=$ac_cv_prog_cc_cross
1041 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1042 echo "configure:1043: checking whether we are using GNU C" >&5
1043 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1046 cat > conftest.c
<<EOF
1051 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1058 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1060 if test $ac_cv_prog_gcc = yes; then
1066 ac_test_CFLAGS
="${CFLAGS+set}"
1067 ac_save_CFLAGS
="$CFLAGS"
1069 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1070 echo "configure:1071: checking whether ${CC-cc} accepts -g" >&5
1071 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 echo 'void f(){}' > conftest.c
1075 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1084 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1085 if test "$ac_test_CFLAGS" = set; then
1086 CFLAGS
="$ac_save_CFLAGS"
1087 elif test $ac_cv_prog_cc_g = yes; then
1088 if test "$GCC" = yes; then
1094 if test "$GCC" = yes; then
1101 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1103 # Extract the first word of "$ac_prog", so it can be a program name with args.
1104 set dummy
$ac_prog; ac_word
=$2
1105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1106 echo "configure:1107: checking for $ac_word" >&5
1107 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1110 if test -n "$CXX"; then
1111 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1113 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1115 for ac_dir
in $ac_dummy; do
1116 test -z "$ac_dir" && ac_dir
=.
1117 if test -f $ac_dir/$ac_word; then
1118 ac_cv_prog_CXX
="$ac_prog"
1125 CXX
="$ac_cv_prog_CXX"
1126 if test -n "$CXX"; then
1127 echo "$ac_t""$CXX" 1>&6
1129 echo "$ac_t""no" 1>&6
1132 test -n "$CXX" && break
1134 test -n "$CXX" || CXX
="gcc"
1137 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1138 echo "configure:1139: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1141 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1142 ac_cpp
='$CXXCPP $CPPFLAGS'
1143 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1144 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1145 cross_compiling
=$ac_cv_prog_cxx_cross
1147 cat > conftest.
$ac_ext << EOF
1149 #line 1150 "configure"
1150 #include "confdefs.h"
1152 int main(){return(0);}
1154 if { (eval echo configure
:1155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1155 ac_cv_prog_cxx_works
=yes
1156 # If we can't run a trivial program, we are probably using a cross compiler.
1157 if (.
/conftest
; exit) 2>/dev
/null
; then
1158 ac_cv_prog_cxx_cross
=no
1160 ac_cv_prog_cxx_cross
=yes
1163 echo "configure: failed program was:" >&5
1164 cat conftest.
$ac_ext >&5
1165 ac_cv_prog_cxx_works
=no
1169 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1170 ac_cpp
='$CPP $CPPFLAGS'
1171 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1172 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1173 cross_compiling
=$ac_cv_prog_cc_cross
1175 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1176 if test $ac_cv_prog_cxx_works = no
; then
1177 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1179 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1180 echo "configure:1181: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1181 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1182 cross_compiling
=$ac_cv_prog_cxx_cross
1184 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether we are using GNU C++" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 cat > conftest.C
<<EOF
1194 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1201 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1203 if test $ac_cv_prog_gxx = yes; then
1209 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1210 ac_save_CXXFLAGS
="$CXXFLAGS"
1212 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1213 echo "configure:1214: checking whether ${CXX-g++} accepts -g" >&5
1214 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1217 echo 'void f(){}' > conftest.cc
1218 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1219 ac_cv_prog_cxx_g
=yes
1227 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1228 if test "$ac_test_CXXFLAGS" = set; then
1229 CXXFLAGS
="$ac_save_CXXFLAGS"
1230 elif test $ac_cv_prog_cxx_g = yes; then
1231 if test "$GXX" = yes; then
1237 if test "$GXX" = yes; then
1244 # Find a good install program. We prefer a C program (faster),
1245 # so one script is as good as another. But avoid the broken or
1246 # incompatible versions:
1247 # SysV /etc/install, /usr/sbin/install
1248 # SunOS /usr/etc/install
1249 # IRIX /sbin/install
1251 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1252 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1253 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1254 # ./install, which can be erroneously created by make from ./install.sh.
1255 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1256 echo "configure:1257: checking for a BSD compatible install" >&5
1257 if test -z "$INSTALL"; then
1258 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1259 echo $ac_n "(cached) $ac_c" 1>&6
1261 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1262 for ac_dir
in $PATH; do
1263 # Account for people who put trailing slashes in PATH elements.
1265 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1267 # OSF1 and SCO ODT 3.0 have their own names for install.
1268 # Don't use installbsd from OSF since it installs stuff as root
1270 for ac_prog
in ginstall scoinst
install; do
1271 if test -f $ac_dir/$ac_prog; then
1272 if test $ac_prog = install &&
1273 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1274 # AIX install. It has an incompatible calling convention.
1277 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1288 if test "${ac_cv_path_install+set}" = set; then
1289 INSTALL
="$ac_cv_path_install"
1291 # As a last resort, use the slow shell script. We don't cache a
1292 # path for INSTALL within a source directory, because that will
1293 # break other packages using the cache if that directory is
1294 # removed, or if the path is relative.
1295 INSTALL
="$ac_install_sh"
1298 echo "$ac_t""$INSTALL" 1>&6
1300 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1301 # It thinks the first close brace ends the variable substitution.
1302 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1304 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1306 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1309 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1310 echo "configure:1311: checking how to run the C preprocessor" >&5
1311 # On Suns, sometimes $CPP names a directory.
1312 if test -n "$CPP" && test -d "$CPP"; then
1315 if test -z "$CPP"; then
1316 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 # This must be in double quotes, not single quotes, because CPP may get
1320 # substituted into the Makefile and "${CC-cc}" will confuse make.
1322 # On the NeXT, cc -E runs the code through the compiler's parser,
1323 # not just through cpp.
1324 cat > conftest.
$ac_ext <<EOF
1325 #line 1326 "configure"
1326 #include "confdefs.h"
1330 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1331 { (eval echo configure
:1332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1332 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1333 if test -z "$ac_err"; then
1337 echo "configure: failed program was:" >&5
1338 cat conftest.
$ac_ext >&5
1340 CPP
="${CC-cc} -E -traditional-cpp"
1341 cat > conftest.
$ac_ext <<EOF
1342 #line 1343 "configure"
1343 #include "confdefs.h"
1347 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1348 { (eval echo configure
:1349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1349 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1350 if test -z "$ac_err"; then
1354 echo "configure: failed program was:" >&5
1355 cat conftest.
$ac_ext >&5
1357 CPP
="${CC-cc} -nologo -E"
1358 cat > conftest.
$ac_ext <<EOF
1359 #line 1360 "configure"
1360 #include "confdefs.h"
1364 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1365 { (eval echo configure
:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1366 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1367 if test -z "$ac_err"; then
1371 echo "configure: failed program was:" >&5
1372 cat conftest.
$ac_ext >&5
1381 ac_cv_prog_CPP
="$CPP"
1383 CPP
="$ac_cv_prog_CPP"
1385 ac_cv_prog_CPP
="$CPP"
1387 echo "$ac_t""$CPP" 1>&6
1389 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1390 echo "configure:1391: checking for ANSI C header files" >&5
1391 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1394 cat > conftest.
$ac_ext <<EOF
1395 #line 1396 "configure"
1396 #include "confdefs.h"
1402 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1403 { (eval echo configure
:1404: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1404 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1405 if test -z "$ac_err"; then
1407 ac_cv_header_stdc
=yes
1410 echo "configure: failed program was:" >&5
1411 cat conftest.
$ac_ext >&5
1413 ac_cv_header_stdc
=no
1417 if test $ac_cv_header_stdc = yes; then
1418 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1419 cat > conftest.
$ac_ext <<EOF
1420 #line 1421 "configure"
1421 #include "confdefs.h"
1424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1425 egrep "memchr" >/dev
/null
2>&1; then
1429 ac_cv_header_stdc
=no
1435 if test $ac_cv_header_stdc = yes; then
1436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1437 cat > conftest.
$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1443 egrep "free" >/dev
/null
2>&1; then
1447 ac_cv_header_stdc
=no
1453 if test $ac_cv_header_stdc = yes; then
1454 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1455 if test "$cross_compiling" = yes; then
1458 cat > conftest.
$ac_ext <<EOF
1459 #line 1460 "configure"
1460 #include "confdefs.h"
1462 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1463 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1464 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1465 int main () { int i; for (i = 0; i < 256; i++)
1466 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1470 if { (eval echo configure
:1471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1474 echo "configure: failed program was:" >&5
1475 cat conftest.
$ac_ext >&5
1477 ac_cv_header_stdc
=no
1485 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1486 if test $ac_cv_header_stdc = yes; then
1487 cat >> confdefs.h
<<\EOF
1488 #define STDC_HEADERS 1
1493 for ac_hdr
in ctype.h
strings.h fcntl.h libgen.h locale.h process.h signal.h stdio.h
time.h errno.h unistd.h sys
/param.h sys
/select.h sys
/stat.h sys
/time.h sys
/types.h sys
/wait.h
1495 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1496 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1497 echo "configure:1498: checking for $ac_hdr" >&5
1498 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1499 echo $ac_n "(cached) $ac_c" 1>&6
1501 cat > conftest.
$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1506 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1507 { (eval echo configure
:1508: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1508 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1509 if test -z "$ac_err"; then
1511 eval "ac_cv_header_$ac_safe=yes"
1514 echo "configure: failed program was:" >&5
1515 cat conftest.
$ac_ext >&5
1517 eval "ac_cv_header_$ac_safe=no"
1521 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1522 echo "$ac_t""yes" 1>&6
1523 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1524 cat >> confdefs.h
<<EOF
1525 #define $ac_tr_hdr 1
1529 echo "$ac_t""no" 1>&6
1533 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1534 echo "configure:1535: checking whether time.h and sys/time.h may both be included" >&5
1535 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1536 echo $ac_n "(cached) $ac_c" 1>&6
1538 cat > conftest.
$ac_ext <<EOF
1539 #line 1540 "configure"
1540 #include "confdefs.h"
1541 #include <sys/types.h>
1542 #include <sys/time.h>
1548 if { (eval echo configure
:1549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1550 ac_cv_header_time
=yes
1552 echo "configure: failed program was:" >&5
1553 cat conftest.
$ac_ext >&5
1555 ac_cv_header_time
=no
1560 echo "$ac_t""$ac_cv_header_time" 1>&6
1561 if test $ac_cv_header_time = yes; then
1562 cat >> confdefs.h
<<\EOF
1563 #define TIME_WITH_SYS_TIME 1
1569 for ac_func
in setlocale sigaction strftime
1571 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1572 echo "configure:1573: checking for $ac_func" >&5
1573 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 cat > conftest.
$ac_ext <<EOF
1577 #line 1578 "configure"
1578 #include "confdefs.h"
1579 /* System header to define __stub macros and hopefully few prototypes,
1580 which can conflict with char $ac_func(); below. */
1582 /* Override any gcc2 internal prototype to avoid an error. */
1583 /* We use char because int might match the return type of a gcc2
1584 builtin and then its argument prototype would still apply. */
1589 /* The GNU C library defines this for functions which it implements
1590 to always fail with ENOSYS. Some functions are actually named
1591 something starting with __ and the normal name is an alias. */
1592 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1600 if { (eval echo configure
:1601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1602 eval "ac_cv_func_$ac_func=yes"
1604 echo "configure: failed program was:" >&5
1605 cat conftest.
$ac_ext >&5
1607 eval "ac_cv_func_$ac_func=no"
1612 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1613 echo "$ac_t""yes" 1>&6
1614 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1615 cat >> confdefs.h
<<EOF
1616 #define $ac_tr_func 1
1620 echo "$ac_t""no" 1>&6
1625 # If we find X, set shell vars x_includes and x_libraries to the
1626 # paths, otherwise set no_x=yes.
1627 # Uses ac_ vars as temps to allow command line to override cache and checks.
1628 # --without-x overrides everything else, but does not touch the cache.
1629 echo $ac_n "checking for X""... $ac_c" 1>&6
1630 echo "configure:1631: checking for X" >&5
1632 # Check whether --with-x or --without-x was given.
1633 if test "${with_x+set}" = set; then
1638 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1639 if test "x$with_x" = xno
; then
1640 # The user explicitly disabled X.
1643 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1644 # Both variables are already set.
1647 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1650 # One or both of the vars are not set, and there is no cached value.
1651 ac_x_includes
=NO ac_x_libraries
=NO
1653 if mkdir conftestdir
; then
1655 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1656 cat > Imakefile
<<'EOF'
1658 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1660 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1661 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1662 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1663 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1664 for ac_extension
in a so sl
; do
1665 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1666 test -f $ac_im_libdir/libX11.
$ac_extension; then
1667 ac_im_usrlibdir
=$ac_im_libdir; break
1670 # Screen out bogus values from the imake configuration. They are
1671 # bogus both because they are the default anyway, and because
1672 # using them would break gcc on systems where it needs fixed includes.
1673 case "$ac_im_incroot" in
1675 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1677 case "$ac_im_usrlibdir" in
1679 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1686 if test "$ac_x_includes" = NO
; then
1687 # Guess where to find include files, by looking for this one X11 .h file.
1688 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1690 # First, try using that file with no special directory specified.
1691 cat > conftest.
$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1694 #include <$x_direct_test_include>
1696 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1697 { (eval echo configure
:1698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1698 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1699 if test -z "$ac_err"; then
1701 # We can compile using X headers with no special include directory.
1705 echo "configure: failed program was:" >&5
1706 cat conftest.
$ac_ext >&5
1708 # Look for the header file in a standard set of common directories.
1709 # Check X11 before X11Rn because it is often a symlink to the current release.
1712 /usr
/X11R
6/include \
1713 /usr
/X11R
5/include \
1714 /usr
/X11R
4/include \
1717 /usr
/include
/X11R6 \
1718 /usr
/include
/X11R5 \
1719 /usr
/include
/X11R4 \
1721 /usr
/local
/X11
/include \
1722 /usr
/local
/X11R
6/include \
1723 /usr
/local
/X11R
5/include \
1724 /usr
/local
/X11R
4/include \
1726 /usr
/local
/include
/X11 \
1727 /usr
/local
/include
/X11R6 \
1728 /usr
/local
/include
/X11R5 \
1729 /usr
/local
/include
/X11R4 \
1733 /usr
/XFree86
/include
/X11 \
1736 /usr
/local
/include \
1737 /usr
/unsupported
/include \
1738 /usr
/athena
/include \
1739 /usr
/local
/x11r
5/include \
1740 /usr
/lpp
/Xamples
/include \
1742 /usr
/openwin
/include \
1743 /usr
/openwin
/share
/include \
1746 if test -r "$ac_dir/$x_direct_test_include"; then
1747 ac_x_includes
=$ac_dir
1753 fi # $ac_x_includes = NO
1755 if test "$ac_x_libraries" = NO
; then
1756 # Check for the libraries.
1758 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1759 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1761 # See if we find them without any special options.
1762 # Don't add to $LIBS permanently.
1763 ac_save_LIBS
="$LIBS"
1764 LIBS
="-l$x_direct_test_library $LIBS"
1765 cat > conftest.
$ac_ext <<EOF
1766 #line 1767 "configure"
1767 #include "confdefs.h"
1770 ${x_direct_test_function}()
1773 if { (eval echo configure
:1774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1775 LIBS
="$ac_save_LIBS"
1776 # We can link X programs with no special library path.
1779 echo "configure: failed program was:" >&5
1780 cat conftest.
$ac_ext >&5
1782 LIBS
="$ac_save_LIBS"
1783 # First see if replacing the include by lib works.
1784 # Check X11 before X11Rn because it is often a symlink to the current release.
1785 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1796 /usr
/local
/X11
/lib \
1797 /usr
/local
/X11R
6/lib \
1798 /usr
/local
/X11R
5/lib \
1799 /usr
/local
/X11R
4/lib \
1801 /usr
/local
/lib
/X11 \
1802 /usr
/local
/lib
/X11R6 \
1803 /usr
/local
/lib
/X11R5 \
1804 /usr
/local
/lib
/X11R4 \
1808 /usr
/XFree86
/lib
/X11 \
1812 /usr
/unsupported
/lib \
1814 /usr
/local
/x11r
5/lib \
1815 /usr
/lpp
/Xamples
/lib \
1819 /usr
/openwin
/share
/lib \
1822 for ac_extension
in a so sl
; do
1823 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1824 ac_x_libraries
=$ac_dir
1831 fi # $ac_x_libraries = NO
1833 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1834 # Didn't find X anywhere. Cache the known absence of X.
1835 ac_cv_have_x
="have_x=no"
1837 # Record where we found X for the cache.
1838 ac_cv_have_x
="have_x=yes \
1839 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1843 eval "$ac_cv_have_x"
1846 if test "$have_x" != yes; then
1847 echo "$ac_t""$have_x" 1>&6
1850 # If each of the values was on the command line, it overrides each guess.
1851 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1852 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1853 # Update the cache value to reflect the command line values.
1854 ac_cv_have_x
="have_x=yes \
1855 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1856 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1859 if test "$no_x" = yes; then
1860 # Not all programs may use this symbol, but it does not hurt to define it.
1861 cat >> confdefs.h
<<\EOF
1862 #define X_DISPLAY_MISSING 1
1865 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1867 if test -n "$x_includes"; then
1868 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1871 # It would also be nice to do this for all -L options, not just this one.
1872 if test -n "$x_libraries"; then
1873 X_LIBS
="$X_LIBS -L$x_libraries"
1874 # For Solaris; some versions of Sun CC require a space after -R and
1875 # others require no space. Words are not sufficient . . . .
1876 case "`(uname -sr) 2>/dev/null`" in
1878 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1879 echo "configure:1880: checking whether -R must be followed by a space" >&5
1880 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1881 cat > conftest.
$ac_ext <<EOF
1882 #line 1883 "configure"
1883 #include "confdefs.h"
1889 if { (eval echo configure
:1890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1893 echo "configure: failed program was:" >&5
1894 cat conftest.
$ac_ext >&5
1899 if test $ac_R_nospace = yes; then
1900 echo "$ac_t""no" 1>&6
1901 X_LIBS
="$X_LIBS -R$x_libraries"
1903 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1904 cat > conftest.
$ac_ext <<EOF
1905 #line 1906 "configure"
1906 #include "confdefs.h"
1912 if { (eval echo configure
:1913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1916 echo "configure: failed program was:" >&5
1917 cat conftest.
$ac_ext >&5
1922 if test $ac_R_space = yes; then
1923 echo "$ac_t""yes" 1>&6
1924 X_LIBS
="$X_LIBS -R $x_libraries"
1926 echo "$ac_t""neither works" 1>&6
1929 LIBS
="$ac_xsave_LIBS"
1933 # Check for system-dependent libraries X programs must link with.
1934 # Do this before checking for the system-independent R6 libraries
1935 # (-lICE), since we may need -lsocket or whatever for X linking.
1937 if test "$ISC" = yes; then
1938 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1940 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1941 # libraries were built with DECnet support. And karl@cs.umb.edu says
1942 # the Alpha needs dnet_stub (dnet does not exist).
1943 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1944 echo "configure:1945: checking for dnet_ntoa in -ldnet" >&5
1945 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1946 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1947 echo $ac_n "(cached) $ac_c" 1>&6
1949 ac_save_LIBS
="$LIBS"
1951 cat > conftest.
$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1954 /* Override any gcc2 internal prototype to avoid an error. */
1955 /* We use char because int might match the return type of a gcc2
1956 builtin and then its argument prototype would still apply. */
1963 if { (eval echo configure
:1964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1965 eval "ac_cv_lib_$ac_lib_var=yes"
1967 echo "configure: failed program was:" >&5
1968 cat conftest.
$ac_ext >&5
1970 eval "ac_cv_lib_$ac_lib_var=no"
1973 LIBS
="$ac_save_LIBS"
1976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1977 echo "$ac_t""yes" 1>&6
1978 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1980 echo "$ac_t""no" 1>&6
1983 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1984 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1985 echo "configure:1986: checking for dnet_ntoa in -ldnet_stub" >&5
1986 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1987 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1990 ac_save_LIBS
="$LIBS"
1991 LIBS
="-ldnet_stub $LIBS"
1992 cat > conftest.
$ac_ext <<EOF
1993 #line 1994 "configure"
1994 #include "confdefs.h"
1995 /* Override any gcc2 internal prototype to avoid an error. */
1996 /* We use char because int might match the return type of a gcc2
1997 builtin and then its argument prototype would still apply. */
2004 if { (eval echo configure
:2005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2006 eval "ac_cv_lib_$ac_lib_var=yes"
2008 echo "configure: failed program was:" >&5
2009 cat conftest.
$ac_ext >&5
2011 eval "ac_cv_lib_$ac_lib_var=no"
2014 LIBS
="$ac_save_LIBS"
2017 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2018 echo "$ac_t""yes" 1>&6
2019 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
2021 echo "$ac_t""no" 1>&6
2026 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2027 # to get the SysV transport functions.
2028 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2030 # The nsl library prevents programs from opening the X display
2031 # on Irix 5.2, according to dickey@clark.net.
2032 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2033 echo "configure:2034: checking for gethostbyname" >&5
2034 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2035 echo $ac_n "(cached) $ac_c" 1>&6
2037 cat > conftest.
$ac_ext <<EOF
2038 #line 2039 "configure"
2039 #include "confdefs.h"
2040 /* System header to define __stub macros and hopefully few prototypes,
2041 which can conflict with char gethostbyname(); below. */
2043 /* Override any gcc2 internal prototype to avoid an error. */
2044 /* We use char because int might match the return type of a gcc2
2045 builtin and then its argument prototype would still apply. */
2046 char gethostbyname();
2050 /* The GNU C library defines this for functions which it implements
2051 to always fail with ENOSYS. Some functions are actually named
2052 something starting with __ and the normal name is an alias. */
2053 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2061 if { (eval echo configure
:2062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2063 eval "ac_cv_func_gethostbyname=yes"
2065 echo "configure: failed program was:" >&5
2066 cat conftest.
$ac_ext >&5
2068 eval "ac_cv_func_gethostbyname=no"
2073 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2074 echo "$ac_t""yes" 1>&6
2077 echo "$ac_t""no" 1>&6
2080 if test $ac_cv_func_gethostbyname = no
; then
2081 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2082 echo "configure:2083: checking for gethostbyname in -lnsl" >&5
2083 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2084 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2085 echo $ac_n "(cached) $ac_c" 1>&6
2087 ac_save_LIBS
="$LIBS"
2089 cat > conftest.
$ac_ext <<EOF
2090 #line 2091 "configure"
2091 #include "confdefs.h"
2092 /* Override any gcc2 internal prototype to avoid an error. */
2093 /* We use char because int might match the return type of a gcc2
2094 builtin and then its argument prototype would still apply. */
2095 char gethostbyname();
2101 if { (eval echo configure
:2102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2103 eval "ac_cv_lib_$ac_lib_var=yes"
2105 echo "configure: failed program was:" >&5
2106 cat conftest.
$ac_ext >&5
2108 eval "ac_cv_lib_$ac_lib_var=no"
2111 LIBS
="$ac_save_LIBS"
2114 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2115 echo "$ac_t""yes" 1>&6
2116 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2118 echo "$ac_t""no" 1>&6
2123 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2124 # socket/setsockopt and other routines are undefined under SCO ODT
2125 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2126 # on later versions), says simon@lia.di.epfl.ch: it contains
2127 # gethostby* variants that don't use the nameserver (or something).
2128 # -lsocket must be given before -lnsl if both are needed.
2129 # We assume that if connect needs -lnsl, so does gethostbyname.
2130 echo $ac_n "checking for connect""... $ac_c" 1>&6
2131 echo "configure:2132: checking for connect" >&5
2132 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2135 cat > conftest.
$ac_ext <<EOF
2136 #line 2137 "configure"
2137 #include "confdefs.h"
2138 /* System header to define __stub macros and hopefully few prototypes,
2139 which can conflict with char connect(); below. */
2141 /* Override any gcc2 internal prototype to avoid an error. */
2142 /* We use char because int might match the return type of a gcc2
2143 builtin and then its argument prototype would still apply. */
2148 /* The GNU C library defines this for functions which it implements
2149 to always fail with ENOSYS. Some functions are actually named
2150 something starting with __ and the normal name is an alias. */
2151 #if defined (__stub_connect) || defined (__stub___connect)
2159 if { (eval echo configure
:2160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2161 eval "ac_cv_func_connect=yes"
2163 echo "configure: failed program was:" >&5
2164 cat conftest.
$ac_ext >&5
2166 eval "ac_cv_func_connect=no"
2171 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2172 echo "$ac_t""yes" 1>&6
2175 echo "$ac_t""no" 1>&6
2178 if test $ac_cv_func_connect = no
; then
2179 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2180 echo "configure:2181: checking for connect in -lsocket" >&5
2181 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2182 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2185 ac_save_LIBS
="$LIBS"
2186 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
2187 cat > conftest.
$ac_ext <<EOF
2188 #line 2189 "configure"
2189 #include "confdefs.h"
2190 /* Override any gcc2 internal prototype to avoid an error. */
2191 /* We use char because int might match the return type of a gcc2
2192 builtin and then its argument prototype would still apply. */
2199 if { (eval echo configure
:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2201 eval "ac_cv_lib_$ac_lib_var=yes"
2203 echo "configure: failed program was:" >&5
2204 cat conftest.
$ac_ext >&5
2206 eval "ac_cv_lib_$ac_lib_var=no"
2209 LIBS
="$ac_save_LIBS"
2212 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2213 echo "$ac_t""yes" 1>&6
2214 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
2216 echo "$ac_t""no" 1>&6
2221 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2222 echo $ac_n "checking for remove""... $ac_c" 1>&6
2223 echo "configure:2224: checking for remove" >&5
2224 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2225 echo $ac_n "(cached) $ac_c" 1>&6
2227 cat > conftest.
$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2230 /* System header to define __stub macros and hopefully few prototypes,
2231 which can conflict with char remove(); below. */
2233 /* Override any gcc2 internal prototype to avoid an error. */
2234 /* We use char because int might match the return type of a gcc2
2235 builtin and then its argument prototype would still apply. */
2240 /* The GNU C library defines this for functions which it implements
2241 to always fail with ENOSYS. Some functions are actually named
2242 something starting with __ and the normal name is an alias. */
2243 #if defined (__stub_remove) || defined (__stub___remove)
2251 if { (eval echo configure
:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2253 eval "ac_cv_func_remove=yes"
2255 echo "configure: failed program was:" >&5
2256 cat conftest.
$ac_ext >&5
2258 eval "ac_cv_func_remove=no"
2263 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2264 echo "$ac_t""yes" 1>&6
2267 echo "$ac_t""no" 1>&6
2270 if test $ac_cv_func_remove = no
; then
2271 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2272 echo "configure:2273: checking for remove in -lposix" >&5
2273 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2274 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2277 ac_save_LIBS
="$LIBS"
2278 LIBS
="-lposix $LIBS"
2279 cat > conftest.
$ac_ext <<EOF
2280 #line 2281 "configure"
2281 #include "confdefs.h"
2282 /* Override any gcc2 internal prototype to avoid an error. */
2283 /* We use char because int might match the return type of a gcc2
2284 builtin and then its argument prototype would still apply. */
2291 if { (eval echo configure
:2292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2293 eval "ac_cv_lib_$ac_lib_var=yes"
2295 echo "configure: failed program was:" >&5
2296 cat conftest.
$ac_ext >&5
2298 eval "ac_cv_lib_$ac_lib_var=no"
2301 LIBS
="$ac_save_LIBS"
2304 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2305 echo "$ac_t""yes" 1>&6
2306 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2308 echo "$ac_t""no" 1>&6
2313 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2314 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2315 echo "configure:2316: checking for shmat" >&5
2316 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 cat > conftest.
$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2322 /* System header to define __stub macros and hopefully few prototypes,
2323 which can conflict with char shmat(); below. */
2325 /* Override any gcc2 internal prototype to avoid an error. */
2326 /* We use char because int might match the return type of a gcc2
2327 builtin and then its argument prototype would still apply. */
2332 /* The GNU C library defines this for functions which it implements
2333 to always fail with ENOSYS. Some functions are actually named
2334 something starting with __ and the normal name is an alias. */
2335 #if defined (__stub_shmat) || defined (__stub___shmat)
2343 if { (eval echo configure
:2344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2345 eval "ac_cv_func_shmat=yes"
2347 echo "configure: failed program was:" >&5
2348 cat conftest.
$ac_ext >&5
2350 eval "ac_cv_func_shmat=no"
2355 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2356 echo "$ac_t""yes" 1>&6
2359 echo "$ac_t""no" 1>&6
2362 if test $ac_cv_func_shmat = no
; then
2363 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2364 echo "configure:2365: checking for shmat in -lipc" >&5
2365 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2367 echo $ac_n "(cached) $ac_c" 1>&6
2369 ac_save_LIBS
="$LIBS"
2371 cat > conftest.
$ac_ext <<EOF
2372 #line 2373 "configure"
2373 #include "confdefs.h"
2374 /* Override any gcc2 internal prototype to avoid an error. */
2375 /* We use char because int might match the return type of a gcc2
2376 builtin and then its argument prototype would still apply. */
2383 if { (eval echo configure
:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2385 eval "ac_cv_lib_$ac_lib_var=yes"
2387 echo "configure: failed program was:" >&5
2388 cat conftest.
$ac_ext >&5
2390 eval "ac_cv_lib_$ac_lib_var=no"
2393 LIBS
="$ac_save_LIBS"
2396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2397 echo "$ac_t""yes" 1>&6
2398 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2400 echo "$ac_t""no" 1>&6
2406 # Check for libraries that X11R6 Xt/Xaw programs need.
2407 ac_save_LDFLAGS
="$LDFLAGS"
2408 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2409 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2410 # check for ICE first), but we must link in the order -lSM -lICE or
2411 # we get undefined symbols. So assume we have SM if we have ICE.
2412 # These have to be linked with before -lX11, unlike the other
2413 # libraries we check for below, so use a different variable.
2414 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2415 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2416 echo "configure:2417: checking for IceConnectionNumber in -lICE" >&5
2417 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2419 echo $ac_n "(cached) $ac_c" 1>&6
2421 ac_save_LIBS
="$LIBS"
2422 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
2423 cat > conftest.
$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2426 /* Override any gcc2 internal prototype to avoid an error. */
2427 /* We use char because int might match the return type of a gcc2
2428 builtin and then its argument prototype would still apply. */
2429 char IceConnectionNumber();
2432 IceConnectionNumber()
2435 if { (eval echo configure
:2436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2437 eval "ac_cv_lib_$ac_lib_var=yes"
2439 echo "configure: failed program was:" >&5
2440 cat conftest.
$ac_ext >&5
2442 eval "ac_cv_lib_$ac_lib_var=no"
2445 LIBS
="$ac_save_LIBS"
2448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2449 echo "$ac_t""yes" 1>&6
2450 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2452 echo "$ac_t""no" 1>&6
2455 LDFLAGS
="$ac_save_LDFLAGS"
2460 CFLAGS
="$CFLAGS $X_CFLAGS"
2461 CXXFLAGS
="$CXXFLAGS $X_CFLAGS"
2462 LDFLAGS
="$LDFLAGS $X_LIBS $X_PRE_LIBS"
2463 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
2464 echo "configure:2465: checking for XOpenDisplay in -lX11" >&5
2465 ac_lib_var
=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
2466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2469 ac_save_LIBS
="$LIBS"
2471 cat > conftest.
$ac_ext <<EOF
2472 #line 2473 "configure"
2473 #include "confdefs.h"
2474 /* Override any gcc2 internal prototype to avoid an error. */
2475 /* We use char because int might match the return type of a gcc2
2476 builtin and then its argument prototype would still apply. */
2477 char XOpenDisplay();
2483 if { (eval echo configure
:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2485 eval "ac_cv_lib_$ac_lib_var=yes"
2487 echo "configure: failed program was:" >&5
2488 cat conftest.
$ac_ext >&5
2490 eval "ac_cv_lib_$ac_lib_var=no"
2493 LIBS
="$ac_save_LIBS"
2496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2497 echo "$ac_t""yes" 1>&6
2498 LDFLAGS
="$LDFLAGS -lX11"
2500 echo "$ac_t""no" 1>&6
2501 { echo "configure: error: XOpenDisplay not found in -lX11" 1>&2; exit 1; }
2505 LDFLAGS
="$LDFLAGS $X_EXTRA_LIBS"
2507 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2508 echo "configure:2509: checking for ANSI C header files" >&5
2509 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2512 cat > conftest.
$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2520 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2521 { (eval echo configure
:2522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2522 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2523 if test -z "$ac_err"; then
2525 ac_cv_header_stdc
=yes
2528 echo "configure: failed program was:" >&5
2529 cat conftest.
$ac_ext >&5
2531 ac_cv_header_stdc
=no
2535 if test $ac_cv_header_stdc = yes; then
2536 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2537 cat > conftest.
$ac_ext <<EOF
2538 #line 2539 "configure"
2539 #include "confdefs.h"
2542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2543 egrep "memchr" >/dev
/null
2>&1; then
2547 ac_cv_header_stdc
=no
2553 if test $ac_cv_header_stdc = yes; then
2554 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2555 cat > conftest.
$ac_ext <<EOF
2556 #line 2557 "configure"
2557 #include "confdefs.h"
2560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2561 egrep "free" >/dev
/null
2>&1; then
2565 ac_cv_header_stdc
=no
2571 if test $ac_cv_header_stdc = yes; then
2572 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2573 if test "$cross_compiling" = yes; then
2576 cat > conftest.
$ac_ext <<EOF
2577 #line 2578 "configure"
2578 #include "confdefs.h"
2580 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2581 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2582 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2583 int main () { int i; for (i = 0; i < 256; i++)
2584 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2588 if { (eval echo configure
:2589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2592 echo "configure: failed program was:" >&5
2593 cat conftest.
$ac_ext >&5
2595 ac_cv_header_stdc
=no
2603 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2604 if test $ac_cv_header_stdc = yes; then
2605 cat >> confdefs.h
<<\EOF
2606 #define STDC_HEADERS 1
2611 for ac_hdr
in malloc.h
2613 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2615 echo "configure:2616: checking for $ac_hdr" >&5
2616 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2617 echo $ac_n "(cached) $ac_c" 1>&6
2619 cat > conftest.
$ac_ext <<EOF
2620 #line 2621 "configure"
2621 #include "confdefs.h"
2624 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2625 { (eval echo configure
:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2626 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2627 if test -z "$ac_err"; then
2629 eval "ac_cv_header_$ac_safe=yes"
2632 echo "configure: failed program was:" >&5
2633 cat conftest.
$ac_ext >&5
2635 eval "ac_cv_header_$ac_safe=no"
2639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2640 echo "$ac_t""yes" 1>&6
2641 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2642 cat >> confdefs.h
<<EOF
2643 #define $ac_tr_hdr 1
2647 echo "$ac_t""no" 1>&6
2652 echo $ac_n "checking for working const""... $ac_c" 1>&6
2653 echo "configure:2654: checking for working const" >&5
2654 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2655 echo $ac_n "(cached) $ac_c" 1>&6
2657 cat > conftest.
$ac_ext <<EOF
2658 #line 2659 "configure"
2659 #include "confdefs.h"
2663 /* Ultrix mips cc rejects this. */
2664 typedef int charset[2]; const charset x;
2665 /* SunOS 4.1.1 cc rejects this. */
2666 char const *const *ccp;
2668 /* NEC SVR4.0.2 mips cc rejects this. */
2669 struct point {int x, y;};
2670 static struct point const zero = {0,0};
2671 /* AIX XL C 1.02.0.0 rejects this.
2672 It does not let you subtract one const X* pointer from another in an arm
2673 of an if-expression whose if-part is not a constant expression */
2674 const char *g = "string";
2675 ccp = &g + (g ? g-g : 0);
2676 /* HPUX 7.0 cc rejects these. */
2679 ccp = (char const *const *) p;
2680 { /* SCO 3.2v4 cc rejects this. */
2682 char const *s = 0 ? (char *) 0 : (char const *) 0;
2686 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2688 const int *foo = &x[0];
2691 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2692 typedef const int *iptr;
2696 { /* AIX XL C 1.02.0.0 rejects this saying
2697 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2698 struct s { int j; const int *ap[3]; };
2699 struct s *b; b->j = 5;
2701 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2707 if { (eval echo configure
:2708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2711 echo "configure: failed program was:" >&5
2712 cat conftest.
$ac_ext >&5
2719 echo "$ac_t""$ac_cv_c_const" 1>&6
2720 if test $ac_cv_c_const = no
; then
2721 cat >> confdefs.h
<<\EOF
2727 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2728 echo "configure:2729: checking whether time.h and sys/time.h may both be included" >&5
2729 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2730 echo $ac_n "(cached) $ac_c" 1>&6
2732 cat > conftest.
$ac_ext <<EOF
2733 #line 2734 "configure"
2734 #include "confdefs.h"
2735 #include <sys/types.h>
2736 #include <sys/time.h>
2742 if { (eval echo configure
:2743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2744 ac_cv_header_time
=yes
2746 echo "configure: failed program was:" >&5
2747 cat conftest.
$ac_ext >&5
2749 ac_cv_header_time
=no
2754 echo "$ac_t""$ac_cv_header_time" 1>&6
2755 if test $ac_cv_header_time = yes; then
2756 cat >> confdefs.h
<<\EOF
2757 #define TIME_WITH_SYS_TIME 1
2762 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2763 echo "configure:2764: checking whether struct tm is in sys/time.h or time.h" >&5
2764 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2765 echo $ac_n "(cached) $ac_c" 1>&6
2767 cat > conftest.
$ac_ext <<EOF
2768 #line 2769 "configure"
2769 #include "confdefs.h"
2770 #include <sys/types.h>
2773 struct tm *tp; tp->tm_sec;
2776 if { (eval echo configure
:2777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2778 ac_cv_struct_tm
=time.h
2780 echo "configure: failed program was:" >&5
2781 cat conftest.
$ac_ext >&5
2783 ac_cv_struct_tm
=sys
/time.h
2788 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2789 if test $ac_cv_struct_tm = sys
/time.h
; then
2790 cat >> confdefs.h
<<\EOF
2791 #define TM_IN_SYS_TIME 1
2797 for ac_func
in select strstr
2799 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2800 echo "configure:2801: checking for $ac_func" >&5
2801 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2802 echo $ac_n "(cached) $ac_c" 1>&6
2804 cat > conftest.
$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2807 /* System header to define __stub macros and hopefully few prototypes,
2808 which can conflict with char $ac_func(); below. */
2810 /* Override any gcc2 internal prototype to avoid an error. */
2811 /* We use char because int might match the return type of a gcc2
2812 builtin and then its argument prototype would still apply. */
2817 /* The GNU C library defines this for functions which it implements
2818 to always fail with ENOSYS. Some functions are actually named
2819 something starting with __ and the normal name is an alias. */
2820 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2828 if { (eval echo configure
:2829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2830 eval "ac_cv_func_$ac_func=yes"
2832 echo "configure: failed program was:" >&5
2833 cat conftest.
$ac_ext >&5
2835 eval "ac_cv_func_$ac_func=no"
2840 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2841 echo "$ac_t""yes" 1>&6
2842 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2843 cat >> confdefs.h
<<EOF
2844 #define $ac_tr_func 1
2848 echo "$ac_t""no" 1>&6
2854 cat > confcache
<<\EOF
2855 # This file is a shell script that caches the results of configure
2856 # tests run on this system so they can be shared between configure
2857 # scripts and configure runs. It is not useful on other systems.
2858 # If it contains results you don't want to keep, you may remove or edit it.
2860 # By default, configure uses ./config.cache as the cache file,
2861 # creating it if it does not exist already. You can give configure
2862 # the --cache-file=FILE option to use a different cache file; that is
2863 # what configure does when it calls configure scripts in
2864 # subdirectories, so they share the cache.
2865 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2866 # config.status only pays attention to the cache file if you give it the
2867 # --recheck option to rerun configure.
2870 # The following way of writing the cache mishandles newlines in values,
2871 # but we know of no workaround that is simple, portable, and efficient.
2872 # So, don't put newlines in cache variables' values.
2873 # Ultrix sh set writes to stderr and can't be redirected directly,
2874 # and sets the high bit in the cache file unless we assign to the vars.
2876 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2878 # `set' does not quote correctly, so add quotes (double-quote substitution
2879 # turns \\\\ into \\, and sed turns \\ into \).
2881 -e "s/'/'\\\\''/g" \
2882 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2885 # `set' quotes correctly as required by POSIX, so do not add quotes.
2886 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2889 if cmp -s $cache_file confcache
; then
2892 if test -w $cache_file; then
2893 echo "updating cache $cache_file"
2894 cat confcache
> $cache_file
2896 echo "not updating unwritable cache $cache_file"
2901 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2903 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2904 # Let make expand exec_prefix.
2905 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2907 # Any assignment to VPATH causes Sun make to only execute
2908 # the first set of double-colon rules, so remove it if not needed.
2909 # If there is a colon in the path, we need to keep it.
2910 if test "x$srcdir" = x.
; then
2911 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2914 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2916 # Transform confdefs.h into DEFS.
2917 # Protect against shell expansion while executing Makefile rules.
2918 # Protect against Makefile macro expansion.
2919 cat > conftest.defs
<<\EOF
2920 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2921 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2926 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
2930 # Without the "./", some shells look in PATH for config.status.
2931 : ${CONFIG_STATUS=./config.status}
2933 echo creating $CONFIG_STATUS
2934 rm -f $CONFIG_STATUS
2935 cat > $CONFIG_STATUS <<EOF
2937 # Generated automatically by configure.
2938 # Run this file to recreate the current configuration.
2939 # This directory was configured as follows,
2940 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
2942 # $0 $ac_configure_args
2944 # Compiler output produced by configure, useful for debugging
2945 # configure, is in ./config.log if it exists.
2947 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2950 case "\$ac_option" in
2951 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2952 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2953 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2954 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2955 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2957 -help | --help | --hel | --he | --h)
2958 echo "\$ac_cs_usage"; exit 0 ;;
2959 *) echo "\$ac_cs_usage"; exit 1 ;;
2963 ac_given_srcdir=$srcdir
2964 ac_given_INSTALL="$INSTALL"
2966 trap 'rm -fr `echo "version.h Makefile data/Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2968 cat >> $CONFIG_STATUS <<EOF
2970 # Protect against being on the right side of a sed subst in config.status.
2971 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2972 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2976 s%@CFLAGS@%$CFLAGS%g
2977 s%@CPPFLAGS@%$CPPFLAGS%g
2978 s%@CXXFLAGS@%$CXXFLAGS%g
2979 s%@FFLAGS@%$FFLAGS%g
2981 s%@LDFLAGS@%$LDFLAGS%g
2983 s%@exec_prefix@%$exec_prefix%g
2984 s%@prefix@%$prefix%g
2985 s%@program_transform_name@%$program_transform_name%g
2986 s%@bindir@%$bindir%g
2987 s%@sbindir@%$sbindir%g
2988 s%@libexecdir@%$libexecdir%g
2989 s%@datadir@%$datadir%g
2990 s%@sysconfdir@%$sysconfdir%g
2991 s%@sharedstatedir@%$sharedstatedir%g
2992 s%@localstatedir@%$localstatedir%g
2993 s%@libdir@%$libdir%g
2994 s%@includedir@%$includedir%g
2995 s%@oldincludedir@%$oldincludedir%g
2996 s%@infodir@%$infodir%g
2997 s%@mandir@%$mandir%g
2998 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2999 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3000 s%@INSTALL_DATA@%$INSTALL_DATA%g
3001 s%@PACKAGE@%$PACKAGE%g
3002 s%@VERSION@%$VERSION%g
3003 s%@ACLOCAL@%$ACLOCAL%g
3004 s%@AUTOCONF@%$AUTOCONF%g
3005 s%@AUTOMAKE@%$AUTOMAKE%g
3006 s%@AUTOHEADER@%$AUTOHEADER%g
3007 s%@MAKEINFO@%$MAKEINFO%g
3008 s%@SET_MAKE@%$SET_MAKE%g
3009 s%@regex_cmd@%$regex_cmd%g
3010 s%@INTERLACE@%$INTERLACE%g
3014 s%@X_CFLAGS@%$X_CFLAGS%g
3015 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3016 s%@X_LIBS@%$X_LIBS%g
3017 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3022 cat >> $CONFIG_STATUS <<\EOF
3024 # Split the substitutions into bite-sized pieces for seds with
3025 # small command number limits, like on Digital OSF/1 and HP-UX.
3026 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3027 ac_file=1 # Number of current file.
3028 ac_beg=1 # First line for current file.
3029 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3032 while $ac_more_lines; do
3033 if test $ac_beg -gt 1; then
3034 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3036 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3038 if test ! -s conftest.s$ac_file; then
3040 rm -f conftest.s$ac_file
3042 if test -z "$ac_sed_cmds"; then
3043 ac_sed_cmds="sed -f conftest.s$ac_file"
3045 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3047 ac_file=`expr $ac_file + 1`
3049 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3052 if test -z "$ac_sed_cmds"; then
3057 cat >> $CONFIG_STATUS <<EOF
3059 CONFIG_FILES=\${CONFIG_FILES-"version.h Makefile data/Makefile"}
3061 cat >> $CONFIG_STATUS <<\EOF
3062 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3063 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3065 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
3066 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
3067 *) ac_file_in="${ac_file}.in" ;;
3070 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3072 # Remove last slash and all that follows it. Not all systems have dirname.
3073 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3074 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3075 # The file is in a subdirectory.
3076 test ! -d "$ac_dir" && mkdir "$ac_dir"
3077 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
3078 # A "../" for each directory in $ac_dir_suffix.
3079 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
3081 ac_dir_suffix= ac_dots=
3084 case "$ac_given_srcdir" in
3086 if test -z "$ac_dots"; then top_srcdir=.
3087 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
3088 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3090 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3091 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3094 case "$ac_given_INSTALL" in
3095 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3096 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3099 echo creating "$ac_file"
3101 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
3103 *Makefile*) ac_comsub="1i\\
3104 # $configure_input" ;;
3108 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3110 s%@configure_input@%$configure_input%g
3111 s%@srcdir@%$srcdir%g
3112 s%@top_srcdir@%$top_srcdir%g
3113 s%@INSTALL@%$INSTALL%g
3114 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3119 cat >> $CONFIG_STATUS <<EOF
3122 cat >> $CONFIG_STATUS <<\EOF
3126 chmod +x $CONFIG_STATUS
3127 rm -fr confdefs* $ac_clean_files
3128 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1