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:
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
17 ac_default_prefix
=/usr
/local
19 --enable-debug create debugging code [default=no]"
21 --enable-interlace include code for image interlacing[default=yes]"
23 --with-x use the X Window System"
25 # Initialize some variables set by options.
26 # The variables have the same names as the options, with
27 # dashes changed to underlines.
29 cache_file
=.
/config.cache
38 program_transform_name
=s
,x
,x
,
46 bindir
='${exec_prefix}/bin'
47 sbindir
='${exec_prefix}/sbin'
48 libexecdir
='${exec_prefix}/libexec'
49 datadir
='${prefix}/share'
50 sysconfdir
='${prefix}/etc'
51 sharedstatedir
='${prefix}/com'
52 localstatedir
='${prefix}/var'
53 libdir
='${exec_prefix}/lib'
54 includedir
='${prefix}/include'
55 oldincludedir
='/usr/include'
56 infodir
='${prefix}/info'
57 mandir
='${prefix}/man'
59 # Initialize some other variables.
62 SHELL
=${CONFIG_SHELL-/bin/sh}
63 # Maximum number of lines to put in a shell here document.
70 # If the previous option needs an argument, assign it.
71 if test -n "$ac_prev"; then
72 eval "$ac_prev=\$ac_option"
78 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82 # Accept the important Cygnus configure options, so we can diagnose typos.
86 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
88 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
89 bindir
="$ac_optarg" ;;
91 -build |
--build |
--buil |
--bui |
--bu)
93 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
96 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
97 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
99 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
100 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
101 cache_file
="$ac_optarg" ;;
103 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
105 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
107 datadir
="$ac_optarg" ;;
109 -disable-* |
--disable-*)
110 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
116 eval "enable_${ac_feature}=no" ;;
118 -enable-* |
--enable-*)
119 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
120 # Reject names that are not valid shell variable names.
121 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
122 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
124 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
129 eval "enable_${ac_feature}='$ac_optarg'" ;;
131 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
132 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
133 |
--exec |
--exe |
--ex)
134 ac_prev
=exec_prefix
;;
135 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
136 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
137 |
--exec=* |
--exe=* |
--ex=*)
138 exec_prefix
="$ac_optarg" ;;
140 -gas |
--gas |
--ga |
--g)
141 # Obsolete; use --with-gas.
144 -help |
--help |
--hel |
--he)
145 # Omit some internal or obsolete options to make the list less imposing.
146 # This message is too long to be a string in the A/UX 3.1 sh.
148 Usage: configure [options] [host]
149 Options: [defaults in brackets after descriptions]
151 --cache-file=FILE cache test results in FILE
152 --help print this message
153 --no-create do not create output files
154 --quiet, --silent do not print \`checking...' messages
155 --version print the version of autoconf that created configure
156 Directory and file names:
157 --prefix=PREFIX install architecture-independent files in PREFIX
159 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
161 --bindir=DIR user executables in DIR [EPREFIX/bin]
162 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
163 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
164 --datadir=DIR read-only architecture-independent data in DIR
166 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
167 --sharedstatedir=DIR modifiable architecture-independent data in DIR
169 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
170 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
171 --includedir=DIR C header files in DIR [PREFIX/include]
172 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
173 --infodir=DIR info documentation in DIR [PREFIX/info]
174 --mandir=DIR man documentation in DIR [PREFIX/man]
175 --srcdir=DIR find the sources in DIR [configure dir or ..]
176 --program-prefix=PREFIX prepend PREFIX to installed program names
177 --program-suffix=SUFFIX append SUFFIX to installed program names
178 --program-transform-name=PROGRAM
179 run sed PROGRAM on installed program names
183 --build=BUILD configure for building on BUILD [BUILD=HOST]
184 --host=HOST configure for HOST [guessed]
185 --target=TARGET configure for TARGET [TARGET=HOST]
186 Features and packages:
187 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
188 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
189 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
190 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
191 --x-includes=DIR X include files are in DIR
192 --x-libraries=DIR X library files are in DIR
194 if test -n "$ac_help"; then
195 echo "--enable and --with options recognized:$ac_help"
199 -host |
--host |
--hos |
--ho)
201 -host=* |
--host=* |
--hos=* |
--ho=*)
204 -includedir |
--includedir |
--includedi |
--included |
--include \
205 |
--includ |
--inclu |
--incl |
--inc)
206 ac_prev
=includedir
;;
207 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
208 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
209 includedir
="$ac_optarg" ;;
211 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
213 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
214 infodir
="$ac_optarg" ;;
216 -libdir |
--libdir |
--libdi |
--libd)
218 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
219 libdir
="$ac_optarg" ;;
221 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
222 |
--libexe |
--libex |
--libe)
223 ac_prev
=libexecdir
;;
224 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
225 |
--libexe=* |
--libex=* |
--libe=*)
226 libexecdir
="$ac_optarg" ;;
228 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
229 |
--localstate |
--localstat |
--localsta |
--localst \
230 |
--locals |
--local |
--loca |
--loc |
--lo)
231 ac_prev
=localstatedir
;;
232 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
233 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
234 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
235 localstatedir
="$ac_optarg" ;;
237 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
239 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
240 mandir
="$ac_optarg" ;;
243 # Obsolete; use --without-fp.
246 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
250 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
251 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
254 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
255 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
256 |
--oldin |
--oldi |
--old |
--ol |
--o)
257 ac_prev
=oldincludedir
;;
258 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
259 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
260 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
261 oldincludedir
="$ac_optarg" ;;
263 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
265 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
266 prefix
="$ac_optarg" ;;
268 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
269 |
--program-pre |
--program-pr |
--program-p)
270 ac_prev
=program_prefix
;;
271 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
272 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
273 program_prefix
="$ac_optarg" ;;
275 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
276 |
--program-suf |
--program-su |
--program-s)
277 ac_prev
=program_suffix
;;
278 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
279 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
280 program_suffix
="$ac_optarg" ;;
282 -program-transform-name |
--program-transform-name \
283 |
--program-transform-nam |
--program-transform-na \
284 |
--program-transform-n |
--program-transform- \
285 |
--program-transform |
--program-transfor \
286 |
--program-transfo |
--program-transf \
287 |
--program-trans |
--program-tran \
288 |
--progr-tra |
--program-tr |
--program-t)
289 ac_prev
=program_transform_name
;;
290 -program-transform-name=* |
--program-transform-name=* \
291 |
--program-transform-nam=* |
--program-transform-na=* \
292 |
--program-transform-n=* |
--program-transform-=* \
293 |
--program-transform=* |
--program-transfor=* \
294 |
--program-transfo=* |
--program-transf=* \
295 |
--program-trans=* |
--program-tran=* \
296 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
297 program_transform_name
="$ac_optarg" ;;
299 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
300 |
-silent |
--silent |
--silen |
--sile |
--sil)
303 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
305 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
307 sbindir
="$ac_optarg" ;;
309 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
310 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
311 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
313 ac_prev
=sharedstatedir
;;
314 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
315 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
316 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
318 sharedstatedir
="$ac_optarg" ;;
320 -site |
--site |
--sit)
322 -site=* |
--site=* |
--sit=*)
325 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
327 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
328 srcdir
="$ac_optarg" ;;
330 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
331 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
332 ac_prev
=sysconfdir
;;
333 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
334 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
335 sysconfdir
="$ac_optarg" ;;
337 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
339 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
340 target
="$ac_optarg" ;;
342 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
345 -version |
--version |
--versio |
--versi |
--vers)
346 echo "configure generated by autoconf version 2.13"
350 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
351 # Reject names that are not valid shell variable names.
352 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
353 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
355 ac_package
=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}='$ac_optarg'" ;;
362 -without-* |
--without-*)
363 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
364 # Reject names that are not valid shell variable names.
365 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
366 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
368 ac_package
=`echo $ac_package| sed 's/-/_/g'`
369 eval "with_${ac_package}=no" ;;
372 # Obsolete; use --with-x.
375 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
376 |
--x-incl |
--x-inc |
--x-in |
--x-i)
377 ac_prev
=x_includes
;;
378 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
379 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
380 x_includes
="$ac_optarg" ;;
382 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
383 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
384 ac_prev
=x_libraries
;;
385 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
386 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
387 x_libraries
="$ac_optarg" ;;
389 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
394 echo "configure: warning: $ac_option: invalid host type" 1>&2
396 if test "x$nonopt" != xNONE
; then
397 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405 if test -n "$ac_prev"; then
406 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
409 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
411 # File descriptor usage:
414 # 2 errors and warnings
415 # 3 some systems may open it to /dev/tty
416 # 4 used on the Kubota Titan
417 # 6 checking for... messages and results
418 # 5 compiler messages saved in config.log
419 if test "$silent" = yes; then
427 This file contains any messages produced by compilers while
428 running configure, to aid debugging if configure makes a mistake.
431 # Strip out --no-create and --no-recursion so they do not pile up.
432 # Also quote any args containing shell metacharacters.
437 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
438 |
--no-cr |
--no-c) ;;
439 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
440 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
441 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
442 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
443 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
448 # Only set these to C if already set. These must not be set unconditionally
449 # because not all systems understand e.g. LANG=C (notably SCO).
450 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
451 # Non-C LC_CTYPE values break the ctype check.
452 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
453 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
454 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
455 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
458 rm -rf conftest
* confdefs.h
459 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
462 # A filename unique to this package, relative to the directory that
463 # configure is in, which we can look for to find out if srcdir is correct.
464 ac_unique_file
=src
/bbkeys.cc
466 # Find the source files, if location was not specified.
467 if test -z "$srcdir"; then
468 ac_srcdir_defaulted
=yes
469 # Try the directory containing this script, then its parent.
471 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
472 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
474 if test ! -r $srcdir/$ac_unique_file; then
478 ac_srcdir_defaulted
=no
480 if test ! -r $srcdir/$ac_unique_file; then
481 if test "$ac_srcdir_defaulted" = yes; then
482 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
484 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
487 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
489 # Prefer explicitly selected file to automatically selected ones.
490 if test -z "$CONFIG_SITE"; then
491 if test "x$prefix" != xNONE
; then
492 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
494 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
497 for ac_site_file
in $CONFIG_SITE; do
498 if test -r "$ac_site_file"; then
499 echo "loading site script $ac_site_file"
504 if test -r "$cache_file"; then
505 echo "loading cache $cache_file"
508 echo "creating cache $cache_file"
513 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
514 ac_cpp
='$CPP $CPPFLAGS'
515 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
516 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
517 cross_compiling
=$ac_cv_prog_cc_cross
521 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
522 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
523 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
530 ac_n
= ac_c
='\c' ac_t
=
535 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
536 if test -f $ac_dir/install-sh
; then
538 ac_install_sh
="$ac_aux_dir/install-sh -c"
540 elif test -f $ac_dir/install.sh
; then
542 ac_install_sh
="$ac_aux_dir/install.sh -c"
546 if test -z "$ac_aux_dir"; then
547 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
549 ac_config_guess
=$ac_aux_dir/config.guess
550 ac_config_sub
=$ac_aux_dir/config.sub
551 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
553 am__api_version
="1.4"
554 # Find a good install program. We prefer a C program (faster),
555 # so one script is as good as another. But avoid the broken or
556 # incompatible versions:
557 # SysV /etc/install, /usr/sbin/install
558 # SunOS /usr/etc/install
561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
564 # ./install, which can be erroneously created by make from ./install.sh.
565 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
566 echo "configure:567: checking for a BSD compatible install" >&5
567 if test -z "$INSTALL"; then
568 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
569 echo $ac_n "(cached) $ac_c" 1>&6
571 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
572 for ac_dir
in $PATH; do
573 # Account for people who put trailing slashes in PATH elements.
575 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
577 # OSF1 and SCO ODT 3.0 have their own names for install.
578 # Don't use installbsd from OSF since it installs stuff as root
580 for ac_prog
in ginstall scoinst
install; do
581 if test -f $ac_dir/$ac_prog; then
582 if test $ac_prog = install &&
583 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
584 # AIX install. It has an incompatible calling convention.
587 ac_cv_path_install
="$ac_dir/$ac_prog -c"
598 if test "${ac_cv_path_install+set}" = set; then
599 INSTALL
="$ac_cv_path_install"
601 # As a last resort, use the slow shell script. We don't cache a
602 # path for INSTALL within a source directory, because that will
603 # break other packages using the cache if that directory is
604 # removed, or if the path is relative.
605 INSTALL
="$ac_install_sh"
608 echo "$ac_t""$INSTALL" 1>&6
610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
611 # It thinks the first close brace ends the variable substitution.
612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
616 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
618 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
619 echo "configure:620: checking whether build environment is sane" >&5
622 echo timestamp
> conftestfile
623 # Do `set' in a subshell so we don't clobber the current shell's
624 # arguments. Must try -L first in case configure is actually a
625 # symlink; some systems play weird games with the mod time of symlinks
626 # (eg FreeBSD returns the mod time of the symlink's containing
629 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
630 if test "$*" = "X"; then
632 set X
`ls -t $srcdir/configure conftestfile`
634 if test "$*" != "X $srcdir/configure conftestfile" \
635 && test "$*" != "X conftestfile $srcdir/configure"; then
637 # If neither matched, then we have a broken ls. This can happen
638 # if, for instance, CONFIG_SHELL is bash and it inherits a
639 # broken ls alias from the environment. This has actually
640 # happened. Such a system could not be considered "sane".
641 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
642 alias in your environment" 1>&2; exit 1; }
645 test "$2" = conftestfile
651 { echo "configure: error: newly created file is older than distributed files!
652 Check your system clock" 1>&2; exit 1; }
655 echo "$ac_t""yes" 1>&6
656 if test "$program_transform_name" = s
,x
,x
,; then
657 program_transform_name
=
659 # Double any \ or $. echo might interpret backslashes.
660 cat <<\EOF_SED
> conftestsed
661 s
,\\,\\\\,g
; s
,\$
,$$
,g
663 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
666 test "$program_prefix" != NONE
&&
667 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
668 # Use a double $ so make ignores it.
669 test "$program_suffix" != NONE
&&
670 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
672 # sed with no file args requires a program.
673 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
675 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
676 echo "configure:677: checking whether ${MAKE-make} sets \${MAKE}" >&5
677 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
678 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
679 echo $ac_n "(cached) $ac_c" 1>&6
681 cat > conftestmake
<<\EOF
683 @
echo 'ac_maketemp="${MAKE}"'
685 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
686 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
687 if test -n "$ac_maketemp"; then
688 eval ac_cv_prog_make_
${ac_make}_set
=yes
690 eval ac_cv_prog_make_
${ac_make}_set
=no
694 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
695 echo "$ac_t""yes" 1>&6
698 echo "$ac_t""no" 1>&6
699 SET_MAKE
="MAKE=${MAKE-make}"
707 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
708 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
710 cat >> confdefs.h
<<EOF
711 #define PACKAGE "$PACKAGE"
714 cat >> confdefs.h
<<EOF
715 #define VERSION "$VERSION"
720 missing_dir
=`cd $ac_aux_dir && pwd`
721 echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
722 echo "configure:723: checking for working aclocal-${am__api_version}" >&5
723 # Run test in a subshell; some versions of sh will print an error if
724 # an executable is not found, even if stderr is redirected.
725 # Redirect stdin to placate older versions of autoconf. Sigh.
726 if (aclocal-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
727 ACLOCAL
=aclocal-
${am__api_version}
728 echo "$ac_t""found" 1>&6
730 ACLOCAL
="$missing_dir/missing aclocal-${am__api_version}"
731 echo "$ac_t""missing" 1>&6
734 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
735 echo "configure:736: checking for working autoconf" >&5
736 # Run test in a subshell; some versions of sh will print an error if
737 # an executable is not found, even if stderr is redirected.
738 # Redirect stdin to placate older versions of autoconf. Sigh.
739 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
741 echo "$ac_t""found" 1>&6
743 AUTOCONF
="$missing_dir/missing autoconf"
744 echo "$ac_t""missing" 1>&6
747 echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
748 echo "configure:749: checking for working automake-${am__api_version}" >&5
749 # Run test in a subshell; some versions of sh will print an error if
750 # an executable is not found, even if stderr is redirected.
751 # Redirect stdin to placate older versions of autoconf. Sigh.
752 if (automake-
${am__api_version} --version) < /dev
/null
> /dev
/null
2>&1; then
753 AUTOMAKE
=automake-
${am__api_version}
754 echo "$ac_t""found" 1>&6
756 AUTOMAKE
="$missing_dir/missing automake-${am__api_version}"
757 echo "$ac_t""missing" 1>&6
760 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
761 echo "configure:762: checking for working autoheader" >&5
762 # Run test in a subshell; some versions of sh will print an error if
763 # an executable is not found, even if stderr is redirected.
764 # Redirect stdin to placate older versions of autoconf. Sigh.
765 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
766 AUTOHEADER
=autoheader
767 echo "$ac_t""found" 1>&6
769 AUTOHEADER
="$missing_dir/missing autoheader"
770 echo "$ac_t""missing" 1>&6
773 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
774 echo "configure:775: checking for working makeinfo" >&5
775 # Run test in a subshell; some versions of sh will print an error if
776 # an executable is not found, even if stderr is redirected.
777 # Redirect stdin to placate older versions of autoconf. Sigh.
778 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
780 echo "$ac_t""found" 1>&6
782 MAKEINFO
="$missing_dir/missing makeinfo"
783 echo "$ac_t""missing" 1>&6
789 # Make sure we can run config.sub.
790 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
791 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
794 echo $ac_n "checking host system type""... $ac_c" 1>&6
795 echo "configure:796: checking host system type" >&5
798 case "$host_alias" in
802 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
803 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
805 *) host_alias
=$nonopt ;;
809 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
810 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
811 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
812 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
813 echo "$ac_t""$host" 1>&6
815 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
816 echo "configure:817: checking whether to enable maintainer-specific portions of Makefiles" >&5
817 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
818 if test "${enable_maintainer_mode+set}" = set; then
819 enableval
="$enable_maintainer_mode"
820 USE_MAINTAINER_MODE
=$enableval
822 USE_MAINTAINER_MODE
=no
825 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
828 if test $USE_MAINTAINER_MODE = yes; then
829 MAINTAINER_MODE_TRUE
=
830 MAINTAINER_MODE_FALSE
='#'
832 MAINTAINER_MODE_TRUE
='#'
833 MAINTAINER_MODE_FALSE
=
835 MAINT
=$MAINTAINER_MODE_TRUE
842 # Extract the first word of "$ac_prog", so it can be a program name with args.
843 set dummy
$ac_prog; ac_word
=$2
844 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
845 echo "configure:846: checking for $ac_word" >&5
846 if eval "test \"`echo '$''{'ac_cv_prog_regex_cmd'+set}'`\" = set"; then
847 echo $ac_n "(cached) $ac_c" 1>&6
849 if test -n "$regex_cmd"; then
850 ac_cv_prog_regex_cmd
="$regex_cmd" # Let the user override the test.
852 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
854 for ac_dir
in $ac_dummy; do
855 test -z "$ac_dir" && ac_dir
=.
856 if test -f $ac_dir/$ac_word; then
857 ac_cv_prog_regex_cmd
="$ac_prog"
864 regex_cmd
="$ac_cv_prog_regex_cmd"
865 if test -n "$regex_cmd"; then
866 echo "$ac_t""$regex_cmd" 1>&6
868 echo "$ac_t""no" 1>&6
871 test -n "$regex_cmd" && break
874 if test x
$regex_cmd = "x"; then
875 { echo "configure: error: error. sed is required to build the default bbtoolsrc file." 1>&2; exit 1; }
882 # Check whether --enable-debug or --disable-debug was given.
883 if test "${enable_debug+set}" = set; then
884 enableval
="$enable_debug"
886 if test $enableval = "no";
893 _CFLAGS
="$_CFLAGS -O"
894 _CXXFLAGS
="$_CXXFLAGS -O"
895 _LDFLAGS
="$_LDFLAGS -z muldefs"
898 _CFLAGS
="$_CFLAGS -O2"
899 _CXXFLAGS
="$_CXXFLAGS -O2"
902 test "$CFLAGS" = "" && CFLAGS
=$_CFLAGS
903 test "$CXXFLAGS" = "" && CXXFLAGS
=$_CXXFLAGS
904 test "$LDFLAGS" = "" && LDFLAGS
=$_LDFLAGS
907 _CFLAGS
="-g -Wall -DDEBUG"
908 _CXXFLAGS
="-g -Wall -DDEBUG"
912 _LDFLAGS
="$_LDFLAGS -z muldefs"
915 test "$CFLAGS" = "" && CFLAGS
=$_CFLAGS
916 test "$CXXFLAGS" = "" && CXXFLAGS
=$_CXXFLAGS
917 test "$LDFLAGS" = "" && LDFLAGS
=$_LDFLAGS
928 _CFLAGS
="$_CFLAGS -O"
929 _CXXFLAGS
="$_CXXFLAGS -O"
930 _LDFLAGS
="$_LDFLAGS -z muldefs"
933 _CFLAGS
="$_CFLAGS -O2"
934 _CXXFLAGS
="$_CXXFLAGS -O2"
937 test "$CFLAGS" = "" && CFLAGS
=$_CFLAGS
938 test "$CXXFLAGS" = "" && CXXFLAGS
=$_CXXFLAGS
939 test "$LDFLAGS" = "" && LDFLAGS
=$_LDFLAGS
945 echo $ac_n "checking whether to include interlacing image code""... $ac_c" 1>&6
946 echo "configure:947: checking whether to include interlacing image code" >&5
947 # Check whether --enable-interlace or --disable-interlace was given.
948 if test "${enable_interlace+set}" = set; then
949 enableval
="$enable_interlace"
950 if test x
$enableval = "xyes"; then
951 echo "$ac_t""yes" 1>&6
952 INTERLACE
="-DINTERLACE"
954 echo "$ac_t""no" 1>&6
957 echo "$ac_t""yes" 1>&6
958 INTERLACE
="-DINTERLACE"
964 # Extract the first word of "gcc", so it can be a program name with args.
965 set dummy gcc
; ac_word
=$2
966 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
967 echo "configure:968: checking for $ac_word" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
971 if test -n "$CC"; then
972 ac_cv_prog_CC
="$CC" # Let the user override the test.
974 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
976 for ac_dir
in $ac_dummy; do
977 test -z "$ac_dir" && ac_dir
=.
978 if test -f $ac_dir/$ac_word; then
987 if test -n "$CC"; then
988 echo "$ac_t""$CC" 1>&6
990 echo "$ac_t""no" 1>&6
993 if test -z "$CC"; then
994 # Extract the first word of "cc", so it can be a program name with args.
995 set dummy cc
; ac_word
=$2
996 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
997 echo "configure:998: checking for $ac_word" >&5
998 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
999 echo $ac_n "(cached) $ac_c" 1>&6
1001 if test -n "$CC"; then
1002 ac_cv_prog_CC
="$CC" # Let the user override the test.
1004 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1007 for ac_dir
in $ac_dummy; do
1008 test -z "$ac_dir" && ac_dir
=.
1009 if test -f $ac_dir/$ac_word; then
1010 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1011 ac_prog_rejected
=yes
1019 if test $ac_prog_rejected = yes; then
1020 # We found a bogon in the path, so make sure we never use it.
1021 set dummy
$ac_cv_prog_CC
1023 if test $# -gt 0; then
1024 # We chose a different compiler from the bogus one.
1025 # However, it has the same basename, so the bogon will be chosen
1026 # first if we set CC to just the basename; use the full file name.
1028 set dummy
"$ac_dir/$ac_word" "$@"
1036 if test -n "$CC"; then
1037 echo "$ac_t""$CC" 1>&6
1039 echo "$ac_t""no" 1>&6
1042 if test -z "$CC"; then
1043 case "`uname -s`" in
1045 # Extract the first word of "cl", so it can be a program name with args.
1046 set dummy cl
; ac_word
=$2
1047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1048 echo "configure:1049: checking for $ac_word" >&5
1049 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1052 if test -n "$CC"; then
1053 ac_cv_prog_CC
="$CC" # Let the user override the test.
1055 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1057 for ac_dir
in $ac_dummy; do
1058 test -z "$ac_dir" && ac_dir
=.
1059 if test -f $ac_dir/$ac_word; then
1068 if test -n "$CC"; then
1069 echo "$ac_t""$CC" 1>&6
1071 echo "$ac_t""no" 1>&6
1076 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1079 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1080 echo "configure:1081: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1083 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1084 ac_cpp
='$CPP $CPPFLAGS'
1085 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1086 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1087 cross_compiling
=$ac_cv_prog_cc_cross
1089 cat > conftest.
$ac_ext << EOF
1091 #line 1092 "configure"
1092 #include "confdefs.h"
1096 if { (eval echo configure
:1097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1097 ac_cv_prog_cc_works
=yes
1098 # If we can't run a trivial program, we are probably using a cross compiler.
1099 if (.
/conftest
; exit) 2>/dev
/null
; then
1100 ac_cv_prog_cc_cross
=no
1102 ac_cv_prog_cc_cross
=yes
1105 echo "configure: failed program was:" >&5
1106 cat conftest.
$ac_ext >&5
1107 ac_cv_prog_cc_works
=no
1111 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1112 ac_cpp
='$CPP $CPPFLAGS'
1113 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1114 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1115 cross_compiling
=$ac_cv_prog_cc_cross
1117 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1118 if test $ac_cv_prog_cc_works = no
; then
1119 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1121 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1122 echo "configure:1123: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1123 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1124 cross_compiling
=$ac_cv_prog_cc_cross
1126 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether we are using GNU C" >&5
1128 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1131 cat > conftest.c
<<EOF
1136 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1143 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1145 if test $ac_cv_prog_gcc = yes; then
1151 ac_test_CFLAGS
="${CFLAGS+set}"
1152 ac_save_CFLAGS
="$CFLAGS"
1154 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1155 echo "configure:1156: checking whether ${CC-cc} accepts -g" >&5
1156 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 echo 'void f(){}' > conftest.c
1160 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1169 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1170 if test "$ac_test_CFLAGS" = set; then
1171 CFLAGS
="$ac_save_CFLAGS"
1172 elif test $ac_cv_prog_cc_g = yes; then
1173 if test "$GCC" = yes; then
1179 if test "$GCC" = yes; then
1186 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1188 # Extract the first word of "$ac_prog", so it can be a program name with args.
1189 set dummy
$ac_prog; ac_word
=$2
1190 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1191 echo "configure:1192: checking for $ac_word" >&5
1192 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 if test -n "$CXX"; then
1196 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1198 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1200 for ac_dir
in $ac_dummy; do
1201 test -z "$ac_dir" && ac_dir
=.
1202 if test -f $ac_dir/$ac_word; then
1203 ac_cv_prog_CXX
="$ac_prog"
1210 CXX
="$ac_cv_prog_CXX"
1211 if test -n "$CXX"; then
1212 echo "$ac_t""$CXX" 1>&6
1214 echo "$ac_t""no" 1>&6
1217 test -n "$CXX" && break
1219 test -n "$CXX" || CXX
="gcc"
1222 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1223 echo "configure:1224: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1226 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1227 ac_cpp
='$CXXCPP $CPPFLAGS'
1228 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1229 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1230 cross_compiling
=$ac_cv_prog_cxx_cross
1232 cat > conftest.
$ac_ext << EOF
1234 #line 1235 "configure"
1235 #include "confdefs.h"
1237 int main(){return(0);}
1239 if { (eval echo configure
:1240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1240 ac_cv_prog_cxx_works
=yes
1241 # If we can't run a trivial program, we are probably using a cross compiler.
1242 if (.
/conftest
; exit) 2>/dev
/null
; then
1243 ac_cv_prog_cxx_cross
=no
1245 ac_cv_prog_cxx_cross
=yes
1248 echo "configure: failed program was:" >&5
1249 cat conftest.
$ac_ext >&5
1250 ac_cv_prog_cxx_works
=no
1254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1255 ac_cpp
='$CPP $CPPFLAGS'
1256 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1257 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1258 cross_compiling
=$ac_cv_prog_cc_cross
1260 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1261 if test $ac_cv_prog_cxx_works = no
; then
1262 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1264 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1265 echo "configure:1266: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1266 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1267 cross_compiling
=$ac_cv_prog_cxx_cross
1269 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1270 echo "configure:1271: checking whether we are using GNU C++" >&5
1271 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1272 echo $ac_n "(cached) $ac_c" 1>&6
1274 cat > conftest.C
<<EOF
1279 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1280: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1286 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1288 if test $ac_cv_prog_gxx = yes; then
1294 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1295 ac_save_CXXFLAGS
="$CXXFLAGS"
1297 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1298 echo "configure:1299: checking whether ${CXX-g++} accepts -g" >&5
1299 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1302 echo 'void f(){}' > conftest.cc
1303 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1304 ac_cv_prog_cxx_g
=yes
1312 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1313 if test "$ac_test_CXXFLAGS" = set; then
1314 CXXFLAGS
="$ac_save_CXXFLAGS"
1315 elif test $ac_cv_prog_cxx_g = yes; then
1316 if test "$GXX" = yes; then
1322 if test "$GXX" = yes; then
1329 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1330 echo "configure:1331: checking how to run the C preprocessor" >&5
1331 # On Suns, sometimes $CPP names a directory.
1332 if test -n "$CPP" && test -d "$CPP"; then
1335 if test -z "$CPP"; then
1336 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 # This must be in double quotes, not single quotes, because CPP may get
1340 # substituted into the Makefile and "${CC-cc}" will confuse make.
1342 # On the NeXT, cc -E runs the code through the compiler's parser,
1343 # not just through cpp.
1344 cat > conftest.
$ac_ext <<EOF
1345 #line 1346 "configure"
1346 #include "confdefs.h"
1350 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1351 { (eval echo configure
:1352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1352 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1353 if test -z "$ac_err"; then
1357 echo "configure: failed program was:" >&5
1358 cat conftest.
$ac_ext >&5
1360 CPP
="${CC-cc} -E -traditional-cpp"
1361 cat > conftest.
$ac_ext <<EOF
1362 #line 1363 "configure"
1363 #include "confdefs.h"
1367 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1368 { (eval echo configure
:1369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1369 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1370 if test -z "$ac_err"; then
1374 echo "configure: failed program was:" >&5
1375 cat conftest.
$ac_ext >&5
1377 CPP
="${CC-cc} -nologo -E"
1378 cat > conftest.
$ac_ext <<EOF
1379 #line 1380 "configure"
1380 #include "confdefs.h"
1384 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1385 { (eval echo configure
:1386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1386 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1387 if test -z "$ac_err"; then
1391 echo "configure: failed program was:" >&5
1392 cat conftest.
$ac_ext >&5
1401 ac_cv_prog_CPP
="$CPP"
1403 CPP
="$ac_cv_prog_CPP"
1405 ac_cv_prog_CPP
="$CPP"
1407 echo "$ac_t""$CPP" 1>&6
1409 for ac_prog
in mawk gawk nawk
awk
1411 # Extract the first word of "$ac_prog", so it can be a program name with args.
1412 set dummy
$ac_prog; ac_word
=$2
1413 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1414 echo "configure:1415: checking for $ac_word" >&5
1415 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1416 echo $ac_n "(cached) $ac_c" 1>&6
1418 if test -n "$AWK"; then
1419 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1421 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1423 for ac_dir
in $ac_dummy; do
1424 test -z "$ac_dir" && ac_dir
=.
1425 if test -f $ac_dir/$ac_word; then
1426 ac_cv_prog_AWK
="$ac_prog"
1433 AWK
="$ac_cv_prog_AWK"
1434 if test -n "$AWK"; then
1435 echo "$ac_t""$AWK" 1>&6
1437 echo "$ac_t""no" 1>&6
1440 test -n "$AWK" && break
1443 # Find a good install program. We prefer a C program (faster),
1444 # so one script is as good as another. But avoid the broken or
1445 # incompatible versions:
1446 # SysV /etc/install, /usr/sbin/install
1447 # SunOS /usr/etc/install
1448 # IRIX /sbin/install
1450 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1451 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1452 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1453 # ./install, which can be erroneously created by make from ./install.sh.
1454 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1455 echo "configure:1456: checking for a BSD compatible install" >&5
1456 if test -z "$INSTALL"; then
1457 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1460 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1461 for ac_dir
in $PATH; do
1462 # Account for people who put trailing slashes in PATH elements.
1464 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1466 # OSF1 and SCO ODT 3.0 have their own names for install.
1467 # Don't use installbsd from OSF since it installs stuff as root
1469 for ac_prog
in ginstall scoinst
install; do
1470 if test -f $ac_dir/$ac_prog; then
1471 if test $ac_prog = install &&
1472 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1473 # AIX install. It has an incompatible calling convention.
1476 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1487 if test "${ac_cv_path_install+set}" = set; then
1488 INSTALL
="$ac_cv_path_install"
1490 # As a last resort, use the slow shell script. We don't cache a
1491 # path for INSTALL within a source directory, because that will
1492 # break other packages using the cache if that directory is
1493 # removed, or if the path is relative.
1494 INSTALL
="$ac_install_sh"
1497 echo "$ac_t""$INSTALL" 1>&6
1499 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1500 # It thinks the first close brace ends the variable substitution.
1501 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1503 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1505 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1507 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1508 echo "configure:1509: checking whether ln -s works" >&5
1509 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1513 if ln -s X conftestdata
2>/dev
/null
1516 ac_cv_prog_LN_S
="ln -s"
1521 LN_S
="$ac_cv_prog_LN_S"
1522 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1523 echo "$ac_t""yes" 1>&6
1525 echo "$ac_t""no" 1>&6
1528 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1529 echo "configure:1530: checking whether ${MAKE-make} sets \${MAKE}" >&5
1530 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1531 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1534 cat > conftestmake
<<\EOF
1536 @
echo 'ac_maketemp="${MAKE}"'
1538 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1539 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1540 if test -n "$ac_maketemp"; then
1541 eval ac_cv_prog_make_
${ac_make}_set
=yes
1543 eval ac_cv_prog_make_
${ac_make}_set
=no
1547 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1548 echo "$ac_t""yes" 1>&6
1551 echo "$ac_t""no" 1>&6
1552 SET_MAKE
="MAKE=${MAKE-make}"
1555 # Extract the first word of "ranlib", so it can be a program name with args.
1556 set dummy ranlib
; ac_word
=$2
1557 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1558 echo "configure:1559: checking for $ac_word" >&5
1559 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1560 echo $ac_n "(cached) $ac_c" 1>&6
1562 if test -n "$RANLIB"; then
1563 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1565 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1567 for ac_dir
in $ac_dummy; do
1568 test -z "$ac_dir" && ac_dir
=.
1569 if test -f $ac_dir/$ac_word; then
1570 ac_cv_prog_RANLIB
="ranlib"
1575 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1578 RANLIB
="$ac_cv_prog_RANLIB"
1579 if test -n "$RANLIB"; then
1580 echo "$ac_t""$RANLIB" 1>&6
1582 echo "$ac_t""no" 1>&6
1587 for ac_prog
in $PERL perl5 perl
1589 # Extract the first word of "$ac_prog", so it can be a program name with args.
1590 set dummy
$ac_prog; ac_word
=$2
1591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1592 echo "configure:1593: checking for $ac_word" >&5
1593 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1594 echo $ac_n "(cached) $ac_c" 1>&6
1598 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
1601 ac_cv_path_PERL
="$PERL" # Let the user override the test with a dos path.
1604 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1606 for ac_dir
in $ac_dummy; do
1607 test -z "$ac_dir" && ac_dir
=.
1608 if test -f $ac_dir/$ac_word; then
1609 ac_cv_path_PERL
="$ac_dir/$ac_word"
1617 PERL
="$ac_cv_path_PERL"
1618 if test -n "$PERL"; then
1619 echo "$ac_t""$PERL" 1>&6
1621 echo "$ac_t""no" 1>&6
1624 test -n "$PERL" && break
1627 if test -z "$PERL" ||
test "$PERL" = ":"; then
1628 { echo "configure: error: perl not found in \$PATH" 1>&2; exit 1; }
1631 echo $ac_n "checking for minimum required perl version >= $PERL_VERSION""... $ac_c" 1>&6
1632 echo "configure:1633: checking for minimum required perl version >= $PERL_VERSION" >&5
1633 _perl_version
=`PERL_VERSION=$PERL_VERSION $PERL -e 'print "$]"; if ($] >= $ENV{PERL_VERSION}) { exit(0); } else { exit(1); }' 2>&5`
1635 echo "$ac_t""$_perl_version" 1>&6
1637 if test "$_perl_res" != 0; then
1638 { echo "configure: error: Perl $PERL_VERSION or higher is required." 1>&2; exit 1; }
1641 echo $ac_n "checking for full perl installation""... $ac_c" 1>&6
1642 echo "configure:1643: checking for full perl installation" >&5
1643 _perl_archlib
=`$PERL -e 'use Config; if ( -d $Config{archlib} ) { exit(0); } else { exit(1); }' 2>&5`
1645 if test "$_perl_res" != 0; then
1646 echo "$ac_t""no" 1>&6
1647 { echo "configure: error: Cannot find Config.pm or \$Config{archlib}. A full perl installation is required." 1>&2; exit 1; }
1649 echo "$ac_t""yes" 1>&6
1653 # Checks for header files.
1654 # If we find X, set shell vars x_includes and x_libraries to the
1655 # paths, otherwise set no_x=yes.
1656 # Uses ac_ vars as temps to allow command line to override cache and checks.
1657 # --without-x overrides everything else, but does not touch the cache.
1658 echo $ac_n "checking for X""... $ac_c" 1>&6
1659 echo "configure:1660: checking for X" >&5
1661 # Check whether --with-x or --without-x was given.
1662 if test "${with_x+set}" = set; then
1667 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1668 if test "x$with_x" = xno
; then
1669 # The user explicitly disabled X.
1672 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1673 # Both variables are already set.
1676 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1679 # One or both of the vars are not set, and there is no cached value.
1680 ac_x_includes
=NO ac_x_libraries
=NO
1682 if mkdir conftestdir
; then
1684 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1685 cat > Imakefile
<<'EOF'
1687 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1689 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1690 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1691 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1692 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1693 for ac_extension
in a so sl
; do
1694 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1695 test -f $ac_im_libdir/libX11.
$ac_extension; then
1696 ac_im_usrlibdir
=$ac_im_libdir; break
1699 # Screen out bogus values from the imake configuration. They are
1700 # bogus both because they are the default anyway, and because
1701 # using them would break gcc on systems where it needs fixed includes.
1702 case "$ac_im_incroot" in
1704 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1706 case "$ac_im_usrlibdir" in
1708 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1715 if test "$ac_x_includes" = NO
; then
1716 # Guess where to find include files, by looking for this one X11 .h file.
1717 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1719 # First, try using that file with no special directory specified.
1720 cat > conftest.
$ac_ext <<EOF
1721 #line 1722 "configure"
1722 #include "confdefs.h"
1723 #include <$x_direct_test_include>
1725 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1726 { (eval echo configure
:1727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1727 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1728 if test -z "$ac_err"; then
1730 # We can compile using X headers with no special include directory.
1734 echo "configure: failed program was:" >&5
1735 cat conftest.
$ac_ext >&5
1737 # Look for the header file in a standard set of common directories.
1738 # Check X11 before X11Rn because it is often a symlink to the current release.
1741 /usr
/X11R
6/include \
1742 /usr
/X11R
5/include \
1743 /usr
/X11R
4/include \
1746 /usr
/include
/X11R6 \
1747 /usr
/include
/X11R5 \
1748 /usr
/include
/X11R4 \
1750 /usr
/local
/X11
/include \
1751 /usr
/local
/X11R
6/include \
1752 /usr
/local
/X11R
5/include \
1753 /usr
/local
/X11R
4/include \
1755 /usr
/local
/include
/X11 \
1756 /usr
/local
/include
/X11R6 \
1757 /usr
/local
/include
/X11R5 \
1758 /usr
/local
/include
/X11R4 \
1762 /usr
/XFree86
/include
/X11 \
1765 /usr
/local
/include \
1766 /usr
/unsupported
/include \
1767 /usr
/athena
/include \
1768 /usr
/local
/x11r
5/include \
1769 /usr
/lpp
/Xamples
/include \
1771 /usr
/openwin
/include \
1772 /usr
/openwin
/share
/include \
1775 if test -r "$ac_dir/$x_direct_test_include"; then
1776 ac_x_includes
=$ac_dir
1782 fi # $ac_x_includes = NO
1784 if test "$ac_x_libraries" = NO
; then
1785 # Check for the libraries.
1787 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1788 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1790 # See if we find them without any special options.
1791 # Don't add to $LIBS permanently.
1792 ac_save_LIBS
="$LIBS"
1793 LIBS
="-l$x_direct_test_library $LIBS"
1794 cat > conftest.
$ac_ext <<EOF
1795 #line 1796 "configure"
1796 #include "confdefs.h"
1799 ${x_direct_test_function}()
1802 if { (eval echo configure
:1803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1804 LIBS
="$ac_save_LIBS"
1805 # We can link X programs with no special library path.
1808 echo "configure: failed program was:" >&5
1809 cat conftest.
$ac_ext >&5
1811 LIBS
="$ac_save_LIBS"
1812 # First see if replacing the include by lib works.
1813 # Check X11 before X11Rn because it is often a symlink to the current release.
1814 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1825 /usr
/local
/X11
/lib \
1826 /usr
/local
/X11R
6/lib \
1827 /usr
/local
/X11R
5/lib \
1828 /usr
/local
/X11R
4/lib \
1830 /usr
/local
/lib
/X11 \
1831 /usr
/local
/lib
/X11R6 \
1832 /usr
/local
/lib
/X11R5 \
1833 /usr
/local
/lib
/X11R4 \
1837 /usr
/XFree86
/lib
/X11 \
1841 /usr
/unsupported
/lib \
1843 /usr
/local
/x11r
5/lib \
1844 /usr
/lpp
/Xamples
/lib \
1848 /usr
/openwin
/share
/lib \
1851 for ac_extension
in a so sl
; do
1852 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1853 ac_x_libraries
=$ac_dir
1860 fi # $ac_x_libraries = NO
1862 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1863 # Didn't find X anywhere. Cache the known absence of X.
1864 ac_cv_have_x
="have_x=no"
1866 # Record where we found X for the cache.
1867 ac_cv_have_x
="have_x=yes \
1868 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1872 eval "$ac_cv_have_x"
1875 if test "$have_x" != yes; then
1876 echo "$ac_t""$have_x" 1>&6
1879 # If each of the values was on the command line, it overrides each guess.
1880 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1881 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1882 # Update the cache value to reflect the command line values.
1883 ac_cv_have_x
="have_x=yes \
1884 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1885 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1888 if test "$no_x" = yes; then
1889 # Not all programs may use this symbol, but it does not hurt to define it.
1890 cat >> confdefs.h
<<\EOF
1891 #define X_DISPLAY_MISSING 1
1894 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1896 if test -n "$x_includes"; then
1897 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1900 # It would also be nice to do this for all -L options, not just this one.
1901 if test -n "$x_libraries"; then
1902 X_LIBS
="$X_LIBS -L$x_libraries"
1903 # For Solaris; some versions of Sun CC require a space after -R and
1904 # others require no space. Words are not sufficient . . . .
1905 case "`(uname -sr) 2>/dev/null`" in
1907 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1908 echo "configure:1909: checking whether -R must be followed by a space" >&5
1909 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1910 cat > conftest.
$ac_ext <<EOF
1911 #line 1912 "configure"
1912 #include "confdefs.h"
1918 if { (eval echo configure
:1919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1922 echo "configure: failed program was:" >&5
1923 cat conftest.
$ac_ext >&5
1928 if test $ac_R_nospace = yes; then
1929 echo "$ac_t""no" 1>&6
1930 X_LIBS
="$X_LIBS -R$x_libraries"
1932 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1933 cat > conftest.
$ac_ext <<EOF
1934 #line 1935 "configure"
1935 #include "confdefs.h"
1941 if { (eval echo configure
:1942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1945 echo "configure: failed program was:" >&5
1946 cat conftest.
$ac_ext >&5
1951 if test $ac_R_space = yes; then
1952 echo "$ac_t""yes" 1>&6
1953 X_LIBS
="$X_LIBS -R $x_libraries"
1955 echo "$ac_t""neither works" 1>&6
1958 LIBS
="$ac_xsave_LIBS"
1962 # Check for system-dependent libraries X programs must link with.
1963 # Do this before checking for the system-independent R6 libraries
1964 # (-lICE), since we may need -lsocket or whatever for X linking.
1966 if test "$ISC" = yes; then
1967 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1969 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1970 # libraries were built with DECnet support. And karl@cs.umb.edu says
1971 # the Alpha needs dnet_stub (dnet does not exist).
1972 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1973 echo "configure:1974: checking for dnet_ntoa in -ldnet" >&5
1974 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1978 ac_save_LIBS
="$LIBS"
1980 cat > conftest.
$ac_ext <<EOF
1981 #line 1982 "configure"
1982 #include "confdefs.h"
1983 /* Override any gcc2 internal prototype to avoid an error. */
1984 /* We use char because int might match the return type of a gcc2
1985 builtin and then its argument prototype would still apply. */
1992 if { (eval echo configure
:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1994 eval "ac_cv_lib_$ac_lib_var=yes"
1996 echo "configure: failed program was:" >&5
1997 cat conftest.
$ac_ext >&5
1999 eval "ac_cv_lib_$ac_lib_var=no"
2002 LIBS
="$ac_save_LIBS"
2005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2006 echo "$ac_t""yes" 1>&6
2007 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
2009 echo "$ac_t""no" 1>&6
2012 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
2013 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2014 echo "configure:2015: checking for dnet_ntoa in -ldnet_stub" >&5
2015 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2016 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2017 echo $ac_n "(cached) $ac_c" 1>&6
2019 ac_save_LIBS
="$LIBS"
2020 LIBS
="-ldnet_stub $LIBS"
2021 cat > conftest.
$ac_ext <<EOF
2022 #line 2023 "configure"
2023 #include "confdefs.h"
2024 /* Override any gcc2 internal prototype to avoid an error. */
2025 /* We use char because int might match the return type of a gcc2
2026 builtin and then its argument prototype would still apply. */
2033 if { (eval echo configure
:2034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2035 eval "ac_cv_lib_$ac_lib_var=yes"
2037 echo "configure: failed program was:" >&5
2038 cat conftest.
$ac_ext >&5
2040 eval "ac_cv_lib_$ac_lib_var=no"
2043 LIBS
="$ac_save_LIBS"
2046 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2047 echo "$ac_t""yes" 1>&6
2048 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
2050 echo "$ac_t""no" 1>&6
2055 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2056 # to get the SysV transport functions.
2057 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2059 # The nsl library prevents programs from opening the X display
2060 # on Irix 5.2, according to dickey@clark.net.
2061 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2062 echo "configure:2063: checking for gethostbyname" >&5
2063 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2064 echo $ac_n "(cached) $ac_c" 1>&6
2066 cat > conftest.
$ac_ext <<EOF
2067 #line 2068 "configure"
2068 #include "confdefs.h"
2069 /* System header to define __stub macros and hopefully few prototypes,
2070 which can conflict with char gethostbyname(); below. */
2072 /* Override any gcc2 internal prototype to avoid an error. */
2073 /* We use char because int might match the return type of a gcc2
2074 builtin and then its argument prototype would still apply. */
2075 char gethostbyname();
2079 /* The GNU C library defines this for functions which it implements
2080 to always fail with ENOSYS. Some functions are actually named
2081 something starting with __ and the normal name is an alias. */
2082 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2090 if { (eval echo configure
:2091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2092 eval "ac_cv_func_gethostbyname=yes"
2094 echo "configure: failed program was:" >&5
2095 cat conftest.
$ac_ext >&5
2097 eval "ac_cv_func_gethostbyname=no"
2102 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2103 echo "$ac_t""yes" 1>&6
2106 echo "$ac_t""no" 1>&6
2109 if test $ac_cv_func_gethostbyname = no
; then
2110 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2111 echo "configure:2112: checking for gethostbyname in -lnsl" >&5
2112 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2113 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2114 echo $ac_n "(cached) $ac_c" 1>&6
2116 ac_save_LIBS
="$LIBS"
2118 cat > conftest.
$ac_ext <<EOF
2119 #line 2120 "configure"
2120 #include "confdefs.h"
2121 /* Override any gcc2 internal prototype to avoid an error. */
2122 /* We use char because int might match the return type of a gcc2
2123 builtin and then its argument prototype would still apply. */
2124 char gethostbyname();
2130 if { (eval echo configure
:2131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2132 eval "ac_cv_lib_$ac_lib_var=yes"
2134 echo "configure: failed program was:" >&5
2135 cat conftest.
$ac_ext >&5
2137 eval "ac_cv_lib_$ac_lib_var=no"
2140 LIBS
="$ac_save_LIBS"
2143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2144 echo "$ac_t""yes" 1>&6
2145 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2147 echo "$ac_t""no" 1>&6
2152 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2153 # socket/setsockopt and other routines are undefined under SCO ODT
2154 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2155 # on later versions), says simon@lia.di.epfl.ch: it contains
2156 # gethostby* variants that don't use the nameserver (or something).
2157 # -lsocket must be given before -lnsl if both are needed.
2158 # We assume that if connect needs -lnsl, so does gethostbyname.
2159 echo $ac_n "checking for connect""... $ac_c" 1>&6
2160 echo "configure:2161: checking for connect" >&5
2161 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2162 echo $ac_n "(cached) $ac_c" 1>&6
2164 cat > conftest.
$ac_ext <<EOF
2165 #line 2166 "configure"
2166 #include "confdefs.h"
2167 /* System header to define __stub macros and hopefully few prototypes,
2168 which can conflict with char connect(); below. */
2170 /* Override any gcc2 internal prototype to avoid an error. */
2171 /* We use char because int might match the return type of a gcc2
2172 builtin and then its argument prototype would still apply. */
2177 /* The GNU C library defines this for functions which it implements
2178 to always fail with ENOSYS. Some functions are actually named
2179 something starting with __ and the normal name is an alias. */
2180 #if defined (__stub_connect) || defined (__stub___connect)
2188 if { (eval echo configure
:2189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2190 eval "ac_cv_func_connect=yes"
2192 echo "configure: failed program was:" >&5
2193 cat conftest.
$ac_ext >&5
2195 eval "ac_cv_func_connect=no"
2200 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2201 echo "$ac_t""yes" 1>&6
2204 echo "$ac_t""no" 1>&6
2207 if test $ac_cv_func_connect = no
; then
2208 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2209 echo "configure:2210: checking for connect in -lsocket" >&5
2210 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2214 ac_save_LIBS
="$LIBS"
2215 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
2216 cat > conftest.
$ac_ext <<EOF
2217 #line 2218 "configure"
2218 #include "confdefs.h"
2219 /* Override any gcc2 internal prototype to avoid an error. */
2220 /* We use char because int might match the return type of a gcc2
2221 builtin and then its argument prototype would still apply. */
2228 if { (eval echo configure
:2229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2230 eval "ac_cv_lib_$ac_lib_var=yes"
2232 echo "configure: failed program was:" >&5
2233 cat conftest.
$ac_ext >&5
2235 eval "ac_cv_lib_$ac_lib_var=no"
2238 LIBS
="$ac_save_LIBS"
2241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2242 echo "$ac_t""yes" 1>&6
2243 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
2245 echo "$ac_t""no" 1>&6
2250 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2251 echo $ac_n "checking for remove""... $ac_c" 1>&6
2252 echo "configure:2253: checking for remove" >&5
2253 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 cat > conftest.
$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2259 /* System header to define __stub macros and hopefully few prototypes,
2260 which can conflict with char remove(); below. */
2262 /* Override any gcc2 internal prototype to avoid an error. */
2263 /* We use char because int might match the return type of a gcc2
2264 builtin and then its argument prototype would still apply. */
2269 /* The GNU C library defines this for functions which it implements
2270 to always fail with ENOSYS. Some functions are actually named
2271 something starting with __ and the normal name is an alias. */
2272 #if defined (__stub_remove) || defined (__stub___remove)
2280 if { (eval echo configure
:2281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2282 eval "ac_cv_func_remove=yes"
2284 echo "configure: failed program was:" >&5
2285 cat conftest.
$ac_ext >&5
2287 eval "ac_cv_func_remove=no"
2292 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2293 echo "$ac_t""yes" 1>&6
2296 echo "$ac_t""no" 1>&6
2299 if test $ac_cv_func_remove = no
; then
2300 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2301 echo "configure:2302: checking for remove in -lposix" >&5
2302 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 ac_save_LIBS
="$LIBS"
2307 LIBS
="-lposix $LIBS"
2308 cat > conftest.
$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2311 /* Override any gcc2 internal prototype to avoid an error. */
2312 /* We use char because int might match the return type of a gcc2
2313 builtin and then its argument prototype would still apply. */
2320 if { (eval echo configure
:2321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2322 eval "ac_cv_lib_$ac_lib_var=yes"
2324 echo "configure: failed program was:" >&5
2325 cat conftest.
$ac_ext >&5
2327 eval "ac_cv_lib_$ac_lib_var=no"
2330 LIBS
="$ac_save_LIBS"
2333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2334 echo "$ac_t""yes" 1>&6
2335 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2337 echo "$ac_t""no" 1>&6
2342 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2343 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2344 echo "configure:2345: checking for shmat" >&5
2345 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 cat > conftest.
$ac_ext <<EOF
2349 #line 2350 "configure"
2350 #include "confdefs.h"
2351 /* System header to define __stub macros and hopefully few prototypes,
2352 which can conflict with char shmat(); below. */
2354 /* Override any gcc2 internal prototype to avoid an error. */
2355 /* We use char because int might match the return type of a gcc2
2356 builtin and then its argument prototype would still apply. */
2361 /* The GNU C library defines this for functions which it implements
2362 to always fail with ENOSYS. Some functions are actually named
2363 something starting with __ and the normal name is an alias. */
2364 #if defined (__stub_shmat) || defined (__stub___shmat)
2372 if { (eval echo configure
:2373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2374 eval "ac_cv_func_shmat=yes"
2376 echo "configure: failed program was:" >&5
2377 cat conftest.
$ac_ext >&5
2379 eval "ac_cv_func_shmat=no"
2384 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2385 echo "$ac_t""yes" 1>&6
2388 echo "$ac_t""no" 1>&6
2391 if test $ac_cv_func_shmat = no
; then
2392 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2393 echo "configure:2394: checking for shmat in -lipc" >&5
2394 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 ac_save_LIBS
="$LIBS"
2400 cat > conftest.
$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2403 /* Override any gcc2 internal prototype to avoid an error. */
2404 /* We use char because int might match the return type of a gcc2
2405 builtin and then its argument prototype would still apply. */
2412 if { (eval echo configure
:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2414 eval "ac_cv_lib_$ac_lib_var=yes"
2416 echo "configure: failed program was:" >&5
2417 cat conftest.
$ac_ext >&5
2419 eval "ac_cv_lib_$ac_lib_var=no"
2422 LIBS
="$ac_save_LIBS"
2425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2426 echo "$ac_t""yes" 1>&6
2427 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2429 echo "$ac_t""no" 1>&6
2435 # Check for libraries that X11R6 Xt/Xaw programs need.
2436 ac_save_LDFLAGS
="$LDFLAGS"
2437 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2438 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2439 # check for ICE first), but we must link in the order -lSM -lICE or
2440 # we get undefined symbols. So assume we have SM if we have ICE.
2441 # These have to be linked with before -lX11, unlike the other
2442 # libraries we check for below, so use a different variable.
2443 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2444 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2445 echo "configure:2446: checking for IceConnectionNumber in -lICE" >&5
2446 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2450 ac_save_LIBS
="$LIBS"
2451 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
2452 cat > conftest.
$ac_ext <<EOF
2453 #line 2454 "configure"
2454 #include "confdefs.h"
2455 /* Override any gcc2 internal prototype to avoid an error. */
2456 /* We use char because int might match the return type of a gcc2
2457 builtin and then its argument prototype would still apply. */
2458 char IceConnectionNumber();
2461 IceConnectionNumber()
2464 if { (eval echo configure
:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2466 eval "ac_cv_lib_$ac_lib_var=yes"
2468 echo "configure: failed program was:" >&5
2469 cat conftest.
$ac_ext >&5
2471 eval "ac_cv_lib_$ac_lib_var=no"
2474 LIBS
="$ac_save_LIBS"
2477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2478 echo "$ac_t""yes" 1>&6
2479 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2481 echo "$ac_t""no" 1>&6
2484 LDFLAGS
="$ac_save_LDFLAGS"
2488 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2489 echo "configure:2490: checking for ANSI C header files" >&5
2490 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2493 cat > conftest.
$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2501 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2502 { (eval echo configure
:2503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2503 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2504 if test -z "$ac_err"; then
2506 ac_cv_header_stdc
=yes
2509 echo "configure: failed program was:" >&5
2510 cat conftest.
$ac_ext >&5
2512 ac_cv_header_stdc
=no
2516 if test $ac_cv_header_stdc = yes; then
2517 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2518 cat > conftest.
$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2524 egrep "memchr" >/dev
/null
2>&1; then
2528 ac_cv_header_stdc
=no
2534 if test $ac_cv_header_stdc = yes; then
2535 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2536 cat > conftest.
$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2542 egrep "free" >/dev
/null
2>&1; then
2546 ac_cv_header_stdc
=no
2552 if test $ac_cv_header_stdc = yes; then
2553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2554 if test "$cross_compiling" = yes; then
2557 cat > conftest.
$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2561 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2562 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2563 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2564 int main () { int i; for (i = 0; i < 256; i++)
2565 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2569 if { (eval echo configure
:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2573 echo "configure: failed program was:" >&5
2574 cat conftest.
$ac_ext >&5
2576 ac_cv_header_stdc
=no
2584 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2585 if test $ac_cv_header_stdc = yes; then
2586 cat >> confdefs.h
<<\EOF
2587 #define STDC_HEADERS 1
2592 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2593 echo "configure:2594: checking for sys/wait.h that is POSIX.1 compatible" >&5
2594 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2597 cat > conftest.
$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2600 #include <sys/types.h>
2601 #include <sys/wait.h>
2603 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2606 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2611 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2614 if { (eval echo configure
:2615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2616 ac_cv_header_sys_wait_h
=yes
2618 echo "configure: failed program was:" >&5
2619 cat conftest.
$ac_ext >&5
2621 ac_cv_header_sys_wait_h
=no
2626 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2627 if test $ac_cv_header_sys_wait_h = yes; then
2628 cat >> confdefs.h
<<\EOF
2629 #define HAVE_SYS_WAIT_H 1
2634 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
/signal.h sys
/param.h sys
/select.h sys
/stat.h sys
/time.h sys
/types.h sys
/wait.h stdlib.h string.h malloc.h
2636 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2637 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2638 echo "configure:2639: checking for $ac_hdr" >&5
2639 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2640 echo $ac_n "(cached) $ac_c" 1>&6
2642 cat > conftest.
$ac_ext <<EOF
2643 #line 2644 "configure"
2644 #include "confdefs.h"
2647 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2648 { (eval echo configure
:2649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2649 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2650 if test -z "$ac_err"; then
2652 eval "ac_cv_header_$ac_safe=yes"
2655 echo "configure: failed program was:" >&5
2656 cat conftest.
$ac_ext >&5
2658 eval "ac_cv_header_$ac_safe=no"
2662 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2663 echo "$ac_t""yes" 1>&6
2664 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2665 cat >> confdefs.h
<<EOF
2666 #define $ac_tr_hdr 1
2670 echo "$ac_t""no" 1>&6
2675 # Checks for typedefs, structures, and compiler characteristics.
2676 echo $ac_n "checking for working const""... $ac_c" 1>&6
2677 echo "configure:2678: checking for working const" >&5
2678 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2679 echo $ac_n "(cached) $ac_c" 1>&6
2681 cat > conftest.
$ac_ext <<EOF
2682 #line 2683 "configure"
2683 #include "confdefs.h"
2687 /* Ultrix mips cc rejects this. */
2688 typedef int charset[2]; const charset x;
2689 /* SunOS 4.1.1 cc rejects this. */
2690 char const *const *ccp;
2692 /* NEC SVR4.0.2 mips cc rejects this. */
2693 struct point {int x, y;};
2694 static struct point const zero = {0,0};
2695 /* AIX XL C 1.02.0.0 rejects this.
2696 It does not let you subtract one const X* pointer from another in an arm
2697 of an if-expression whose if-part is not a constant expression */
2698 const char *g = "string";
2699 ccp = &g + (g ? g-g : 0);
2700 /* HPUX 7.0 cc rejects these. */
2703 ccp = (char const *const *) p;
2704 { /* SCO 3.2v4 cc rejects this. */
2706 char const *s = 0 ? (char *) 0 : (char const *) 0;
2710 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2712 const int *foo = &x[0];
2715 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2716 typedef const int *iptr;
2720 { /* AIX XL C 1.02.0.0 rejects this saying
2721 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2722 struct s { int j; const int *ap[3]; };
2723 struct s *b; b->j = 5;
2725 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2731 if { (eval echo configure
:2732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2735 echo "configure: failed program was:" >&5
2736 cat conftest.
$ac_ext >&5
2743 echo "$ac_t""$ac_cv_c_const" 1>&6
2744 if test $ac_cv_c_const = no
; then
2745 cat >> confdefs.h
<<\EOF
2751 echo $ac_n "checking for inline""... $ac_c" 1>&6
2752 echo "configure:2753: checking for inline" >&5
2753 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2757 for ac_kw
in inline __inline__ __inline
; do
2758 cat > conftest.
$ac_ext <<EOF
2759 #line 2760 "configure"
2760 #include "confdefs.h"
2766 if { (eval echo configure
:2767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2768 ac_cv_c_inline
=$ac_kw; break
2770 echo "configure: failed program was:" >&5
2771 cat conftest.
$ac_ext >&5
2778 echo "$ac_t""$ac_cv_c_inline" 1>&6
2779 case "$ac_cv_c_inline" in
2781 no
) cat >> confdefs.h
<<\EOF
2785 *) cat >> confdefs.h
<<EOF
2786 #define inline $ac_cv_c_inline
2791 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2792 echo "configure:2793: checking whether time.h and sys/time.h may both be included" >&5
2793 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 cat > conftest.
$ac_ext <<EOF
2797 #line 2798 "configure"
2798 #include "confdefs.h"
2799 #include <sys/types.h>
2800 #include <sys/time.h>
2806 if { (eval echo configure
:2807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2808 ac_cv_header_time
=yes
2810 echo "configure: failed program was:" >&5
2811 cat conftest.
$ac_ext >&5
2813 ac_cv_header_time
=no
2818 echo "$ac_t""$ac_cv_header_time" 1>&6
2819 if test $ac_cv_header_time = yes; then
2820 cat >> confdefs.h
<<\EOF
2821 #define TIME_WITH_SYS_TIME 1
2826 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2827 echo "configure:2828: checking whether struct tm is in sys/time.h or time.h" >&5
2828 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 cat > conftest.
$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 #include <sys/types.h>
2837 struct tm *tp; tp->tm_sec;
2840 if { (eval echo configure
:2841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2842 ac_cv_struct_tm
=time.h
2844 echo "configure: failed program was:" >&5
2845 cat conftest.
$ac_ext >&5
2847 ac_cv_struct_tm
=sys
/time.h
2852 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2853 if test $ac_cv_struct_tm = sys
/time.h
; then
2854 cat >> confdefs.h
<<\EOF
2855 #define TM_IN_SYS_TIME 1
2861 # Checks for library functions.
2862 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2863 echo "configure:2864: checking return type of signal handlers" >&5
2864 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2865 echo $ac_n "(cached) $ac_c" 1>&6
2867 cat > conftest.
$ac_ext <<EOF
2868 #line 2869 "configure"
2869 #include "confdefs.h"
2870 #include <sys/types.h>
2876 extern "C" void (*signal (int, void (*)(int)))(int);
2878 void (*signal ()) ();
2885 if { (eval echo configure
:2886: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2887 ac_cv_type_signal
=void
2889 echo "configure: failed program was:" >&5
2890 cat conftest.
$ac_ext >&5
2892 ac_cv_type_signal
=int
2897 echo "$ac_t""$ac_cv_type_signal" 1>&6
2898 cat >> confdefs.h
<<EOF
2899 #define RETSIGTYPE $ac_cv_type_signal
2903 for ac_func
in setlocale sigaction strftime gettimeofday memset strcasecmp strchr strcspn strdup strncasecmp
select strstr
2905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2906 echo "configure:2907: checking for $ac_func" >&5
2907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2910 cat > conftest.
$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2913 /* System header to define __stub macros and hopefully few prototypes,
2914 which can conflict with char $ac_func(); below. */
2916 /* Override any gcc2 internal prototype to avoid an error. */
2917 /* We use char because int might match the return type of a gcc2
2918 builtin and then its argument prototype would still apply. */
2923 /* The GNU C library defines this for functions which it implements
2924 to always fail with ENOSYS. Some functions are actually named
2925 something starting with __ and the normal name is an alias. */
2926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2934 if { (eval echo configure
:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2936 eval "ac_cv_func_$ac_func=yes"
2938 echo "configure: failed program was:" >&5
2939 cat conftest.
$ac_ext >&5
2941 eval "ac_cv_func_$ac_func=no"
2946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2947 echo "$ac_t""yes" 1>&6
2948 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2949 cat >> confdefs.h
<<EOF
2950 #define $ac_tr_func 1
2954 echo "$ac_t""no" 1>&6
2960 CFLAGS
="$CFLAGS $X_CFLAGS"
2961 CXXFLAGS
="$CXXFLAGS $X_CFLAGS"
2962 LDFLAGS
="$LDFLAGS $X_LIBS $X_PRE_LIBS"
2963 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
2964 echo "configure:2965: checking for XOpenDisplay in -lX11" >&5
2965 ac_lib_var
=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
2966 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2967 echo $ac_n "(cached) $ac_c" 1>&6
2969 ac_save_LIBS
="$LIBS"
2971 cat > conftest.
$ac_ext <<EOF
2972 #line 2973 "configure"
2973 #include "confdefs.h"
2974 /* Override any gcc2 internal prototype to avoid an error. */
2975 /* We use char because int might match the return type of a gcc2
2976 builtin and then its argument prototype would still apply. */
2977 char XOpenDisplay();
2983 if { (eval echo configure
:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2985 eval "ac_cv_lib_$ac_lib_var=yes"
2987 echo "configure: failed program was:" >&5
2988 cat conftest.
$ac_ext >&5
2990 eval "ac_cv_lib_$ac_lib_var=no"
2993 LIBS
="$ac_save_LIBS"
2996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2997 echo "$ac_t""yes" 1>&6
3000 echo "$ac_t""no" 1>&6
3001 { echo "configure: error: XOpenDisplay not found in -lX11" 1>&2; exit 1; }
3012 cat > confcache
<<\EOF
3013 # This file is a shell script that caches the results of configure
3014 # tests run on this system so they can be shared between configure
3015 # scripts and configure runs. It is not useful on other systems.
3016 # If it contains results you don't want to keep, you may remove or edit it.
3018 # By default, configure uses ./config.cache as the cache file,
3019 # creating it if it does not exist already. You can give configure
3020 # the --cache-file=FILE option to use a different cache file; that is
3021 # what configure does when it calls configure scripts in
3022 # subdirectories, so they share the cache.
3023 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3024 # config.status only pays attention to the cache file if you give it the
3025 # --recheck option to rerun configure.
3028 # The following way of writing the cache mishandles newlines in values,
3029 # but we know of no workaround that is simple, portable, and efficient.
3030 # So, don't put newlines in cache variables' values.
3031 # Ultrix sh set writes to stderr and can't be redirected directly,
3032 # and sets the high bit in the cache file unless we assign to the vars.
3034 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3036 # `set' does not quote correctly, so add quotes (double-quote substitution
3037 # turns \\\\ into \\, and sed turns \\ into \).
3039 -e "s/'/'\\\\''/g" \
3040 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3043 # `set' quotes correctly as required by POSIX, so do not add quotes.
3044 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3047 if cmp -s $cache_file confcache
; then
3050 if test -w $cache_file; then
3051 echo "updating cache $cache_file"
3052 cat confcache
> $cache_file
3054 echo "not updating unwritable cache $cache_file"
3059 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3061 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3062 # Let make expand exec_prefix.
3063 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3065 # Any assignment to VPATH causes Sun make to only execute
3066 # the first set of double-colon rules, so remove it if not needed.
3067 # If there is a colon in the path, we need to keep it.
3068 if test "x$srcdir" = x.
; then
3069 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3072 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3074 DEFS
=-DHAVE_CONFIG_H
3076 # Without the "./", some shells look in PATH for config.status.
3077 : ${CONFIG_STATUS=./config.status}
3079 echo creating
$CONFIG_STATUS
3080 rm -f $CONFIG_STATUS
3081 cat > $CONFIG_STATUS <<EOF
3083 # Generated automatically by configure.
3084 # Run this file to recreate the current configuration.
3085 # This directory was configured as follows,
3086 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3088 # $0 $ac_configure_args
3090 # Compiler output produced by configure, useful for debugging
3091 # configure, is in ./config.log if it exists.
3093 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3096 case "\$ac_option" in
3097 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3098 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3099 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3100 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3101 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3103 -help | --help | --hel | --he | --h)
3104 echo "\$ac_cs_usage"; exit 0 ;;
3105 *) echo "\$ac_cs_usage"; exit 1 ;;
3109 ac_given_srcdir=$srcdir
3110 ac_given_INSTALL="$INSTALL"
3112 trap 'rm -fr `echo "\
3121 redhat/bbkeys.spec \
3122 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3124 cat >> $CONFIG_STATUS <<EOF
3126 # Protect against being on the right side of a sed subst in config.status.
3127 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3128 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3132 s%@CFLAGS@%$CFLAGS%g
3133 s%@CPPFLAGS@%$CPPFLAGS%g
3134 s%@CXXFLAGS@%$CXXFLAGS%g
3135 s%@FFLAGS@%$FFLAGS%g
3137 s%@LDFLAGS@%$LDFLAGS%g
3139 s%@exec_prefix@%$exec_prefix%g
3140 s%@prefix@%$prefix%g
3141 s%@program_transform_name@%$program_transform_name%g
3142 s%@bindir@%$bindir%g
3143 s%@sbindir@%$sbindir%g
3144 s%@libexecdir@%$libexecdir%g
3145 s%@datadir@%$datadir%g
3146 s%@sysconfdir@%$sysconfdir%g
3147 s%@sharedstatedir@%$sharedstatedir%g
3148 s%@localstatedir@%$localstatedir%g
3149 s%@libdir@%$libdir%g
3150 s%@includedir@%$includedir%g
3151 s%@oldincludedir@%$oldincludedir%g
3152 s%@infodir@%$infodir%g
3153 s%@mandir@%$mandir%g
3154 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3155 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3156 s%@INSTALL_DATA@%$INSTALL_DATA%g
3157 s%@PACKAGE@%$PACKAGE%g
3158 s%@VERSION@%$VERSION%g
3159 s%@ACLOCAL@%$ACLOCAL%g
3160 s%@AUTOCONF@%$AUTOCONF%g
3161 s%@AUTOMAKE@%$AUTOMAKE%g
3162 s%@AUTOHEADER@%$AUTOHEADER%g
3163 s%@MAKEINFO@%$MAKEINFO%g
3164 s%@SET_MAKE@%$SET_MAKE%g
3166 s%@host_alias@%$host_alias%g
3167 s%@host_cpu@%$host_cpu%g
3168 s%@host_vendor@%$host_vendor%g
3169 s%@host_os@%$host_os%g
3170 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3171 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3173 s%@regex_cmd@%$regex_cmd%g
3174 s%@INTERLACE@%$INTERLACE%g
3180 s%@RANLIB@%$RANLIB%g
3182 s%@X_CFLAGS@%$X_CFLAGS%g
3183 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3184 s%@X_LIBS@%$X_LIBS%g
3185 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3190 cat >> $CONFIG_STATUS <<\EOF
3192 # Split the substitutions into bite-sized pieces for seds with
3193 # small command number limits, like on Digital OSF/1 and HP-UX.
3194 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3195 ac_file
=1 # Number of current file.
3196 ac_beg
=1 # First line for current file.
3197 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3200 while $ac_more_lines; do
3201 if test $ac_beg -gt 1; then
3202 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3204 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3206 if test ! -s conftest.s
$ac_file; then
3208 rm -f conftest.s
$ac_file
3210 if test -z "$ac_sed_cmds"; then
3211 ac_sed_cmds
="sed -f conftest.s$ac_file"
3213 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3215 ac_file
=`expr $ac_file + 1`
3217 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3220 if test -z "$ac_sed_cmds"; then
3225 cat >> $CONFIG_STATUS <<EOF
3227 CONFIG_FILES=\${CONFIG_FILES-"\
3236 redhat/bbkeys.spec \
3239 cat >> $CONFIG_STATUS <<\EOF
3240 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3241 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3243 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3244 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3245 *) ac_file_in
="${ac_file}.in" ;;
3248 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3250 # Remove last slash and all that follows it. Not all systems have dirname.
3251 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3252 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3253 # The file is in a subdirectory.
3254 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3255 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3256 # A "../" for each directory in $ac_dir_suffix.
3257 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3259 ac_dir_suffix
= ac_dots
=
3262 case "$ac_given_srcdir" in
3264 if test -z "$ac_dots"; then top_srcdir
=.
3265 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3266 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3268 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3269 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3272 case "$ac_given_INSTALL" in
3273 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3274 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3277 echo creating
"$ac_file"
3279 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3281 *Makefile
*) ac_comsub
="1i\\
3282 # $configure_input" ;;
3286 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3288 s%@configure_input@%$configure_input%g
3289 s%@srcdir@%$srcdir%g
3290 s%@top_srcdir@%$top_srcdir%g
3291 s%@INSTALL@%$INSTALL%g
3292 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3296 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3297 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3299 # ac_d sets the value in "#define NAME VALUE" lines.
3300 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3301 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3304 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3305 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3306 ac_uB
='\([ ]\)%\1#\2define\3'
3309 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3310 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3311 ac_eB
='$%\1#\2define\3'
3315 if test "${CONFIG_HEADERS+set}" != set; then
3317 cat >> $CONFIG_STATUS <<EOF
3318 CONFIG_HEADERS="config.h"
3320 cat >> $CONFIG_STATUS <<\EOF
3322 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3323 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3325 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3326 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3327 *) ac_file_in
="${ac_file}.in" ;;
3330 echo creating
$ac_file
3332 rm -f conftest.frag conftest.
in conftest.out
3333 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3334 cat $ac_file_inputs > conftest.
in
3338 # Transform confdefs.h into a sed script conftest.vals that substitutes
3339 # the proper values into config.h.in to produce config.h. And first:
3340 # Protect against being on the right side of a sed subst in config.status.
3341 # Protect against being in an unquoted here document in config.status.
3343 cat > conftest.hdr
<<\EOF
3346 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3350 sed -n -f conftest.hdr confdefs.h > conftest.vals
3353 # This sed command replaces #undef with comments. This is necessary, for
3354 # example, in the case of _POSIX_SOURCE, which is predefined and required
3355 # on some systems where configure will not decide to define it.
3356 cat >> conftest.vals <<\EOF
3357 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3360 # Break up conftest.vals because some shells have a limit on
3361 # the size of here documents, and old seds have small limits too.
3366 ac_lines=`grep -c . conftest.vals
`
3367 # grep -c gives empty output for an empty file on some AIX systems.
3368 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3369 # Write a limited-size here document to conftest.frag.
3370 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3371 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3373 sed -f conftest.frag conftest.in > conftest.out
3375 mv conftest.out conftest.in
3377 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3379 mv conftest.tail conftest.vals
3383 cat >> $CONFIG_STATUS <<\EOF
3384 rm -f conftest.frag conftest.h
3385 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3386 cat conftest.in >> conftest.h
3388 if cmp -s $ac_file conftest.h 2>/dev/null; then
3389 echo "$ac_file is unchanged"
3392 # Remove last slash and all that follows it. Not all systems have dirname.
3393 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3394 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3395 # The file is in a subdirectory.
3396 test ! -d "$ac_dir" && mkdir "$ac_dir"
3399 mv conftest.h $ac_file
3404 cat >> $CONFIG_STATUS <<EOF
3408 cat >> $CONFIG_STATUS <<\EOF
3409 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3413 chmod +x $CONFIG_STATUS
3414 rm -fr confdefs* $ac_clean_files
3415 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1