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