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 # Find a good install program. We prefer a C program (faster),
554 # so one script is as good as another. But avoid the broken or
555 # incompatible versions:
556 # SysV /etc/install, /usr/sbin/install
557 # SunOS /usr/etc/install
560 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
561 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
562 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
563 # ./install, which can be erroneously created by make from ./install.sh.
564 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
565 echo "configure:566: checking for a BSD compatible install" >&5
566 if test -z "$INSTALL"; then
567 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
568 echo $ac_n "(cached) $ac_c" 1>&6
570 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
571 for ac_dir
in $PATH; do
572 # Account for people who put trailing slashes in PATH elements.
574 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
576 # OSF1 and SCO ODT 3.0 have their own names for install.
577 # Don't use installbsd from OSF since it installs stuff as root
579 for ac_prog
in ginstall scoinst
install; do
580 if test -f $ac_dir/$ac_prog; then
581 if test $ac_prog = install &&
582 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
583 # AIX install. It has an incompatible calling convention.
586 ac_cv_path_install
="$ac_dir/$ac_prog -c"
597 if test "${ac_cv_path_install+set}" = set; then
598 INSTALL
="$ac_cv_path_install"
600 # As a last resort, use the slow shell script. We don't cache a
601 # path for INSTALL within a source directory, because that will
602 # break other packages using the cache if that directory is
603 # removed, or if the path is relative.
604 INSTALL
="$ac_install_sh"
607 echo "$ac_t""$INSTALL" 1>&6
609 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
610 # It thinks the first close brace ends the variable substitution.
611 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
613 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
615 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
617 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
618 echo "configure:619: checking whether build environment is sane" >&5
621 echo timestamp
> conftestfile
622 # Do `set' in a subshell so we don't clobber the current shell's
623 # arguments. Must try -L first in case configure is actually a
624 # symlink; some systems play weird games with the mod time of symlinks
625 # (eg FreeBSD returns the mod time of the symlink's containing
628 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
629 if test "$*" = "X"; then
631 set X
`ls -t $srcdir/configure conftestfile`
633 if test "$*" != "X $srcdir/configure conftestfile" \
634 && test "$*" != "X conftestfile $srcdir/configure"; then
636 # If neither matched, then we have a broken ls. This can happen
637 # if, for instance, CONFIG_SHELL is bash and it inherits a
638 # broken ls alias from the environment. This has actually
639 # happened. Such a system could not be considered "sane".
640 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
641 alias in your environment" 1>&2; exit 1; }
644 test "$2" = conftestfile
650 { echo "configure: error: newly created file is older than distributed files!
651 Check your system clock" 1>&2; exit 1; }
654 echo "$ac_t""yes" 1>&6
655 if test "$program_transform_name" = s
,x
,x
,; then
656 program_transform_name
=
658 # Double any \ or $. echo might interpret backslashes.
659 cat <<\EOF_SED
> conftestsed
660 s
,\\,\\\\,g
; s
,\$
,$$
,g
662 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
665 test "$program_prefix" != NONE
&&
666 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
667 # Use a double $ so make ignores it.
668 test "$program_suffix" != NONE
&&
669 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
671 # sed with no file args requires a program.
672 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
674 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
675 echo "configure:676: checking whether ${MAKE-make} sets \${MAKE}" >&5
676 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
677 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
678 echo $ac_n "(cached) $ac_c" 1>&6
680 cat > conftestmake
<<\EOF
682 @
echo 'ac_maketemp="${MAKE}"'
684 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
685 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
686 if test -n "$ac_maketemp"; then
687 eval ac_cv_prog_make_
${ac_make}_set
=yes
689 eval ac_cv_prog_make_
${ac_make}_set
=no
693 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
694 echo "$ac_t""yes" 1>&6
697 echo "$ac_t""no" 1>&6
698 SET_MAKE
="MAKE=${MAKE-make}"
706 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
707 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
709 cat >> confdefs.h
<<EOF
710 #define PACKAGE "$PACKAGE"
713 cat >> confdefs.h
<<EOF
714 #define VERSION "$VERSION"
719 missing_dir
=`cd $ac_aux_dir && pwd`
720 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
721 echo "configure:722: checking for working aclocal" >&5
722 # Run test in a subshell; some versions of sh will print an error if
723 # an executable is not found, even if stderr is redirected.
724 # Redirect stdin to placate older versions of autoconf. Sigh.
725 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
727 echo "$ac_t""found" 1>&6
729 ACLOCAL
="$missing_dir/missing aclocal"
730 echo "$ac_t""missing" 1>&6
733 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
734 echo "configure:735: checking for working autoconf" >&5
735 # Run test in a subshell; some versions of sh will print an error if
736 # an executable is not found, even if stderr is redirected.
737 # Redirect stdin to placate older versions of autoconf. Sigh.
738 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
740 echo "$ac_t""found" 1>&6
742 AUTOCONF
="$missing_dir/missing autoconf"
743 echo "$ac_t""missing" 1>&6
746 echo $ac_n "checking for working automake""... $ac_c" 1>&6
747 echo "configure:748: checking for working automake" >&5
748 # Run test in a subshell; some versions of sh will print an error if
749 # an executable is not found, even if stderr is redirected.
750 # Redirect stdin to placate older versions of autoconf. Sigh.
751 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
753 echo "$ac_t""found" 1>&6
755 AUTOMAKE
="$missing_dir/missing automake"
756 echo "$ac_t""missing" 1>&6
759 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
760 echo "configure:761: checking for working autoheader" >&5
761 # Run test in a subshell; some versions of sh will print an error if
762 # an executable is not found, even if stderr is redirected.
763 # Redirect stdin to placate older versions of autoconf. Sigh.
764 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
765 AUTOHEADER
=autoheader
766 echo "$ac_t""found" 1>&6
768 AUTOHEADER
="$missing_dir/missing autoheader"
769 echo "$ac_t""missing" 1>&6
772 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
773 echo "configure:774: checking for working makeinfo" >&5
774 # Run test in a subshell; some versions of sh will print an error if
775 # an executable is not found, even if stderr is redirected.
776 # Redirect stdin to placate older versions of autoconf. Sigh.
777 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
779 echo "$ac_t""found" 1>&6
781 MAKEINFO
="$missing_dir/missing makeinfo"
782 echo "$ac_t""missing" 1>&6
786 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
787 echo "configure:788: checking whether to enable maintainer-specific portions of Makefiles" >&5
788 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
789 if test "${enable_maintainer_mode+set}" = set; then
790 enableval
="$enable_maintainer_mode"
791 USE_MAINTAINER_MODE
=$enableval
793 USE_MAINTAINER_MODE
=no
796 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
799 if test $USE_MAINTAINER_MODE = yes; then
800 MAINTAINER_MODE_TRUE
=
801 MAINTAINER_MODE_FALSE
='#'
803 MAINTAINER_MODE_TRUE
='#'
804 MAINTAINER_MODE_FALSE
=
806 MAINT
=$MAINTAINER_MODE_TRUE
813 # Extract the first word of "$ac_prog", so it can be a program name with args.
814 set dummy
$ac_prog; ac_word
=$2
815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
816 echo "configure:817: checking for $ac_word" >&5
817 if eval "test \"`echo '$''{'ac_cv_prog_regex_cmd'+set}'`\" = set"; then
818 echo $ac_n "(cached) $ac_c" 1>&6
820 if test -n "$regex_cmd"; then
821 ac_cv_prog_regex_cmd
="$regex_cmd" # Let the user override the test.
823 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
825 for ac_dir
in $ac_dummy; do
826 test -z "$ac_dir" && ac_dir
=.
827 if test -f $ac_dir/$ac_word; then
828 ac_cv_prog_regex_cmd
="$ac_prog"
835 regex_cmd
="$ac_cv_prog_regex_cmd"
836 if test -n "$regex_cmd"; then
837 echo "$ac_t""$regex_cmd" 1>&6
839 echo "$ac_t""no" 1>&6
842 test -n "$regex_cmd" && break
845 if test x
$regex_cmd = "x"; then
846 { echo "configure: error: error. sed is required to build the default bbtoolsrc file." 1>&2; exit 1; }
855 # Check whether --enable-debug or --disable-debug was given.
856 if test "${enable_debug+set}" = set; then
857 enableval
="$enable_debug"
859 if test $enableval = "no";
861 test "$CFLAGS" = "" && CFLAGS
="-O2 -Wall"
862 test "$CXXFLAGS" = "" && CXXFLAGS
="-O2 -Wall"
863 test "$LDFLAGS" = "" && LDFLAGS
="-s"
866 test "$CFLAGS" = "" && CFLAGS
="-g -Wall -DDEBUG"
867 test "$CXXFLAGS" = "" && CXXFLAGS
="-g -Wall -DDEBUG"
868 test "$LDFLAGS" = "" && LDFLAGS
=""
874 test "$CFLAGS" = "" && CFLAGS
="-O2 -Wall"
875 test "$CXXFLAGS" = "" && CXXFLAGS
="-O2 -Wall"
876 test "$LDFLAGS" = "" && LDFLAGS
="-s"
882 echo $ac_n "checking whether to include interlacing image code""... $ac_c" 1>&6
883 echo "configure:884: checking whether to include interlacing image code" >&5
884 # Check whether --enable-interlace or --disable-interlace was given.
885 if test "${enable_interlace+set}" = set; then
886 enableval
="$enable_interlace"
887 if test x
$enableval = "xyes"; then
888 echo "$ac_t""yes" 1>&6
889 INTERLACE
="-DINTERLACE"
891 echo "$ac_t""no" 1>&6
894 echo "$ac_t""yes" 1>&6
895 INTERLACE
="-DINTERLACE"
901 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
903 # Extract the first word of "$ac_prog", so it can be a program name with args.
904 set dummy
$ac_prog; ac_word
=$2
905 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
906 echo "configure:907: checking for $ac_word" >&5
907 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
910 if test -n "$CXX"; then
911 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
913 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
915 for ac_dir
in $ac_dummy; do
916 test -z "$ac_dir" && ac_dir
=.
917 if test -f $ac_dir/$ac_word; then
918 ac_cv_prog_CXX
="$ac_prog"
925 CXX
="$ac_cv_prog_CXX"
926 if test -n "$CXX"; then
927 echo "$ac_t""$CXX" 1>&6
929 echo "$ac_t""no" 1>&6
932 test -n "$CXX" && break
934 test -n "$CXX" || CXX
="gcc"
937 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
938 echo "configure:939: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
941 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
942 ac_cpp
='$CXXCPP $CPPFLAGS'
943 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
944 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
945 cross_compiling
=$ac_cv_prog_cxx_cross
947 cat > conftest.
$ac_ext << EOF
949 #line 950 "configure"
950 #include "confdefs.h"
952 int main(){return(0);}
954 if { (eval echo configure
:955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
955 ac_cv_prog_cxx_works
=yes
956 # If we can't run a trivial program, we are probably using a cross compiler.
957 if (.
/conftest
; exit) 2>/dev
/null
; then
958 ac_cv_prog_cxx_cross
=no
960 ac_cv_prog_cxx_cross
=yes
963 echo "configure: failed program was:" >&5
964 cat conftest.
$ac_ext >&5
965 ac_cv_prog_cxx_works
=no
969 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
970 ac_cpp
='$CPP $CPPFLAGS'
971 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
972 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
973 cross_compiling
=$ac_cv_prog_cc_cross
975 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
976 if test $ac_cv_prog_cxx_works = no
; then
977 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
979 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
980 echo "configure:981: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
981 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
982 cross_compiling
=$ac_cv_prog_cxx_cross
984 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
985 echo "configure:986: checking whether we are using GNU C++" >&5
986 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
989 cat > conftest.C
<<EOF
994 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1001 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1003 if test $ac_cv_prog_gxx = yes; then
1009 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1010 ac_save_CXXFLAGS
="$CXXFLAGS"
1012 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1013 echo "configure:1014: checking whether ${CXX-g++} accepts -g" >&5
1014 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1015 echo $ac_n "(cached) $ac_c" 1>&6
1017 echo 'void f(){}' > conftest.cc
1018 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1019 ac_cv_prog_cxx_g
=yes
1027 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1028 if test "$ac_test_CXXFLAGS" = set; then
1029 CXXFLAGS
="$ac_save_CXXFLAGS"
1030 elif test $ac_cv_prog_cxx_g = yes; then
1031 if test "$GXX" = yes; then
1037 if test "$GXX" = yes; then
1044 for ac_prog
in mawk gawk nawk
awk
1046 # Extract the first word of "$ac_prog", so it can be a program name with args.
1047 set dummy
$ac_prog; ac_word
=$2
1048 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1049 echo "configure:1050: checking for $ac_word" >&5
1050 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1053 if test -n "$AWK"; then
1054 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1056 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1058 for ac_dir
in $ac_dummy; do
1059 test -z "$ac_dir" && ac_dir
=.
1060 if test -f $ac_dir/$ac_word; then
1061 ac_cv_prog_AWK
="$ac_prog"
1068 AWK
="$ac_cv_prog_AWK"
1069 if test -n "$AWK"; then
1070 echo "$ac_t""$AWK" 1>&6
1072 echo "$ac_t""no" 1>&6
1075 test -n "$AWK" && break
1078 # Extract the first word of "gcc", so it can be a program name with args.
1079 set dummy gcc
; ac_word
=$2
1080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1081 echo "configure:1082: checking for $ac_word" >&5
1082 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1083 echo $ac_n "(cached) $ac_c" 1>&6
1085 if test -n "$CC"; then
1086 ac_cv_prog_CC
="$CC" # Let the user override the test.
1088 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1090 for ac_dir
in $ac_dummy; do
1091 test -z "$ac_dir" && ac_dir
=.
1092 if test -f $ac_dir/$ac_word; then
1101 if test -n "$CC"; then
1102 echo "$ac_t""$CC" 1>&6
1104 echo "$ac_t""no" 1>&6
1107 if test -z "$CC"; then
1108 # Extract the first word of "cc", so it can be a program name with args.
1109 set dummy cc
; ac_word
=$2
1110 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1111 echo "configure:1112: checking for $ac_word" >&5
1112 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1115 if test -n "$CC"; then
1116 ac_cv_prog_CC
="$CC" # Let the user override the test.
1118 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1121 for ac_dir
in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir
=.
1123 if test -f $ac_dir/$ac_word; then
1124 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1125 ac_prog_rejected
=yes
1133 if test $ac_prog_rejected = yes; then
1134 # We found a bogon in the path, so make sure we never use it.
1135 set dummy
$ac_cv_prog_CC
1137 if test $# -gt 0; then
1138 # We chose a different compiler from the bogus one.
1139 # However, it has the same basename, so the bogon will be chosen
1140 # first if we set CC to just the basename; use the full file name.
1142 set dummy
"$ac_dir/$ac_word" "$@"
1150 if test -n "$CC"; then
1151 echo "$ac_t""$CC" 1>&6
1153 echo "$ac_t""no" 1>&6
1156 if test -z "$CC"; then
1157 case "`uname -s`" in
1159 # Extract the first word of "cl", so it can be a program name with args.
1160 set dummy cl
; ac_word
=$2
1161 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1162 echo "configure:1163: checking for $ac_word" >&5
1163 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1164 echo $ac_n "(cached) $ac_c" 1>&6
1166 if test -n "$CC"; then
1167 ac_cv_prog_CC
="$CC" # Let the user override the test.
1169 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1171 for ac_dir
in $ac_dummy; do
1172 test -z "$ac_dir" && ac_dir
=.
1173 if test -f $ac_dir/$ac_word; then
1182 if test -n "$CC"; then
1183 echo "$ac_t""$CC" 1>&6
1185 echo "$ac_t""no" 1>&6
1190 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1193 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1194 echo "configure:1195: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1197 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1198 ac_cpp
='$CPP $CPPFLAGS'
1199 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1200 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1201 cross_compiling
=$ac_cv_prog_cc_cross
1203 cat > conftest.
$ac_ext << EOF
1205 #line 1206 "configure"
1206 #include "confdefs.h"
1210 if { (eval echo configure
:1211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1211 ac_cv_prog_cc_works
=yes
1212 # If we can't run a trivial program, we are probably using a cross compiler.
1213 if (.
/conftest
; exit) 2>/dev
/null
; then
1214 ac_cv_prog_cc_cross
=no
1216 ac_cv_prog_cc_cross
=yes
1219 echo "configure: failed program was:" >&5
1220 cat conftest.
$ac_ext >&5
1221 ac_cv_prog_cc_works
=no
1225 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1226 ac_cpp
='$CPP $CPPFLAGS'
1227 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1228 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1229 cross_compiling
=$ac_cv_prog_cc_cross
1231 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1232 if test $ac_cv_prog_cc_works = no
; then
1233 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1235 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1236 echo "configure:1237: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1237 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1238 cross_compiling
=$ac_cv_prog_cc_cross
1240 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1241 echo "configure:1242: checking whether we are using GNU C" >&5
1242 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1245 cat > conftest.c
<<EOF
1250 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1257 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1259 if test $ac_cv_prog_gcc = yes; then
1265 ac_test_CFLAGS
="${CFLAGS+set}"
1266 ac_save_CFLAGS
="$CFLAGS"
1268 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1269 echo "configure:1270: checking whether ${CC-cc} accepts -g" >&5
1270 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1273 echo 'void f(){}' > conftest.c
1274 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1283 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1284 if test "$ac_test_CFLAGS" = set; then
1285 CFLAGS
="$ac_save_CFLAGS"
1286 elif test $ac_cv_prog_cc_g = yes; then
1287 if test "$GCC" = yes; then
1293 if test "$GCC" = yes; then
1300 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1301 echo "configure:1302: checking how to run the C preprocessor" >&5
1302 # On Suns, sometimes $CPP names a directory.
1303 if test -n "$CPP" && test -d "$CPP"; then
1306 if test -z "$CPP"; then
1307 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1308 echo $ac_n "(cached) $ac_c" 1>&6
1310 # This must be in double quotes, not single quotes, because CPP may get
1311 # substituted into the Makefile and "${CC-cc}" will confuse make.
1313 # On the NeXT, cc -E runs the code through the compiler's parser,
1314 # not just through cpp.
1315 cat > conftest.
$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1321 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1322 { (eval echo configure
:1323: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1323 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1324 if test -z "$ac_err"; then
1328 echo "configure: failed program was:" >&5
1329 cat conftest.
$ac_ext >&5
1331 CPP
="${CC-cc} -E -traditional-cpp"
1332 cat > conftest.
$ac_ext <<EOF
1333 #line 1334 "configure"
1334 #include "confdefs.h"
1338 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1339 { (eval echo configure
:1340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1340 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1341 if test -z "$ac_err"; then
1345 echo "configure: failed program was:" >&5
1346 cat conftest.
$ac_ext >&5
1348 CPP
="${CC-cc} -nologo -E"
1349 cat > conftest.
$ac_ext <<EOF
1350 #line 1351 "configure"
1351 #include "confdefs.h"
1355 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1356 { (eval echo configure
:1357: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1357 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1358 if test -z "$ac_err"; then
1362 echo "configure: failed program was:" >&5
1363 cat conftest.
$ac_ext >&5
1372 ac_cv_prog_CPP
="$CPP"
1374 CPP
="$ac_cv_prog_CPP"
1376 ac_cv_prog_CPP
="$CPP"
1378 echo "$ac_t""$CPP" 1>&6
1380 # Find a good install program. We prefer a C program (faster),
1381 # so one script is as good as another. But avoid the broken or
1382 # incompatible versions:
1383 # SysV /etc/install, /usr/sbin/install
1384 # SunOS /usr/etc/install
1385 # IRIX /sbin/install
1387 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1388 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1389 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1390 # ./install, which can be erroneously created by make from ./install.sh.
1391 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1392 echo "configure:1393: checking for a BSD compatible install" >&5
1393 if test -z "$INSTALL"; then
1394 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1395 echo $ac_n "(cached) $ac_c" 1>&6
1397 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1398 for ac_dir
in $PATH; do
1399 # Account for people who put trailing slashes in PATH elements.
1401 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1403 # OSF1 and SCO ODT 3.0 have their own names for install.
1404 # Don't use installbsd from OSF since it installs stuff as root
1406 for ac_prog
in ginstall scoinst
install; do
1407 if test -f $ac_dir/$ac_prog; then
1408 if test $ac_prog = install &&
1409 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1410 # AIX install. It has an incompatible calling convention.
1413 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1424 if test "${ac_cv_path_install+set}" = set; then
1425 INSTALL
="$ac_cv_path_install"
1427 # As a last resort, use the slow shell script. We don't cache a
1428 # path for INSTALL within a source directory, because that will
1429 # break other packages using the cache if that directory is
1430 # removed, or if the path is relative.
1431 INSTALL
="$ac_install_sh"
1434 echo "$ac_t""$INSTALL" 1>&6
1436 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1437 # It thinks the first close brace ends the variable substitution.
1438 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1440 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1442 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1444 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1445 echo "configure:1446: checking whether ln -s works" >&5
1446 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1450 if ln -s X conftestdata
2>/dev
/null
1453 ac_cv_prog_LN_S
="ln -s"
1458 LN_S
="$ac_cv_prog_LN_S"
1459 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1460 echo "$ac_t""yes" 1>&6
1462 echo "$ac_t""no" 1>&6
1465 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1466 echo "configure:1467: checking whether ${MAKE-make} sets \${MAKE}" >&5
1467 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1468 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1469 echo $ac_n "(cached) $ac_c" 1>&6
1471 cat > conftestmake
<<\EOF
1473 @
echo 'ac_maketemp="${MAKE}"'
1475 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1476 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1477 if test -n "$ac_maketemp"; then
1478 eval ac_cv_prog_make_
${ac_make}_set
=yes
1480 eval ac_cv_prog_make_
${ac_make}_set
=no
1484 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1485 echo "$ac_t""yes" 1>&6
1488 echo "$ac_t""no" 1>&6
1489 SET_MAKE
="MAKE=${MAKE-make}"
1492 # Extract the first word of "ranlib", so it can be a program name with args.
1493 set dummy ranlib
; ac_word
=$2
1494 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1495 echo "configure:1496: checking for $ac_word" >&5
1496 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1497 echo $ac_n "(cached) $ac_c" 1>&6
1499 if test -n "$RANLIB"; then
1500 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1502 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1504 for ac_dir
in $ac_dummy; do
1505 test -z "$ac_dir" && ac_dir
=.
1506 if test -f $ac_dir/$ac_word; then
1507 ac_cv_prog_RANLIB
="ranlib"
1512 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1515 RANLIB
="$ac_cv_prog_RANLIB"
1516 if test -n "$RANLIB"; then
1517 echo "$ac_t""$RANLIB" 1>&6
1519 echo "$ac_t""no" 1>&6
1524 for ac_prog
in $PERL perl5 perl
1526 # Extract the first word of "$ac_prog", so it can be a program name with args.
1527 set dummy
$ac_prog; ac_word
=$2
1528 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1529 echo "configure:1530: checking for $ac_word" >&5
1530 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
1531 echo $ac_n "(cached) $ac_c" 1>&6
1535 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
1538 ac_cv_path_PERL
="$PERL" # Let the user override the test with a dos path.
1541 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1543 for ac_dir
in $ac_dummy; do
1544 test -z "$ac_dir" && ac_dir
=.
1545 if test -f $ac_dir/$ac_word; then
1546 ac_cv_path_PERL
="$ac_dir/$ac_word"
1554 PERL
="$ac_cv_path_PERL"
1555 if test -n "$PERL"; then
1556 echo "$ac_t""$PERL" 1>&6
1558 echo "$ac_t""no" 1>&6
1561 test -n "$PERL" && break
1564 if test -z "$PERL" ||
test "$PERL" = ":"; then
1565 { echo "configure: error: perl not found in \$PATH" 1>&2; exit 1; }
1568 echo $ac_n "checking for minimum required perl version >= $PERL_VERSION""... $ac_c" 1>&6
1569 echo "configure:1570: checking for minimum required perl version >= $PERL_VERSION" >&5
1570 _perl_version
=`PERL_VERSION=$PERL_VERSION $PERL -e 'print "$]"; if ($] >= $ENV{PERL_VERSION}) { exit(0); } else { exit(1); }' 2>&5`
1572 echo "$ac_t""$_perl_version" 1>&6
1574 if test "$_perl_res" != 0; then
1575 { echo "configure: error: Perl $PERL_VERSION or higher is required." 1>&2; exit 1; }
1578 echo $ac_n "checking for full perl installation""... $ac_c" 1>&6
1579 echo "configure:1580: checking for full perl installation" >&5
1580 _perl_archlib
=`$PERL -e 'use Config; if ( -d $Config{archlib} ) { exit(0); } else { exit(1); }' 2>&5`
1582 if test "$_perl_res" != 0; then
1583 echo "$ac_t""no" 1>&6
1584 { echo "configure: error: Cannot find Config.pm or \$Config{archlib}. A full perl installation is required." 1>&2; exit 1; }
1586 echo "$ac_t""yes" 1>&6
1590 # Checks for header files.
1591 # If we find X, set shell vars x_includes and x_libraries to the
1592 # paths, otherwise set no_x=yes.
1593 # Uses ac_ vars as temps to allow command line to override cache and checks.
1594 # --without-x overrides everything else, but does not touch the cache.
1595 echo $ac_n "checking for X""... $ac_c" 1>&6
1596 echo "configure:1597: checking for X" >&5
1598 # Check whether --with-x or --without-x was given.
1599 if test "${with_x+set}" = set; then
1604 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1605 if test "x$with_x" = xno
; then
1606 # The user explicitly disabled X.
1609 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1610 # Both variables are already set.
1613 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1614 echo $ac_n "(cached) $ac_c" 1>&6
1616 # One or both of the vars are not set, and there is no cached value.
1617 ac_x_includes
=NO ac_x_libraries
=NO
1619 if mkdir conftestdir
; then
1621 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1622 cat > Imakefile
<<'EOF'
1624 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1626 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1627 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1628 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1629 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1630 for ac_extension
in a so sl
; do
1631 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1632 test -f $ac_im_libdir/libX11.
$ac_extension; then
1633 ac_im_usrlibdir
=$ac_im_libdir; break
1636 # Screen out bogus values from the imake configuration. They are
1637 # bogus both because they are the default anyway, and because
1638 # using them would break gcc on systems where it needs fixed includes.
1639 case "$ac_im_incroot" in
1641 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1643 case "$ac_im_usrlibdir" in
1645 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1652 if test "$ac_x_includes" = NO
; then
1653 # Guess where to find include files, by looking for this one X11 .h file.
1654 test -z "$x_direct_test_include" && x_direct_test_include
=X11
/Intrinsic.h
1656 # First, try using that file with no special directory specified.
1657 cat > conftest.
$ac_ext <<EOF
1658 #line 1659 "configure"
1659 #include "confdefs.h"
1660 #include <$x_direct_test_include>
1662 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1663 { (eval echo configure
:1664: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1664 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1665 if test -z "$ac_err"; then
1667 # We can compile using X headers with no special include directory.
1671 echo "configure: failed program was:" >&5
1672 cat conftest.
$ac_ext >&5
1674 # Look for the header file in a standard set of common directories.
1675 # Check X11 before X11Rn because it is often a symlink to the current release.
1678 /usr
/X11R
6/include \
1679 /usr
/X11R
5/include \
1680 /usr
/X11R
4/include \
1683 /usr
/include
/X11R6 \
1684 /usr
/include
/X11R5 \
1685 /usr
/include
/X11R4 \
1687 /usr
/local
/X11
/include \
1688 /usr
/local
/X11R
6/include \
1689 /usr
/local
/X11R
5/include \
1690 /usr
/local
/X11R
4/include \
1692 /usr
/local
/include
/X11 \
1693 /usr
/local
/include
/X11R6 \
1694 /usr
/local
/include
/X11R5 \
1695 /usr
/local
/include
/X11R4 \
1699 /usr
/XFree86
/include
/X11 \
1702 /usr
/local
/include \
1703 /usr
/unsupported
/include \
1704 /usr
/athena
/include \
1705 /usr
/local
/x11r
5/include \
1706 /usr
/lpp
/Xamples
/include \
1708 /usr
/openwin
/include \
1709 /usr
/openwin
/share
/include \
1712 if test -r "$ac_dir/$x_direct_test_include"; then
1713 ac_x_includes
=$ac_dir
1719 fi # $ac_x_includes = NO
1721 if test "$ac_x_libraries" = NO
; then
1722 # Check for the libraries.
1724 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1725 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1727 # See if we find them without any special options.
1728 # Don't add to $LIBS permanently.
1729 ac_save_LIBS
="$LIBS"
1730 LIBS
="-l$x_direct_test_library $LIBS"
1731 cat > conftest.
$ac_ext <<EOF
1732 #line 1733 "configure"
1733 #include "confdefs.h"
1736 ${x_direct_test_function}()
1739 if { (eval echo configure
:1740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1741 LIBS
="$ac_save_LIBS"
1742 # We can link X programs with no special library path.
1745 echo "configure: failed program was:" >&5
1746 cat conftest.
$ac_ext >&5
1748 LIBS
="$ac_save_LIBS"
1749 # First see if replacing the include by lib works.
1750 # Check X11 before X11Rn because it is often a symlink to the current release.
1751 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1762 /usr
/local
/X11
/lib \
1763 /usr
/local
/X11R
6/lib \
1764 /usr
/local
/X11R
5/lib \
1765 /usr
/local
/X11R
4/lib \
1767 /usr
/local
/lib
/X11 \
1768 /usr
/local
/lib
/X11R6 \
1769 /usr
/local
/lib
/X11R5 \
1770 /usr
/local
/lib
/X11R4 \
1774 /usr
/XFree86
/lib
/X11 \
1778 /usr
/unsupported
/lib \
1780 /usr
/local
/x11r
5/lib \
1781 /usr
/lpp
/Xamples
/lib \
1785 /usr
/openwin
/share
/lib \
1788 for ac_extension
in a so sl
; do
1789 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1790 ac_x_libraries
=$ac_dir
1797 fi # $ac_x_libraries = NO
1799 if test "$ac_x_includes" = NO ||
test "$ac_x_libraries" = NO
; then
1800 # Didn't find X anywhere. Cache the known absence of X.
1801 ac_cv_have_x
="have_x=no"
1803 # Record where we found X for the cache.
1804 ac_cv_have_x
="have_x=yes \
1805 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1809 eval "$ac_cv_have_x"
1812 if test "$have_x" != yes; then
1813 echo "$ac_t""$have_x" 1>&6
1816 # If each of the values was on the command line, it overrides each guess.
1817 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1818 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1819 # Update the cache value to reflect the command line values.
1820 ac_cv_have_x
="have_x=yes \
1821 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1822 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1825 if test "$no_x" = yes; then
1826 # Not all programs may use this symbol, but it does not hurt to define it.
1827 cat >> confdefs.h
<<\EOF
1828 #define X_DISPLAY_MISSING 1
1831 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1833 if test -n "$x_includes"; then
1834 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1837 # It would also be nice to do this for all -L options, not just this one.
1838 if test -n "$x_libraries"; then
1839 X_LIBS
="$X_LIBS -L$x_libraries"
1840 # For Solaris; some versions of Sun CC require a space after -R and
1841 # others require no space. Words are not sufficient . . . .
1842 case "`(uname -sr) 2>/dev/null`" in
1844 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1845 echo "configure:1846: checking whether -R must be followed by a space" >&5
1846 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1847 cat > conftest.
$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1855 if { (eval echo configure
:1856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1859 echo "configure: failed program was:" >&5
1860 cat conftest.
$ac_ext >&5
1865 if test $ac_R_nospace = yes; then
1866 echo "$ac_t""no" 1>&6
1867 X_LIBS
="$X_LIBS -R$x_libraries"
1869 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1870 cat > conftest.
$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1878 if { (eval echo configure
:1879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1882 echo "configure: failed program was:" >&5
1883 cat conftest.
$ac_ext >&5
1888 if test $ac_R_space = yes; then
1889 echo "$ac_t""yes" 1>&6
1890 X_LIBS
="$X_LIBS -R $x_libraries"
1892 echo "$ac_t""neither works" 1>&6
1895 LIBS
="$ac_xsave_LIBS"
1899 # Check for system-dependent libraries X programs must link with.
1900 # Do this before checking for the system-independent R6 libraries
1901 # (-lICE), since we may need -lsocket or whatever for X linking.
1903 if test "$ISC" = yes; then
1904 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1906 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1907 # libraries were built with DECnet support. And karl@cs.umb.edu says
1908 # the Alpha needs dnet_stub (dnet does not exist).
1909 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1910 echo "configure:1911: checking for dnet_ntoa in -ldnet" >&5
1911 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1915 ac_save_LIBS
="$LIBS"
1917 cat > conftest.
$ac_ext <<EOF
1918 #line 1919 "configure"
1919 #include "confdefs.h"
1920 /* Override any gcc2 internal prototype to avoid an error. */
1921 /* We use char because int might match the return type of a gcc2
1922 builtin and then its argument prototype would still apply. */
1929 if { (eval echo configure
:1930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1931 eval "ac_cv_lib_$ac_lib_var=yes"
1933 echo "configure: failed program was:" >&5
1934 cat conftest.
$ac_ext >&5
1936 eval "ac_cv_lib_$ac_lib_var=no"
1939 LIBS
="$ac_save_LIBS"
1942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1943 echo "$ac_t""yes" 1>&6
1944 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1946 echo "$ac_t""no" 1>&6
1949 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1950 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1951 echo "configure:1952: checking for dnet_ntoa in -ldnet_stub" >&5
1952 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1953 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1954 echo $ac_n "(cached) $ac_c" 1>&6
1956 ac_save_LIBS
="$LIBS"
1957 LIBS
="-ldnet_stub $LIBS"
1958 cat > conftest.
$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1961 /* Override any gcc2 internal prototype to avoid an error. */
1962 /* We use char because int might match the return type of a gcc2
1963 builtin and then its argument prototype would still apply. */
1970 if { (eval echo configure
:1971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1972 eval "ac_cv_lib_$ac_lib_var=yes"
1974 echo "configure: failed program was:" >&5
1975 cat conftest.
$ac_ext >&5
1977 eval "ac_cv_lib_$ac_lib_var=no"
1980 LIBS
="$ac_save_LIBS"
1983 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1984 echo "$ac_t""yes" 1>&6
1985 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1987 echo "$ac_t""no" 1>&6
1992 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1993 # to get the SysV transport functions.
1994 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1996 # The nsl library prevents programs from opening the X display
1997 # on Irix 5.2, according to dickey@clark.net.
1998 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1999 echo "configure:2000: checking for gethostbyname" >&5
2000 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2003 cat > conftest.
$ac_ext <<EOF
2004 #line 2005 "configure"
2005 #include "confdefs.h"
2006 /* System header to define __stub macros and hopefully few prototypes,
2007 which can conflict with char gethostbyname(); below. */
2009 /* Override any gcc2 internal prototype to avoid an error. */
2010 /* We use char because int might match the return type of a gcc2
2011 builtin and then its argument prototype would still apply. */
2012 char gethostbyname();
2016 /* The GNU C library defines this for functions which it implements
2017 to always fail with ENOSYS. Some functions are actually named
2018 something starting with __ and the normal name is an alias. */
2019 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2027 if { (eval echo configure
:2028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2029 eval "ac_cv_func_gethostbyname=yes"
2031 echo "configure: failed program was:" >&5
2032 cat conftest.
$ac_ext >&5
2034 eval "ac_cv_func_gethostbyname=no"
2039 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2040 echo "$ac_t""yes" 1>&6
2043 echo "$ac_t""no" 1>&6
2046 if test $ac_cv_func_gethostbyname = no
; then
2047 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2048 echo "configure:2049: checking for gethostbyname in -lnsl" >&5
2049 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2050 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2051 echo $ac_n "(cached) $ac_c" 1>&6
2053 ac_save_LIBS
="$LIBS"
2055 cat > conftest.
$ac_ext <<EOF
2056 #line 2057 "configure"
2057 #include "confdefs.h"
2058 /* Override any gcc2 internal prototype to avoid an error. */
2059 /* We use char because int might match the return type of a gcc2
2060 builtin and then its argument prototype would still apply. */
2061 char gethostbyname();
2067 if { (eval echo configure
:2068: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2069 eval "ac_cv_lib_$ac_lib_var=yes"
2071 echo "configure: failed program was:" >&5
2072 cat conftest.
$ac_ext >&5
2074 eval "ac_cv_lib_$ac_lib_var=no"
2077 LIBS
="$ac_save_LIBS"
2080 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2081 echo "$ac_t""yes" 1>&6
2082 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2084 echo "$ac_t""no" 1>&6
2089 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2090 # socket/setsockopt and other routines are undefined under SCO ODT
2091 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2092 # on later versions), says simon@lia.di.epfl.ch: it contains
2093 # gethostby* variants that don't use the nameserver (or something).
2094 # -lsocket must be given before -lnsl if both are needed.
2095 # We assume that if connect needs -lnsl, so does gethostbyname.
2096 echo $ac_n "checking for connect""... $ac_c" 1>&6
2097 echo "configure:2098: checking for connect" >&5
2098 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2101 cat > conftest.
$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2104 /* System header to define __stub macros and hopefully few prototypes,
2105 which can conflict with char connect(); below. */
2107 /* Override any gcc2 internal prototype to avoid an error. */
2108 /* We use char because int might match the return type of a gcc2
2109 builtin and then its argument prototype would still apply. */
2114 /* The GNU C library defines this for functions which it implements
2115 to always fail with ENOSYS. Some functions are actually named
2116 something starting with __ and the normal name is an alias. */
2117 #if defined (__stub_connect) || defined (__stub___connect)
2125 if { (eval echo configure
:2126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2127 eval "ac_cv_func_connect=yes"
2129 echo "configure: failed program was:" >&5
2130 cat conftest.
$ac_ext >&5
2132 eval "ac_cv_func_connect=no"
2137 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2138 echo "$ac_t""yes" 1>&6
2141 echo "$ac_t""no" 1>&6
2144 if test $ac_cv_func_connect = no
; then
2145 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2146 echo "configure:2147: checking for connect in -lsocket" >&5
2147 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2151 ac_save_LIBS
="$LIBS"
2152 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
2153 cat > conftest.
$ac_ext <<EOF
2154 #line 2155 "configure"
2155 #include "confdefs.h"
2156 /* Override any gcc2 internal prototype to avoid an error. */
2157 /* We use char because int might match the return type of a gcc2
2158 builtin and then its argument prototype would still apply. */
2165 if { (eval echo configure
:2166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2167 eval "ac_cv_lib_$ac_lib_var=yes"
2169 echo "configure: failed program was:" >&5
2170 cat conftest.
$ac_ext >&5
2172 eval "ac_cv_lib_$ac_lib_var=no"
2175 LIBS
="$ac_save_LIBS"
2178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2179 echo "$ac_t""yes" 1>&6
2180 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
2182 echo "$ac_t""no" 1>&6
2187 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2188 echo $ac_n "checking for remove""... $ac_c" 1>&6
2189 echo "configure:2190: checking for remove" >&5
2190 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2191 echo $ac_n "(cached) $ac_c" 1>&6
2193 cat > conftest.
$ac_ext <<EOF
2194 #line 2195 "configure"
2195 #include "confdefs.h"
2196 /* System header to define __stub macros and hopefully few prototypes,
2197 which can conflict with char remove(); below. */
2199 /* Override any gcc2 internal prototype to avoid an error. */
2200 /* We use char because int might match the return type of a gcc2
2201 builtin and then its argument prototype would still apply. */
2206 /* The GNU C library defines this for functions which it implements
2207 to always fail with ENOSYS. Some functions are actually named
2208 something starting with __ and the normal name is an alias. */
2209 #if defined (__stub_remove) || defined (__stub___remove)
2217 if { (eval echo configure
:2218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2219 eval "ac_cv_func_remove=yes"
2221 echo "configure: failed program was:" >&5
2222 cat conftest.
$ac_ext >&5
2224 eval "ac_cv_func_remove=no"
2229 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2230 echo "$ac_t""yes" 1>&6
2233 echo "$ac_t""no" 1>&6
2236 if test $ac_cv_func_remove = no
; then
2237 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2238 echo "configure:2239: checking for remove in -lposix" >&5
2239 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 ac_save_LIBS
="$LIBS"
2244 LIBS
="-lposix $LIBS"
2245 cat > conftest.
$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2248 /* Override any gcc2 internal prototype to avoid an error. */
2249 /* We use char because int might match the return type of a gcc2
2250 builtin and then its argument prototype would still apply. */
2257 if { (eval echo configure
:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2259 eval "ac_cv_lib_$ac_lib_var=yes"
2261 echo "configure: failed program was:" >&5
2262 cat conftest.
$ac_ext >&5
2264 eval "ac_cv_lib_$ac_lib_var=no"
2267 LIBS
="$ac_save_LIBS"
2270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2271 echo "$ac_t""yes" 1>&6
2272 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2274 echo "$ac_t""no" 1>&6
2279 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2280 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2281 echo "configure:2282: checking for shmat" >&5
2282 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2285 cat > conftest.
$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2288 /* System header to define __stub macros and hopefully few prototypes,
2289 which can conflict with char shmat(); below. */
2291 /* Override any gcc2 internal prototype to avoid an error. */
2292 /* We use char because int might match the return type of a gcc2
2293 builtin and then its argument prototype would still apply. */
2298 /* The GNU C library defines this for functions which it implements
2299 to always fail with ENOSYS. Some functions are actually named
2300 something starting with __ and the normal name is an alias. */
2301 #if defined (__stub_shmat) || defined (__stub___shmat)
2309 if { (eval echo configure
:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2311 eval "ac_cv_func_shmat=yes"
2313 echo "configure: failed program was:" >&5
2314 cat conftest.
$ac_ext >&5
2316 eval "ac_cv_func_shmat=no"
2321 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2322 echo "$ac_t""yes" 1>&6
2325 echo "$ac_t""no" 1>&6
2328 if test $ac_cv_func_shmat = no
; then
2329 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2330 echo "configure:2331: checking for shmat in -lipc" >&5
2331 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2335 ac_save_LIBS
="$LIBS"
2337 cat > conftest.
$ac_ext <<EOF
2338 #line 2339 "configure"
2339 #include "confdefs.h"
2340 /* Override any gcc2 internal prototype to avoid an error. */
2341 /* We use char because int might match the return type of a gcc2
2342 builtin and then its argument prototype would still apply. */
2349 if { (eval echo configure
:2350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2351 eval "ac_cv_lib_$ac_lib_var=yes"
2353 echo "configure: failed program was:" >&5
2354 cat conftest.
$ac_ext >&5
2356 eval "ac_cv_lib_$ac_lib_var=no"
2359 LIBS
="$ac_save_LIBS"
2362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2363 echo "$ac_t""yes" 1>&6
2364 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2366 echo "$ac_t""no" 1>&6
2372 # Check for libraries that X11R6 Xt/Xaw programs need.
2373 ac_save_LDFLAGS
="$LDFLAGS"
2374 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2375 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2376 # check for ICE first), but we must link in the order -lSM -lICE or
2377 # we get undefined symbols. So assume we have SM if we have ICE.
2378 # These have to be linked with before -lX11, unlike the other
2379 # libraries we check for below, so use a different variable.
2380 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2381 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2382 echo "configure:2383: checking for IceConnectionNumber in -lICE" >&5
2383 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2384 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2387 ac_save_LIBS
="$LIBS"
2388 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
2389 cat > conftest.
$ac_ext <<EOF
2390 #line 2391 "configure"
2391 #include "confdefs.h"
2392 /* Override any gcc2 internal prototype to avoid an error. */
2393 /* We use char because int might match the return type of a gcc2
2394 builtin and then its argument prototype would still apply. */
2395 char IceConnectionNumber();
2398 IceConnectionNumber()
2401 if { (eval echo configure
:2402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2403 eval "ac_cv_lib_$ac_lib_var=yes"
2405 echo "configure: failed program was:" >&5
2406 cat conftest.
$ac_ext >&5
2408 eval "ac_cv_lib_$ac_lib_var=no"
2411 LIBS
="$ac_save_LIBS"
2414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2415 echo "$ac_t""yes" 1>&6
2416 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2418 echo "$ac_t""no" 1>&6
2421 LDFLAGS
="$ac_save_LDFLAGS"
2425 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2426 echo "configure:2427: checking for ANSI C header files" >&5
2427 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2428 echo $ac_n "(cached) $ac_c" 1>&6
2430 cat > conftest.
$ac_ext <<EOF
2431 #line 2432 "configure"
2432 #include "confdefs.h"
2438 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2439 { (eval echo configure
:2440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2440 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2441 if test -z "$ac_err"; then
2443 ac_cv_header_stdc
=yes
2446 echo "configure: failed program was:" >&5
2447 cat conftest.
$ac_ext >&5
2449 ac_cv_header_stdc
=no
2453 if test $ac_cv_header_stdc = yes; then
2454 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2455 cat > conftest.
$ac_ext <<EOF
2456 #line 2457 "configure"
2457 #include "confdefs.h"
2460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2461 egrep "memchr" >/dev
/null
2>&1; then
2465 ac_cv_header_stdc
=no
2471 if test $ac_cv_header_stdc = yes; then
2472 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2473 cat > conftest.
$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2479 egrep "free" >/dev
/null
2>&1; then
2483 ac_cv_header_stdc
=no
2489 if test $ac_cv_header_stdc = yes; then
2490 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2491 if test "$cross_compiling" = yes; then
2494 cat > conftest.
$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2498 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2499 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2501 int main () { int i; for (i = 0; i < 256; i++)
2502 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2506 if { (eval echo configure
:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2510 echo "configure: failed program was:" >&5
2511 cat conftest.
$ac_ext >&5
2513 ac_cv_header_stdc
=no
2521 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2522 if test $ac_cv_header_stdc = yes; then
2523 cat >> confdefs.h
<<\EOF
2524 #define STDC_HEADERS 1
2529 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2530 echo "configure:2531: checking for sys/wait.h that is POSIX.1 compatible" >&5
2531 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2534 cat > conftest.
$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2537 #include <sys/types.h>
2538 #include <sys/wait.h>
2540 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2543 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2548 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2551 if { (eval echo configure
:2552: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2553 ac_cv_header_sys_wait_h
=yes
2555 echo "configure: failed program was:" >&5
2556 cat conftest.
$ac_ext >&5
2558 ac_cv_header_sys_wait_h
=no
2563 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2564 if test $ac_cv_header_sys_wait_h = yes; then
2565 cat >> confdefs.h
<<\EOF
2566 #define HAVE_SYS_WAIT_H 1
2571 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
2573 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2574 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2575 echo "configure:2576: checking for $ac_hdr" >&5
2576 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2577 echo $ac_n "(cached) $ac_c" 1>&6
2579 cat > conftest.
$ac_ext <<EOF
2580 #line 2581 "configure"
2581 #include "confdefs.h"
2584 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2585 { (eval echo configure
:2586: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2586 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2587 if test -z "$ac_err"; then
2589 eval "ac_cv_header_$ac_safe=yes"
2592 echo "configure: failed program was:" >&5
2593 cat conftest.
$ac_ext >&5
2595 eval "ac_cv_header_$ac_safe=no"
2599 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2600 echo "$ac_t""yes" 1>&6
2601 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2602 cat >> confdefs.h
<<EOF
2603 #define $ac_tr_hdr 1
2607 echo "$ac_t""no" 1>&6
2612 # Checks for typedefs, structures, and compiler characteristics.
2613 echo $ac_n "checking for working const""... $ac_c" 1>&6
2614 echo "configure:2615: checking for working const" >&5
2615 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2618 cat > conftest.
$ac_ext <<EOF
2619 #line 2620 "configure"
2620 #include "confdefs.h"
2624 /* Ultrix mips cc rejects this. */
2625 typedef int charset[2]; const charset x;
2626 /* SunOS 4.1.1 cc rejects this. */
2627 char const *const *ccp;
2629 /* NEC SVR4.0.2 mips cc rejects this. */
2630 struct point {int x, y;};
2631 static struct point const zero = {0,0};
2632 /* AIX XL C 1.02.0.0 rejects this.
2633 It does not let you subtract one const X* pointer from another in an arm
2634 of an if-expression whose if-part is not a constant expression */
2635 const char *g = "string";
2636 ccp = &g + (g ? g-g : 0);
2637 /* HPUX 7.0 cc rejects these. */
2640 ccp = (char const *const *) p;
2641 { /* SCO 3.2v4 cc rejects this. */
2643 char const *s = 0 ? (char *) 0 : (char const *) 0;
2647 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2649 const int *foo = &x[0];
2652 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2653 typedef const int *iptr;
2657 { /* AIX XL C 1.02.0.0 rejects this saying
2658 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2659 struct s { int j; const int *ap[3]; };
2660 struct s *b; b->j = 5;
2662 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2668 if { (eval echo configure
:2669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2672 echo "configure: failed program was:" >&5
2673 cat conftest.
$ac_ext >&5
2680 echo "$ac_t""$ac_cv_c_const" 1>&6
2681 if test $ac_cv_c_const = no
; then
2682 cat >> confdefs.h
<<\EOF
2688 echo $ac_n "checking for inline""... $ac_c" 1>&6
2689 echo "configure:2690: checking for inline" >&5
2690 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2691 echo $ac_n "(cached) $ac_c" 1>&6
2694 for ac_kw
in inline __inline__ __inline
; do
2695 cat > conftest.
$ac_ext <<EOF
2696 #line 2697 "configure"
2697 #include "confdefs.h"
2703 if { (eval echo configure
:2704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2705 ac_cv_c_inline
=$ac_kw; break
2707 echo "configure: failed program was:" >&5
2708 cat conftest.
$ac_ext >&5
2715 echo "$ac_t""$ac_cv_c_inline" 1>&6
2716 case "$ac_cv_c_inline" in
2718 no
) cat >> confdefs.h
<<\EOF
2722 *) cat >> confdefs.h
<<EOF
2723 #define inline $ac_cv_c_inline
2728 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2729 echo "configure:2730: checking whether time.h and sys/time.h may both be included" >&5
2730 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2731 echo $ac_n "(cached) $ac_c" 1>&6
2733 cat > conftest.
$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2736 #include <sys/types.h>
2737 #include <sys/time.h>
2743 if { (eval echo configure
:2744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2745 ac_cv_header_time
=yes
2747 echo "configure: failed program was:" >&5
2748 cat conftest.
$ac_ext >&5
2750 ac_cv_header_time
=no
2755 echo "$ac_t""$ac_cv_header_time" 1>&6
2756 if test $ac_cv_header_time = yes; then
2757 cat >> confdefs.h
<<\EOF
2758 #define TIME_WITH_SYS_TIME 1
2763 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2764 echo "configure:2765: checking whether struct tm is in sys/time.h or time.h" >&5
2765 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2766 echo $ac_n "(cached) $ac_c" 1>&6
2768 cat > conftest.
$ac_ext <<EOF
2769 #line 2770 "configure"
2770 #include "confdefs.h"
2771 #include <sys/types.h>
2774 struct tm *tp; tp->tm_sec;
2777 if { (eval echo configure
:2778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2779 ac_cv_struct_tm
=time.h
2781 echo "configure: failed program was:" >&5
2782 cat conftest.
$ac_ext >&5
2784 ac_cv_struct_tm
=sys
/time.h
2789 echo "$ac_t""$ac_cv_struct_tm" 1>&6
2790 if test $ac_cv_struct_tm = sys
/time.h
; then
2791 cat >> confdefs.h
<<\EOF
2792 #define TM_IN_SYS_TIME 1
2798 # Checks for library functions.
2799 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2800 echo "configure:2801: checking return type of signal handlers" >&5
2801 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2802 echo $ac_n "(cached) $ac_c" 1>&6
2804 cat > conftest.
$ac_ext <<EOF
2805 #line 2806 "configure"
2806 #include "confdefs.h"
2807 #include <sys/types.h>
2813 extern "C" void (*signal (int, void (*)(int)))(int);
2815 void (*signal ()) ();
2822 if { (eval echo configure
:2823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2824 ac_cv_type_signal
=void
2826 echo "configure: failed program was:" >&5
2827 cat conftest.
$ac_ext >&5
2829 ac_cv_type_signal
=int
2834 echo "$ac_t""$ac_cv_type_signal" 1>&6
2835 cat >> confdefs.h
<<EOF
2836 #define RETSIGTYPE $ac_cv_type_signal
2840 for ac_func
in setlocale sigaction strftime gettimeofday memset strcasecmp strchr strcspn strdup strncasecmp
select strstr
2842 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2843 echo "configure:2844: checking for $ac_func" >&5
2844 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2847 cat > conftest.
$ac_ext <<EOF
2848 #line 2849 "configure"
2849 #include "confdefs.h"
2850 /* System header to define __stub macros and hopefully few prototypes,
2851 which can conflict with char $ac_func(); below. */
2853 /* Override any gcc2 internal prototype to avoid an error. */
2854 /* We use char because int might match the return type of a gcc2
2855 builtin and then its argument prototype would still apply. */
2860 /* The GNU C library defines this for functions which it implements
2861 to always fail with ENOSYS. Some functions are actually named
2862 something starting with __ and the normal name is an alias. */
2863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2871 if { (eval echo configure
:2872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2873 eval "ac_cv_func_$ac_func=yes"
2875 echo "configure: failed program was:" >&5
2876 cat conftest.
$ac_ext >&5
2878 eval "ac_cv_func_$ac_func=no"
2883 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2884 echo "$ac_t""yes" 1>&6
2885 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2886 cat >> confdefs.h
<<EOF
2887 #define $ac_tr_func 1
2891 echo "$ac_t""no" 1>&6
2897 CFLAGS
="$CFLAGS $X_CFLAGS"
2898 CXXFLAGS
="$CXXFLAGS $X_CFLAGS"
2899 LDFLAGS
="$LDFLAGS $X_LIBS $X_PRE_LIBS"
2900 echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
2901 echo "configure:2902: checking for XOpenDisplay in -lX11" >&5
2902 ac_lib_var
=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
2903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 ac_save_LIBS
="$LIBS"
2908 cat > conftest.
$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2911 /* Override any gcc2 internal prototype to avoid an error. */
2912 /* We use char because int might match the return type of a gcc2
2913 builtin and then its argument prototype would still apply. */
2914 char XOpenDisplay();
2920 if { (eval echo configure
:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2922 eval "ac_cv_lib_$ac_lib_var=yes"
2924 echo "configure: failed program was:" >&5
2925 cat conftest.
$ac_ext >&5
2927 eval "ac_cv_lib_$ac_lib_var=no"
2930 LIBS
="$ac_save_LIBS"
2933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2934 echo "$ac_t""yes" 1>&6
2935 LDFLAGS
="$LDFLAGS -lX11"
2937 echo "$ac_t""no" 1>&6
2938 { echo "configure: error: XOpenDisplay not found in -lX11" 1>&2; exit 1; }
2942 LDFLAGS
="$LDFLAGS $X_EXTRA_LIBS"
2949 cat > confcache
<<\EOF
2950 # This file is a shell script that caches the results of configure
2951 # tests run on this system so they can be shared between configure
2952 # scripts and configure runs. It is not useful on other systems.
2953 # If it contains results you don't want to keep, you may remove or edit it.
2955 # By default, configure uses ./config.cache as the cache file,
2956 # creating it if it does not exist already. You can give configure
2957 # the --cache-file=FILE option to use a different cache file; that is
2958 # what configure does when it calls configure scripts in
2959 # subdirectories, so they share the cache.
2960 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2961 # config.status only pays attention to the cache file if you give it the
2962 # --recheck option to rerun configure.
2965 # The following way of writing the cache mishandles newlines in values,
2966 # but we know of no workaround that is simple, portable, and efficient.
2967 # So, don't put newlines in cache variables' values.
2968 # Ultrix sh set writes to stderr and can't be redirected directly,
2969 # and sets the high bit in the cache file unless we assign to the vars.
2971 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2973 # `set' does not quote correctly, so add quotes (double-quote substitution
2974 # turns \\\\ into \\, and sed turns \\ into \).
2976 -e "s/'/'\\\\''/g" \
2977 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2980 # `set' quotes correctly as required by POSIX, so do not add quotes.
2981 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2984 if cmp -s $cache_file confcache
; then
2987 if test -w $cache_file; then
2988 echo "updating cache $cache_file"
2989 cat confcache
> $cache_file
2991 echo "not updating unwritable cache $cache_file"
2996 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2998 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2999 # Let make expand exec_prefix.
3000 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3002 # Any assignment to VPATH causes Sun make to only execute
3003 # the first set of double-colon rules, so remove it if not needed.
3004 # If there is a colon in the path, we need to keep it.
3005 if test "x$srcdir" = x.
; then
3006 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3009 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3011 DEFS
=-DHAVE_CONFIG_H
3013 # Without the "./", some shells look in PATH for config.status.
3014 : ${CONFIG_STATUS=./config.status}
3016 echo creating
$CONFIG_STATUS
3017 rm -f $CONFIG_STATUS
3018 cat > $CONFIG_STATUS <<EOF
3020 # Generated automatically by configure.
3021 # Run this file to recreate the current configuration.
3022 # This directory was configured as follows,
3023 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3025 # $0 $ac_configure_args
3027 # Compiler output produced by configure, useful for debugging
3028 # configure, is in ./config.log if it exists.
3030 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3033 case "\$ac_option" in
3034 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3035 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3036 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3037 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3038 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3040 -help | --help | --hel | --he | --h)
3041 echo "\$ac_cs_usage"; exit 0 ;;
3042 *) echo "\$ac_cs_usage"; exit 1 ;;
3046 ac_given_srcdir=$srcdir
3047 ac_given_INSTALL="$INSTALL"
3049 trap 'rm -fr `echo "\
3058 redhat/bbkeys.spec \
3059 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3061 cat >> $CONFIG_STATUS <<EOF
3063 # Protect against being on the right side of a sed subst in config.status.
3064 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3065 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3069 s%@CFLAGS@%$CFLAGS%g
3070 s%@CPPFLAGS@%$CPPFLAGS%g
3071 s%@CXXFLAGS@%$CXXFLAGS%g
3072 s%@FFLAGS@%$FFLAGS%g
3074 s%@LDFLAGS@%$LDFLAGS%g
3076 s%@exec_prefix@%$exec_prefix%g
3077 s%@prefix@%$prefix%g
3078 s%@program_transform_name@%$program_transform_name%g
3079 s%@bindir@%$bindir%g
3080 s%@sbindir@%$sbindir%g
3081 s%@libexecdir@%$libexecdir%g
3082 s%@datadir@%$datadir%g
3083 s%@sysconfdir@%$sysconfdir%g
3084 s%@sharedstatedir@%$sharedstatedir%g
3085 s%@localstatedir@%$localstatedir%g
3086 s%@libdir@%$libdir%g
3087 s%@includedir@%$includedir%g
3088 s%@oldincludedir@%$oldincludedir%g
3089 s%@infodir@%$infodir%g
3090 s%@mandir@%$mandir%g
3091 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3092 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3093 s%@INSTALL_DATA@%$INSTALL_DATA%g
3094 s%@PACKAGE@%$PACKAGE%g
3095 s%@VERSION@%$VERSION%g
3096 s%@ACLOCAL@%$ACLOCAL%g
3097 s%@AUTOCONF@%$AUTOCONF%g
3098 s%@AUTOMAKE@%$AUTOMAKE%g
3099 s%@AUTOHEADER@%$AUTOHEADER%g
3100 s%@MAKEINFO@%$MAKEINFO%g
3101 s%@SET_MAKE@%$SET_MAKE%g
3102 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3103 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3105 s%@regex_cmd@%$regex_cmd%g
3106 s%@INTERLACE@%$INTERLACE%g
3112 s%@RANLIB@%$RANLIB%g
3114 s%@X_CFLAGS@%$X_CFLAGS%g
3115 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3116 s%@X_LIBS@%$X_LIBS%g
3117 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3122 cat >> $CONFIG_STATUS <<\EOF
3124 # Split the substitutions into bite-sized pieces for seds with
3125 # small command number limits, like on Digital OSF/1 and HP-UX.
3126 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3127 ac_file
=1 # Number of current file.
3128 ac_beg
=1 # First line for current file.
3129 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3132 while $ac_more_lines; do
3133 if test $ac_beg -gt 1; then
3134 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3136 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3138 if test ! -s conftest.s
$ac_file; then
3140 rm -f conftest.s
$ac_file
3142 if test -z "$ac_sed_cmds"; then
3143 ac_sed_cmds
="sed -f conftest.s$ac_file"
3145 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3147 ac_file
=`expr $ac_file + 1`
3149 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3152 if test -z "$ac_sed_cmds"; then
3157 cat >> $CONFIG_STATUS <<EOF
3159 CONFIG_FILES=\${CONFIG_FILES-"\
3168 redhat/bbkeys.spec \
3171 cat >> $CONFIG_STATUS <<\EOF
3172 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3173 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3175 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3176 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3177 *) ac_file_in
="${ac_file}.in" ;;
3180 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3182 # Remove last slash and all that follows it. Not all systems have dirname.
3183 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3184 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3185 # The file is in a subdirectory.
3186 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3187 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3188 # A "../" for each directory in $ac_dir_suffix.
3189 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3191 ac_dir_suffix
= ac_dots
=
3194 case "$ac_given_srcdir" in
3196 if test -z "$ac_dots"; then top_srcdir
=.
3197 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3198 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3200 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3201 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3204 case "$ac_given_INSTALL" in
3205 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3206 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3209 echo creating
"$ac_file"
3211 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3213 *Makefile
*) ac_comsub
="1i\\
3214 # $configure_input" ;;
3218 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3220 s%@configure_input@%$configure_input%g
3221 s%@srcdir@%$srcdir%g
3222 s%@top_srcdir@%$top_srcdir%g
3223 s%@INSTALL@%$INSTALL%g
3224 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3228 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3229 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3231 # ac_d sets the value in "#define NAME VALUE" lines.
3232 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3233 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3236 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3237 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3238 ac_uB
='\([ ]\)%\1#\2define\3'
3241 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3242 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3243 ac_eB
='$%\1#\2define\3'
3247 if test "${CONFIG_HEADERS+set}" != set; then
3249 cat >> $CONFIG_STATUS <<EOF
3250 CONFIG_HEADERS="config.h"
3252 cat >> $CONFIG_STATUS <<\EOF
3254 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3255 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3257 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3258 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3259 *) ac_file_in
="${ac_file}.in" ;;
3262 echo creating
$ac_file
3264 rm -f conftest.frag conftest.
in conftest.out
3265 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3266 cat $ac_file_inputs > conftest.
in
3270 # Transform confdefs.h into a sed script conftest.vals that substitutes
3271 # the proper values into config.h.in to produce config.h. And first:
3272 # Protect against being on the right side of a sed subst in config.status.
3273 # Protect against being in an unquoted here document in config.status.
3275 cat > conftest.hdr
<<\EOF
3278 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3282 sed -n -f conftest.hdr confdefs.h > conftest.vals
3285 # This sed command replaces #undef with comments. This is necessary, for
3286 # example, in the case of _POSIX_SOURCE, which is predefined and required
3287 # on some systems where configure will not decide to define it.
3288 cat >> conftest.vals <<\EOF
3289 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3292 # Break up conftest.vals because some shells have a limit on
3293 # the size of here documents, and old seds have small limits too.
3298 ac_lines=`grep -c . conftest.vals
`
3299 # grep -c gives empty output for an empty file on some AIX systems.
3300 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3301 # Write a limited-size here document to conftest.frag.
3302 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3303 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3305 sed -f conftest.frag conftest.in > conftest.out
3307 mv conftest.out conftest.in
3309 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3311 mv conftest.tail conftest.vals
3315 cat >> $CONFIG_STATUS <<\EOF
3316 rm -f conftest.frag conftest.h
3317 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3318 cat conftest.in >> conftest.h
3320 if cmp -s $ac_file conftest.h 2>/dev/null; then
3321 echo "$ac_file is unchanged"
3324 # Remove last slash and all that follows it. Not all systems have dirname.
3325 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3326 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3327 # The file is in a subdirectory.
3328 test ! -d "$ac_dir" && mkdir "$ac_dir"
3331 mv conftest.h $ac_file
3336 cat >> $CONFIG_STATUS <<EOF
3340 cat >> $CONFIG_STATUS <<\EOF
3341 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3345 chmod +x $CONFIG_STATUS
3346 rm -fr confdefs* $ac_clean_files
3347 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1