original 1.0.1 release
[xwelltris.git] / configure
blob499651e228f062fd1c1a5228c1d599adb7100ae1
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
15 ac_help="$ac_help
16 --enable-debug Turn on debugging output"
17 ac_help="$ac_help
18 --with-sdl Turn on SDL support instead of X11"
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=src/main.cxx
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 if test -z "${CFLAGS}"; then
533 if test -z "${CCOPTS}"; then
534 CCOPTS='-O'
536 CFLAGS="$CCOPTS"
540 ac_aux_dir=
541 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
542 if test -f $ac_dir/install-sh; then
543 ac_aux_dir=$ac_dir
544 ac_install_sh="$ac_aux_dir/install-sh -c"
545 break
546 elif test -f $ac_dir/install.sh; then
547 ac_aux_dir=$ac_dir
548 ac_install_sh="$ac_aux_dir/install.sh -c"
549 break
551 done
552 if test -z "$ac_aux_dir"; then
553 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
555 ac_config_guess=$ac_aux_dir/config.guess
556 ac_config_sub=$ac_aux_dir/config.sub
557 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
560 # Make sure we can run config.sub.
561 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
562 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
565 echo $ac_n "checking host system type""... $ac_c" 1>&6
566 echo "configure:567: checking host system type" >&5
568 host_alias=$host
569 case "$host_alias" in
570 NONE)
571 case $nonopt in
572 NONE)
573 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
574 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
575 fi ;;
576 *) host_alias=$nonopt ;;
577 esac ;;
578 esac
580 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
581 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
582 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
583 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
584 echo "$ac_t""$host" 1>&6
586 ARCH=`echo $host | sed 's/\([^-]*\)-[^-]*-\([^-]*\)/\1-\2/'`
589 # Extract the first word of "gcc", so it can be a program name with args.
590 set dummy gcc; ac_word=$2
591 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
592 echo "configure:593: checking for $ac_word" >&5
593 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
594 echo $ac_n "(cached) $ac_c" 1>&6
595 else
596 if test -n "$CC"; then
597 ac_cv_prog_CC="$CC" # Let the user override the test.
598 else
599 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
600 ac_dummy="$PATH"
601 for ac_dir in $ac_dummy; do
602 test -z "$ac_dir" && ac_dir=.
603 if test -f $ac_dir/$ac_word; then
604 ac_cv_prog_CC="gcc"
605 break
607 done
608 IFS="$ac_save_ifs"
611 CC="$ac_cv_prog_CC"
612 if test -n "$CC"; then
613 echo "$ac_t""$CC" 1>&6
614 else
615 echo "$ac_t""no" 1>&6
618 if test -z "$CC"; then
619 # Extract the first word of "cc", so it can be a program name with args.
620 set dummy cc; ac_word=$2
621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
622 echo "configure:623: checking for $ac_word" >&5
623 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
624 echo $ac_n "(cached) $ac_c" 1>&6
625 else
626 if test -n "$CC"; then
627 ac_cv_prog_CC="$CC" # Let the user override the test.
628 else
629 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
630 ac_prog_rejected=no
631 ac_dummy="$PATH"
632 for ac_dir in $ac_dummy; do
633 test -z "$ac_dir" && ac_dir=.
634 if test -f $ac_dir/$ac_word; then
635 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
636 ac_prog_rejected=yes
637 continue
639 ac_cv_prog_CC="cc"
640 break
642 done
643 IFS="$ac_save_ifs"
644 if test $ac_prog_rejected = yes; then
645 # We found a bogon in the path, so make sure we never use it.
646 set dummy $ac_cv_prog_CC
647 shift
648 if test $# -gt 0; then
649 # We chose a different compiler from the bogus one.
650 # However, it has the same basename, so the bogon will be chosen
651 # first if we set CC to just the basename; use the full file name.
652 shift
653 set dummy "$ac_dir/$ac_word" "$@"
654 shift
655 ac_cv_prog_CC="$@"
660 CC="$ac_cv_prog_CC"
661 if test -n "$CC"; then
662 echo "$ac_t""$CC" 1>&6
663 else
664 echo "$ac_t""no" 1>&6
667 if test -z "$CC"; then
668 case "`uname -s`" in
669 *win32* | *WIN32*)
670 # Extract the first word of "cl", so it can be a program name with args.
671 set dummy cl; ac_word=$2
672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
673 echo "configure:674: checking for $ac_word" >&5
674 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
675 echo $ac_n "(cached) $ac_c" 1>&6
676 else
677 if test -n "$CC"; then
678 ac_cv_prog_CC="$CC" # Let the user override the test.
679 else
680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
681 ac_dummy="$PATH"
682 for ac_dir in $ac_dummy; do
683 test -z "$ac_dir" && ac_dir=.
684 if test -f $ac_dir/$ac_word; then
685 ac_cv_prog_CC="cl"
686 break
688 done
689 IFS="$ac_save_ifs"
692 CC="$ac_cv_prog_CC"
693 if test -n "$CC"; then
694 echo "$ac_t""$CC" 1>&6
695 else
696 echo "$ac_t""no" 1>&6
699 esac
701 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
704 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
705 echo "configure:706: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
707 ac_ext=c
708 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
709 ac_cpp='$CPP $CPPFLAGS'
710 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
711 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
712 cross_compiling=$ac_cv_prog_cc_cross
714 cat > conftest.$ac_ext << EOF
716 #line 717 "configure"
717 #include "confdefs.h"
719 main(){return(0);}
721 if { (eval echo configure:722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
722 ac_cv_prog_cc_works=yes
723 # If we can't run a trivial program, we are probably using a cross compiler.
724 if (./conftest; exit) 2>/dev/null; then
725 ac_cv_prog_cc_cross=no
726 else
727 ac_cv_prog_cc_cross=yes
729 else
730 echo "configure: failed program was:" >&5
731 cat conftest.$ac_ext >&5
732 ac_cv_prog_cc_works=no
734 rm -fr conftest*
735 ac_ext=c
736 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
737 ac_cpp='$CPP $CPPFLAGS'
738 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
739 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
740 cross_compiling=$ac_cv_prog_cc_cross
742 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
743 if test $ac_cv_prog_cc_works = no; then
744 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
746 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
747 echo "configure:748: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
748 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
749 cross_compiling=$ac_cv_prog_cc_cross
751 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
752 echo "configure:753: checking whether we are using GNU C" >&5
753 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
754 echo $ac_n "(cached) $ac_c" 1>&6
755 else
756 cat > conftest.c <<EOF
757 #ifdef __GNUC__
758 yes;
759 #endif
761 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
762 ac_cv_prog_gcc=yes
763 else
764 ac_cv_prog_gcc=no
768 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
770 if test $ac_cv_prog_gcc = yes; then
771 GCC=yes
772 else
773 GCC=
776 ac_test_CFLAGS="${CFLAGS+set}"
777 ac_save_CFLAGS="$CFLAGS"
778 CFLAGS=
779 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
780 echo "configure:781: checking whether ${CC-cc} accepts -g" >&5
781 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
783 else
784 echo 'void f(){}' > conftest.c
785 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
786 ac_cv_prog_cc_g=yes
787 else
788 ac_cv_prog_cc_g=no
790 rm -f conftest*
794 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
795 if test "$ac_test_CFLAGS" = set; then
796 CFLAGS="$ac_save_CFLAGS"
797 elif test $ac_cv_prog_cc_g = yes; then
798 if test "$GCC" = yes; then
799 CFLAGS="-g -O2"
800 else
801 CFLAGS="-g"
803 else
804 if test "$GCC" = yes; then
805 CFLAGS="-O2"
806 else
807 CFLAGS=
811 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
812 echo "configure:813: checking for POSIXized ISC" >&5
813 if test -d /etc/conf/kconfig.d &&
814 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
815 then
816 echo "$ac_t""yes" 1>&6
817 ISC=yes # If later tests want to check for ISC.
818 cat >> confdefs.h <<\EOF
819 #define _POSIX_SOURCE 1
822 if test "$GCC" = yes; then
823 CC="$CC -posix"
824 else
825 CC="$CC -Xp"
827 else
828 echo "$ac_t""no" 1>&6
829 ISC=
832 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
833 echo "configure:834: checking how to run the C preprocessor" >&5
834 # On Suns, sometimes $CPP names a directory.
835 if test -n "$CPP" && test -d "$CPP"; then
836 CPP=
838 if test -z "$CPP"; then
839 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
841 else
842 # This must be in double quotes, not single quotes, because CPP may get
843 # substituted into the Makefile and "${CC-cc}" will confuse make.
844 CPP="${CC-cc} -E"
845 # On the NeXT, cc -E runs the code through the compiler's parser,
846 # not just through cpp.
847 cat > conftest.$ac_ext <<EOF
848 #line 849 "configure"
849 #include "confdefs.h"
850 #include <assert.h>
851 Syntax Error
853 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
854 { (eval echo configure:855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
855 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
856 if test -z "$ac_err"; then
858 else
859 echo "$ac_err" >&5
860 echo "configure: failed program was:" >&5
861 cat conftest.$ac_ext >&5
862 rm -rf conftest*
863 CPP="${CC-cc} -E -traditional-cpp"
864 cat > conftest.$ac_ext <<EOF
865 #line 866 "configure"
866 #include "confdefs.h"
867 #include <assert.h>
868 Syntax Error
870 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
871 { (eval echo configure:872: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
872 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
873 if test -z "$ac_err"; then
875 else
876 echo "$ac_err" >&5
877 echo "configure: failed program was:" >&5
878 cat conftest.$ac_ext >&5
879 rm -rf conftest*
880 CPP="${CC-cc} -nologo -E"
881 cat > conftest.$ac_ext <<EOF
882 #line 883 "configure"
883 #include "confdefs.h"
884 #include <assert.h>
885 Syntax Error
887 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
888 { (eval echo configure:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
889 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
890 if test -z "$ac_err"; then
892 else
893 echo "$ac_err" >&5
894 echo "configure: failed program was:" >&5
895 cat conftest.$ac_ext >&5
896 rm -rf conftest*
897 CPP=/lib/cpp
899 rm -f conftest*
901 rm -f conftest*
903 rm -f conftest*
904 ac_cv_prog_CPP="$CPP"
906 CPP="$ac_cv_prog_CPP"
907 else
908 ac_cv_prog_CPP="$CPP"
910 echo "$ac_t""$CPP" 1>&6
912 echo $ac_n "checking for AIX""... $ac_c" 1>&6
913 echo "configure:914: checking for AIX" >&5
914 cat > conftest.$ac_ext <<EOF
915 #line 916 "configure"
916 #include "confdefs.h"
917 #ifdef _AIX
919 #endif
922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
923 egrep "yes" >/dev/null 2>&1; then
924 rm -rf conftest*
925 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
926 #define _ALL_SOURCE 1
929 else
930 rm -rf conftest*
931 echo "$ac_t""no" 1>&6
933 rm -f conftest*
936 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
937 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
938 echo "configure:939: checking for minix/config.h" >&5
939 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
940 echo $ac_n "(cached) $ac_c" 1>&6
941 else
942 cat > conftest.$ac_ext <<EOF
943 #line 944 "configure"
944 #include "confdefs.h"
945 #include <minix/config.h>
947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
948 { (eval echo configure:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
950 if test -z "$ac_err"; then
951 rm -rf conftest*
952 eval "ac_cv_header_$ac_safe=yes"
953 else
954 echo "$ac_err" >&5
955 echo "configure: failed program was:" >&5
956 cat conftest.$ac_ext >&5
957 rm -rf conftest*
958 eval "ac_cv_header_$ac_safe=no"
960 rm -f conftest*
962 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
963 echo "$ac_t""yes" 1>&6
964 MINIX=yes
965 else
966 echo "$ac_t""no" 1>&6
967 MINIX=
970 if test "$MINIX" = yes; then
971 cat >> confdefs.h <<\EOF
972 #define _POSIX_SOURCE 1
975 cat >> confdefs.h <<\EOF
976 #define _POSIX_1_SOURCE 2
979 cat >> confdefs.h <<\EOF
980 #define _MINIX 1
985 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
987 # Extract the first word of "$ac_prog", so it can be a program name with args.
988 set dummy $ac_prog; ac_word=$2
989 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
990 echo "configure:991: checking for $ac_word" >&5
991 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
992 echo $ac_n "(cached) $ac_c" 1>&6
993 else
994 if test -n "$CXX"; then
995 ac_cv_prog_CXX="$CXX" # Let the user override the test.
996 else
997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
998 ac_dummy="$PATH"
999 for ac_dir in $ac_dummy; do
1000 test -z "$ac_dir" && ac_dir=.
1001 if test -f $ac_dir/$ac_word; then
1002 ac_cv_prog_CXX="$ac_prog"
1003 break
1005 done
1006 IFS="$ac_save_ifs"
1009 CXX="$ac_cv_prog_CXX"
1010 if test -n "$CXX"; then
1011 echo "$ac_t""$CXX" 1>&6
1012 else
1013 echo "$ac_t""no" 1>&6
1016 test -n "$CXX" && break
1017 done
1018 test -n "$CXX" || CXX="gcc"
1021 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1022 echo "configure:1023: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1024 ac_ext=C
1025 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1026 ac_cpp='$CXXCPP $CPPFLAGS'
1027 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1028 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1029 cross_compiling=$ac_cv_prog_cxx_cross
1031 cat > conftest.$ac_ext << EOF
1033 #line 1034 "configure"
1034 #include "confdefs.h"
1036 int main(){return(0);}
1038 if { (eval echo configure:1039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1039 ac_cv_prog_cxx_works=yes
1040 # If we can't run a trivial program, we are probably using a cross compiler.
1041 if (./conftest; exit) 2>/dev/null; then
1042 ac_cv_prog_cxx_cross=no
1043 else
1044 ac_cv_prog_cxx_cross=yes
1046 else
1047 echo "configure: failed program was:" >&5
1048 cat conftest.$ac_ext >&5
1049 ac_cv_prog_cxx_works=no
1051 rm -fr conftest*
1052 ac_ext=c
1053 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1054 ac_cpp='$CPP $CPPFLAGS'
1055 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1056 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1057 cross_compiling=$ac_cv_prog_cc_cross
1059 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1060 if test $ac_cv_prog_cxx_works = no; then
1061 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1063 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1064 echo "configure:1065: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1065 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1066 cross_compiling=$ac_cv_prog_cxx_cross
1068 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1069 echo "configure:1070: checking whether we are using GNU C++" >&5
1070 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1072 else
1073 cat > conftest.C <<EOF
1074 #ifdef __GNUC__
1075 yes;
1076 #endif
1078 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1079 ac_cv_prog_gxx=yes
1080 else
1081 ac_cv_prog_gxx=no
1085 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1087 if test $ac_cv_prog_gxx = yes; then
1088 GXX=yes
1089 else
1090 GXX=
1093 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1094 ac_save_CXXFLAGS="$CXXFLAGS"
1095 CXXFLAGS=
1096 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1097 echo "configure:1098: checking whether ${CXX-g++} accepts -g" >&5
1098 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1099 echo $ac_n "(cached) $ac_c" 1>&6
1100 else
1101 echo 'void f(){}' > conftest.cc
1102 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1103 ac_cv_prog_cxx_g=yes
1104 else
1105 ac_cv_prog_cxx_g=no
1107 rm -f conftest*
1111 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1112 if test "$ac_test_CXXFLAGS" = set; then
1113 CXXFLAGS="$ac_save_CXXFLAGS"
1114 elif test $ac_cv_prog_cxx_g = yes; then
1115 if test "$GXX" = yes; then
1116 CXXFLAGS="-g -O2"
1117 else
1118 CXXFLAGS="-g"
1120 else
1121 if test "$GXX" = yes; then
1122 CXXFLAGS="-O2"
1123 else
1124 CXXFLAGS=
1128 for ac_declaration in \
1130 '#include <stdlib.h>' \
1131 'extern "C" void std::exit (int) throw (); using std::exit;' \
1132 'extern "C" void std::exit (int); using std::exit;' \
1133 'extern "C" void exit (int) throw ();' \
1134 'extern "C" void exit (int);' \
1135 'void exit (int);'
1137 cat > conftest.$ac_ext <<EOF
1138 #line 1139 "configure"
1139 #include "confdefs.h"
1140 #include <stdlib.h>
1141 $ac_declaration
1142 int main() {
1143 exit (42);
1144 ; return 0; }
1146 if { (eval echo configure:1147: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1148 else
1149 echo "configure: failed program was:" >&5
1150 cat conftest.$ac_ext >&5
1151 rm -rf conftest*
1152 continue
1154 rm -f conftest*
1155 cat > conftest.$ac_ext <<EOF
1156 #line 1157 "configure"
1157 #include "confdefs.h"
1158 $ac_declaration
1159 int main() {
1160 exit (42);
1161 ; return 0; }
1163 if { (eval echo configure:1164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1164 rm -rf conftest*
1165 break
1166 else
1167 echo "configure: failed program was:" >&5
1168 cat conftest.$ac_ext >&5
1170 rm -f conftest*
1171 done
1172 if test -n "$ac_declaration"; then
1173 echo '#ifdef __cplusplus' >>confdefs.h
1174 echo $ac_declaration >>confdefs.h
1175 echo '#endif' >>confdefs.h
1179 # Find a good install program. We prefer a C program (faster),
1180 # so one script is as good as another. But avoid the broken or
1181 # incompatible versions:
1182 # SysV /etc/install, /usr/sbin/install
1183 # SunOS /usr/etc/install
1184 # IRIX /sbin/install
1185 # AIX /bin/install
1186 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1187 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1188 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1189 # ./install, which can be erroneously created by make from ./install.sh.
1190 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1191 echo "configure:1192: checking for a BSD compatible install" >&5
1192 if test -z "$INSTALL"; then
1193 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1194 echo $ac_n "(cached) $ac_c" 1>&6
1195 else
1196 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1197 for ac_dir in $PATH; do
1198 # Account for people who put trailing slashes in PATH elements.
1199 case "$ac_dir/" in
1200 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1202 # OSF1 and SCO ODT 3.0 have their own names for install.
1203 # Don't use installbsd from OSF since it installs stuff as root
1204 # by default.
1205 for ac_prog in ginstall scoinst install; do
1206 if test -f $ac_dir/$ac_prog; then
1207 if test $ac_prog = install &&
1208 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1209 # AIX install. It has an incompatible calling convention.
1211 else
1212 ac_cv_path_install="$ac_dir/$ac_prog -c"
1213 break 2
1216 done
1218 esac
1219 done
1220 IFS="$ac_save_IFS"
1223 if test "${ac_cv_path_install+set}" = set; then
1224 INSTALL="$ac_cv_path_install"
1225 else
1226 # As a last resort, use the slow shell script. We don't cache a
1227 # path for INSTALL within a source directory, because that will
1228 # break other packages using the cache if that directory is
1229 # removed, or if the path is relative.
1230 INSTALL="$ac_install_sh"
1233 echo "$ac_t""$INSTALL" 1>&6
1235 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1236 # It thinks the first close brace ends the variable substitution.
1237 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1239 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1241 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1243 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1244 echo "configure:1245: checking whether ln -s works" >&5
1245 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1247 else
1248 rm -f conftestdata
1249 if ln -s X conftestdata 2>/dev/null
1250 then
1251 rm -f conftestdata
1252 ac_cv_prog_LN_S="ln -s"
1253 else
1254 ac_cv_prog_LN_S=ln
1257 LN_S="$ac_cv_prog_LN_S"
1258 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1259 echo "$ac_t""yes" 1>&6
1260 else
1261 echo "$ac_t""no" 1>&6
1264 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1265 echo "configure:1266: checking whether ${MAKE-make} sets \${MAKE}" >&5
1266 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1267 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1269 else
1270 cat > conftestmake <<\EOF
1271 all:
1272 @echo 'ac_maketemp="${MAKE}"'
1274 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1275 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1276 if test -n "$ac_maketemp"; then
1277 eval ac_cv_prog_make_${ac_make}_set=yes
1278 else
1279 eval ac_cv_prog_make_${ac_make}_set=no
1281 rm -f conftestmake
1283 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1284 echo "$ac_t""yes" 1>&6
1285 SET_MAKE=
1286 else
1287 echo "$ac_t""no" 1>&6
1288 SET_MAKE="MAKE=${MAKE-make}"
1291 # Extract the first word of "ranlib", so it can be a program name with args.
1292 set dummy ranlib; ac_word=$2
1293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1294 echo "configure:1295: checking for $ac_word" >&5
1295 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1296 echo $ac_n "(cached) $ac_c" 1>&6
1297 else
1298 if test -n "$RANLIB"; then
1299 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1300 else
1301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1302 ac_dummy="$PATH"
1303 for ac_dir in $ac_dummy; do
1304 test -z "$ac_dir" && ac_dir=.
1305 if test -f $ac_dir/$ac_word; then
1306 ac_cv_prog_RANLIB="ranlib"
1307 break
1309 done
1310 IFS="$ac_save_ifs"
1311 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1314 RANLIB="$ac_cv_prog_RANLIB"
1315 if test -n "$RANLIB"; then
1316 echo "$ac_t""$RANLIB" 1>&6
1317 else
1318 echo "$ac_t""no" 1>&6
1321 # Extract the first word of "rm", so it can be a program name with args.
1322 set dummy rm; ac_word=$2
1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1324 echo "configure:1325: checking for $ac_word" >&5
1325 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1327 else
1328 case "$RM" in
1330 ac_cv_path_RM="$RM" # Let the user override the test with a path.
1332 ?:/*)
1333 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1337 ac_dummy="$PATH"
1338 for ac_dir in $ac_dummy; do
1339 test -z "$ac_dir" && ac_dir=.
1340 if test -f $ac_dir/$ac_word; then
1341 ac_cv_path_RM="$ac_dir/$ac_word"
1342 break
1344 done
1345 IFS="$ac_save_ifs"
1346 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
1348 esac
1350 RM="$ac_cv_path_RM"
1351 if test -n "$RM"; then
1352 echo "$ac_t""$RM" 1>&6
1353 else
1354 echo "$ac_t""no" 1>&6
1357 # Extract the first word of "cp", so it can be a program name with args.
1358 set dummy cp; ac_word=$2
1359 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1360 echo "configure:1361: checking for $ac_word" >&5
1361 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1363 else
1364 case "$CP" in
1366 ac_cv_path_CP="$CP" # Let the user override the test with a path.
1368 ?:/*)
1369 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
1372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1373 ac_dummy="$PATH"
1374 for ac_dir in $ac_dummy; do
1375 test -z "$ac_dir" && ac_dir=.
1376 if test -f $ac_dir/$ac_word; then
1377 ac_cv_path_CP="$ac_dir/$ac_word"
1378 break
1380 done
1381 IFS="$ac_save_ifs"
1382 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
1384 esac
1386 CP="$ac_cv_path_CP"
1387 if test -n "$CP"; then
1388 echo "$ac_t""$CP" 1>&6
1389 else
1390 echo "$ac_t""no" 1>&6
1403 case "$ARCH" in
1404 *sco*|*SCO*)
1405 echo $ac_n "checking "SCO-Unix. See if we need -belf"""... $ac_c" 1>&6
1406 echo "configure:1407: checking "SCO-Unix. See if we need -belf"" >&5
1407 old_cflags="$CFLAGS"
1408 CFLAGS="$CFLAGS -belf"
1409 cat > conftest.$ac_ext <<EOF
1410 #line 1411 "configure"
1411 #include "confdefs.h"
1414 int main() {
1417 ; return 0; }
1419 if { (eval echo configure:1420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1420 rm -rf conftest*
1421 CMFLAGS="$CMFLAGS -belf"
1422 echo "$ac_t""yes" 1>&6
1423 else
1424 echo "configure: failed program was:" >&5
1425 cat conftest.$ac_ext >&5
1426 rm -rf conftest*
1427 echo "$ac_t""no" 1>&6
1428 CFLAGS="$old_cflags"
1430 rm -f conftest*
1432 esac
1435 ac_header_dirent=no
1436 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1438 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1439 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1440 echo "configure:1441: checking for $ac_hdr that defines DIR" >&5
1441 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1443 else
1444 cat > conftest.$ac_ext <<EOF
1445 #line 1446 "configure"
1446 #include "confdefs.h"
1447 #include <sys/types.h>
1448 #include <$ac_hdr>
1449 int main() {
1450 DIR *dirp = 0;
1451 ; return 0; }
1453 if { (eval echo configure:1454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1454 rm -rf conftest*
1455 eval "ac_cv_header_dirent_$ac_safe=yes"
1456 else
1457 echo "configure: failed program was:" >&5
1458 cat conftest.$ac_ext >&5
1459 rm -rf conftest*
1460 eval "ac_cv_header_dirent_$ac_safe=no"
1462 rm -f conftest*
1464 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1465 echo "$ac_t""yes" 1>&6
1466 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1467 cat >> confdefs.h <<EOF
1468 #define $ac_tr_hdr 1
1470 ac_header_dirent=$ac_hdr; break
1471 else
1472 echo "$ac_t""no" 1>&6
1474 done
1475 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1476 if test $ac_header_dirent = dirent.h; then
1477 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1478 echo "configure:1479: checking for opendir in -ldir" >&5
1479 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1480 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1482 else
1483 ac_save_LIBS="$LIBS"
1484 LIBS="-ldir $LIBS"
1485 cat > conftest.$ac_ext <<EOF
1486 #line 1487 "configure"
1487 #include "confdefs.h"
1488 /* Override any gcc2 internal prototype to avoid an error. */
1489 /* We use char because int might match the return type of a gcc2
1490 builtin and then its argument prototype would still apply. */
1491 char opendir();
1493 int main() {
1494 opendir()
1495 ; return 0; }
1497 if { (eval echo configure:1498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1498 rm -rf conftest*
1499 eval "ac_cv_lib_$ac_lib_var=yes"
1500 else
1501 echo "configure: failed program was:" >&5
1502 cat conftest.$ac_ext >&5
1503 rm -rf conftest*
1504 eval "ac_cv_lib_$ac_lib_var=no"
1506 rm -f conftest*
1507 LIBS="$ac_save_LIBS"
1510 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1511 echo "$ac_t""yes" 1>&6
1512 LIBS="$LIBS -ldir"
1513 else
1514 echo "$ac_t""no" 1>&6
1517 else
1518 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1519 echo "configure:1520: checking for opendir in -lx" >&5
1520 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1521 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1522 echo $ac_n "(cached) $ac_c" 1>&6
1523 else
1524 ac_save_LIBS="$LIBS"
1525 LIBS="-lx $LIBS"
1526 cat > conftest.$ac_ext <<EOF
1527 #line 1528 "configure"
1528 #include "confdefs.h"
1529 /* Override any gcc2 internal prototype to avoid an error. */
1530 /* We use char because int might match the return type of a gcc2
1531 builtin and then its argument prototype would still apply. */
1532 char opendir();
1534 int main() {
1535 opendir()
1536 ; return 0; }
1538 if { (eval echo configure:1539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1539 rm -rf conftest*
1540 eval "ac_cv_lib_$ac_lib_var=yes"
1541 else
1542 echo "configure: failed program was:" >&5
1543 cat conftest.$ac_ext >&5
1544 rm -rf conftest*
1545 eval "ac_cv_lib_$ac_lib_var=no"
1547 rm -f conftest*
1548 LIBS="$ac_save_LIBS"
1551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1552 echo "$ac_t""yes" 1>&6
1553 LIBS="$LIBS -lx"
1554 else
1555 echo "$ac_t""no" 1>&6
1560 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1561 echo "configure:1562: checking for ANSI C header files" >&5
1562 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1564 else
1565 cat > conftest.$ac_ext <<EOF
1566 #line 1567 "configure"
1567 #include "confdefs.h"
1568 #include <stdlib.h>
1569 #include <stdarg.h>
1570 #include <string.h>
1571 #include <float.h>
1573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1574 { (eval echo configure:1575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1576 if test -z "$ac_err"; then
1577 rm -rf conftest*
1578 ac_cv_header_stdc=yes
1579 else
1580 echo "$ac_err" >&5
1581 echo "configure: failed program was:" >&5
1582 cat conftest.$ac_ext >&5
1583 rm -rf conftest*
1584 ac_cv_header_stdc=no
1586 rm -f conftest*
1588 if test $ac_cv_header_stdc = yes; then
1589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1590 cat > conftest.$ac_ext <<EOF
1591 #line 1592 "configure"
1592 #include "confdefs.h"
1593 #include <string.h>
1595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1596 egrep "memchr" >/dev/null 2>&1; then
1598 else
1599 rm -rf conftest*
1600 ac_cv_header_stdc=no
1602 rm -f conftest*
1606 if test $ac_cv_header_stdc = yes; then
1607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1608 cat > conftest.$ac_ext <<EOF
1609 #line 1610 "configure"
1610 #include "confdefs.h"
1611 #include <stdlib.h>
1613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1614 egrep "free" >/dev/null 2>&1; then
1616 else
1617 rm -rf conftest*
1618 ac_cv_header_stdc=no
1620 rm -f conftest*
1624 if test $ac_cv_header_stdc = yes; then
1625 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1626 if test "$cross_compiling" = yes; then
1628 else
1629 cat > conftest.$ac_ext <<EOF
1630 #line 1631 "configure"
1631 #include "confdefs.h"
1632 #include <ctype.h>
1633 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1634 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1636 int main () { int i; for (i = 0; i < 256; i++)
1637 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1638 exit (0); }
1641 if { (eval echo configure:1642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1642 then
1644 else
1645 echo "configure: failed program was:" >&5
1646 cat conftest.$ac_ext >&5
1647 rm -fr conftest*
1648 ac_cv_header_stdc=no
1650 rm -fr conftest*
1656 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1657 if test $ac_cv_header_stdc = yes; then
1658 cat >> confdefs.h <<\EOF
1659 #define STDC_HEADERS 1
1664 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1665 echo "configure:1666: checking for sys/wait.h that is POSIX.1 compatible" >&5
1666 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1668 else
1669 cat > conftest.$ac_ext <<EOF
1670 #line 1671 "configure"
1671 #include "confdefs.h"
1672 #include <sys/types.h>
1673 #include <sys/wait.h>
1674 #ifndef WEXITSTATUS
1675 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1676 #endif
1677 #ifndef WIFEXITED
1678 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1679 #endif
1680 int main() {
1681 int s;
1682 wait (&s);
1683 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1684 ; return 0; }
1686 if { (eval echo configure:1687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1687 rm -rf conftest*
1688 ac_cv_header_sys_wait_h=yes
1689 else
1690 echo "configure: failed program was:" >&5
1691 cat conftest.$ac_ext >&5
1692 rm -rf conftest*
1693 ac_cv_header_sys_wait_h=no
1695 rm -f conftest*
1698 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1699 if test $ac_cv_header_sys_wait_h = yes; then
1700 cat >> confdefs.h <<\EOF
1701 #define HAVE_SYS_WAIT_H 1
1706 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1707 echo "configure:1708: checking whether time.h and sys/time.h may both be included" >&5
1708 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1709 echo $ac_n "(cached) $ac_c" 1>&6
1710 else
1711 cat > conftest.$ac_ext <<EOF
1712 #line 1713 "configure"
1713 #include "confdefs.h"
1714 #include <sys/types.h>
1715 #include <sys/time.h>
1716 #include <time.h>
1717 int main() {
1718 struct tm *tp;
1719 ; return 0; }
1721 if { (eval echo configure:1722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1722 rm -rf conftest*
1723 ac_cv_header_time=yes
1724 else
1725 echo "configure: failed program was:" >&5
1726 cat conftest.$ac_ext >&5
1727 rm -rf conftest*
1728 ac_cv_header_time=no
1730 rm -f conftest*
1733 echo "$ac_t""$ac_cv_header_time" 1>&6
1734 if test $ac_cv_header_time = yes; then
1735 cat >> confdefs.h <<\EOF
1736 #define TIME_WITH_SYS_TIME 1
1741 for ac_hdr in fcntl.h \
1742 sys/select.h \
1743 sys/time.h \
1744 sys/sigevent.h \
1745 sys/types.h \
1746 sys/stat.h \
1747 sys/utsname.h \
1748 sys/param.h \
1749 sys/wait.h \
1750 limits.h \
1751 unistd.h \
1752 errno.h \
1753 strings.h \
1754 math.h
1756 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1757 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1758 echo "configure:1759: checking for $ac_hdr" >&5
1759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1761 else
1762 cat > conftest.$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1765 #include <$ac_hdr>
1767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1768 { (eval echo configure:1769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1770 if test -z "$ac_err"; then
1771 rm -rf conftest*
1772 eval "ac_cv_header_$ac_safe=yes"
1773 else
1774 echo "$ac_err" >&5
1775 echo "configure: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1777 rm -rf conftest*
1778 eval "ac_cv_header_$ac_safe=no"
1780 rm -f conftest*
1782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1783 echo "$ac_t""yes" 1>&6
1784 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1785 cat >> confdefs.h <<EOF
1786 #define $ac_tr_hdr 1
1789 else
1790 echo "$ac_t""no" 1>&6
1792 done
1796 echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
1797 echo "configure:1798: checking for pow in -lm" >&5
1798 ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
1799 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1801 else
1802 ac_save_LIBS="$LIBS"
1803 LIBS="-lm $LIBS"
1804 cat > conftest.$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1807 /* Override any gcc2 internal prototype to avoid an error. */
1808 /* We use char because int might match the return type of a gcc2
1809 builtin and then its argument prototype would still apply. */
1810 char pow();
1812 int main() {
1813 pow()
1814 ; return 0; }
1816 if { (eval echo configure:1817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1817 rm -rf conftest*
1818 eval "ac_cv_lib_$ac_lib_var=yes"
1819 else
1820 echo "configure: failed program was:" >&5
1821 cat conftest.$ac_ext >&5
1822 rm -rf conftest*
1823 eval "ac_cv_lib_$ac_lib_var=no"
1825 rm -f conftest*
1826 LIBS="$ac_save_LIBS"
1829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1830 echo "$ac_t""yes" 1>&6
1831 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1832 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1833 cat >> confdefs.h <<EOF
1834 #define $ac_tr_lib 1
1837 LIBS="-lm $LIBS"
1839 else
1840 echo "$ac_t""no" 1>&6
1843 for ac_func in setlocale
1845 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1846 echo "configure:1847: checking for $ac_func" >&5
1847 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1849 else
1850 cat > conftest.$ac_ext <<EOF
1851 #line 1852 "configure"
1852 #include "confdefs.h"
1853 /* System header to define __stub macros and hopefully few prototypes,
1854 which can conflict with char $ac_func(); below. */
1855 #include <assert.h>
1856 /* Override any gcc2 internal prototype to avoid an error. */
1857 /* We use char because int might match the return type of a gcc2
1858 builtin and then its argument prototype would still apply. */
1859 char $ac_func();
1861 int main() {
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1867 choke me
1868 #else
1869 $ac_func();
1870 #endif
1872 ; return 0; }
1874 if { (eval echo configure:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1875 rm -rf conftest*
1876 eval "ac_cv_func_$ac_func=yes"
1877 else
1878 echo "configure: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1880 rm -rf conftest*
1881 eval "ac_cv_func_$ac_func=no"
1883 rm -f conftest*
1886 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1887 echo "$ac_t""yes" 1>&6
1888 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1889 cat >> confdefs.h <<EOF
1890 #define $ac_tr_func 1
1893 else
1894 echo "$ac_t""no" 1>&6
1896 done
1900 # Check whether --enable-debug or --disable-debug was given.
1901 if test "${enable_debug+set}" = set; then
1902 enableval="$enable_debug"
1903 xncdebug=yes
1904 else
1905 xncdebug=no
1909 if test "$xncdebug" = "yes"; then
1910 DEB="-g -DDEBUG_XNC"
1911 else
1912 DEB=""
1916 # Check whether --with-sdl or --without-sdl was given.
1917 if test "${with_sdl+set}" = set; then
1918 withval="$with_sdl"
1919 sdl_support=yes
1920 else
1921 sdl_support=no
1925 if test "x$sdl_support" = "xyes"; then
1926 echo "SDL is ENABLED *******************"
1927 IFACEOBJS='$(SDLOBJS)'
1928 IFACELIBS='`sdl-config --libs` -lSDL_image'
1929 IFACEINC='`sdl-config --cflags` -I./sdl'
1930 else
1931 echo "X11 is ENABLED *******************"
1932 # If we find X, set shell vars x_includes and x_libraries to the
1933 # paths, otherwise set no_x=yes.
1934 # Uses ac_ vars as temps to allow command line to override cache and checks.
1935 # --without-x overrides everything else, but does not touch the cache.
1936 echo $ac_n "checking for X""... $ac_c" 1>&6
1937 echo "configure:1938: checking for X" >&5
1939 # Check whether --with-x or --without-x was given.
1940 if test "${with_x+set}" = set; then
1941 withval="$with_x"
1945 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1946 if test "x$with_x" = xno; then
1947 # The user explicitly disabled X.
1948 have_x=disabled
1949 else
1950 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1951 # Both variables are already set.
1952 have_x=yes
1953 else
1954 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1955 echo $ac_n "(cached) $ac_c" 1>&6
1956 else
1957 # One or both of the vars are not set, and there is no cached value.
1958 ac_x_includes=NO ac_x_libraries=NO
1959 rm -fr conftestdir
1960 if mkdir conftestdir; then
1961 cd conftestdir
1962 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1963 cat > Imakefile <<'EOF'
1964 acfindx:
1965 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1967 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1968 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1969 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1970 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1971 for ac_extension in a so sl; do
1972 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1973 test -f $ac_im_libdir/libX11.$ac_extension; then
1974 ac_im_usrlibdir=$ac_im_libdir; break
1976 done
1977 # Screen out bogus values from the imake configuration. They are
1978 # bogus both because they are the default anyway, and because
1979 # using them would break gcc on systems where it needs fixed includes.
1980 case "$ac_im_incroot" in
1981 /usr/include) ;;
1982 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1983 esac
1984 case "$ac_im_usrlibdir" in
1985 /usr/lib | /lib) ;;
1986 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1987 esac
1989 cd ..
1990 rm -fr conftestdir
1993 if test "$ac_x_includes" = NO; then
1994 # Guess where to find include files, by looking for this one X11 .h file.
1995 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1997 # First, try using that file with no special directory specified.
1998 cat > conftest.$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2001 #include <$x_direct_test_include>
2003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2004 { (eval echo configure:2005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2006 if test -z "$ac_err"; then
2007 rm -rf conftest*
2008 # We can compile using X headers with no special include directory.
2009 ac_x_includes=
2010 else
2011 echo "$ac_err" >&5
2012 echo "configure: failed program was:" >&5
2013 cat conftest.$ac_ext >&5
2014 rm -rf conftest*
2015 # Look for the header file in a standard set of common directories.
2016 # Check X11 before X11Rn because it is often a symlink to the current release.
2017 for ac_dir in \
2018 /usr/X11/include \
2019 /usr/X11R6/include \
2020 /usr/X11R5/include \
2021 /usr/X11R4/include \
2023 /usr/include/X11 \
2024 /usr/include/X11R6 \
2025 /usr/include/X11R5 \
2026 /usr/include/X11R4 \
2028 /usr/local/X11/include \
2029 /usr/local/X11R6/include \
2030 /usr/local/X11R5/include \
2031 /usr/local/X11R4/include \
2033 /usr/local/include/X11 \
2034 /usr/local/include/X11R6 \
2035 /usr/local/include/X11R5 \
2036 /usr/local/include/X11R4 \
2038 /usr/X386/include \
2039 /usr/x386/include \
2040 /usr/XFree86/include/X11 \
2042 /usr/include \
2043 /usr/local/include \
2044 /usr/unsupported/include \
2045 /usr/athena/include \
2046 /usr/local/x11r5/include \
2047 /usr/lpp/Xamples/include \
2049 /usr/openwin/include \
2050 /usr/openwin/share/include \
2053 if test -r "$ac_dir/$x_direct_test_include"; then
2054 ac_x_includes=$ac_dir
2055 break
2057 done
2059 rm -f conftest*
2060 fi # $ac_x_includes = NO
2062 if test "$ac_x_libraries" = NO; then
2063 # Check for the libraries.
2065 test -z "$x_direct_test_library" && x_direct_test_library=Xt
2066 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2068 # See if we find them without any special options.
2069 # Don't add to $LIBS permanently.
2070 ac_save_LIBS="$LIBS"
2071 LIBS="-l$x_direct_test_library $LIBS"
2072 cat > conftest.$ac_ext <<EOF
2073 #line 2074 "configure"
2074 #include "confdefs.h"
2076 int main() {
2077 ${x_direct_test_function}()
2078 ; return 0; }
2080 if { (eval echo configure:2081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2081 rm -rf conftest*
2082 LIBS="$ac_save_LIBS"
2083 # We can link X programs with no special library path.
2084 ac_x_libraries=
2085 else
2086 echo "configure: failed program was:" >&5
2087 cat conftest.$ac_ext >&5
2088 rm -rf conftest*
2089 LIBS="$ac_save_LIBS"
2090 # First see if replacing the include by lib works.
2091 # Check X11 before X11Rn because it is often a symlink to the current release.
2092 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2093 /usr/X11/lib \
2094 /usr/X11R6/lib \
2095 /usr/X11R5/lib \
2096 /usr/X11R4/lib \
2098 /usr/lib/X11 \
2099 /usr/lib/X11R6 \
2100 /usr/lib/X11R5 \
2101 /usr/lib/X11R4 \
2103 /usr/local/X11/lib \
2104 /usr/local/X11R6/lib \
2105 /usr/local/X11R5/lib \
2106 /usr/local/X11R4/lib \
2108 /usr/local/lib/X11 \
2109 /usr/local/lib/X11R6 \
2110 /usr/local/lib/X11R5 \
2111 /usr/local/lib/X11R4 \
2113 /usr/X386/lib \
2114 /usr/x386/lib \
2115 /usr/XFree86/lib/X11 \
2117 /usr/lib \
2118 /usr/local/lib \
2119 /usr/unsupported/lib \
2120 /usr/athena/lib \
2121 /usr/local/x11r5/lib \
2122 /usr/lpp/Xamples/lib \
2123 /lib/usr/lib/X11 \
2125 /usr/openwin/lib \
2126 /usr/openwin/share/lib \
2129 for ac_extension in a so sl; do
2130 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2131 ac_x_libraries=$ac_dir
2132 break 2
2134 done
2135 done
2137 rm -f conftest*
2138 fi # $ac_x_libraries = NO
2140 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2141 # Didn't find X anywhere. Cache the known absence of X.
2142 ac_cv_have_x="have_x=no"
2143 else
2144 # Record where we found X for the cache.
2145 ac_cv_have_x="have_x=yes \
2146 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2150 eval "$ac_cv_have_x"
2151 fi # $with_x != no
2153 if test "$have_x" != yes; then
2154 echo "$ac_t""$have_x" 1>&6
2155 no_x=yes
2156 else
2157 # If each of the values was on the command line, it overrides each guess.
2158 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2159 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2160 # Update the cache value to reflect the command line values.
2161 ac_cv_have_x="have_x=yes \
2162 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2163 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2166 if test "$no_x" = yes; then
2167 # Not all programs may use this symbol, but it does not hurt to define it.
2168 cat >> confdefs.h <<\EOF
2169 #define X_DISPLAY_MISSING 1
2172 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2173 else
2174 if test -n "$x_includes"; then
2175 X_CFLAGS="$X_CFLAGS -I$x_includes"
2178 # It would also be nice to do this for all -L options, not just this one.
2179 if test -n "$x_libraries"; then
2180 X_LIBS="$X_LIBS -L$x_libraries"
2181 # For Solaris; some versions of Sun CC require a space after -R and
2182 # others require no space. Words are not sufficient . . . .
2183 case "`(uname -sr) 2>/dev/null`" in
2184 "SunOS 5"*)
2185 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2186 echo "configure:2187: checking whether -R must be followed by a space" >&5
2187 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2188 cat > conftest.$ac_ext <<EOF
2189 #line 2190 "configure"
2190 #include "confdefs.h"
2192 int main() {
2194 ; return 0; }
2196 if { (eval echo configure:2197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2197 rm -rf conftest*
2198 ac_R_nospace=yes
2199 else
2200 echo "configure: failed program was:" >&5
2201 cat conftest.$ac_ext >&5
2202 rm -rf conftest*
2203 ac_R_nospace=no
2205 rm -f conftest*
2206 if test $ac_R_nospace = yes; then
2207 echo "$ac_t""no" 1>&6
2208 X_LIBS="$X_LIBS -R$x_libraries"
2209 else
2210 LIBS="$ac_xsave_LIBS -R $x_libraries"
2211 cat > conftest.$ac_ext <<EOF
2212 #line 2213 "configure"
2213 #include "confdefs.h"
2215 int main() {
2217 ; return 0; }
2219 if { (eval echo configure:2220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2220 rm -rf conftest*
2221 ac_R_space=yes
2222 else
2223 echo "configure: failed program was:" >&5
2224 cat conftest.$ac_ext >&5
2225 rm -rf conftest*
2226 ac_R_space=no
2228 rm -f conftest*
2229 if test $ac_R_space = yes; then
2230 echo "$ac_t""yes" 1>&6
2231 X_LIBS="$X_LIBS -R $x_libraries"
2232 else
2233 echo "$ac_t""neither works" 1>&6
2236 LIBS="$ac_xsave_LIBS"
2237 esac
2240 # Check for system-dependent libraries X programs must link with.
2241 # Do this before checking for the system-independent R6 libraries
2242 # (-lICE), since we may need -lsocket or whatever for X linking.
2244 if test "$ISC" = yes; then
2245 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2246 else
2247 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2248 # libraries were built with DECnet support. And karl@cs.umb.edu says
2249 # the Alpha needs dnet_stub (dnet does not exist).
2250 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2251 echo "configure:2252: checking for dnet_ntoa in -ldnet" >&5
2252 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2253 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2255 else
2256 ac_save_LIBS="$LIBS"
2257 LIBS="-ldnet $LIBS"
2258 cat > conftest.$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2261 /* Override any gcc2 internal prototype to avoid an error. */
2262 /* We use char because int might match the return type of a gcc2
2263 builtin and then its argument prototype would still apply. */
2264 char dnet_ntoa();
2266 int main() {
2267 dnet_ntoa()
2268 ; return 0; }
2270 if { (eval echo configure:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2271 rm -rf conftest*
2272 eval "ac_cv_lib_$ac_lib_var=yes"
2273 else
2274 echo "configure: failed program was:" >&5
2275 cat conftest.$ac_ext >&5
2276 rm -rf conftest*
2277 eval "ac_cv_lib_$ac_lib_var=no"
2279 rm -f conftest*
2280 LIBS="$ac_save_LIBS"
2283 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2284 echo "$ac_t""yes" 1>&6
2285 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2286 else
2287 echo "$ac_t""no" 1>&6
2290 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2291 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2292 echo "configure:2293: checking for dnet_ntoa in -ldnet_stub" >&5
2293 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2296 else
2297 ac_save_LIBS="$LIBS"
2298 LIBS="-ldnet_stub $LIBS"
2299 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2302 /* Override any gcc2 internal prototype to avoid an error. */
2303 /* We use char because int might match the return type of a gcc2
2304 builtin and then its argument prototype would still apply. */
2305 char dnet_ntoa();
2307 int main() {
2308 dnet_ntoa()
2309 ; return 0; }
2311 if { (eval echo configure:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2312 rm -rf conftest*
2313 eval "ac_cv_lib_$ac_lib_var=yes"
2314 else
2315 echo "configure: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2317 rm -rf conftest*
2318 eval "ac_cv_lib_$ac_lib_var=no"
2320 rm -f conftest*
2321 LIBS="$ac_save_LIBS"
2324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2325 echo "$ac_t""yes" 1>&6
2326 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2327 else
2328 echo "$ac_t""no" 1>&6
2333 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2334 # to get the SysV transport functions.
2335 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2336 # needs -lnsl.
2337 # The nsl library prevents programs from opening the X display
2338 # on Irix 5.2, according to dickey@clark.net.
2339 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2340 echo "configure:2341: checking for gethostbyname" >&5
2341 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2343 else
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2347 /* System header to define __stub macros and hopefully few prototypes,
2348 which can conflict with char gethostbyname(); below. */
2349 #include <assert.h>
2350 /* Override any gcc2 internal prototype to avoid an error. */
2351 /* We use char because int might match the return type of a gcc2
2352 builtin and then its argument prototype would still apply. */
2353 char gethostbyname();
2355 int main() {
2357 /* The GNU C library defines this for functions which it implements
2358 to always fail with ENOSYS. Some functions are actually named
2359 something starting with __ and the normal name is an alias. */
2360 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2361 choke me
2362 #else
2363 gethostbyname();
2364 #endif
2366 ; return 0; }
2368 if { (eval echo configure:2369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2369 rm -rf conftest*
2370 eval "ac_cv_func_gethostbyname=yes"
2371 else
2372 echo "configure: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2374 rm -rf conftest*
2375 eval "ac_cv_func_gethostbyname=no"
2377 rm -f conftest*
2380 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2381 echo "$ac_t""yes" 1>&6
2383 else
2384 echo "$ac_t""no" 1>&6
2387 if test $ac_cv_func_gethostbyname = no; then
2388 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2389 echo "configure:2390: checking for gethostbyname in -lnsl" >&5
2390 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2391 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2392 echo $ac_n "(cached) $ac_c" 1>&6
2393 else
2394 ac_save_LIBS="$LIBS"
2395 LIBS="-lnsl $LIBS"
2396 cat > conftest.$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2399 /* Override any gcc2 internal prototype to avoid an error. */
2400 /* We use char because int might match the return type of a gcc2
2401 builtin and then its argument prototype would still apply. */
2402 char gethostbyname();
2404 int main() {
2405 gethostbyname()
2406 ; return 0; }
2408 if { (eval echo configure:2409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2409 rm -rf conftest*
2410 eval "ac_cv_lib_$ac_lib_var=yes"
2411 else
2412 echo "configure: failed program was:" >&5
2413 cat conftest.$ac_ext >&5
2414 rm -rf conftest*
2415 eval "ac_cv_lib_$ac_lib_var=no"
2417 rm -f conftest*
2418 LIBS="$ac_save_LIBS"
2421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2422 echo "$ac_t""yes" 1>&6
2423 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2424 else
2425 echo "$ac_t""no" 1>&6
2430 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2431 # socket/setsockopt and other routines are undefined under SCO ODT
2432 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2433 # on later versions), says simon@lia.di.epfl.ch: it contains
2434 # gethostby* variants that don't use the nameserver (or something).
2435 # -lsocket must be given before -lnsl if both are needed.
2436 # We assume that if connect needs -lnsl, so does gethostbyname.
2437 echo $ac_n "checking for connect""... $ac_c" 1>&6
2438 echo "configure:2439: checking for connect" >&5
2439 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2441 else
2442 cat > conftest.$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2445 /* System header to define __stub macros and hopefully few prototypes,
2446 which can conflict with char connect(); below. */
2447 #include <assert.h>
2448 /* Override any gcc2 internal prototype to avoid an error. */
2449 /* We use char because int might match the return type of a gcc2
2450 builtin and then its argument prototype would still apply. */
2451 char connect();
2453 int main() {
2455 /* The GNU C library defines this for functions which it implements
2456 to always fail with ENOSYS. Some functions are actually named
2457 something starting with __ and the normal name is an alias. */
2458 #if defined (__stub_connect) || defined (__stub___connect)
2459 choke me
2460 #else
2461 connect();
2462 #endif
2464 ; return 0; }
2466 if { (eval echo configure:2467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2467 rm -rf conftest*
2468 eval "ac_cv_func_connect=yes"
2469 else
2470 echo "configure: failed program was:" >&5
2471 cat conftest.$ac_ext >&5
2472 rm -rf conftest*
2473 eval "ac_cv_func_connect=no"
2475 rm -f conftest*
2478 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2479 echo "$ac_t""yes" 1>&6
2481 else
2482 echo "$ac_t""no" 1>&6
2485 if test $ac_cv_func_connect = no; then
2486 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2487 echo "configure:2488: checking for connect in -lsocket" >&5
2488 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2491 else
2492 ac_save_LIBS="$LIBS"
2493 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2494 cat > conftest.$ac_ext <<EOF
2495 #line 2496 "configure"
2496 #include "confdefs.h"
2497 /* Override any gcc2 internal prototype to avoid an error. */
2498 /* We use char because int might match the return type of a gcc2
2499 builtin and then its argument prototype would still apply. */
2500 char connect();
2502 int main() {
2503 connect()
2504 ; return 0; }
2506 if { (eval echo configure:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2507 rm -rf conftest*
2508 eval "ac_cv_lib_$ac_lib_var=yes"
2509 else
2510 echo "configure: failed program was:" >&5
2511 cat conftest.$ac_ext >&5
2512 rm -rf conftest*
2513 eval "ac_cv_lib_$ac_lib_var=no"
2515 rm -f conftest*
2516 LIBS="$ac_save_LIBS"
2519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2520 echo "$ac_t""yes" 1>&6
2521 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2522 else
2523 echo "$ac_t""no" 1>&6
2528 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2529 echo $ac_n "checking for remove""... $ac_c" 1>&6
2530 echo "configure:2531: checking for remove" >&5
2531 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2533 else
2534 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2537 /* System header to define __stub macros and hopefully few prototypes,
2538 which can conflict with char remove(); below. */
2539 #include <assert.h>
2540 /* Override any gcc2 internal prototype to avoid an error. */
2541 /* We use char because int might match the return type of a gcc2
2542 builtin and then its argument prototype would still apply. */
2543 char remove();
2545 int main() {
2547 /* The GNU C library defines this for functions which it implements
2548 to always fail with ENOSYS. Some functions are actually named
2549 something starting with __ and the normal name is an alias. */
2550 #if defined (__stub_remove) || defined (__stub___remove)
2551 choke me
2552 #else
2553 remove();
2554 #endif
2556 ; return 0; }
2558 if { (eval echo configure:2559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2559 rm -rf conftest*
2560 eval "ac_cv_func_remove=yes"
2561 else
2562 echo "configure: failed program was:" >&5
2563 cat conftest.$ac_ext >&5
2564 rm -rf conftest*
2565 eval "ac_cv_func_remove=no"
2567 rm -f conftest*
2570 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2571 echo "$ac_t""yes" 1>&6
2573 else
2574 echo "$ac_t""no" 1>&6
2577 if test $ac_cv_func_remove = no; then
2578 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2579 echo "configure:2580: checking for remove in -lposix" >&5
2580 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2583 else
2584 ac_save_LIBS="$LIBS"
2585 LIBS="-lposix $LIBS"
2586 cat > conftest.$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2589 /* Override any gcc2 internal prototype to avoid an error. */
2590 /* We use char because int might match the return type of a gcc2
2591 builtin and then its argument prototype would still apply. */
2592 char remove();
2594 int main() {
2595 remove()
2596 ; return 0; }
2598 if { (eval echo configure:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2599 rm -rf conftest*
2600 eval "ac_cv_lib_$ac_lib_var=yes"
2601 else
2602 echo "configure: failed program was:" >&5
2603 cat conftest.$ac_ext >&5
2604 rm -rf conftest*
2605 eval "ac_cv_lib_$ac_lib_var=no"
2607 rm -f conftest*
2608 LIBS="$ac_save_LIBS"
2611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2612 echo "$ac_t""yes" 1>&6
2613 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2614 else
2615 echo "$ac_t""no" 1>&6
2620 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2621 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2622 echo "configure:2623: checking for shmat" >&5
2623 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2625 else
2626 cat > conftest.$ac_ext <<EOF
2627 #line 2628 "configure"
2628 #include "confdefs.h"
2629 /* System header to define __stub macros and hopefully few prototypes,
2630 which can conflict with char shmat(); below. */
2631 #include <assert.h>
2632 /* Override any gcc2 internal prototype to avoid an error. */
2633 /* We use char because int might match the return type of a gcc2
2634 builtin and then its argument prototype would still apply. */
2635 char shmat();
2637 int main() {
2639 /* The GNU C library defines this for functions which it implements
2640 to always fail with ENOSYS. Some functions are actually named
2641 something starting with __ and the normal name is an alias. */
2642 #if defined (__stub_shmat) || defined (__stub___shmat)
2643 choke me
2644 #else
2645 shmat();
2646 #endif
2648 ; return 0; }
2650 if { (eval echo configure:2651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2651 rm -rf conftest*
2652 eval "ac_cv_func_shmat=yes"
2653 else
2654 echo "configure: failed program was:" >&5
2655 cat conftest.$ac_ext >&5
2656 rm -rf conftest*
2657 eval "ac_cv_func_shmat=no"
2659 rm -f conftest*
2662 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2663 echo "$ac_t""yes" 1>&6
2665 else
2666 echo "$ac_t""no" 1>&6
2669 if test $ac_cv_func_shmat = no; then
2670 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2671 echo "configure:2672: checking for shmat in -lipc" >&5
2672 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2675 else
2676 ac_save_LIBS="$LIBS"
2677 LIBS="-lipc $LIBS"
2678 cat > conftest.$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2681 /* Override any gcc2 internal prototype to avoid an error. */
2682 /* We use char because int might match the return type of a gcc2
2683 builtin and then its argument prototype would still apply. */
2684 char shmat();
2686 int main() {
2687 shmat()
2688 ; return 0; }
2690 if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2691 rm -rf conftest*
2692 eval "ac_cv_lib_$ac_lib_var=yes"
2693 else
2694 echo "configure: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2696 rm -rf conftest*
2697 eval "ac_cv_lib_$ac_lib_var=no"
2699 rm -f conftest*
2700 LIBS="$ac_save_LIBS"
2703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2704 echo "$ac_t""yes" 1>&6
2705 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2706 else
2707 echo "$ac_t""no" 1>&6
2713 # Check for libraries that X11R6 Xt/Xaw programs need.
2714 ac_save_LDFLAGS="$LDFLAGS"
2715 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2716 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2717 # check for ICE first), but we must link in the order -lSM -lICE or
2718 # we get undefined symbols. So assume we have SM if we have ICE.
2719 # These have to be linked with before -lX11, unlike the other
2720 # libraries we check for below, so use a different variable.
2721 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2722 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2723 echo "configure:2724: checking for IceConnectionNumber in -lICE" >&5
2724 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2725 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2727 else
2728 ac_save_LIBS="$LIBS"
2729 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2730 cat > conftest.$ac_ext <<EOF
2731 #line 2732 "configure"
2732 #include "confdefs.h"
2733 /* Override any gcc2 internal prototype to avoid an error. */
2734 /* We use char because int might match the return type of a gcc2
2735 builtin and then its argument prototype would still apply. */
2736 char IceConnectionNumber();
2738 int main() {
2739 IceConnectionNumber()
2740 ; return 0; }
2742 if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2743 rm -rf conftest*
2744 eval "ac_cv_lib_$ac_lib_var=yes"
2745 else
2746 echo "configure: failed program was:" >&5
2747 cat conftest.$ac_ext >&5
2748 rm -rf conftest*
2749 eval "ac_cv_lib_$ac_lib_var=no"
2751 rm -f conftest*
2752 LIBS="$ac_save_LIBS"
2755 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2756 echo "$ac_t""yes" 1>&6
2757 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2758 else
2759 echo "$ac_t""no" 1>&6
2762 LDFLAGS="$ac_save_LDFLAGS"
2766 IFACEOBJS='$(X11OBJS) $(X11IMAGE)'
2767 IFACELIBS='$(XLIBS)'
2768 IFACEINC='$(XINC) -I./x11'
2772 out_lib=${LIBS}
2775 echo $ac_n "checking for working const""... $ac_c" 1>&6
2776 echo "configure:2777: checking for working const" >&5
2777 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2779 else
2780 cat > conftest.$ac_ext <<EOF
2781 #line 2782 "configure"
2782 #include "confdefs.h"
2784 int main() {
2786 /* Ultrix mips cc rejects this. */
2787 typedef int charset[2]; const charset x;
2788 /* SunOS 4.1.1 cc rejects this. */
2789 char const *const *ccp;
2790 char **p;
2791 /* NEC SVR4.0.2 mips cc rejects this. */
2792 struct point {int x, y;};
2793 static struct point const zero = {0,0};
2794 /* AIX XL C 1.02.0.0 rejects this.
2795 It does not let you subtract one const X* pointer from another in an arm
2796 of an if-expression whose if-part is not a constant expression */
2797 const char *g = "string";
2798 ccp = &g + (g ? g-g : 0);
2799 /* HPUX 7.0 cc rejects these. */
2800 ++ccp;
2801 p = (char**) ccp;
2802 ccp = (char const *const *) p;
2803 { /* SCO 3.2v4 cc rejects this. */
2804 char *t;
2805 char const *s = 0 ? (char *) 0 : (char const *) 0;
2807 *t++ = 0;
2809 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2810 int x[] = {25, 17};
2811 const int *foo = &x[0];
2812 ++foo;
2814 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2815 typedef const int *iptr;
2816 iptr p = 0;
2817 ++p;
2819 { /* AIX XL C 1.02.0.0 rejects this saying
2820 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2821 struct s { int j; const int *ap[3]; };
2822 struct s *b; b->j = 5;
2824 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2825 const int foo = 10;
2828 ; return 0; }
2830 if { (eval echo configure:2831: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2831 rm -rf conftest*
2832 ac_cv_c_const=yes
2833 else
2834 echo "configure: failed program was:" >&5
2835 cat conftest.$ac_ext >&5
2836 rm -rf conftest*
2837 ac_cv_c_const=no
2839 rm -f conftest*
2842 echo "$ac_t""$ac_cv_c_const" 1>&6
2843 if test $ac_cv_c_const = no; then
2844 cat >> confdefs.h <<\EOF
2845 #define const
2850 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
2851 echo "configure:2852: checking for uid_t in sys/types.h" >&5
2852 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
2853 echo $ac_n "(cached) $ac_c" 1>&6
2854 else
2855 cat > conftest.$ac_ext <<EOF
2856 #line 2857 "configure"
2857 #include "confdefs.h"
2858 #include <sys/types.h>
2860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2861 egrep "uid_t" >/dev/null 2>&1; then
2862 rm -rf conftest*
2863 ac_cv_type_uid_t=yes
2864 else
2865 rm -rf conftest*
2866 ac_cv_type_uid_t=no
2868 rm -f conftest*
2872 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
2873 if test $ac_cv_type_uid_t = no; then
2874 cat >> confdefs.h <<\EOF
2875 #define uid_t int
2878 cat >> confdefs.h <<\EOF
2879 #define gid_t int
2884 echo $ac_n "checking for inline""... $ac_c" 1>&6
2885 echo "configure:2886: checking for inline" >&5
2886 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2887 echo $ac_n "(cached) $ac_c" 1>&6
2888 else
2889 ac_cv_c_inline=no
2890 for ac_kw in inline __inline__ __inline; do
2891 cat > conftest.$ac_ext <<EOF
2892 #line 2893 "configure"
2893 #include "confdefs.h"
2895 int main() {
2896 } $ac_kw foo() {
2897 ; return 0; }
2899 if { (eval echo configure:2900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2900 rm -rf conftest*
2901 ac_cv_c_inline=$ac_kw; break
2902 else
2903 echo "configure: failed program was:" >&5
2904 cat conftest.$ac_ext >&5
2906 rm -f conftest*
2907 done
2911 echo "$ac_t""$ac_cv_c_inline" 1>&6
2912 case "$ac_cv_c_inline" in
2913 inline | yes) ;;
2914 no) cat >> confdefs.h <<\EOF
2915 #define inline
2918 *) cat >> confdefs.h <<EOF
2919 #define inline $ac_cv_c_inline
2922 esac
2924 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2925 echo "configure:2926: checking for mode_t" >&5
2926 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2927 echo $ac_n "(cached) $ac_c" 1>&6
2928 else
2929 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2932 #include <sys/types.h>
2933 #if STDC_HEADERS
2934 #include <stdlib.h>
2935 #include <stddef.h>
2936 #endif
2938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2939 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2940 rm -rf conftest*
2941 ac_cv_type_mode_t=yes
2942 else
2943 rm -rf conftest*
2944 ac_cv_type_mode_t=no
2946 rm -f conftest*
2949 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2950 if test $ac_cv_type_mode_t = no; then
2951 cat >> confdefs.h <<\EOF
2952 #define mode_t int
2957 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2958 echo "configure:2959: checking for pid_t" >&5
2959 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2960 echo $ac_n "(cached) $ac_c" 1>&6
2961 else
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 #include <sys/types.h>
2966 #if STDC_HEADERS
2967 #include <stdlib.h>
2968 #include <stddef.h>
2969 #endif
2971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2972 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2973 rm -rf conftest*
2974 ac_cv_type_pid_t=yes
2975 else
2976 rm -rf conftest*
2977 ac_cv_type_pid_t=no
2979 rm -f conftest*
2982 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2983 if test $ac_cv_type_pid_t = no; then
2984 cat >> confdefs.h <<\EOF
2985 #define pid_t int
2990 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2991 echo "configure:2992: checking for size_t" >&5
2992 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2994 else
2995 cat > conftest.$ac_ext <<EOF
2996 #line 2997 "configure"
2997 #include "confdefs.h"
2998 #include <sys/types.h>
2999 #if STDC_HEADERS
3000 #include <stdlib.h>
3001 #include <stddef.h>
3002 #endif
3004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3005 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3006 rm -rf conftest*
3007 ac_cv_type_size_t=yes
3008 else
3009 rm -rf conftest*
3010 ac_cv_type_size_t=no
3012 rm -f conftest*
3015 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3016 if test $ac_cv_type_size_t = no; then
3017 cat >> confdefs.h <<\EOF
3018 #define size_t unsigned
3023 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3024 echo "configure:3025: checking whether struct tm is in sys/time.h or time.h" >&5
3025 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3027 else
3028 cat > conftest.$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3031 #include <sys/types.h>
3032 #include <time.h>
3033 int main() {
3034 struct tm *tp; tp->tm_sec;
3035 ; return 0; }
3037 if { (eval echo configure:3038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3038 rm -rf conftest*
3039 ac_cv_struct_tm=time.h
3040 else
3041 echo "configure: failed program was:" >&5
3042 cat conftest.$ac_ext >&5
3043 rm -rf conftest*
3044 ac_cv_struct_tm=sys/time.h
3046 rm -f conftest*
3049 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3050 if test $ac_cv_struct_tm = sys/time.h; then
3051 cat >> confdefs.h <<\EOF
3052 #define TM_IN_SYS_TIME 1
3057 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3058 echo "configure:3059: checking return type of signal handlers" >&5
3059 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3061 else
3062 cat > conftest.$ac_ext <<EOF
3063 #line 3064 "configure"
3064 #include "confdefs.h"
3065 #include <sys/types.h>
3066 #include <signal.h>
3067 #ifdef signal
3068 #undef signal
3069 #endif
3070 #ifdef __cplusplus
3071 extern "C" void (*signal (int, void (*)(int)))(int);
3072 #else
3073 void (*signal ()) ();
3074 #endif
3076 int main() {
3077 int i;
3078 ; return 0; }
3080 if { (eval echo configure:3081: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3081 rm -rf conftest*
3082 ac_cv_type_signal=void
3083 else
3084 echo "configure: failed program was:" >&5
3085 cat conftest.$ac_ext >&5
3086 rm -rf conftest*
3087 ac_cv_type_signal=int
3089 rm -f conftest*
3092 echo "$ac_t""$ac_cv_type_signal" 1>&6
3093 cat >> confdefs.h <<EOF
3094 #define RETSIGTYPE $ac_cv_type_signal
3103 if test $ac_cv_prog_gcc = yes; then
3104 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
3105 echo "configure:3106: checking whether ${CC-cc} needs -traditional" >&5
3106 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3108 else
3109 ac_pattern="Autoconf.*'x'"
3110 cat > conftest.$ac_ext <<EOF
3111 #line 3112 "configure"
3112 #include "confdefs.h"
3113 #include <sgtty.h>
3114 Autoconf TIOCGETP
3116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3117 egrep "$ac_pattern" >/dev/null 2>&1; then
3118 rm -rf conftest*
3119 ac_cv_prog_gcc_traditional=yes
3120 else
3121 rm -rf conftest*
3122 ac_cv_prog_gcc_traditional=no
3124 rm -f conftest*
3127 if test $ac_cv_prog_gcc_traditional = no; then
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 #include <termio.h>
3132 Autoconf TCGETA
3134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3135 egrep "$ac_pattern" >/dev/null 2>&1; then
3136 rm -rf conftest*
3137 ac_cv_prog_gcc_traditional=yes
3139 rm -f conftest*
3144 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
3145 if test $ac_cv_prog_gcc_traditional = yes; then
3146 CC="$CC -traditional"
3150 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
3151 echo "configure:3152: checking for 8-bit clean memcmp" >&5
3152 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
3153 echo $ac_n "(cached) $ac_c" 1>&6
3154 else
3155 if test "$cross_compiling" = yes; then
3156 ac_cv_func_memcmp_clean=no
3157 else
3158 cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3162 main()
3164 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
3165 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
3169 if { (eval echo configure:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3170 then
3171 ac_cv_func_memcmp_clean=yes
3172 else
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3175 rm -fr conftest*
3176 ac_cv_func_memcmp_clean=no
3178 rm -fr conftest*
3183 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
3184 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
3186 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3187 echo "configure:3188: checking return type of signal handlers" >&5
3188 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3189 echo $ac_n "(cached) $ac_c" 1>&6
3190 else
3191 cat > conftest.$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 #include <sys/types.h>
3195 #include <signal.h>
3196 #ifdef signal
3197 #undef signal
3198 #endif
3199 #ifdef __cplusplus
3200 extern "C" void (*signal (int, void (*)(int)))(int);
3201 #else
3202 void (*signal ()) ();
3203 #endif
3205 int main() {
3206 int i;
3207 ; return 0; }
3209 if { (eval echo configure:3210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3210 rm -rf conftest*
3211 ac_cv_type_signal=void
3212 else
3213 echo "configure: failed program was:" >&5
3214 cat conftest.$ac_ext >&5
3215 rm -rf conftest*
3216 ac_cv_type_signal=int
3218 rm -f conftest*
3221 echo "$ac_t""$ac_cv_type_signal" 1>&6
3222 cat >> confdefs.h <<EOF
3223 #define RETSIGTYPE $ac_cv_type_signal
3227 for ac_func in getcwd \
3228 mkdir \
3229 putenv \
3230 select \
3231 socket \
3232 seteuid \
3233 unsetenv \
3234 setutent \
3235 atexit
3238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3239 echo "configure:3240: checking for $ac_func" >&5
3240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3242 else
3243 cat > conftest.$ac_ext <<EOF
3244 #line 3245 "configure"
3245 #include "confdefs.h"
3246 /* System header to define __stub macros and hopefully few prototypes,
3247 which can conflict with char $ac_func(); below. */
3248 #include <assert.h>
3249 /* Override any gcc2 internal prototype to avoid an error. */
3250 /* We use char because int might match the return type of a gcc2
3251 builtin and then its argument prototype would still apply. */
3252 char $ac_func();
3254 int main() {
3256 /* The GNU C library defines this for functions which it implements
3257 to always fail with ENOSYS. Some functions are actually named
3258 something starting with __ and the normal name is an alias. */
3259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3260 choke me
3261 #else
3262 $ac_func();
3263 #endif
3265 ; return 0; }
3267 if { (eval echo configure:3268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3268 rm -rf conftest*
3269 eval "ac_cv_func_$ac_func=yes"
3270 else
3271 echo "configure: failed program was:" >&5
3272 cat conftest.$ac_ext >&5
3273 rm -rf conftest*
3274 eval "ac_cv_func_$ac_func=no"
3276 rm -f conftest*
3279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3280 echo "$ac_t""yes" 1>&6
3281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3282 cat >> confdefs.h <<EOF
3283 #define $ac_tr_func 1
3286 else
3287 echo "$ac_t""no" 1>&6
3289 done
3294 CFLAGS=${CFLAGS--O}
3295 LDFLAGS=${LDFLAGS--O}
3296 CPPFLAGS="$CPPFLAGS"
3301 MCOMMON=./src/Make.common
3306 case "$ARCH" in
3307 *hppa*|*hpux*)
3308 # do nothing
3310 *solaris*)
3311 if test "$GCC" = "yes"; then
3312 echo $ac_n "checking "whether we need -fpermissive"""... $ac_c" 1>&6
3313 echo "configure:3314: checking "whether we need -fpermissive"" >&5
3314 old_cflags="$CFLAGS"
3315 CFLAGS="-fpermissive $CFLAGS"
3316 if test "$cross_compiling" = yes; then
3317 echo "$ac_t""no" 1>&6
3318 CFLAGS="$old_cflags"
3319 else
3320 cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 main()
3324 { exit(0);
3327 if { (eval echo configure:3328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3328 then
3329 if grep 'option `-fpermissive'"'" config.log >/dev/null; then
3330 echo "$ac_t""no" 1>&6
3331 CFLAGS="$old_cflags"
3332 else
3333 CFLAGS="$old_cflags -fpermissive"
3334 echo "$ac_t""yes" 1>&6
3336 else
3337 echo "configure: failed program was:" >&5
3338 cat conftest.$ac_ext >&5
3339 rm -fr conftest*
3340 echo "$ac_t""no" 1>&6
3341 CFLAGS="$old_cflags"
3343 rm -fr conftest*
3348 *aix*)
3349 # do nothing
3351 *darwin*)
3352 # do nothing
3355 # do nothing
3357 esac
3362 trap '' 1 2 15
3363 cat > confcache <<\EOF
3364 # This file is a shell script that caches the results of configure
3365 # tests run on this system so they can be shared between configure
3366 # scripts and configure runs. It is not useful on other systems.
3367 # If it contains results you don't want to keep, you may remove or edit it.
3369 # By default, configure uses ./config.cache as the cache file,
3370 # creating it if it does not exist already. You can give configure
3371 # the --cache-file=FILE option to use a different cache file; that is
3372 # what configure does when it calls configure scripts in
3373 # subdirectories, so they share the cache.
3374 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3375 # config.status only pays attention to the cache file if you give it the
3376 # --recheck option to rerun configure.
3379 # The following way of writing the cache mishandles newlines in values,
3380 # but we know of no workaround that is simple, portable, and efficient.
3381 # So, don't put newlines in cache variables' values.
3382 # Ultrix sh set writes to stderr and can't be redirected directly,
3383 # and sets the high bit in the cache file unless we assign to the vars.
3384 (set) 2>&1 |
3385 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3386 *ac_space=\ *)
3387 # `set' does not quote correctly, so add quotes (double-quote substitution
3388 # turns \\\\ into \\, and sed turns \\ into \).
3389 sed -n \
3390 -e "s/'/'\\\\''/g" \
3391 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3394 # `set' quotes correctly as required by POSIX, so do not add quotes.
3395 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3397 esac >> confcache
3398 if cmp -s $cache_file confcache; then
3400 else
3401 if test -w $cache_file; then
3402 echo "updating cache $cache_file"
3403 cat confcache > $cache_file
3404 else
3405 echo "not updating unwritable cache $cache_file"
3408 rm -f confcache
3410 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3412 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3413 # Let make expand exec_prefix.
3414 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3416 # Any assignment to VPATH causes Sun make to only execute
3417 # the first set of double-colon rules, so remove it if not needed.
3418 # If there is a colon in the path, we need to keep it.
3419 if test "x$srcdir" = x.; then
3420 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3423 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3425 DEFS=-DHAVE_CONFIG_H
3427 # Without the "./", some shells look in PATH for config.status.
3428 : ${CONFIG_STATUS=./config.status}
3430 echo creating $CONFIG_STATUS
3431 rm -f $CONFIG_STATUS
3432 cat > $CONFIG_STATUS <<EOF
3433 #! /bin/sh
3434 # Generated automatically by configure.
3435 # Run this file to recreate the current configuration.
3436 # This directory was configured as follows,
3437 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3439 # $0 $ac_configure_args
3441 # Compiler output produced by configure, useful for debugging
3442 # configure, is in ./config.log if it exists.
3444 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3445 for ac_option
3447 case "\$ac_option" in
3448 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3449 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3450 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3451 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3452 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3453 exit 0 ;;
3454 -help | --help | --hel | --he | --h)
3455 echo "\$ac_cs_usage"; exit 0 ;;
3456 *) echo "\$ac_cs_usage"; exit 1 ;;
3457 esac
3458 done
3460 ac_given_srcdir=$srcdir
3461 ac_given_INSTALL="$INSTALL"
3463 trap 'rm -fr `echo "\
3464 src/Make.common \
3465 src/makefile \
3466 src/include/globals.h \
3467 src/image/makefile \
3468 Makefile src/include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3470 cat >> $CONFIG_STATUS <<EOF
3472 # Protect against being on the right side of a sed subst in config.status.
3473 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3474 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3475 $ac_vpsub
3476 $extrasub
3477 s%@SHELL@%$SHELL%g
3478 s%@CFLAGS@%$CFLAGS%g
3479 s%@CPPFLAGS@%$CPPFLAGS%g
3480 s%@CXXFLAGS@%$CXXFLAGS%g
3481 s%@FFLAGS@%$FFLAGS%g
3482 s%@DEFS@%$DEFS%g
3483 s%@LDFLAGS@%$LDFLAGS%g
3484 s%@LIBS@%$LIBS%g
3485 s%@exec_prefix@%$exec_prefix%g
3486 s%@prefix@%$prefix%g
3487 s%@program_transform_name@%$program_transform_name%g
3488 s%@bindir@%$bindir%g
3489 s%@sbindir@%$sbindir%g
3490 s%@libexecdir@%$libexecdir%g
3491 s%@datadir@%$datadir%g
3492 s%@sysconfdir@%$sysconfdir%g
3493 s%@sharedstatedir@%$sharedstatedir%g
3494 s%@localstatedir@%$localstatedir%g
3495 s%@libdir@%$libdir%g
3496 s%@includedir@%$includedir%g
3497 s%@oldincludedir@%$oldincludedir%g
3498 s%@infodir@%$infodir%g
3499 s%@mandir@%$mandir%g
3500 s%@host@%$host%g
3501 s%@host_alias@%$host_alias%g
3502 s%@host_cpu@%$host_cpu%g
3503 s%@host_vendor@%$host_vendor%g
3504 s%@host_os@%$host_os%g
3505 s%@CC@%$CC%g
3506 s%@CPP@%$CPP%g
3507 s%@CXX@%$CXX%g
3508 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3509 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3510 s%@INSTALL_DATA@%$INSTALL_DATA%g
3511 s%@LN_S@%$LN_S%g
3512 s%@SET_MAKE@%$SET_MAKE%g
3513 s%@RANLIB@%$RANLIB%g
3514 s%@RM@%$RM%g
3515 s%@CP@%$CP%g
3516 s%@SHAREFLAGS@%$SHAREFLAGS%g
3517 s%@LD_SHAREFLAGS@%$LD_SHAREFLAGS%g
3518 s%@PLUGINS@%$PLUGINS%g
3519 s%@DEB@%$DEB%g
3520 s%@IFACEOBJS@%$IFACEOBJS%g
3521 s%@IFACELIBS@%$IFACELIBS%g
3522 s%@IFACEINC@%$IFACEINC%g
3523 s%@X_CFLAGS@%$X_CFLAGS%g
3524 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
3525 s%@X_LIBS@%$X_LIBS%g
3526 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3527 s%@LIBOBJS@%$LIBOBJS%g
3528 /@MCOMMON@/r $MCOMMON
3529 s%@MCOMMON@%%g
3531 CEOF
3534 cat >> $CONFIG_STATUS <<\EOF
3536 # Split the substitutions into bite-sized pieces for seds with
3537 # small command number limits, like on Digital OSF/1 and HP-UX.
3538 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3539 ac_file=1 # Number of current file.
3540 ac_beg=1 # First line for current file.
3541 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3542 ac_more_lines=:
3543 ac_sed_cmds=""
3544 while $ac_more_lines; do
3545 if test $ac_beg -gt 1; then
3546 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3547 else
3548 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3550 if test ! -s conftest.s$ac_file; then
3551 ac_more_lines=false
3552 rm -f conftest.s$ac_file
3553 else
3554 if test -z "$ac_sed_cmds"; then
3555 ac_sed_cmds="sed -f conftest.s$ac_file"
3556 else
3557 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3559 ac_file=`expr $ac_file + 1`
3560 ac_beg=$ac_end
3561 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3563 done
3564 if test -z "$ac_sed_cmds"; then
3565 ac_sed_cmds=cat
3569 cat >> $CONFIG_STATUS <<EOF
3571 CONFIG_FILES=\${CONFIG_FILES-"\
3572 src/Make.common \
3573 src/makefile \
3574 src/include/globals.h \
3575 src/image/makefile \
3576 Makefile"}
3578 cat >> $CONFIG_STATUS <<\EOF
3579 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3580 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3581 case "$ac_file" in
3582 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3583 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3584 *) ac_file_in="${ac_file}.in" ;;
3585 esac
3587 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3589 # Remove last slash and all that follows it. Not all systems have dirname.
3590 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3591 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3592 # The file is in a subdirectory.
3593 test ! -d "$ac_dir" && mkdir "$ac_dir"
3594 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3595 # A "../" for each directory in $ac_dir_suffix.
3596 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3597 else
3598 ac_dir_suffix= ac_dots=
3601 case "$ac_given_srcdir" in
3602 .) srcdir=.
3603 if test -z "$ac_dots"; then top_srcdir=.
3604 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3605 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3606 *) # Relative path.
3607 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3608 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3609 esac
3611 case "$ac_given_INSTALL" in
3612 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3613 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3614 esac
3616 echo creating "$ac_file"
3617 rm -f "$ac_file"
3618 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3619 case "$ac_file" in
3620 *Makefile*) ac_comsub="1i\\
3621 # $configure_input" ;;
3622 *) ac_comsub= ;;
3623 esac
3625 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3626 sed -e "$ac_comsub
3627 s%@configure_input@%$configure_input%g
3628 s%@srcdir@%$srcdir%g
3629 s%@top_srcdir@%$top_srcdir%g
3630 s%@INSTALL@%$INSTALL%g
3631 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3632 fi; done
3633 rm -f conftest.s*
3635 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3636 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3638 # ac_d sets the value in "#define NAME VALUE" lines.
3639 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3640 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3641 ac_dC='\3'
3642 ac_dD='%g'
3643 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3644 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3645 ac_uB='\([ ]\)%\1#\2define\3'
3646 ac_uC=' '
3647 ac_uD='\4%g'
3648 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3649 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3650 ac_eB='$%\1#\2define\3'
3651 ac_eC=' '
3652 ac_eD='%g'
3654 if test "${CONFIG_HEADERS+set}" != set; then
3656 cat >> $CONFIG_STATUS <<EOF
3657 CONFIG_HEADERS="src/include/config.h"
3659 cat >> $CONFIG_STATUS <<\EOF
3661 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3662 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3663 case "$ac_file" in
3664 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3665 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3666 *) ac_file_in="${ac_file}.in" ;;
3667 esac
3669 echo creating $ac_file
3671 rm -f conftest.frag conftest.in conftest.out
3672 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3673 cat $ac_file_inputs > conftest.in
3677 # Transform confdefs.h into a sed script conftest.vals that substitutes
3678 # the proper values into config.h.in to produce config.h. And first:
3679 # Protect against being on the right side of a sed subst in config.status.
3680 # Protect against being in an unquoted here document in config.status.
3681 rm -f conftest.vals
3682 cat > conftest.hdr <<\EOF
3683 s/[\\&%]/\\&/g
3684 s%[\\$`]%\\&%g
3685 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3686 s%ac_d%ac_u%gp
3687 s%ac_u%ac_e%gp
3689 sed -n -f conftest.hdr confdefs.h > conftest.vals
3690 rm -f conftest.hdr
3692 # This sed command replaces #undef with comments. This is necessary, for
3693 # example, in the case of _POSIX_SOURCE, which is predefined and required
3694 # on some systems where configure will not decide to define it.
3695 cat >> conftest.vals <<\EOF
3696 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3699 # Break up conftest.vals because some shells have a limit on
3700 # the size of here documents, and old seds have small limits too.
3702 rm -f conftest.tail
3703 while :
3705 ac_lines=`grep -c . conftest.vals`
3706 # grep -c gives empty output for an empty file on some AIX systems.
3707 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3708 # Write a limited-size here document to conftest.frag.
3709 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3710 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3711 echo 'CEOF
3712 sed -f conftest.frag conftest.in > conftest.out
3713 rm -f conftest.in
3714 mv conftest.out conftest.in
3715 ' >> $CONFIG_STATUS
3716 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3717 rm -f conftest.vals
3718 mv conftest.tail conftest.vals
3719 done
3720 rm -f conftest.vals
3722 cat >> $CONFIG_STATUS <<\EOF
3723 rm -f conftest.frag conftest.h
3724 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3725 cat conftest.in >> conftest.h
3726 rm -f conftest.in
3727 if cmp -s $ac_file conftest.h 2>/dev/null; then
3728 echo "$ac_file is unchanged"
3729 rm -f conftest.h
3730 else
3731 # Remove last slash and all that follows it. Not all systems have dirname.
3732 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3733 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3734 # The file is in a subdirectory.
3735 test ! -d "$ac_dir" && mkdir "$ac_dir"
3737 rm -f $ac_file
3738 mv conftest.h $ac_file
3740 fi; done
3743 cat >> $CONFIG_STATUS <<EOF
3746 cat >> $CONFIG_STATUS <<\EOF
3748 exit 0
3750 chmod +x $CONFIG_STATUS
3751 rm -fr confdefs* $ac_clean_files
3752 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3755 echo "ZINC=" >>src/make.conf
3756 echo "ZLIB=" >>src/make.conf
3757 echo "ZDEP=" >>src/make.conf
3758 echo "PNG=" >>src/make.conf
3759 echo "OPNGS=" >>src/make.conf
3760 echo "PNGINC=" >>src/make.conf
3761 echo "PNGLIB=" >>src/make.conf
3762 echo "PNGDEP=" >>src/make.conf
3765 echo "PSEUDO=-DPSEUDOCOLOR" >>src/make.conf
3766 echo "OPSEUDO=" >>src/make.conf
3767 pse="PseudoColor; TrueColor;"
3770 echo "XBM=" >>src/make.conf
3771 echo "OXBM=" >>src/make.conf
3772 xbm=""
3774 echo "BMP=" >>src/make.conf
3775 echo "OBMP=" >>src/make.conf
3776 bmp=""
3778 echo "XPM=" >>src/make.conf
3779 echo "OXPM=" >>src/make.conf
3780 xpm=""
3782 echo "PCX=" >>src/make.conf
3783 echo "OPCX=" >>src/make.conf
3784 pcx=""
3786 echo "TGA=" >>src/make.conf
3787 echo "OTGA=" >>src/make.conf
3788 targa=""
3790 echo "TIFF=" >>src/make.conf
3791 echo "OTIFF=" >>src/make.conf
3792 echo "TLIB=" >>src/make.conf
3793 tiff=""
3795 echo "PCD=" >>src/make.conf
3796 echo "OPCDS=" >>src/make.conf
3797 pcd=""
3799 echo "--------------- X Welltris Project ----------------------"
3801 echo "
3802 Configuration:
3804 Source code location: ${srcdir}
3805 C Compiler: ${CC}
3806 C Compiler flags: ${CFLAGS}
3807 C++ Compiler: ${CXX}
3808 Libraries: ${out_lib}
3809 Install path: ${prefix}/bin
3810 Man pages path: ${prefix}/man
3811 X11 versions: ${X_LIBS}
3812 X Visuals: ${pse}
3813 Image library: GIF
3815 echo "-----------------------------------------------------------"
3816 echo ""
3817 echo "Type 'make' for building XWelltris binaries, and after that"
3818 echo "do 'make install' as 'root'."
3819 echo ""
3820 echo "Thank you..."