3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-x use the X Window System"
21 **--with-motif use Motif/Lesstif"
23 **--with-shared create shared libraries"
25 **--with-optimise create optimised code"
27 **--with-debug_flag create code with WXDEBUG define set to 1"
29 **--with-debug_info create code with debuging information"
31 **--with-debug_gdb create code with extra GDB debuging information"
33 **--with-mem_traing create code with memory tracing"
35 **--with-dmalloc use dmalloc memory debug library (www.letters.com/dmalloc/)"
37 **--with-profile create code with profiling information"
39 **--with_apple_ieee use the Apple IEEE codec"
41 **--with-threads for enabling threads"
43 **--with-dynlib to compile wxLibrary class"
45 **--without-zlib don't use zlib for LZW comression"
47 **--without-libpng don't use libpng (PNG image format)"
49 **--without-libjpeg don't use libjpeg (JPEG image format)"
51 **--with-odbc use iODBC and wxODBC classes"
53 **--with-timedate use wxTime and wxDate classes"
55 **--with-intl use internationalization system"
57 **--with-config use wxConfig class"
59 **--with-streams use wxStream etc classes"
61 **--with-serial use class serialization"
63 **--with-sockets use wxSocket etc classes"
65 **--with-afmfonts use Adobe Font Metric Font table"
67 **--with-PS-normalized use normalized PS fonts"
69 **--with-postscript use wxPostscriptDC device context"
71 **--with-unicode compile wxString with Unicode support"
73 **--with-wcsrtombs use wcsrtombs instead of (buggy in GNU libc5) wcstombs"
75 **--with-wxresources use wxWindows's resources"
77 **--with-prologio use Prolog IO library"
79 **--with-rpc use Prolog's remote procedure calls"
81 **--with-ipc use interprocess communication (wxSocket etc.)"
83 **--with-resources use X resources for saving information"
85 **--with-clipboard use wxClipboard classes"
87 **--with-tooltips use tooltips"
89 **--with-dnd use Drag'n'Drop classes"
91 **--with-spline use Spline drawing code"
93 **--with-mdi use multiple document interface architecture"
95 **--with-docview use document view architecture"
97 **--with-printarch use printing architecture"
99 **--with-help use help (using external browser at present)"
101 **--with-gtk-prefix=PFX Prefix where GTK is installed"
103 **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
105 **--with-gtk-prefix=PFX Prefix where GTK is installed"
107 **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
109 # Initialize some variables set by options.
110 # The variables have the same names as the options, with
111 # dashes changed to underlines.
113 cache_file
=.
/config.cache
122 program_transform_name
=s
,x
,x
,
130 bindir
='${exec_prefix}/bin'
131 sbindir
='${exec_prefix}/sbin'
132 libexecdir
='${exec_prefix}/libexec'
133 datadir
='${prefix}/share'
134 sysconfdir
='${prefix}/etc'
135 sharedstatedir
='${prefix}/com'
136 localstatedir
='${prefix}/var'
137 libdir
='${exec_prefix}/lib'
138 includedir
='${prefix}/include'
139 oldincludedir
='/usr/include'
140 infodir
='${prefix}/info'
141 mandir
='${prefix}/man'
143 # Initialize some other variables.
146 SHELL
=${CONFIG_SHELL-/bin/sh}
147 # Maximum number of lines to put in a shell here document.
154 # If the previous option needs an argument, assign it.
155 if test -n "$ac_prev"; then
156 eval "$ac_prev=\$ac_option"
162 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
166 # Accept the important Cygnus configure options, so we can diagnose typos.
170 -bindir | --bindir | --bindi | --bind | --bin | --bi)
172 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
173 bindir
="$ac_optarg" ;;
175 -build | --build | --buil | --bui | --bu)
177 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178 build
="$ac_optarg" ;;
180 -cache-file | --cache-file | --cache-fil | --cache-fi \
181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182 ac_prev
=cache_file
;;
183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185 cache_file
="$ac_optarg" ;;
187 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
189 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
191 datadir
="$ac_optarg" ;;
193 -disable-* | --disable-*)
194 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
195 # Reject names that are not valid shell variable names.
196 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
197 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
199 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
200 eval "enable_${ac_feature}=no" ;;
202 -enable-* | --enable-*)
203 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
204 # Reject names that are not valid shell variable names.
205 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
206 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
208 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
213 eval "enable_${ac_feature}='$ac_optarg'" ;;
215 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
216 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
217 | --exec | --exe | --ex)
218 ac_prev
=exec_prefix
;;
219 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
220 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
221 | --exec=* | --exe=* | --ex=*)
222 exec_prefix
="$ac_optarg" ;;
224 -gas | --gas | --ga | --g)
225 # Obsolete; use --with-gas.
228 -help | --help | --hel | --he)
229 # Omit some internal or obsolete options to make the list less imposing.
230 # This message is too long to be a string in the A/UX 3.1 sh.
232 Usage: configure [options] [host]
233 Options: [defaults in brackets after descriptions]
235 --cache-file=FILE cache test results in FILE
236 --help print this message
237 --no-create do not create output files
238 --quiet, --silent do not print \`checking...' messages
239 --version print the version of autoconf that created configure
240 Directory and file names:
241 --prefix=PREFIX install architecture-independent files in PREFIX
243 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
245 --bindir=DIR user executables in DIR [EPREFIX/bin]
246 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
247 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
248 --datadir=DIR read-only architecture-independent data in DIR
250 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
251 --sharedstatedir=DIR modifiable architecture-independent data in DIR
253 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
254 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
255 --includedir=DIR C header files in DIR [PREFIX/include]
256 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
257 --infodir=DIR info documentation in DIR [PREFIX/info]
258 --mandir=DIR man documentation in DIR [PREFIX/man]
259 --srcdir=DIR find the sources in DIR [configure dir or ..]
260 --program-prefix=PREFIX prepend PREFIX to installed program names
261 --program-suffix=SUFFIX append SUFFIX to installed program names
262 --program-transform-name=PROGRAM
263 run sed PROGRAM on installed program names
267 --build=BUILD configure for building on BUILD [BUILD=HOST]
268 --host=HOST configure for HOST [guessed]
269 --target=TARGET configure for TARGET [TARGET=HOST]
270 Features and packages:
271 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
272 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
273 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
274 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
275 --x-includes=DIR X include files are in DIR
276 --x-libraries=DIR X library files are in DIR
278 if test -n "$ac_help"; then
279 echo "--enable and --with options recognized:$ac_help"
283 -host | --host | --hos | --ho)
285 -host=* | --host=* | --hos=* | --ho=*)
288 -includedir | --includedir | --includedi | --included | --include \
289 | --includ | --inclu | --incl | --inc)
290 ac_prev
=includedir
;;
291 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
292 | --includ=* | --inclu=* | --incl=* | --inc=*)
293 includedir
="$ac_optarg" ;;
295 -infodir | --infodir | --infodi | --infod | --info | --inf)
297 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
298 infodir
="$ac_optarg" ;;
300 -libdir | --libdir | --libdi | --libd)
302 -libdir=* | --libdir=* | --libdi=* | --libd=*)
303 libdir
="$ac_optarg" ;;
305 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
306 | --libexe | --libex | --libe)
307 ac_prev
=libexecdir
;;
308 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
309 | --libexe=* | --libex=* | --libe=*)
310 libexecdir
="$ac_optarg" ;;
312 -localstatedir | --localstatedir | --localstatedi | --localstated \
313 | --localstate | --localstat | --localsta | --localst \
314 | --locals | --local | --loca | --loc | --lo)
315 ac_prev
=localstatedir
;;
316 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
317 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
318 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
319 localstatedir
="$ac_optarg" ;;
321 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
323 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
324 mandir
="$ac_optarg" ;;
327 # Obsolete; use --without-fp.
330 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
334 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
335 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
338 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
339 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
340 | --oldin | --oldi | --old | --ol | --o)
341 ac_prev
=oldincludedir
;;
342 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
343 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
344 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
345 oldincludedir
="$ac_optarg" ;;
347 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
349 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
350 prefix
="$ac_optarg" ;;
352 -program-prefix | --program-prefix | --program-prefi | --program-pref \
353 | --program-pre | --program-pr | --program-p)
354 ac_prev
=program_prefix
;;
355 -program-prefix=* | --program-prefix=* | --program-prefi=* \
356 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
357 program_prefix
="$ac_optarg" ;;
359 -program-suffix | --program-suffix | --program-suffi | --program-suff \
360 | --program-suf | --program-su | --program-s)
361 ac_prev
=program_suffix
;;
362 -program-suffix=* | --program-suffix=* | --program-suffi=* \
363 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
364 program_suffix
="$ac_optarg" ;;
366 -program-transform-name | --program-transform-name \
367 | --program-transform-nam | --program-transform-na \
368 | --program-transform-n | --program-transform- \
369 | --program-transform | --program-transfor \
370 | --program-transfo | --program-transf \
371 | --program-trans | --program-tran \
372 | --progr-tra | --program-tr | --program-t)
373 ac_prev
=program_transform_name
;;
374 -program-transform-name=* | --program-transform-name=* \
375 | --program-transform-nam=* | --program-transform-na=* \
376 | --program-transform-n=* | --program-transform-=* \
377 | --program-transform=* | --program-transfor=* \
378 | --program-transfo=* | --program-transf=* \
379 | --program-trans=* | --program-tran=* \
380 | --progr-tra=* | --program-tr=* | --program-t=*)
381 program_transform_name
="$ac_optarg" ;;
383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
384 | -silent | --silent | --silen | --sile | --sil)
387 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
389 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
391 sbindir
="$ac_optarg" ;;
393 -sharedstatedir | --sharedstatedir | --sharedstatedi \
394 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
395 | --sharedst | --shareds | --shared | --share | --shar \
397 ac_prev
=sharedstatedir
;;
398 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
399 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
400 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
402 sharedstatedir
="$ac_optarg" ;;
404 -site | --site | --sit)
406 -site=* | --site=* | --sit=*)
409 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
411 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
412 srcdir
="$ac_optarg" ;;
414 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
415 | --syscon | --sysco | --sysc | --sys | --sy)
416 ac_prev
=sysconfdir
;;
417 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
418 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
419 sysconfdir
="$ac_optarg" ;;
421 -target | --target | --targe | --targ | --tar | --ta | --t)
423 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
424 target
="$ac_optarg" ;;
426 -v | -verbose | --verbose | --verbos | --verbo | --verb)
429 -version | --version | --versio | --versi | --vers)
430 echo "configure generated by autoconf version 2.13"
434 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
435 # Reject names that are not valid shell variable names.
436 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
437 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
439 ac_package
=`echo $ac_package| sed 's/-/_/g'`
444 eval "with_${ac_package}='$ac_optarg'" ;;
446 -without-* | --without-*)
447 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
448 # Reject names that are not valid shell variable names.
449 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
450 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
452 ac_package
=`echo $ac_package| sed 's/-/_/g'`
453 eval "with_${ac_package}=no" ;;
456 # Obsolete; use --with-x.
459 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
460 | --x-incl | --x-inc | --x-in | --x-i)
461 ac_prev
=x_includes
;;
462 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
463 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
464 x_includes
="$ac_optarg" ;;
466 -x-libraries | --x-libraries | --x-librarie | --x-librari \
467 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
468 ac_prev
=x_libraries
;;
469 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
470 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
471 x_libraries
="$ac_optarg" ;;
473 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
477 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
478 echo "configure: warning: $ac_option: invalid host type" 1>&2
480 if test "x$nonopt" != xNONE
; then
481 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
489 if test -n "$ac_prev"; then
490 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
493 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
495 # File descriptor usage:
498 # 2 errors and warnings
499 # 3 some systems may open it to /dev/tty
500 # 4 used on the Kubota Titan
501 # 6 checking for... messages and results
502 # 5 compiler messages saved in config.log
503 if test "$silent" = yes; then
511 This file contains any messages produced by compilers while
512 running configure, to aid debugging if configure makes a mistake.
515 # Strip out --no-create and --no-recursion so they do not pile up.
516 # Also quote any args containing shell metacharacters.
521 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
522 | --no-cr | --no-c) ;;
523 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
524 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
525 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
526 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
527 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
532 # Only set these to C if already set. These must not be set unconditionally
533 # because not all systems understand e.g. LANG=C (notably SCO).
534 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
535 # Non-C LC_CTYPE values break the ctype check.
536 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
537 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
538 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
539 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
541 # confdefs.h avoids OS command line length limits that DEFS can exceed.
542 rm -rf conftest
* confdefs.h
543 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
546 # A filename unique to this package, relative to the directory that
547 # configure is in, which we can look for to find out if srcdir is correct.
548 ac_unique_file
=configure.
in
550 # Find the source files, if location was not specified.
551 if test -z "$srcdir"; then
552 ac_srcdir_defaulted
=yes
553 # Try the directory containing this script, then its parent.
555 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
556 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
558 if test ! -r $srcdir/$ac_unique_file; then
562 ac_srcdir_defaulted
=no
564 if test ! -r $srcdir/$ac_unique_file; then
565 if test "$ac_srcdir_defaulted" = yes; then
566 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
568 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
571 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
573 # Prefer explicitly selected file to automatically selected ones.
574 if test -z "$CONFIG_SITE"; then
575 if test "x$prefix" != xNONE
; then
576 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
578 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
581 for ac_site_file
in $CONFIG_SITE; do
582 if test -r "$ac_site_file"; then
583 echo "loading site script $ac_site_file"
588 if test -r "$cache_file"; then
589 echo "loading cache $cache_file"
592 echo "creating cache $cache_file"
597 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
598 ac_cpp
='$CPP $CPPFLAGS'
599 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
600 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
601 cross_compiling
=$ac_cv_prog_cc_cross
605 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
606 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
607 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
614 ac_n
= ac_c
='\c' ac_t
=
622 if test "x$OS" = "x"; then
624 { echo "configure: error: "The system variable OS has not been
set"
625 "please
set is everytime befor compiling on this system
"
626 "A good example
for this system would be
:"
627 "setenv OSTYPE
$UNAME for csh as a SHELL
"
628 "EXPORT OSTYPE
=$UNAME for sh as SHELL
"
629 "please
set this and restart again.
"
639 /usr/Motif-1.2/include \
640 /usr/Motif-2.1/include \
642 /usr/include/Motif1.2 \
643 /opt/xpm/include/X11 \
645 /usr/Motif1.2/include \
661 /usr/local/X11R6/include \
662 /usr/local/X11R5/include \
663 /usr/local/X11R4/include \
665 /usr/local/include/X11R6 \
666 /usr/local/include/X11R5 \
667 /usr/local/include/X11R4 \
671 /usr/local/X11/include \
672 /usr/local/include/X11 \
676 /usr/XFree86/include/X11 \
683 /usr/unsupported/include \
684 /usr/athena/include \
685 /usr/local/x11r5/include \
686 /usr/lpp/Xamples/include \
688 /usr/local/include/gtk \
689 /usr/local/include/qt \
692 /usr/openwin/include \
693 /usr/openwin/share/include \
696 SEARCH_LIB
="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
700 # Extract the first word of "gcc", so it can be a program name with args.
701 set dummy gcc
; ac_word
=$2
702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
703 echo "configure:704: checking for $ac_word" >&5
704 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
705 echo $ac_n "(cached) $ac_c" 1>&6
707 if test -n "$CC"; then
708 ac_cv_prog_CC
="$CC" # Let the user override the test.
710 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
712 for ac_dir
in $ac_dummy; do
713 test -z "$ac_dir" && ac_dir
=.
714 if test -f $ac_dir/$ac_word; then
723 if test -n "$CC"; then
724 echo "$ac_t""$CC" 1>&6
726 echo "$ac_t""no" 1>&6
729 if test -z "$CC"; then
730 # Extract the first word of "cc", so it can be a program name with args.
731 set dummy cc
; ac_word
=$2
732 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
733 echo "configure:734: checking for $ac_word" >&5
734 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
735 echo $ac_n "(cached) $ac_c" 1>&6
737 if test -n "$CC"; then
738 ac_cv_prog_CC
="$CC" # Let the user override the test.
740 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
743 for ac_dir
in $ac_dummy; do
744 test -z "$ac_dir" && ac_dir
=.
745 if test -f $ac_dir/$ac_word; then
746 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
755 if test $ac_prog_rejected = yes; then
756 # We found a bogon in the path, so make sure we never use it.
757 set dummy
$ac_cv_prog_CC
759 if test $# -gt 0; then
760 # We chose a different compiler from the bogus one.
761 # However, it has the same basename, so the bogon will be chosen
762 # first if we set CC to just the basename; use the full file name.
764 set dummy
"$ac_dir/$ac_word" "$@"
772 if test -n "$CC"; then
773 echo "$ac_t""$CC" 1>&6
775 echo "$ac_t""no" 1>&6
778 if test -z "$CC"; then
781 # Extract the first word of "cl", so it can be a program name with args.
782 set dummy cl
; ac_word
=$2
783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
784 echo "configure:785: checking for $ac_word" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
788 if test -n "$CC"; then
789 ac_cv_prog_CC
="$CC" # Let the user override the test.
791 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
793 for ac_dir
in $ac_dummy; do
794 test -z "$ac_dir" && ac_dir
=.
795 if test -f $ac_dir/$ac_word; then
804 if test -n "$CC"; then
805 echo "$ac_t""$CC" 1>&6
807 echo "$ac_t""no" 1>&6
812 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
815 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
816 echo "configure:817: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
820 ac_cpp
='$CPP $CPPFLAGS'
821 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
822 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
823 cross_compiling
=$ac_cv_prog_cc_cross
825 cat > conftest.
$ac_ext << EOF
827 #line 828 "configure"
828 #include "confdefs.h"
832 if { (eval echo configure
:833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
833 ac_cv_prog_cc_works
=yes
834 # If we can't run a trivial program, we are probably using a cross compiler.
835 if (.
/conftest
; exit) 2>/dev
/null
; then
836 ac_cv_prog_cc_cross
=no
838 ac_cv_prog_cc_cross
=yes
841 echo "configure: failed program was:" >&5
842 cat conftest.
$ac_ext >&5
843 ac_cv_prog_cc_works
=no
847 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
848 ac_cpp
='$CPP $CPPFLAGS'
849 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
850 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
851 cross_compiling
=$ac_cv_prog_cc_cross
853 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
854 if test $ac_cv_prog_cc_works = no
; then
855 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
857 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
858 echo "configure:859: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
859 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
860 cross_compiling
=$ac_cv_prog_cc_cross
862 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
863 echo "configure:864: checking whether we are using GNU C" >&5
864 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
865 echo $ac_n "(cached) $ac_c" 1>&6
867 cat > conftest.c
<<EOF
872 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:873: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
879 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
881 if test $ac_cv_prog_gcc = yes; then
887 ac_test_CFLAGS
="${CFLAGS+set}"
888 ac_save_CFLAGS
="$CFLAGS"
890 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
891 echo "configure:892: checking whether ${CC-cc} accepts -g" >&5
892 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
893 echo $ac_n "(cached) $ac_c" 1>&6
895 echo 'void f(){}' > conftest.c
896 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
905 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
906 if test "$ac_test_CFLAGS" = set; then
907 CFLAGS
="$ac_save_CFLAGS"
908 elif test $ac_cv_prog_cc_g = yes; then
909 if test "$GCC" = yes; then
915 if test "$GCC" = yes; then
923 CFLAGS
=`echo "$CFLAGS" | sed 's/-g//g'`
925 if test "x$CC" != xcc
; then
926 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
927 echo "configure:928: checking whether $CC and cc understand -c and -o together" >&5
929 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
930 echo "configure:931: checking whether cc understands -c and -o together" >&5
932 set dummy
$CC; ac_cc
="`echo $2 |
933 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
934 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
937 echo 'foo(){}' > conftest.c
938 # Make sure it works both with $CC and with simple cc.
939 # We do the test twice because some compilers refuse to overwrite an
940 # existing .o file with -o, though they will create one.
941 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
942 if { (eval echo configure
:943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
943 test -f conftest.o
&& { (eval echo configure
:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
945 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
946 if test "x$CC" != xcc
; then
947 # Test first that cc exists at all.
948 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
949 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
950 if { (eval echo configure
:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
951 test -f conftest.o
&& { (eval echo configure
:952: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
956 # cc exists but doesn't like -o.
957 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
962 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
967 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
968 echo "$ac_t""yes" 1>&6
970 echo "$ac_t""no" 1>&6
971 cat >> confdefs.h
<<\EOF
972 #define NO_MINUS_C_MINUS_O 1
977 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
978 echo "configure:979: checking how to run the C preprocessor" >&5
979 # On Suns, sometimes $CPP names a directory.
980 if test -n "$CPP" && test -d "$CPP"; then
983 if test -z "$CPP"; then
984 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
987 # This must be in double quotes, not single quotes, because CPP may get
988 # substituted into the Makefile and "${CC-cc}" will confuse make.
990 # On the NeXT, cc -E runs the code through the compiler's parser,
991 # not just through cpp.
992 cat > conftest.
$ac_ext <<EOF
993 #line 994 "configure"
994 #include "confdefs.h"
998 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
999 { (eval echo configure
:1000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1000 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1001 if test -z "$ac_err"; then
1005 echo "configure: failed program was:" >&5
1006 cat conftest.
$ac_ext >&5
1008 CPP
="${CC-cc} -E -traditional-cpp"
1009 cat > conftest.
$ac_ext <<EOF
1010 #line 1011 "configure"
1011 #include "confdefs.h"
1015 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1016 { (eval echo configure
:1017: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1017 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1018 if test -z "$ac_err"; then
1022 echo "configure: failed program was:" >&5
1023 cat conftest.
$ac_ext >&5
1025 CPP
="${CC-cc} -nologo -E"
1026 cat > conftest.
$ac_ext <<EOF
1027 #line 1028 "configure"
1028 #include "confdefs.h"
1032 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1033 { (eval echo configure
:1034: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1034 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1035 if test -z "$ac_err"; then
1039 echo "configure: failed program was:" >&5
1040 cat conftest.
$ac_ext >&5
1049 ac_cv_prog_CPP
="$CPP"
1051 CPP
="$ac_cv_prog_CPP"
1053 ac_cv_prog_CPP
="$CPP"
1055 echo "$ac_t""$CPP" 1>&6
1057 if test $ac_cv_prog_gcc = yes; then
1058 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1059 echo "configure:1060: checking whether ${CC-cc} needs -traditional" >&5
1060 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1061 echo $ac_n "(cached) $ac_c" 1>&6
1063 ac_pattern
="Autoconf.*'x'"
1064 cat > conftest.
$ac_ext <<EOF
1065 #line 1066 "configure"
1066 #include "confdefs.h"
1070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1071 egrep "$ac_pattern" >/dev
/null
2>&1; then
1073 ac_cv_prog_gcc_traditional
=yes
1076 ac_cv_prog_gcc_traditional
=no
1081 if test $ac_cv_prog_gcc_traditional = no
; then
1082 cat > conftest.
$ac_ext <<EOF
1083 #line 1084 "configure"
1084 #include "confdefs.h"
1088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1089 egrep "$ac_pattern" >/dev
/null
2>&1; then
1091 ac_cv_prog_gcc_traditional
=yes
1098 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1099 if test $ac_cv_prog_gcc_traditional = yes; then
1100 CC
="$CC -traditional"
1107 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1109 # Extract the first word of "$ac_prog", so it can be a program name with args.
1110 set dummy
$ac_prog; ac_word
=$2
1111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1112 echo "configure:1113: checking for $ac_word" >&5
1113 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1116 if test -n "$CXX"; then
1117 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1119 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1121 for ac_dir
in $ac_dummy; do
1122 test -z "$ac_dir" && ac_dir
=.
1123 if test -f $ac_dir/$ac_word; then
1124 ac_cv_prog_CXX
="$ac_prog"
1131 CXX
="$ac_cv_prog_CXX"
1132 if test -n "$CXX"; then
1133 echo "$ac_t""$CXX" 1>&6
1135 echo "$ac_t""no" 1>&6
1138 test -n "$CXX" && break
1140 test -n "$CXX" || CXX
="gcc"
1143 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1147 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1148 ac_cpp
='$CXXCPP $CPPFLAGS'
1149 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1150 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1151 cross_compiling
=$ac_cv_prog_cxx_cross
1153 cat > conftest.
$ac_ext << EOF
1155 #line 1156 "configure"
1156 #include "confdefs.h"
1158 int main(){return(0);}
1160 if { (eval echo configure
:1161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1161 ac_cv_prog_cxx_works
=yes
1162 # If we can't run a trivial program, we are probably using a cross compiler.
1163 if (.
/conftest
; exit) 2>/dev
/null
; then
1164 ac_cv_prog_cxx_cross
=no
1166 ac_cv_prog_cxx_cross
=yes
1169 echo "configure: failed program was:" >&5
1170 cat conftest.
$ac_ext >&5
1171 ac_cv_prog_cxx_works
=no
1175 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1176 ac_cpp
='$CPP $CPPFLAGS'
1177 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1178 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1179 cross_compiling
=$ac_cv_prog_cc_cross
1181 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1182 if test $ac_cv_prog_cxx_works = no
; then
1183 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1185 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1186 echo "configure:1187: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1187 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1188 cross_compiling
=$ac_cv_prog_cxx_cross
1190 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1191 echo "configure:1192: checking whether we are using GNU C++" >&5
1192 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1195 cat > conftest.C
<<EOF
1200 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
1207 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1209 if test $ac_cv_prog_gxx = yes; then
1215 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1216 ac_save_CXXFLAGS
="$CXXFLAGS"
1218 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1219 echo "configure:1220: checking whether ${CXX-g++} accepts -g" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 echo 'void f(){}' > conftest.cc
1224 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1225 ac_cv_prog_cxx_g
=yes
1233 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1234 if test "$ac_test_CXXFLAGS" = set; then
1235 CXXFLAGS
="$ac_save_CXXFLAGS"
1236 elif test $ac_cv_prog_cxx_g = yes; then
1237 if test "$GXX" = yes; then
1243 if test "$GXX" = yes; then
1250 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1251 echo "configure:1252: checking how to run the C++ preprocessor" >&5
1252 if test -z "$CXXCPP"; then
1253 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1257 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1258 ac_cpp
='$CXXCPP $CPPFLAGS'
1259 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1260 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1261 cross_compiling
=$ac_cv_prog_cxx_cross
1262 CXXCPP
="${CXX-g++} -E"
1263 cat > conftest.
$ac_ext <<EOF
1264 #line 1265 "configure"
1265 #include "confdefs.h"
1268 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1269 { (eval echo configure
:1270: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1270 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1271 if test -z "$ac_err"; then
1275 echo "configure: failed program was:" >&5
1276 cat conftest.
$ac_ext >&5
1281 ac_cv_prog_CXXCPP
="$CXXCPP"
1283 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1284 ac_cpp
='$CPP $CPPFLAGS'
1285 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1286 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1287 cross_compiling
=$ac_cv_prog_cc_cross
1290 CXXCPP
="$ac_cv_prog_CXXCPP"
1291 echo "$ac_t""$CXXCPP" 1>&6
1294 CXXFLAGS
=`echo "$CXXFLAGS" | sed 's/-g//g'`
1297 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1298 ac_cpp
='$CPP $CPPFLAGS'
1299 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1300 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1301 cross_compiling
=$ac_cv_prog_cc_cross
1304 # Extract the first word of "ranlib", so it can be a program name with args.
1305 set dummy ranlib
; ac_word
=$2
1306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1307 echo "configure:1308: checking for $ac_word" >&5
1308 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1311 if test -n "$RANLIB"; then
1312 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1314 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1316 for ac_dir
in $ac_dummy; do
1317 test -z "$ac_dir" && ac_dir
=.
1318 if test -f $ac_dir/$ac_word; then
1319 ac_cv_prog_RANLIB
="ranlib"
1324 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1327 RANLIB
="$ac_cv_prog_RANLIB"
1328 if test -n "$RANLIB"; then
1329 echo "$ac_t""$RANLIB" 1>&6
1331 echo "$ac_t""no" 1>&6
1335 # Extract the first word of "ar", so it can be a program name with args.
1336 set dummy
ar; ac_word
=$2
1337 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1338 echo "configure:1339: checking for $ac_word" >&5
1339 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 if test -n "$AR"; then
1343 ac_cv_prog_AR
="$AR" # Let the user override the test.
1345 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1347 for ac_dir
in $ac_dummy; do
1348 test -z "$ac_dir" && ac_dir
=.
1349 if test -f $ac_dir/$ac_word; then
1355 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1359 if test -n "$AR"; then
1360 echo "$ac_t""$AR" 1>&6
1362 echo "$ac_t""no" 1>&6
1367 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1368 if test -f $ac_dir/install-sh; then
1370 ac_install_sh
="$ac_aux_dir/install-sh -c"
1372 elif test -f $ac_dir/install.sh
; then
1374 ac_install_sh
="$ac_aux_dir/install.sh -c"
1378 if test -z "$ac_aux_dir"; then
1379 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1381 ac_config_guess
=$ac_aux_dir/config.guess
1382 ac_config_sub
=$ac_aux_dir/config.sub
1383 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1385 # Find a good install program. We prefer a C program (faster),
1386 # so one script is as good as another. But avoid the broken or
1387 # incompatible versions:
1388 # SysV /etc/install, /usr/sbin/install
1389 # SunOS /usr/etc/install
1390 # IRIX /sbin/install
1392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1395 # ./install, which can be erroneously created by make from ./install.sh.
1396 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1397 echo "configure:1398: checking for a BSD compatible install" >&5
1398 if test -z "$INSTALL"; then
1399 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1402 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1403 for ac_dir
in $PATH; do
1404 # Account for people who put trailing slashes in PATH elements.
1406 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
1408 # OSF1 and SCO ODT 3.0 have their own names for install.
1409 # Don't use installbsd from OSF since it installs stuff as root
1411 for ac_prog
in ginstall scoinst
install; do
1412 if test -f $ac_dir/$ac_prog; then
1413 if test $ac_prog = install &&
1414 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1415 # AIX install. It has an incompatible calling convention.
1418 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1429 if test "${ac_cv_path_install+set}" = set; then
1430 INSTALL
="$ac_cv_path_install"
1432 # As a last resort, use the slow shell script. We don't cache a
1433 # path for INSTALL within a source directory, because that will
1434 # break other packages using the cache if that directory is
1435 # removed, or if the path is relative.
1436 INSTALL
="$ac_install_sh"
1439 echo "$ac_t""$INSTALL" 1>&6
1441 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1442 # It thinks the first close brace ends the variable substitution.
1443 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1445 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1447 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1450 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1451 echo "configure:1452: checking whether ln -s works" >&5
1452 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1456 if ln -s X conftestdata
2>/dev
/null
1459 ac_cv_prog_LN_S
="ln -s"
1464 LN_S
="$ac_cv_prog_LN_S"
1465 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1466 echo "$ac_t""yes" 1>&6
1468 echo "$ac_t""no" 1>&6
1472 for ac_prog
in mawk gawk nawk
awk
1474 # Extract the first word of "$ac_prog", so it can be a program name with args.
1475 set dummy
$ac_prog; ac_word
=$2
1476 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1477 echo "configure:1478: checking for $ac_word" >&5
1478 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1479 echo $ac_n "(cached) $ac_c" 1>&6
1481 if test -n "$AWK"; then
1482 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1484 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1486 for ac_dir
in $ac_dummy; do
1487 test -z "$ac_dir" && ac_dir
=.
1488 if test -f $ac_dir/$ac_word; then
1489 ac_cv_prog_AWK
="$ac_prog"
1496 AWK
="$ac_cv_prog_AWK"
1497 if test -n "$AWK"; then
1498 echo "$ac_t""$AWK" 1>&6
1500 echo "$ac_t""no" 1>&6
1503 test -n "$AWK" && break
1507 # Extract the first word of "strip", so it can be a program name with args.
1508 set dummy strip
; ac_word
=$2
1509 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1510 echo "configure:1511: checking for $ac_word" >&5
1511 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1512 echo $ac_n "(cached) $ac_c" 1>&6
1514 if test -n "$STRIP"; then
1515 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1517 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1519 for ac_dir
in $ac_dummy; do
1520 test -z "$ac_dir" && ac_dir
=.
1521 if test -f $ac_dir/$ac_word; then
1522 ac_cv_prog_STRIP
="strip"
1527 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
="true"
1530 STRIP
="$ac_cv_prog_STRIP"
1531 if test -n "$STRIP"; then
1532 echo "$ac_t""$STRIP" 1>&6
1534 echo "$ac_t""no" 1>&6
1538 echo $ac_n "checking "make for VPATH support
"""... $ac_c" 1>&6
1539 echo "configure:1540: checking "make for VPATH support
"" >&5
1540 cat - << EOF > confMake
1546 if test ! -d sub
; then
1549 echo dummy
> sub
/file
1550 ${MAKE-make} -f confMake VPATH
=sub
2> config.log
> /dev
/null
1552 rm -f sub
/file check final_file confMake
1554 if test "$RESULT" = 0; then
1555 echo "$ac_t""yes" 1>&6
1557 echo "$ac_t""no" 1>&6
1558 { echo "configure: error: You need a make-utility that is able to use the variable
1560 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
1564 # If we find X, set shell vars x_includes and x_libraries to the
1565 # paths, otherwise set no_x=yes.
1566 # Uses ac_ vars as temps to allow command line to override cache and checks.
1567 # --without-x overrides everything else, but does not touch the cache.
1568 echo $ac_n "checking for X""... $ac_c" 1>&6
1569 echo "configure:1570: checking for X" >&5
1571 # Check whether --with-x or --without-x was given.
1572 if test "${with_x+set}" = set; then
1577 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1578 if test "x$with_x" = xno
; then
1579 # The user explicitly disabled X.
1582 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1583 # Both variables are already set.
1586 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1589 # One or both of the vars are not set, and there is no cached value.
1590 ac_x_includes
=NO ac_x_libraries
=NO
1592 if mkdir conftestdir
; then
1594 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1595 cat > Imakefile
<<'EOF'
1597 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1599 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1600 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1601 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1602 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1603 for ac_extension
in a so sl
; do
1604 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1605 test -f $ac_im_libdir/libX11.
$ac_extension; then
1606 ac_im_usrlibdir
=$ac_im_libdir; break
1609 # Screen out bogus values from the imake configuration. They are
1610 # bogus both because they are the default anyway, and because
1611 # using them would break gcc on systems where it needs fixed includes.
1612 case "$ac_im_incroot" in
1614 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1616 case "$ac_im_usrlibdir" in
1618 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1625 if test "$ac_x_includes" = NO
; then
1626 # Guess where to find include files, by looking for this one X11 .h file.
1627 test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
1629 # First, try using that file with no special directory specified.
1630 cat > conftest.
$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1633 #include <$x_direct_test_include>
1635 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1636 { (eval echo configure
:1637: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1637 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1638 if test -z "$ac_err"; then
1640 # We can compile using X headers with no special include directory.
1644 echo "configure: failed program was:" >&5
1645 cat conftest.
$ac_ext >&5
1647 # Look for the header file in a standard set of common directories.
1648 # Check X11 before X11Rn because it is often a symlink to the current release.
1651 /usr
/X
11R
6/include \
1652 /usr
/X
11R
5/include \
1653 /usr
/X
11R
4/include \
1656 /usr
/include
/X11R6 \
1657 /usr
/include
/X11R5 \
1658 /usr
/include
/X11R4 \
1660 /usr
/local
/X
11/include \
1661 /usr
/local
/X
11R
6/include \
1662 /usr
/local
/X
11R
5/include \
1663 /usr
/local
/X
11R
4/include \
1665 /usr
/local
/include
/X11 \
1666 /usr
/local
/include
/X11R6 \
1667 /usr
/local
/include
/X11R5 \
1668 /usr
/local
/include
/X11R4 \
1672 /usr
/XFree
86/include
/X11 \
1675 /usr
/local
/include \
1676 /usr
/unsupported
/include \
1677 /usr
/athena
/include \
1678 /usr
/local
/x
11r
5/include \
1679 /usr
/lpp
/Xamples
/include \
1681 /usr
/openwin
/include \
1682 /usr
/openwin
/share
/include \
1685 if test -r "$ac_dir/$x_direct_test_include"; then
1686 ac_x_includes
=$ac_dir
1692 fi # $ac_x_includes = NO
1694 if test "$ac_x_libraries" = NO
; then
1695 # Check for the libraries.
1697 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1698 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1700 # See if we find them without any special options.
1701 # Don't add to $LIBS permanently.
1702 ac_save_LIBS
="$LIBS"
1703 LIBS
="-l$x_direct_test_library $LIBS"
1704 cat > conftest.
$ac_ext <<EOF
1705 #line 1706 "configure"
1706 #include "confdefs.h"
1709 ${x_direct_test_function}()
1712 if { (eval echo configure
:1713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1714 LIBS
="$ac_save_LIBS"
1715 # We can link X programs with no special library path.
1718 echo "configure: failed program was:" >&5
1719 cat conftest.
$ac_ext >&5
1721 LIBS
="$ac_save_LIBS"
1722 # First see if replacing the include by lib works.
1723 # Check X11 before X11Rn because it is often a symlink to the current release.
1724 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1735 /usr
/local
/X
11/lib \
1736 /usr
/local
/X
11R
6/lib \
1737 /usr
/local
/X
11R
5/lib \
1738 /usr
/local
/X
11R
4/lib \
1740 /usr
/local
/lib
/X11 \
1741 /usr
/local
/lib
/X11R6 \
1742 /usr
/local
/lib
/X11R5 \
1743 /usr
/local
/lib
/X11R4 \
1747 /usr
/XFree
86/lib
/X11 \
1751 /usr
/unsupported
/lib \
1753 /usr
/local
/x
11r
5/lib \
1754 /usr
/lpp
/Xamples
/lib \
1758 /usr
/openwin
/share
/lib \
1761 for ac_extension
in a so sl
; do
1762 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1763 ac_x_libraries
=$ac_dir
1770 fi # $ac_x_libraries = NO
1772 if test "$ac_x_includes" = NO
|| test "$ac_x_libraries" = NO
; then
1773 # Didn't find X anywhere. Cache the known absence of X.
1774 ac_cv_have_x
="have_x=no"
1776 # Record where we found X for the cache.
1777 ac_cv_have_x
="have_x=yes \
1778 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1782 eval "$ac_cv_have_x"
1785 if test "$have_x" != yes; then
1786 echo "$ac_t""$have_x" 1>&6
1789 # If each of the values was on the command line, it overrides each guess.
1790 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1791 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1792 # Update the cache value to reflect the command line values.
1793 ac_cv_have_x
="have_x=yes \
1794 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1795 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1798 if test "$no_x" = yes; then
1799 # Not all programs may use this symbol, but it does not hurt to define it.
1800 cat >> confdefs.h
<<\EOF
1801 #define X_DISPLAY_MISSING 1
1804 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1806 if test -n "$x_includes"; then
1807 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1810 # It would also be nice to do this for all -L options, not just this one.
1811 if test -n "$x_libraries"; then
1812 X_LIBS
="$X_LIBS -L$x_libraries"
1813 # For Solaris; some versions of Sun CC require a space after -R and
1814 # others require no space. Words are not sufficient . . . .
1815 case "`(uname -sr) 2>/dev/null`" in
1817 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1818 echo "configure:1819: checking whether -R must be followed by a space" >&5
1819 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1820 cat > conftest.
$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1828 if { (eval echo configure
:1829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1832 echo "configure: failed program was:" >&5
1833 cat conftest.
$ac_ext >&5
1838 if test $ac_R_nospace = yes; then
1839 echo "$ac_t""no" 1>&6
1840 X_LIBS
="$X_LIBS -R$x_libraries"
1842 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1843 cat > conftest.
$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1851 if { (eval echo configure
:1852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1855 echo "configure: failed program was:" >&5
1856 cat conftest.
$ac_ext >&5
1861 if test $ac_R_space = yes; then
1862 echo "$ac_t""yes" 1>&6
1863 X_LIBS
="$X_LIBS -R $x_libraries"
1865 echo "$ac_t""neither works" 1>&6
1868 LIBS
="$ac_xsave_LIBS"
1872 # Check for system-dependent libraries X programs must link with.
1873 # Do this before checking for the system-independent R6 libraries
1874 # (-lICE), since we may need -lsocket or whatever for X linking.
1876 if test "$ISC" = yes; then
1877 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1879 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1880 # libraries were built with DECnet support. And karl@cs.umb.edu says
1881 # the Alpha needs dnet_stub (dnet does not exist).
1882 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1883 echo "configure:1884: checking for dnet_ntoa in -ldnet" >&5
1884 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1886 echo $ac_n "(cached) $ac_c" 1>&6
1888 ac_save_LIBS
="$LIBS"
1890 cat > conftest.
$ac_ext <<EOF
1891 #line 1892 "configure"
1892 #include "confdefs.h"
1893 /* Override any gcc2 internal prototype to avoid an error. */
1894 /* We use char because int might match the return type of a gcc2
1895 builtin and then its argument prototype would still apply. */
1902 if { (eval echo configure
:1903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1904 eval "ac_cv_lib_$ac_lib_var=yes"
1906 echo "configure: failed program was:" >&5
1907 cat conftest.
$ac_ext >&5
1909 eval "ac_cv_lib_$ac_lib_var=no"
1912 LIBS
="$ac_save_LIBS"
1915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1916 echo "$ac_t""yes" 1>&6
1917 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1919 echo "$ac_t""no" 1>&6
1922 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1923 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1924 echo "configure:1925: checking for dnet_ntoa in -ldnet_stub" >&5
1925 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1926 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1927 echo $ac_n "(cached) $ac_c" 1>&6
1929 ac_save_LIBS
="$LIBS"
1930 LIBS
="-ldnet_stub $LIBS"
1931 cat > conftest.
$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1934 /* Override any gcc2 internal prototype to avoid an error. */
1935 /* We use char because int might match the return type of a gcc2
1936 builtin and then its argument prototype would still apply. */
1943 if { (eval echo configure
:1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1945 eval "ac_cv_lib_$ac_lib_var=yes"
1947 echo "configure: failed program was:" >&5
1948 cat conftest.
$ac_ext >&5
1950 eval "ac_cv_lib_$ac_lib_var=no"
1953 LIBS
="$ac_save_LIBS"
1956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1957 echo "$ac_t""yes" 1>&6
1958 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1960 echo "$ac_t""no" 1>&6
1965 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1966 # to get the SysV transport functions.
1967 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1969 # The nsl library prevents programs from opening the X display
1970 # on Irix 5.2, according to dickey@clark.net.
1971 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1972 echo "configure:1973: checking for gethostbyname" >&5
1973 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1974 echo $ac_n "(cached) $ac_c" 1>&6
1976 cat > conftest.
$ac_ext <<EOF
1977 #line 1978 "configure"
1978 #include "confdefs.h"
1979 /* System header to define __stub macros and hopefully few prototypes,
1980 which can conflict with char gethostbyname(); below. */
1982 /* Override any gcc2 internal prototype to avoid an error. */
1983 /* We use char because int might match the return type of a gcc2
1984 builtin and then its argument prototype would still apply. */
1985 char gethostbyname();
1989 /* The GNU C library defines this for functions which it implements
1990 to always fail with ENOSYS. Some functions are actually named
1991 something starting with __ and the normal name is an alias. */
1992 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2000 if { (eval echo configure
:2001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2002 eval "ac_cv_func_gethostbyname=yes"
2004 echo "configure: failed program was:" >&5
2005 cat conftest.
$ac_ext >&5
2007 eval "ac_cv_func_gethostbyname=no"
2012 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2013 echo "$ac_t""yes" 1>&6
2016 echo "$ac_t""no" 1>&6
2019 if test $ac_cv_func_gethostbyname = no
; then
2020 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2021 echo "configure:2022: checking for gethostbyname in -lnsl" >&5
2022 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2023 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2026 ac_save_LIBS
="$LIBS"
2028 cat > conftest.
$ac_ext <<EOF
2029 #line 2030 "configure"
2030 #include "confdefs.h"
2031 /* Override any gcc2 internal prototype to avoid an error. */
2032 /* We use char because int might match the return type of a gcc2
2033 builtin and then its argument prototype would still apply. */
2034 char gethostbyname();
2040 if { (eval echo configure
:2041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2042 eval "ac_cv_lib_$ac_lib_var=yes"
2044 echo "configure: failed program was:" >&5
2045 cat conftest.
$ac_ext >&5
2047 eval "ac_cv_lib_$ac_lib_var=no"
2050 LIBS
="$ac_save_LIBS"
2053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2054 echo "$ac_t""yes" 1>&6
2055 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2057 echo "$ac_t""no" 1>&6
2062 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2063 # socket/setsockopt and other routines are undefined under SCO ODT
2064 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2065 # on later versions), says simon@lia.di.epfl.ch: it contains
2066 # gethostby* variants that don't use the nameserver (or something).
2067 # -lsocket must be given before -lnsl if both are needed.
2068 # We assume that if connect needs -lnsl, so does gethostbyname.
2069 echo $ac_n "checking for connect""... $ac_c" 1>&6
2070 echo "configure:2071: checking for connect" >&5
2071 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2072 echo $ac_n "(cached) $ac_c" 1>&6
2074 cat > conftest.
$ac_ext <<EOF
2075 #line 2076 "configure"
2076 #include "confdefs.h"
2077 /* System header to define __stub macros and hopefully few prototypes,
2078 which can conflict with char connect(); below. */
2080 /* Override any gcc2 internal prototype to avoid an error. */
2081 /* We use char because int might match the return type of a gcc2
2082 builtin and then its argument prototype would still apply. */
2087 /* The GNU C library defines this for functions which it implements
2088 to always fail with ENOSYS. Some functions are actually named
2089 something starting with __ and the normal name is an alias. */
2090 #if defined (__stub_connect) || defined (__stub___connect)
2098 if { (eval echo configure
:2099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2100 eval "ac_cv_func_connect=yes"
2102 echo "configure: failed program was:" >&5
2103 cat conftest.
$ac_ext >&5
2105 eval "ac_cv_func_connect=no"
2110 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2111 echo "$ac_t""yes" 1>&6
2114 echo "$ac_t""no" 1>&6
2117 if test $ac_cv_func_connect = no
; then
2118 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2119 echo "configure:2120: checking for connect in -lsocket" >&5
2120 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2121 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2122 echo $ac_n "(cached) $ac_c" 1>&6
2124 ac_save_LIBS
="$LIBS"
2125 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
2126 cat > conftest.
$ac_ext <<EOF
2127 #line 2128 "configure"
2128 #include "confdefs.h"
2129 /* Override any gcc2 internal prototype to avoid an error. */
2130 /* We use char because int might match the return type of a gcc2
2131 builtin and then its argument prototype would still apply. */
2138 if { (eval echo configure
:2139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2140 eval "ac_cv_lib_$ac_lib_var=yes"
2142 echo "configure: failed program was:" >&5
2143 cat conftest.
$ac_ext >&5
2145 eval "ac_cv_lib_$ac_lib_var=no"
2148 LIBS
="$ac_save_LIBS"
2151 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2152 echo "$ac_t""yes" 1>&6
2153 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
2155 echo "$ac_t""no" 1>&6
2160 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2161 echo $ac_n "checking for remove""... $ac_c" 1>&6
2162 echo "configure:2163: checking for remove" >&5
2163 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2166 cat > conftest.
$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2169 /* System header to define __stub macros and hopefully few prototypes,
2170 which can conflict with char remove(); below. */
2172 /* Override any gcc2 internal prototype to avoid an error. */
2173 /* We use char because int might match the return type of a gcc2
2174 builtin and then its argument prototype would still apply. */
2179 /* The GNU C library defines this for functions which it implements
2180 to always fail with ENOSYS. Some functions are actually named
2181 something starting with __ and the normal name is an alias. */
2182 #if defined (__stub_remove) || defined (__stub___remove)
2190 if { (eval echo configure
:2191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2192 eval "ac_cv_func_remove=yes"
2194 echo "configure: failed program was:" >&5
2195 cat conftest.
$ac_ext >&5
2197 eval "ac_cv_func_remove=no"
2202 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2203 echo "$ac_t""yes" 1>&6
2206 echo "$ac_t""no" 1>&6
2209 if test $ac_cv_func_remove = no
; then
2210 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2211 echo "configure:2212: checking for remove in -lposix" >&5
2212 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 ac_save_LIBS
="$LIBS"
2217 LIBS
="-lposix $LIBS"
2218 cat > conftest.
$ac_ext <<EOF
2219 #line 2220 "configure"
2220 #include "confdefs.h"
2221 /* Override any gcc2 internal prototype to avoid an error. */
2222 /* We use char because int might match the return type of a gcc2
2223 builtin and then its argument prototype would still apply. */
2230 if { (eval echo configure
:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2232 eval "ac_cv_lib_$ac_lib_var=yes"
2234 echo "configure: failed program was:" >&5
2235 cat conftest.
$ac_ext >&5
2237 eval "ac_cv_lib_$ac_lib_var=no"
2240 LIBS
="$ac_save_LIBS"
2243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2244 echo "$ac_t""yes" 1>&6
2245 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2247 echo "$ac_t""no" 1>&6
2252 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2253 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2254 echo "configure:2255: checking for shmat" >&5
2255 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2256 echo $ac_n "(cached) $ac_c" 1>&6
2258 cat > conftest.
$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2261 /* System header to define __stub macros and hopefully few prototypes,
2262 which can conflict with char shmat(); below. */
2264 /* Override any gcc2 internal prototype to avoid an error. */
2265 /* We use char because int might match the return type of a gcc2
2266 builtin and then its argument prototype would still apply. */
2271 /* The GNU C library defines this for functions which it implements
2272 to always fail with ENOSYS. Some functions are actually named
2273 something starting with __ and the normal name is an alias. */
2274 #if defined (__stub_shmat) || defined (__stub___shmat)
2282 if { (eval echo configure
:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2284 eval "ac_cv_func_shmat=yes"
2286 echo "configure: failed program was:" >&5
2287 cat conftest.
$ac_ext >&5
2289 eval "ac_cv_func_shmat=no"
2294 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2295 echo "$ac_t""yes" 1>&6
2298 echo "$ac_t""no" 1>&6
2301 if test $ac_cv_func_shmat = no
; then
2302 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2303 echo "configure:2304: checking for shmat in -lipc" >&5
2304 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2306 echo $ac_n "(cached) $ac_c" 1>&6
2308 ac_save_LIBS
="$LIBS"
2310 cat > conftest.
$ac_ext <<EOF
2311 #line 2312 "configure"
2312 #include "confdefs.h"
2313 /* Override any gcc2 internal prototype to avoid an error. */
2314 /* We use char because int might match the return type of a gcc2
2315 builtin and then its argument prototype would still apply. */
2322 if { (eval echo configure
:2323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2324 eval "ac_cv_lib_$ac_lib_var=yes"
2326 echo "configure: failed program was:" >&5
2327 cat conftest.
$ac_ext >&5
2329 eval "ac_cv_lib_$ac_lib_var=no"
2332 LIBS
="$ac_save_LIBS"
2335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2336 echo "$ac_t""yes" 1>&6
2337 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2339 echo "$ac_t""no" 1>&6
2345 # Check for libraries that X11R6 Xt/Xaw programs need.
2346 ac_save_LDFLAGS
="$LDFLAGS"
2347 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2348 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2349 # check for ICE first), but we must link in the order -lSM -lICE or
2350 # we get undefined symbols. So assume we have SM if we have ICE.
2351 # These have to be linked with before -lX11, unlike the other
2352 # libraries we check for below, so use a different variable.
2353 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2354 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2355 echo "configure:2356: checking for IceConnectionNumber in -lICE" >&5
2356 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2358 echo $ac_n "(cached) $ac_c" 1>&6
2360 ac_save_LIBS
="$LIBS"
2361 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
2362 cat > conftest.
$ac_ext <<EOF
2363 #line 2364 "configure"
2364 #include "confdefs.h"
2365 /* Override any gcc2 internal prototype to avoid an error. */
2366 /* We use char because int might match the return type of a gcc2
2367 builtin and then its argument prototype would still apply. */
2368 char IceConnectionNumber();
2371 IceConnectionNumber()
2374 if { (eval echo configure
:2375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2376 eval "ac_cv_lib_$ac_lib_var=yes"
2378 echo "configure: failed program was:" >&5
2379 cat conftest.
$ac_ext >&5
2381 eval "ac_cv_lib_$ac_lib_var=no"
2384 LIBS
="$ac_save_LIBS"
2387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2388 echo "$ac_t""yes" 1>&6
2389 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2391 echo "$ac_t""no" 1>&6
2394 LDFLAGS
="$ac_save_LDFLAGS"
2400 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2402 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2403 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2404 echo "configure:2405: checking for $ac_hdr that defines DIR" >&5
2405 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 cat > conftest.
$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2411 #include <sys/types.h>
2417 if { (eval echo configure
:2418: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2419 eval "ac_cv_header_dirent_$ac_safe=yes"
2421 echo "configure: failed program was:" >&5
2422 cat conftest.
$ac_ext >&5
2424 eval "ac_cv_header_dirent_$ac_safe=no"
2428 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2429 echo "$ac_t""yes" 1>&6
2430 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2431 cat >> confdefs.h
<<EOF
2432 #define $ac_tr_hdr 1
2434 ac_header_dirent
=$ac_hdr; break
2436 echo "$ac_t""no" 1>&6
2439 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2440 if test $ac_header_dirent = dirent.h
; then
2441 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2442 echo "configure:2443: checking for opendir in -ldir" >&5
2443 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2444 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2445 echo $ac_n "(cached) $ac_c" 1>&6
2447 ac_save_LIBS
="$LIBS"
2449 cat > conftest.
$ac_ext <<EOF
2450 #line 2451 "configure"
2451 #include "confdefs.h"
2452 /* Override any gcc2 internal prototype to avoid an error. */
2453 /* We use char because int might match the return type of a gcc2
2454 builtin and then its argument prototype would still apply. */
2461 if { (eval echo configure
:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2463 eval "ac_cv_lib_$ac_lib_var=yes"
2465 echo "configure: failed program was:" >&5
2466 cat conftest.
$ac_ext >&5
2468 eval "ac_cv_lib_$ac_lib_var=no"
2471 LIBS
="$ac_save_LIBS"
2474 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2475 echo "$ac_t""yes" 1>&6
2478 echo "$ac_t""no" 1>&6
2482 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2483 echo "configure:2484: checking for opendir in -lx" >&5
2484 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2485 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2486 echo $ac_n "(cached) $ac_c" 1>&6
2488 ac_save_LIBS
="$LIBS"
2490 cat > conftest.
$ac_ext <<EOF
2491 #line 2492 "configure"
2492 #include "confdefs.h"
2493 /* Override any gcc2 internal prototype to avoid an error. */
2494 /* We use char because int might match the return type of a gcc2
2495 builtin and then its argument prototype would still apply. */
2502 if { (eval echo configure
:2503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2504 eval "ac_cv_lib_$ac_lib_var=yes"
2506 echo "configure: failed program was:" >&5
2507 cat conftest.
$ac_ext >&5
2509 eval "ac_cv_lib_$ac_lib_var=no"
2512 LIBS
="$ac_save_LIBS"
2515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2516 echo "$ac_t""yes" 1>&6
2519 echo "$ac_t""no" 1>&6
2524 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2525 echo "configure:2526: checking for ANSI C header files" >&5
2526 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2527 echo $ac_n "(cached) $ac_c" 1>&6
2529 cat > conftest.
$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2537 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2538 { (eval echo configure
:2539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2539 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2540 if test -z "$ac_err"; then
2542 ac_cv_header_stdc
=yes
2545 echo "configure: failed program was:" >&5
2546 cat conftest.
$ac_ext >&5
2548 ac_cv_header_stdc
=no
2552 if test $ac_cv_header_stdc = yes; then
2553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2554 cat > conftest.
$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2560 egrep "memchr" >/dev
/null
2>&1; then
2564 ac_cv_header_stdc
=no
2570 if test $ac_cv_header_stdc = yes; then
2571 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2572 cat > conftest.
$ac_ext <<EOF
2573 #line 2574 "configure"
2574 #include "confdefs.h"
2577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2578 egrep "free" >/dev
/null
2>&1; then
2582 ac_cv_header_stdc
=no
2588 if test $ac_cv_header_stdc = yes; then
2589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2590 if test "$cross_compiling" = yes; then
2593 cat > conftest.
$ac_ext <<EOF
2594 #line 2595 "configure"
2595 #include "confdefs.h"
2597 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2598 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2599 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2600 int main () { int i; for (i = 0; i < 256; i++)
2601 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2605 if { (eval echo configure
:2606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2609 echo "configure: failed program was:" >&5
2610 cat conftest.
$ac_ext >&5
2612 ac_cv_header_stdc
=no
2620 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2621 if test $ac_cv_header_stdc = yes; then
2622 cat >> confdefs.h
<<\EOF
2623 #define STDC_HEADERS 1
2628 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2629 echo "configure:2630: checking for sys/wait.h that is POSIX.1 compatible" >&5
2630 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2631 echo $ac_n "(cached) $ac_c" 1>&6
2633 cat > conftest.
$ac_ext <<EOF
2634 #line 2635 "configure"
2635 #include "confdefs.h"
2636 #include <sys/types.h>
2637 #include <sys/wait.h>
2639 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2642 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2647 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2650 if { (eval echo configure
:2651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2652 ac_cv_header_sys_wait_h
=yes
2654 echo "configure: failed program was:" >&5
2655 cat conftest.
$ac_ext >&5
2657 ac_cv_header_sys_wait_h
=no
2662 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2663 if test $ac_cv_header_sys_wait_h = yes; then
2664 cat >> confdefs.h
<<\EOF
2665 #define HAVE_SYS_WAIT_H 1
2670 for ac_hdr
in fcntl.h
2672 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2673 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2674 echo "configure:2675: checking for $ac_hdr" >&5
2675 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2676 echo $ac_n "(cached) $ac_c" 1>&6
2678 cat > conftest.
$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2683 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2684 { (eval echo configure
:2685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2685 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2686 if test -z "$ac_err"; then
2688 eval "ac_cv_header_$ac_safe=yes"
2691 echo "configure: failed program was:" >&5
2692 cat conftest.
$ac_ext >&5
2694 eval "ac_cv_header_$ac_safe=no"
2698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2699 echo "$ac_t""yes" 1>&6
2700 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2701 cat >> confdefs.h
<<EOF
2702 #define $ac_tr_hdr 1
2706 echo "$ac_t""no" 1>&6
2710 for ac_hdr
in limits.h
2712 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2714 echo "configure:2715: checking for $ac_hdr" >&5
2715 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2718 cat > conftest.
$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2723 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2724 { (eval echo configure
:2725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2725 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2726 if test -z "$ac_err"; then
2728 eval "ac_cv_header_$ac_safe=yes"
2731 echo "configure: failed program was:" >&5
2732 cat conftest.
$ac_ext >&5
2734 eval "ac_cv_header_$ac_safe=no"
2738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2739 echo "$ac_t""yes" 1>&6
2740 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2741 cat >> confdefs.h
<<EOF
2742 #define $ac_tr_hdr 1
2746 echo "$ac_t""no" 1>&6
2750 for ac_hdr
in sys
/file.h
2752 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2753 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2754 echo "configure:2755: checking for $ac_hdr" >&5
2755 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2756 echo $ac_n "(cached) $ac_c" 1>&6
2758 cat > conftest.
$ac_ext <<EOF
2759 #line 2760 "configure"
2760 #include "confdefs.h"
2763 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2764 { (eval echo configure
:2765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2765 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2766 if test -z "$ac_err"; then
2768 eval "ac_cv_header_$ac_safe=yes"
2771 echo "configure: failed program was:" >&5
2772 cat conftest.
$ac_ext >&5
2774 eval "ac_cv_header_$ac_safe=no"
2778 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2779 echo "$ac_t""yes" 1>&6
2780 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2781 cat >> confdefs.h
<<EOF
2782 #define $ac_tr_hdr 1
2786 echo "$ac_t""no" 1>&6
2790 for ac_hdr
in sys
/time.h
2792 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2794 echo "configure:2795: checking for $ac_hdr" >&5
2795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2796 echo $ac_n "(cached) $ac_c" 1>&6
2798 cat > conftest.
$ac_ext <<EOF
2799 #line 2800 "configure"
2800 #include "confdefs.h"
2803 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2804 { (eval echo configure
:2805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2805 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2806 if test -z "$ac_err"; then
2808 eval "ac_cv_header_$ac_safe=yes"
2811 echo "configure: failed program was:" >&5
2812 cat conftest.
$ac_ext >&5
2814 eval "ac_cv_header_$ac_safe=no"
2818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2819 echo "$ac_t""yes" 1>&6
2820 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2821 cat >> confdefs.h
<<EOF
2822 #define $ac_tr_hdr 1
2826 echo "$ac_t""no" 1>&6
2830 for ac_hdr
in unistd.h
2832 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2833 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2834 echo "configure:2835: checking for $ac_hdr" >&5
2835 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 cat > conftest.
$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2843 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2844 { (eval echo configure
:2845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2845 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2846 if test -z "$ac_err"; then
2848 eval "ac_cv_header_$ac_safe=yes"
2851 echo "configure: failed program was:" >&5
2852 cat conftest.
$ac_ext >&5
2854 eval "ac_cv_header_$ac_safe=no"
2858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2859 echo "$ac_t""yes" 1>&6
2860 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2861 cat >> confdefs.h
<<EOF
2862 #define $ac_tr_hdr 1
2866 echo "$ac_t""no" 1>&6
2870 for ac_hdr
in wchar.h
2872 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2873 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2874 echo "configure:2875: checking for $ac_hdr" >&5
2875 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2878 cat > conftest.
$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2883 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2884 { (eval echo configure
:2885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2885 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2886 if test -z "$ac_err"; then
2888 eval "ac_cv_header_$ac_safe=yes"
2891 echo "configure: failed program was:" >&5
2892 cat conftest.
$ac_ext >&5
2894 eval "ac_cv_header_$ac_safe=no"
2898 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2899 echo "$ac_t""yes" 1>&6
2900 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2901 cat >> confdefs.h
<<EOF
2902 #define $ac_tr_hdr 1
2906 echo "$ac_t""no" 1>&6
2910 for ac_hdr
in wcstr.h
2912 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2913 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2914 echo "configure:2915: checking for $ac_hdr" >&5
2915 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2916 echo $ac_n "(cached) $ac_c" 1>&6
2918 cat > conftest.
$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2923 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2924 { (eval echo configure
:2925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2925 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2926 if test -z "$ac_err"; then
2928 eval "ac_cv_header_$ac_safe=yes"
2931 echo "configure: failed program was:" >&5
2932 cat conftest.
$ac_ext >&5
2934 eval "ac_cv_header_$ac_safe=no"
2938 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2939 echo "$ac_t""yes" 1>&6
2940 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2941 cat >> confdefs.h
<<EOF
2942 #define $ac_tr_hdr 1
2946 echo "$ac_t""no" 1>&6
2950 for ac_hdr
in fnmatch.h
2952 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2953 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2954 echo "configure:2955: checking for $ac_hdr" >&5
2955 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2958 cat > conftest.
$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2963 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2964 { (eval echo configure
:2965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2965 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2966 if test -z "$ac_err"; then
2968 eval "ac_cv_header_$ac_safe=yes"
2971 echo "configure: failed program was:" >&5
2972 cat conftest.
$ac_ext >&5
2974 eval "ac_cv_header_$ac_safe=no"
2978 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2979 echo "$ac_t""yes" 1>&6
2980 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2981 cat >> confdefs.h
<<EOF
2982 #define $ac_tr_hdr 1
2986 echo "$ac_t""no" 1>&6
2990 for ac_hdr
in linux
/joystick.h
2992 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2994 echo "configure:2995: checking for $ac_hdr" >&5
2995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2998 cat > conftest.
$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3003 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3004 { (eval echo configure
:3005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3005 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3006 if test -z "$ac_err"; then
3008 eval "ac_cv_header_$ac_safe=yes"
3011 echo "configure: failed program was:" >&5
3012 cat conftest.
$ac_ext >&5
3014 eval "ac_cv_header_$ac_safe=no"
3018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3019 echo "$ac_t""yes" 1>&6
3020 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3021 cat >> confdefs.h
<<EOF
3022 #define $ac_tr_hdr 1
3026 echo "$ac_t""no" 1>&6
3031 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
3032 GTK_JOYSTICK
="gtk/joystick.cpp"
3036 for ac_hdr
in strings.h
3038 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3039 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3040 echo "configure:3041: checking for $ac_hdr" >&5
3041 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 cat > conftest.
$ac_ext <<EOF
3045 #line 3046 "configure"
3046 #include "confdefs.h"
3049 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3050 { (eval echo configure
:3051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3051 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3052 if test -z "$ac_err"; then
3054 eval "ac_cv_header_$ac_safe=yes"
3057 echo "configure: failed program was:" >&5
3058 cat conftest.
$ac_ext >&5
3060 eval "ac_cv_header_$ac_safe=no"
3064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3065 echo "$ac_t""yes" 1>&6
3066 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3067 cat >> confdefs.h
<<EOF
3068 #define $ac_tr_hdr 1
3072 echo "$ac_t""no" 1>&6
3078 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
3079 echo "configure:3080: checking for wcslen in -lc" >&5
3080 ac_lib_var
=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
3081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3082 echo $ac_n "(cached) $ac_c" 1>&6
3084 ac_save_LIBS
="$LIBS"
3086 cat > conftest.
$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3089 /* Override any gcc2 internal prototype to avoid an error. */
3090 /* We use char because int might match the return type of a gcc2
3091 builtin and then its argument prototype would still apply. */
3098 if { (eval echo configure
:3099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3100 eval "ac_cv_lib_$ac_lib_var=yes"
3102 echo "configure: failed program was:" >&5
3103 cat conftest.
$ac_ext >&5
3105 eval "ac_cv_lib_$ac_lib_var=no"
3108 LIBS
="$ac_save_LIBS"
3111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3112 echo "$ac_t""yes" 1>&6
3114 cat >> confdefs.h
<<\EOF
3115 #define HAVE_WCSLEN 1
3121 echo "$ac_t""no" 1>&6
3123 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
3124 echo "configure:3125: checking for wcslen in -lw" >&5
3125 ac_lib_var
=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
3126 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 ac_save_LIBS
="$LIBS"
3131 cat > conftest.
$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3134 /* Override any gcc2 internal prototype to avoid an error. */
3135 /* We use char because int might match the return type of a gcc2
3136 builtin and then its argument prototype would still apply. */
3143 if { (eval echo configure
:3144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3145 eval "ac_cv_lib_$ac_lib_var=yes"
3147 echo "configure: failed program was:" >&5
3148 cat conftest.
$ac_ext >&5
3150 eval "ac_cv_lib_$ac_lib_var=no"
3153 LIBS
="$ac_save_LIBS"
3156 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3157 echo "$ac_t""yes" 1>&6
3159 cat >> confdefs.h
<<\EOF
3160 #define HAVE_WCSLEN 1
3166 echo "$ac_t""no" 1>&6
3174 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3175 echo "configure:3176: checking for vprintf" >&5
3176 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3179 cat > conftest.
$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3182 /* System header to define __stub macros and hopefully few prototypes,
3183 which can conflict with char vprintf(); below. */
3185 /* Override any gcc2 internal prototype to avoid an error. */
3186 /* We use char because int might match the return type of a gcc2
3187 builtin and then its argument prototype would still apply. */
3192 /* The GNU C library defines this for functions which it implements
3193 to always fail with ENOSYS. Some functions are actually named
3194 something starting with __ and the normal name is an alias. */
3195 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3203 if { (eval echo configure
:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3205 eval "ac_cv_func_vprintf=yes"
3207 echo "configure: failed program was:" >&5
3208 cat conftest.
$ac_ext >&5
3210 eval "ac_cv_func_vprintf=no"
3215 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3216 echo "$ac_t""yes" 1>&6
3217 cat >> confdefs.h
<<\EOF
3218 #define HAVE_VPRINTF 1
3222 echo "$ac_t""no" 1>&6
3225 if test "$ac_cv_func_vprintf" != yes; then
3226 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3227 echo "configure:3228: checking for _doprnt" >&5
3228 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3231 cat > conftest.
$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3234 /* System header to define __stub macros and hopefully few prototypes,
3235 which can conflict with char _doprnt(); below. */
3237 /* Override any gcc2 internal prototype to avoid an error. */
3238 /* We use char because int might match the return type of a gcc2
3239 builtin and then its argument prototype would still apply. */
3244 /* The GNU C library defines this for functions which it implements
3245 to always fail with ENOSYS. Some functions are actually named
3246 something starting with __ and the normal name is an alias. */
3247 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3255 if { (eval echo configure
:3256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3257 eval "ac_cv_func__doprnt=yes"
3259 echo "configure: failed program was:" >&5
3260 cat conftest.
$ac_ext >&5
3262 eval "ac_cv_func__doprnt=no"
3267 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3268 echo "$ac_t""yes" 1>&6
3269 cat >> confdefs.h
<<\EOF
3270 #define HAVE_DOPRNT 1
3274 echo "$ac_t""no" 1>&6
3280 for ac_func
in vsnprintf
3282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3283 echo "configure:3284: checking for $ac_func" >&5
3284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3287 cat > conftest.
$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 /* System header to define __stub macros and hopefully few prototypes,
3291 which can conflict with char $ac_func(); below. */
3293 /* Override any gcc2 internal prototype to avoid an error. */
3294 /* We use char because int might match the return type of a gcc2
3295 builtin and then its argument prototype would still apply. */
3300 /* The GNU C library defines this for functions which it implements
3301 to always fail with ENOSYS. Some functions are actually named
3302 something starting with __ and the normal name is an alias. */
3303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3311 if { (eval echo configure
:3312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3313 eval "ac_cv_func_$ac_func=yes"
3315 echo "configure: failed program was:" >&5
3316 cat conftest.
$ac_ext >&5
3318 eval "ac_cv_func_$ac_func=no"
3323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3324 echo "$ac_t""yes" 1>&6
3325 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3326 cat >> confdefs.h
<<EOF
3327 #define $ac_tr_func 1
3329 cat >> confdefs.h
<<\EOF
3330 #define HAVE_VSNPRINTF 1
3334 echo "$ac_t""no" 1>&6
3335 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
3341 for ac_func
in vfork
3343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3344 echo "configure:3345: checking for $ac_func" >&5
3345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3346 echo $ac_n "(cached) $ac_c" 1>&6
3348 cat > conftest.
$ac_ext <<EOF
3349 #line 3350 "configure"
3350 #include "confdefs.h"
3351 /* System header to define __stub macros and hopefully few prototypes,
3352 which can conflict with char $ac_func(); below. */
3354 /* Override any gcc2 internal prototype to avoid an error. */
3355 /* We use char because int might match the return type of a gcc2
3356 builtin and then its argument prototype would still apply. */
3361 /* The GNU C library defines this for functions which it implements
3362 to always fail with ENOSYS. Some functions are actually named
3363 something starting with __ and the normal name is an alias. */
3364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3372 if { (eval echo configure
:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3374 eval "ac_cv_func_$ac_func=yes"
3376 echo "configure: failed program was:" >&5
3377 cat conftest.
$ac_ext >&5
3379 eval "ac_cv_func_$ac_func=no"
3384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3385 echo "$ac_t""yes" 1>&6
3386 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3387 cat >> confdefs.h
<<EOF
3388 #define $ac_tr_func 1
3392 echo "$ac_t""no" 1>&6
3398 for ac_func
in nanosleep
3400 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3401 echo "configure:3402: checking for $ac_func" >&5
3402 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 cat > conftest.
$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3408 /* System header to define __stub macros and hopefully few prototypes,
3409 which can conflict with char $ac_func(); below. */
3411 /* Override any gcc2 internal prototype to avoid an error. */
3412 /* We use char because int might match the return type of a gcc2
3413 builtin and then its argument prototype would still apply. */
3418 /* The GNU C library defines this for functions which it implements
3419 to always fail with ENOSYS. Some functions are actually named
3420 something starting with __ and the normal name is an alias. */
3421 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3429 if { (eval echo configure
:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3431 eval "ac_cv_func_$ac_func=yes"
3433 echo "configure: failed program was:" >&5
3434 cat conftest.
$ac_ext >&5
3436 eval "ac_cv_func_$ac_func=no"
3441 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3442 echo "$ac_t""yes" 1>&6
3443 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3444 cat >> confdefs.h
<<EOF
3445 #define $ac_tr_func 1
3447 cat >> confdefs.h
<<\EOF
3448 #define HAVE_NANOSLEEP 1
3452 echo "$ac_t""no" 1>&6
3453 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3454 echo "configure:3455: checking for nanosleep in -lposix4" >&5
3455 ac_lib_var
=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3456 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3459 ac_save_LIBS
="$LIBS"
3460 LIBS
="-lposix4 $LIBS"
3461 cat > conftest.
$ac_ext <<EOF
3462 #line 3463 "configure"
3463 #include "confdefs.h"
3464 /* Override any gcc2 internal prototype to avoid an error. */
3465 /* We use char because int might match the return type of a gcc2
3466 builtin and then its argument prototype would still apply. */
3473 if { (eval echo configure
:3474: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3475 eval "ac_cv_lib_$ac_lib_var=yes"
3477 echo "configure: failed program was:" >&5
3478 cat conftest.
$ac_ext >&5
3480 eval "ac_cv_lib_$ac_lib_var=no"
3483 LIBS
="$ac_save_LIBS"
3486 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3487 echo "$ac_t""yes" 1>&6
3489 cat >> confdefs.h
<<\EOF
3490 #define HAVE_NANOSLEEP 1
3493 POSIX4_LINK
="-lposix4"
3496 echo "$ac_t""no" 1>&6
3498 for ac_func
in usleep
3500 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3501 echo "configure:3502: checking for $ac_func" >&5
3502 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3503 echo $ac_n "(cached) $ac_c" 1>&6
3505 cat > conftest.
$ac_ext <<EOF
3506 #line 3507 "configure"
3507 #include "confdefs.h"
3508 /* System header to define __stub macros and hopefully few prototypes,
3509 which can conflict with char $ac_func(); below. */
3511 /* Override any gcc2 internal prototype to avoid an error. */
3512 /* We use char because int might match the return type of a gcc2
3513 builtin and then its argument prototype would still apply. */
3518 /* The GNU C library defines this for functions which it implements
3519 to always fail with ENOSYS. Some functions are actually named
3520 something starting with __ and the normal name is an alias. */
3521 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3529 if { (eval echo configure
:3530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3531 eval "ac_cv_func_$ac_func=yes"
3533 echo "configure: failed program was:" >&5
3534 cat conftest.
$ac_ext >&5
3536 eval "ac_cv_func_$ac_func=no"
3541 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3542 echo "$ac_t""yes" 1>&6
3543 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3544 cat >> confdefs.h
<<EOF
3545 #define $ac_tr_func 1
3547 cat >> confdefs.h
<<\EOF
3548 #define HAVE_USLEEP 1
3552 echo "$ac_t""no" 1>&6
3553 echo "configure: warning: Sleep() function will not work" 1>&2
3565 for ac_func
in uname gethostname
3567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3568 echo "configure:3569: checking for $ac_func" >&5
3569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3570 echo $ac_n "(cached) $ac_c" 1>&6
3572 cat > conftest.
$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3575 /* System header to define __stub macros and hopefully few prototypes,
3576 which can conflict with char $ac_func(); below. */
3578 /* Override any gcc2 internal prototype to avoid an error. */
3579 /* We use char because int might match the return type of a gcc2
3580 builtin and then its argument prototype would still apply. */
3585 /* The GNU C library defines this for functions which it implements
3586 to always fail with ENOSYS. Some functions are actually named
3587 something starting with __ and the normal name is an alias. */
3588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3596 if { (eval echo configure
:3597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3598 eval "ac_cv_func_$ac_func=yes"
3600 echo "configure: failed program was:" >&5
3601 cat conftest.
$ac_ext >&5
3603 eval "ac_cv_func_$ac_func=no"
3608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3609 echo "$ac_t""yes" 1>&6
3610 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3611 cat >> confdefs.h
<<EOF
3612 #define $ac_tr_func 1
3616 echo "$ac_t""no" 1>&6
3621 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3622 echo "configure:3623: checking for uid_t in sys/types.h" >&5
3623 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3624 echo $ac_n "(cached) $ac_c" 1>&6
3626 cat > conftest.
$ac_ext <<EOF
3627 #line 3628 "configure"
3628 #include "confdefs.h"
3629 #include <sys/types.h>
3631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3632 egrep "uid_t" >/dev
/null
2>&1; then
3634 ac_cv_type_uid_t
=yes
3643 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3644 if test $ac_cv_type_uid_t = no
; then
3645 cat >> confdefs.h
<<\EOF
3649 cat >> confdefs.h
<<\EOF
3655 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3656 echo "configure:3657: checking type of array argument to getgroups" >&5
3657 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3658 echo $ac_n "(cached) $ac_c" 1>&6
3660 if test "$cross_compiling" = yes; then
3661 ac_cv_type_getgroups
=cross
3663 cat > conftest.
$ac_ext <<EOF
3664 #line 3665 "configure"
3665 #include "confdefs.h"
3667 /* Thanks to Mike Rendell for this test. */
3668 #include <sys/types.h>
3671 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3676 union { gid_t gval; long lval; } val;
3679 for (i = 0; i < NGID; i++)
3680 gidset[i] = val.gval;
3681 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3683 /* Exit non-zero if getgroups seems to require an array of ints. This
3684 happens when gid_t is short but getgroups modifies an array of ints. */
3685 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3689 if { (eval echo configure
:3690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3691 ac_cv_type_getgroups
=gid_t
3693 echo "configure: failed program was:" >&5
3694 cat conftest.
$ac_ext >&5
3696 ac_cv_type_getgroups
=int
3701 if test $ac_cv_type_getgroups = cross
; then
3702 cat > conftest.
$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3708 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3710 ac_cv_type_getgroups
=gid_t
3713 ac_cv_type_getgroups
=int
3720 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3721 cat >> confdefs.h
<<EOF
3722 #define GETGROUPS_T $ac_cv_type_getgroups
3726 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3727 echo "configure:3728: checking for mode_t" >&5
3728 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3729 echo $ac_n "(cached) $ac_c" 1>&6
3731 cat > conftest.
$ac_ext <<EOF
3732 #line 3733 "configure"
3733 #include "confdefs.h"
3734 #include <sys/types.h>
3740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3741 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3743 ac_cv_type_mode_t
=yes
3746 ac_cv_type_mode_t
=no
3751 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3752 if test $ac_cv_type_mode_t = no
; then
3753 cat >> confdefs.h
<<\EOF
3759 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3760 echo "configure:3761: checking for off_t" >&5
3761 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3762 echo $ac_n "(cached) $ac_c" 1>&6
3764 cat > conftest.
$ac_ext <<EOF
3765 #line 3766 "configure"
3766 #include "confdefs.h"
3767 #include <sys/types.h>
3773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3774 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3776 ac_cv_type_off_t
=yes
3784 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3785 if test $ac_cv_type_off_t = no
; then
3786 cat >> confdefs.h
<<\EOF
3792 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3793 echo "configure:3794: checking for pid_t" >&5
3794 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3795 echo $ac_n "(cached) $ac_c" 1>&6
3797 cat > conftest.
$ac_ext <<EOF
3798 #line 3799 "configure"
3799 #include "confdefs.h"
3800 #include <sys/types.h>
3806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3807 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3809 ac_cv_type_pid_t
=yes
3817 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3818 if test $ac_cv_type_pid_t = no
; then
3819 cat >> confdefs.h
<<\EOF
3825 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3826 echo "configure:3827: checking return type of signal handlers" >&5
3827 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3830 cat > conftest.
$ac_ext <<EOF
3831 #line 3832 "configure"
3832 #include "confdefs.h"
3833 #include <sys/types.h>
3839 extern "C" void (*signal (int, void (*)(int)))(int);
3841 void (*signal ()) ();
3848 if { (eval echo configure
:3849: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3850 ac_cv_type_signal
=void
3852 echo "configure: failed program was:" >&5
3853 cat conftest.
$ac_ext >&5
3855 ac_cv_type_signal
=int
3860 echo "$ac_t""$ac_cv_type_signal" 1>&6
3861 cat >> confdefs.h
<<EOF
3862 #define RETSIGTYPE $ac_cv_type_signal
3866 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3867 echo "configure:3868: checking for size_t" >&5
3868 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3869 echo $ac_n "(cached) $ac_c" 1>&6
3871 cat > conftest.
$ac_ext <<EOF
3872 #line 3873 "configure"
3873 #include "confdefs.h"
3874 #include <sys/types.h>
3880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3881 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3883 ac_cv_type_size_t
=yes
3886 ac_cv_type_size_t
=no
3891 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3892 if test $ac_cv_type_size_t = no
; then
3893 cat >> confdefs.h
<<\EOF
3894 #define size_t unsigned
3899 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3900 echo "configure:3901: checking for uid_t in sys/types.h" >&5
3901 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3904 cat > conftest.
$ac_ext <<EOF
3905 #line 3906 "configure"
3906 #include "confdefs.h"
3907 #include <sys/types.h>
3909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910 egrep "uid_t" >/dev
/null
2>&1; then
3912 ac_cv_type_uid_t
=yes
3921 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3922 if test $ac_cv_type_uid_t = no
; then
3923 cat >> confdefs.h
<<\EOF
3927 cat >> confdefs.h
<<\EOF
3935 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3936 echo "configure:3937: checking whether stat file-mode macros are broken" >&5
3937 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3940 cat > conftest.
$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3943 #include <sys/types.h>
3944 #include <sys/stat.h>
3946 #if defined(S_ISBLK) && defined(S_IFDIR)
3947 # if S_ISBLK (S_IFDIR)
3952 #if defined(S_ISBLK) && defined(S_IFCHR)
3953 # if S_ISBLK (S_IFCHR)
3958 #if defined(S_ISLNK) && defined(S_IFREG)
3959 # if S_ISLNK (S_IFREG)
3964 #if defined(S_ISSOCK) && defined(S_IFREG)
3965 # if S_ISSOCK (S_IFREG)
3971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3972 egrep "You lose" >/dev
/null
2>&1; then
3974 ac_cv_header_stat_broken
=yes
3977 ac_cv_header_stat_broken
=no
3983 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3984 if test $ac_cv_header_stat_broken = yes; then
3985 cat >> confdefs.h
<<\EOF
3986 #define STAT_MACROS_BROKEN 1
3991 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3992 echo "configure:3993: checking whether time.h and sys/time.h may both be included" >&5
3993 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3994 echo $ac_n "(cached) $ac_c" 1>&6
3996 cat > conftest.
$ac_ext <<EOF
3997 #line 3998 "configure"
3998 #include "confdefs.h"
3999 #include <sys/types.h>
4000 #include <sys/time.h>
4006 if { (eval echo configure
:4007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4008 ac_cv_header_time
=yes
4010 echo "configure: failed program was:" >&5
4011 cat conftest.
$ac_ext >&5
4013 ac_cv_header_time
=no
4018 echo "$ac_t""$ac_cv_header_time" 1>&6
4019 if test $ac_cv_header_time = yes; then
4020 cat >> confdefs.h
<<\EOF
4021 #define TIME_WITH_SYS_TIME 1
4026 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4027 echo "configure:4028: checking for st_blksize in struct stat" >&5
4028 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4031 cat > conftest.
$ac_ext <<EOF
4032 #line 4033 "configure"
4033 #include "confdefs.h"
4034 #include <sys/types.h>
4035 #include <sys/stat.h>
4037 struct stat s; s.st_blksize;
4040 if { (eval echo configure
:4041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4042 ac_cv_struct_st_blksize
=yes
4044 echo "configure: failed program was:" >&5
4045 cat conftest.
$ac_ext >&5
4047 ac_cv_struct_st_blksize
=no
4052 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4053 if test $ac_cv_struct_st_blksize = yes; then
4054 cat >> confdefs.h
<<\EOF
4055 #define HAVE_ST_BLKSIZE 1
4060 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
4061 echo "configure:4062: checking for st_blocks in struct stat" >&5
4062 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
4063 echo $ac_n "(cached) $ac_c" 1>&6
4065 cat > conftest.
$ac_ext <<EOF
4066 #line 4067 "configure"
4067 #include "confdefs.h"
4068 #include <sys/types.h>
4069 #include <sys/stat.h>
4071 struct stat s; s.st_blocks;
4074 if { (eval echo configure
:4075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4076 ac_cv_struct_st_blocks
=yes
4078 echo "configure: failed program was:" >&5
4079 cat conftest.
$ac_ext >&5
4081 ac_cv_struct_st_blocks
=no
4086 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
4087 if test $ac_cv_struct_st_blocks = yes; then
4088 cat >> confdefs.h
<<\EOF
4089 #define HAVE_ST_BLOCKS 1
4093 LIBOBJS
="$LIBOBJS fileblocks.${ac_objext}"
4096 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
4097 echo "configure:4098: checking for st_rdev in struct stat" >&5
4098 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
4099 echo $ac_n "(cached) $ac_c" 1>&6
4101 cat > conftest.
$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4104 #include <sys/types.h>
4105 #include <sys/stat.h>
4107 struct stat s; s.st_rdev;
4110 if { (eval echo configure
:4111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4112 ac_cv_struct_st_rdev
=yes
4114 echo "configure: failed program was:" >&5
4115 cat conftest.
$ac_ext >&5
4117 ac_cv_struct_st_rdev
=no
4122 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
4123 if test $ac_cv_struct_st_rdev = yes; then
4124 cat >> confdefs.h
<<\EOF
4125 #define HAVE_ST_RDEV 1
4130 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4131 echo "configure:4132: checking whether struct tm is in sys/time.h or time.h" >&5
4132 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4133 echo $ac_n "(cached) $ac_c" 1>&6
4135 cat > conftest.
$ac_ext <<EOF
4136 #line 4137 "configure"
4137 #include "confdefs.h"
4138 #include <sys/types.h>
4141 struct tm *tp; tp->tm_sec;
4144 if { (eval echo configure
:4145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4146 ac_cv_struct_tm
=time.h
4148 echo "configure: failed program was:" >&5
4149 cat conftest.
$ac_ext >&5
4151 ac_cv_struct_tm
=sys
/time.h
4156 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4157 if test $ac_cv_struct_tm = sys
/time.h
; then
4158 cat >> confdefs.h
<<\EOF
4159 #define TM_IN_SYS_TIME 1
4164 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4165 echo "configure:4166: checking for tm_zone in struct tm" >&5
4166 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4167 echo $ac_n "(cached) $ac_c" 1>&6
4169 cat > conftest.
$ac_ext <<EOF
4170 #line 4171 "configure"
4171 #include "confdefs.h"
4172 #include <sys/types.h>
4173 #include <$ac_cv_struct_tm>
4175 struct tm tm; tm.tm_zone;
4178 if { (eval echo configure
:4179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4180 ac_cv_struct_tm_zone
=yes
4182 echo "configure: failed program was:" >&5
4183 cat conftest.
$ac_ext >&5
4185 ac_cv_struct_tm_zone
=no
4190 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4191 if test "$ac_cv_struct_tm_zone" = yes; then
4192 cat >> confdefs.h
<<\EOF
4193 #define HAVE_TM_ZONE 1
4197 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4198 echo "configure:4199: checking for tzname" >&5
4199 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4200 echo $ac_n "(cached) $ac_c" 1>&6
4202 cat > conftest.
$ac_ext <<EOF
4203 #line 4204 "configure"
4204 #include "confdefs.h"
4206 #ifndef tzname /* For SGI. */
4207 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4213 if { (eval echo configure
:4214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4215 ac_cv_var_tzname
=yes
4217 echo "configure: failed program was:" >&5
4218 cat conftest.
$ac_ext >&5
4225 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4226 if test $ac_cv_var_tzname = yes; then
4227 cat >> confdefs.h
<<\EOF
4228 #define HAVE_TZNAME 1
4236 echo $ac_n "checking for working const""... $ac_c" 1>&6
4237 echo "configure:4238: checking for working const" >&5
4238 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4239 echo $ac_n "(cached) $ac_c" 1>&6
4241 cat > conftest.
$ac_ext <<EOF
4242 #line 4243 "configure"
4243 #include "confdefs.h"
4247 /* Ultrix mips cc rejects this. */
4248 typedef int charset[2]; const charset x;
4249 /* SunOS 4.1.1 cc rejects this. */
4250 char const *const *ccp;
4252 /* NEC SVR4.0.2 mips cc rejects this. */
4253 struct point {int x, y;};
4254 static struct point const zero = {0,0};
4255 /* AIX XL C 1.02.0.0 rejects this.
4256 It does not let you subtract one const X* pointer from another in an arm
4257 of an if-expression whose if-part is not a constant expression */
4258 const char *g = "string";
4259 ccp = &g + (g ? g-g : 0);
4260 /* HPUX 7.0 cc rejects these. */
4263 ccp = (char const *const *) p;
4264 { /* SCO 3.2v4 cc rejects this. */
4266 char const *s = 0 ? (char *) 0 : (char const *) 0;
4270 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4272 const int *foo = &x[0];
4275 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4276 typedef const int *iptr;
4280 { /* AIX XL C 1.02.0.0 rejects this saying
4281 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4282 struct s { int j; const int *ap[3]; };
4283 struct s *b; b->j = 5;
4285 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4291 if { (eval echo configure
:4292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4295 echo "configure: failed program was:" >&5
4296 cat conftest.
$ac_ext >&5
4303 echo "$ac_t""$ac_cv_c_const" 1>&6
4304 if test $ac_cv_c_const = no
; then
4305 cat >> confdefs.h
<<\EOF
4311 echo $ac_n "checking for inline""... $ac_c" 1>&6
4312 echo "configure:4313: checking for inline" >&5
4313 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4314 echo $ac_n "(cached) $ac_c" 1>&6
4317 for ac_kw
in inline __inline__ __inline
; do
4318 cat > conftest.
$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4326 if { (eval echo configure
:4327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4328 ac_cv_c_inline
=$ac_kw; break
4330 echo "configure: failed program was:" >&5
4331 cat conftest.
$ac_ext >&5
4338 echo "$ac_t""$ac_cv_c_inline" 1>&6
4339 case "$ac_cv_c_inline" in
4341 no
) cat >> confdefs.h
<<\EOF
4345 *) cat >> confdefs.h
<<EOF
4346 #define inline $ac_cv_c_inline
4351 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
4352 echo "configure:4353: checking whether char is unsigned" >&5
4353 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
4354 echo $ac_n "(cached) $ac_c" 1>&6
4356 if test "$GCC" = yes; then
4357 # GCC predefines this symbol on systems where it applies.
4358 cat > conftest.
$ac_ext <<EOF
4359 #line 4360 "configure"
4360 #include "confdefs.h"
4361 #ifdef __CHAR_UNSIGNED__
4366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4367 egrep "yes" >/dev
/null
2>&1; then
4369 ac_cv_c_char_unsigned
=yes
4372 ac_cv_c_char_unsigned
=no
4377 if test "$cross_compiling" = yes; then
4378 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4380 cat > conftest.
$ac_ext <<EOF
4381 #line 4382 "configure"
4382 #include "confdefs.h"
4383 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
4384 #if !defined(__STDC__) || __STDC__ != 1
4388 volatile char c = 255; exit(c < 0);
4391 if { (eval echo configure
:4392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4393 ac_cv_c_char_unsigned
=yes
4395 echo "configure: failed program was:" >&5
4396 cat conftest.
$ac_ext >&5
4398 ac_cv_c_char_unsigned
=no
4406 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
4407 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4408 cat >> confdefs.h
<<\EOF
4409 #define __CHAR_UNSIGNED__ 1
4414 echo $ac_n "checking for long double""... $ac_c" 1>&6
4415 echo "configure:4416: checking for long double" >&5
4416 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4417 echo $ac_n "(cached) $ac_c" 1>&6
4419 if test "$GCC" = yes; then
4420 ac_cv_c_long_double
=yes
4422 if test "$cross_compiling" = yes; then
4423 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4425 cat > conftest.
$ac_ext <<EOF
4426 #line 4427 "configure"
4427 #include "confdefs.h"
4429 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4430 long double foo = 0.0;
4431 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4432 exit(sizeof(long double) < sizeof(double)); }
4434 if { (eval echo configure
:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4436 ac_cv_c_long_double
=yes
4438 echo "configure: failed program was:" >&5
4439 cat conftest.
$ac_ext >&5
4441 ac_cv_c_long_double
=no
4449 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4450 if test $ac_cv_c_long_double = yes; then
4451 cat >> confdefs.h
<<\EOF
4452 #define HAVE_LONG_DOUBLE 1
4458 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4459 echo "configure:4460: checking whether byte ordering is bigendian" >&5
4460 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4463 ac_cv_c_bigendian
=unknown
4464 # See if sys/param.h defines the BYTE_ORDER macro.
4465 cat > conftest.
$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4468 #include <sys/types.h>
4469 #include <sys/param.h>
4472 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4477 if { (eval echo configure
:4478: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4479 # It does; now see whether it defined to BIG_ENDIAN or not.
4480 cat > conftest.
$ac_ext <<EOF
4481 #line 4482 "configure"
4482 #include "confdefs.h"
4483 #include <sys/types.h>
4484 #include <sys/param.h>
4487 #if BYTE_ORDER != BIG_ENDIAN
4492 if { (eval echo configure
:4493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4494 ac_cv_c_bigendian
=yes
4496 echo "configure: failed program was:" >&5
4497 cat conftest.
$ac_ext >&5
4499 ac_cv_c_bigendian
=no
4503 echo "configure: failed program was:" >&5
4504 cat conftest.
$ac_ext >&5
4507 if test $ac_cv_c_bigendian = unknown
; then
4508 if test "$cross_compiling" = yes; then
4509 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4511 cat > conftest.
$ac_ext <<EOF
4512 #line 4513 "configure"
4513 #include "confdefs.h"
4515 /* Are we little or big endian? From Harbison&Steele. */
4519 char c[sizeof (long)];
4522 exit (u.c[sizeof (long) - 1] == 1);
4525 if { (eval echo configure
:4526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4527 ac_cv_c_bigendian
=no
4529 echo "configure: failed program was:" >&5
4530 cat conftest.
$ac_ext >&5
4532 ac_cv_c_bigendian
=yes
4540 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4541 if test $ac_cv_c_bigendian = yes; then
4542 cat >> confdefs.h
<<\EOF
4543 #define WORDS_BIGENDIAN 1
4549 echo $ac_n "checking size of int *""... $ac_c" 1>&6
4550 echo "configure:4551: checking size of int *" >&5
4551 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4554 if test "$cross_compiling" = yes; then
4555 ac_cv_sizeof_int_p
=4
4557 cat > conftest.
$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4563 FILE *f=fopen("conftestval", "w");
4565 fprintf(f, "%d\n", sizeof(int *));
4569 if { (eval echo configure
:4570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4571 ac_cv_sizeof_int_p
=`cat conftestval`
4573 echo "configure: failed program was:" >&5
4574 cat conftest.
$ac_ext >&5
4576 ac_cv_sizeof_int_p
=0
4582 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
4583 cat >> confdefs.h
<<EOF
4584 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
4588 echo $ac_n "checking size of int""... $ac_c" 1>&6
4589 echo "configure:4590: checking size of int" >&5
4590 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4591 echo $ac_n "(cached) $ac_c" 1>&6
4593 if test "$cross_compiling" = yes; then
4596 cat > conftest.
$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4602 FILE *f=fopen("conftestval", "w");
4604 fprintf(f, "%d\n", sizeof(int));
4608 if { (eval echo configure
:4609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4610 ac_cv_sizeof_int
=`cat conftestval`
4612 echo "configure: failed program was:" >&5
4613 cat conftest.
$ac_ext >&5
4621 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4622 cat >> confdefs.h
<<EOF
4623 #define SIZEOF_INT $ac_cv_sizeof_int
4627 echo $ac_n "checking size of long""... $ac_c" 1>&6
4628 echo "configure:4629: checking size of long" >&5
4629 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4630 echo $ac_n "(cached) $ac_c" 1>&6
4632 if test "$cross_compiling" = yes; then
4635 cat > conftest.
$ac_ext <<EOF
4636 #line 4637 "configure"
4637 #include "confdefs.h"
4641 FILE *f=fopen("conftestval", "w");
4643 fprintf(f, "%d\n", sizeof(long));
4647 if { (eval echo configure
:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4649 ac_cv_sizeof_long
=`cat conftestval`
4651 echo "configure: failed program was:" >&5
4652 cat conftest.
$ac_ext >&5
4660 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4661 cat >> confdefs.h
<<EOF
4662 #define SIZEOF_LONG $ac_cv_sizeof_long
4666 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4667 echo "configure:4668: checking size of long long" >&5
4668 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4669 echo $ac_n "(cached) $ac_c" 1>&6
4671 if test "$cross_compiling" = yes; then
4672 ac_cv_sizeof_long_long
=0
4674 cat > conftest.
$ac_ext <<EOF
4675 #line 4676 "configure"
4676 #include "confdefs.h"
4680 FILE *f=fopen("conftestval", "w");
4682 fprintf(f, "%d\n", sizeof(long long));
4686 if { (eval echo configure
:4687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4688 ac_cv_sizeof_long_long
=`cat conftestval`
4690 echo "configure: failed program was:" >&5
4691 cat conftest.
$ac_ext >&5
4693 ac_cv_sizeof_long_long
=0
4699 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4700 cat >> confdefs.h
<<EOF
4701 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4709 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4710 ac_cpp
='$CXXCPP $CPPFLAGS'
4711 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4712 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4713 cross_compiling
=$ac_cv_prog_cxx_cross
4716 for ac_hdr
in iostream
4718 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4719 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4720 echo "configure:4721: checking for $ac_hdr" >&5
4721 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4722 echo $ac_n "(cached) $ac_c" 1>&6
4724 cat > conftest.
$ac_ext <<EOF
4725 #line 4726 "configure"
4726 #include "confdefs.h"
4729 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4730 { (eval echo configure
:4731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4731 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4732 if test -z "$ac_err"; then
4734 eval "ac_cv_header_$ac_safe=yes"
4737 echo "configure: failed program was:" >&5
4738 cat conftest.
$ac_ext >&5
4740 eval "ac_cv_header_$ac_safe=no"
4744 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4745 echo "$ac_t""yes" 1>&6
4746 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4747 cat >> confdefs.h
<<EOF
4748 #define $ac_tr_hdr 1
4752 echo "$ac_t""no" 1>&6
4756 if test "x$HAVE_IOSTREAM" = "x" ; then
4757 cat >> confdefs.h
<<\EOF
4758 #define wxUSE_IOSTREAMH 1
4763 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
4764 echo "configure:4765: checking if C++ compiler supports bool" >&5
4765 if test "$cross_compiling" = yes; then
4766 echo "$ac_t""no assumed for cross-compilation" 1>&6
4768 cat > conftest.
$ac_ext <<EOF
4769 #line 4770 "configure"
4770 #include "confdefs.h"
4772 extern "C" void exit(int);
4784 if { (eval echo configure
:4785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4786 cat >> confdefs.h
<<\EOF
4789 echo "$ac_t""yes" 1>&6
4791 echo "configure: failed program was:" >&5
4792 cat conftest.
$ac_ext >&5
4794 echo "$ac_t""no" 1>&6
4800 echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6
4801 echo "configure:4802: checking if size_t and int are different types" >&5
4802 if test "$cross_compiling" = yes; then
4803 echo "$ac_t""no assumed for cross-compilation" 1>&6
4805 cat > conftest.
$ac_ext <<EOF
4806 #line 4807 "configure"
4807 #include "confdefs.h"
4809 extern "C" void exit(int);
4814 void wxFoo(int i) { }
4815 void wxFoo(size_t n) { }
4832 if { (eval echo configure
:4833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4834 cat >> confdefs.h
<<\EOF
4835 #define wxUSE_SIZE_T_STRING_OPERATOR 1
4837 echo "$ac_t""yes" 1>&6
4839 echo "configure: failed program was:" >&5
4840 cat conftest.
$ac_ext >&5
4842 echo "$ac_t""no" 1>&6
4849 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4850 ac_cpp
='$CPP $CPPFLAGS'
4851 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4852 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4853 cross_compiling
=$ac_cv_prog_cc_cross
4859 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4860 echo "configure:4861: checking for long file names" >&5
4861 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
4862 echo $ac_n "(cached) $ac_c" 1>&6
4864 ac_cv_sys_long_file_names
=yes
4865 # Test for long file names in all the places we know might matter:
4866 # . the current directory, where building will happen
4867 # $prefix/lib where we will be installing things
4868 # $exec_prefix/lib likewise
4869 # eval it to expand exec_prefix.
4870 # $TMPDIR if set, where it might want to write temporary files
4871 # if $TMPDIR is not set:
4872 # /tmp where it might want to write temporary files
4875 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4876 ac_tmpdirs
="$TMPDIR"
4878 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
4880 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4881 test -d $ac_dir || continue
4882 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4883 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
4884 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
4885 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
4886 if test ! -f $ac_dir/conftest9012345
|| test "$val" != 1; then
4887 ac_cv_sys_long_file_names
=no
4888 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4891 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4895 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4896 if test $ac_cv_sys_long_file_names = yes; then
4897 cat >> confdefs.h
<<\EOF
4898 #define HAVE_LONG_FILE_NAMES 1
4906 for ac_prog
in 'bison -y' byacc
4908 # Extract the first word of "$ac_prog", so it can be a program name with args.
4909 set dummy
$ac_prog; ac_word
=$2
4910 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4911 echo "configure:4912: checking for $ac_word" >&5
4912 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4913 echo $ac_n "(cached) $ac_c" 1>&6
4915 if test -n "$YACC"; then
4916 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4918 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4920 for ac_dir
in $ac_dummy; do
4921 test -z "$ac_dir" && ac_dir
=.
4922 if test -f $ac_dir/$ac_word; then
4923 ac_cv_prog_YACC
="$ac_prog"
4930 YACC
="$ac_cv_prog_YACC"
4931 if test -n "$YACC"; then
4932 echo "$ac_t""$YACC" 1>&6
4934 echo "$ac_t""no" 1>&6
4937 test -n "$YACC" && break
4939 test -n "$YACC" || YACC
="yacc"
4942 # Extract the first word of "flex", so it can be a program name with args.
4943 set dummy flex
; ac_word
=$2
4944 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4945 echo "configure:4946: checking for $ac_word" >&5
4946 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4947 echo $ac_n "(cached) $ac_c" 1>&6
4949 if test -n "$LEX"; then
4950 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4952 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4954 for ac_dir
in $ac_dummy; do
4955 test -z "$ac_dir" && ac_dir
=.
4956 if test -f $ac_dir/$ac_word; then
4957 ac_cv_prog_LEX
="flex"
4962 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
4965 LEX
="$ac_cv_prog_LEX"
4966 if test -n "$LEX"; then
4967 echo "$ac_t""$LEX" 1>&6
4969 echo "$ac_t""no" 1>&6
4972 if test -z "$LEXLIB"
4978 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4979 echo "configure:4980: checking for yywrap in -l$ac_lib" >&5
4980 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4982 echo $ac_n "(cached) $ac_c" 1>&6
4984 ac_save_LIBS
="$LIBS"
4985 LIBS
="-l$ac_lib $LIBS"
4986 cat > conftest.
$ac_ext <<EOF
4987 #line 4988 "configure"
4988 #include "confdefs.h"
4989 /* Override any gcc2 internal prototype to avoid an error. */
4990 /* We use char because int might match the return type of a gcc2
4991 builtin and then its argument prototype would still apply. */
4998 if { (eval echo configure
:4999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5000 eval "ac_cv_lib_$ac_lib_var=yes"
5002 echo "configure: failed program was:" >&5
5003 cat conftest.
$ac_ext >&5
5005 eval "ac_cv_lib_$ac_lib_var=no"
5008 LIBS
="$ac_save_LIBS"
5011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5012 echo "$ac_t""yes" 1>&6
5015 echo "$ac_t""no" 1>&6
5020 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
5021 echo "configure:5022: checking lex output file root" >&5
5022 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
5023 echo $ac_n "(cached) $ac_c" 1>&6
5025 # The minimal lex program is just a single line: %%. But some broken lexes
5026 # (Solaris, I think it was) want two %% lines, so accommodate them.
5029 if test -f lex.yy.c
; then
5030 ac_cv_prog_lex_root
=lex.yy
5031 elif test -f lexyy.c
; then
5032 ac_cv_prog_lex_root
=lexyy
5034 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
5038 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
5039 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
5041 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
5042 echo "configure:5043: checking whether yytext is a pointer" >&5
5043 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
5044 echo $ac_n "(cached) $ac_c" 1>&6
5046 # POSIX says lex can declare yytext either as a pointer or an array; the
5047 # default is implementation-dependent. Figure out which it is, since
5048 # not all implementations provide the %pointer and %array declarations.
5049 ac_cv_prog_lex_yytext_pointer
=no
5050 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
5051 ac_save_LIBS
="$LIBS"
5052 LIBS
="$LIBS $LEXLIB"
5053 cat > conftest.
$ac_ext <<EOF
5054 #line 5055 "configure"
5055 #include "confdefs.h"
5056 `cat $LEX_OUTPUT_ROOT.c`
5061 if { (eval echo configure
:5062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5063 ac_cv_prog_lex_yytext_pointer
=yes
5065 echo "configure: failed program was:" >&5
5066 cat conftest.
$ac_ext >&5
5069 LIBS
="$ac_save_LIBS"
5070 rm -f "${LEX_OUTPUT_ROOT}.c"
5074 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
5075 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5076 cat >> confdefs.h
<<\EOF
5077 #define YYTEXT_POINTER 1
5085 for ac_func
in dlopen
5087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5088 echo "configure:5089: checking for $ac_func" >&5
5089 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5090 echo $ac_n "(cached) $ac_c" 1>&6
5092 cat > conftest.
$ac_ext <<EOF
5093 #line 5094 "configure"
5094 #include "confdefs.h"
5095 /* System header to define __stub macros and hopefully few prototypes,
5096 which can conflict with char $ac_func(); below. */
5098 /* Override any gcc2 internal prototype to avoid an error. */
5099 /* We use char because int might match the return type of a gcc2
5100 builtin and then its argument prototype would still apply. */
5105 /* The GNU C library defines this for functions which it implements
5106 to always fail with ENOSYS. Some functions are actually named
5107 something starting with __ and the normal name is an alias. */
5108 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5116 if { (eval echo configure
:5117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5118 eval "ac_cv_func_$ac_func=yes"
5120 echo "configure: failed program was:" >&5
5121 cat conftest.
$ac_ext >&5
5123 eval "ac_cv_func_$ac_func=no"
5128 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5129 echo "$ac_t""yes" 1>&6
5130 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5131 cat >> confdefs.h
<<EOF
5132 #define $ac_tr_func 1
5134 cat >> confdefs.h
<<\EOF
5135 #define HAVE_LIBDL 1
5139 echo "$ac_t""no" 1>&6
5140 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5141 echo "configure:5142: checking for dlopen in -ldl" >&5
5142 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5143 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5144 echo $ac_n "(cached) $ac_c" 1>&6
5146 ac_save_LIBS
="$LIBS"
5148 cat > conftest.
$ac_ext <<EOF
5149 #line 5150 "configure"
5150 #include "confdefs.h"
5151 /* Override any gcc2 internal prototype to avoid an error. */
5152 /* We use char because int might match the return type of a gcc2
5153 builtin and then its argument prototype would still apply. */
5160 if { (eval echo configure
:5161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5162 eval "ac_cv_lib_$ac_lib_var=yes"
5164 echo "configure: failed program was:" >&5
5165 cat conftest.
$ac_ext >&5
5167 eval "ac_cv_lib_$ac_lib_var=no"
5170 LIBS
="$ac_save_LIBS"
5173 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5174 echo "$ac_t""yes" 1>&6
5175 cat >> confdefs.h
<<\EOF
5176 #define HAVE_LIBDL 1
5180 echo "$ac_t""no" 1>&6
5181 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
5182 echo "configure:5183: checking for dld_link in -ldld" >&5
5183 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
5184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5185 echo $ac_n "(cached) $ac_c" 1>&6
5187 ac_save_LIBS
="$LIBS"
5189 cat > conftest.
$ac_ext <<EOF
5190 #line 5191 "configure"
5191 #include "confdefs.h"
5192 /* Override any gcc2 internal prototype to avoid an error. */
5193 /* We use char because int might match the return type of a gcc2
5194 builtin and then its argument prototype would still apply. */
5201 if { (eval echo configure
:5202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5203 eval "ac_cv_lib_$ac_lib_var=yes"
5205 echo "configure: failed program was:" >&5
5206 cat conftest.
$ac_ext >&5
5208 eval "ac_cv_lib_$ac_lib_var=no"
5211 LIBS
="$ac_save_LIBS"
5214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5215 echo "$ac_t""yes" 1>&6
5216 cat >> confdefs.h
<<\EOF
5221 echo "$ac_t""no" 1>&6
5222 for ac_func
in shl_load
5224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5225 echo "configure:5226: checking for $ac_func" >&5
5226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5227 echo $ac_n "(cached) $ac_c" 1>&6
5229 cat > conftest.
$ac_ext <<EOF
5230 #line 5231 "configure"
5231 #include "confdefs.h"
5232 /* System header to define __stub macros and hopefully few prototypes,
5233 which can conflict with char $ac_func(); below. */
5235 /* Override any gcc2 internal prototype to avoid an error. */
5236 /* We use char because int might match the return type of a gcc2
5237 builtin and then its argument prototype would still apply. */
5242 /* The GNU C library defines this for functions which it implements
5243 to always fail with ENOSYS. Some functions are actually named
5244 something starting with __ and the normal name is an alias. */
5245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5253 if { (eval echo configure
:5254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5255 eval "ac_cv_func_$ac_func=yes"
5257 echo "configure: failed program was:" >&5
5258 cat conftest.
$ac_ext >&5
5260 eval "ac_cv_func_$ac_func=no"
5265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5266 echo "$ac_t""yes" 1>&6
5267 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5268 cat >> confdefs.h
<<EOF
5269 #define $ac_tr_func 1
5271 cat >> confdefs.h
<<\EOF
5272 #define HAVE_SHL_LOAD 1
5276 echo "$ac_t""no" 1>&6
5292 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
5293 echo "configure:5294: checking for underscore before symbols" >&5
5294 if eval "test \"`echo '$''{'libltdl_cv_uscore'+set}'`\" = set"; then
5295 echo $ac_n "(cached) $ac_c" 1>&6
5298 echo "main(){int i=1;} fnord(){int i=23; int ltuae=42;}" > conftest.c
5299 ${CC} -c conftest.c
> /dev
/null
5300 if (nm conftest.o
| grep _fnord
) > /dev
/null
; then
5301 libltdl_cv_uscore
=yes
5303 libltdl_cv_uscore
=no
5309 echo "$ac_t""$libltdl_cv_uscore" 1>&6
5311 if test x
"$libltdl_cv_uscore" = xyes
; then
5312 if test x
"$ac_cv_func_dlopen" = xyes
||
5313 test x
"$ac_cv_lib_dl_dlopen" = xyes
; then
5314 echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
5315 echo "configure:5316: checking whether we have to add an underscore for dlsym" >&5
5316 if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
5317 echo $ac_n "(cached) $ac_c" 1>&6
5319 if test "$cross_compiling" = yes; then
5320 libltdl_cv_need_uscore
=no
5323 cat > conftest.
$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5329 fnord() { int i=42;}
5330 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
5331 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
5332 if(ptr1 && !ptr2) exit(0); } exit(1); }
5335 if { (eval echo configure
:5336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5337 libltdl_cv_need_uscore
=no
5339 echo "configure: failed program was:" >&5
5340 cat conftest.
$ac_ext >&5
5342 libltdl_cv_need_uscore
=yes
5349 echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
5353 if test x
"$libltdl_cv_need_uscore" = xyes
; then
5354 cat >> confdefs.h
<<\EOF
5355 #define NEED_USCORE 1
5361 for ac_func
in strerror
5363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5364 echo "configure:5365: checking for $ac_func" >&5
5365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5366 echo $ac_n "(cached) $ac_c" 1>&6
5368 cat > conftest.
$ac_ext <<EOF
5369 #line 5370 "configure"
5370 #include "confdefs.h"
5371 /* System header to define __stub macros and hopefully few prototypes,
5372 which can conflict with char $ac_func(); below. */
5374 /* Override any gcc2 internal prototype to avoid an error. */
5375 /* We use char because int might match the return type of a gcc2
5376 builtin and then its argument prototype would still apply. */
5381 /* The GNU C library defines this for functions which it implements
5382 to always fail with ENOSYS. Some functions are actually named
5383 something starting with __ and the normal name is an alias. */
5384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5392 if { (eval echo configure
:5393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5394 eval "ac_cv_func_$ac_func=yes"
5396 echo "configure: failed program was:" >&5
5397 cat conftest.
$ac_ext >&5
5399 eval "ac_cv_func_$ac_func=no"
5404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5405 echo "$ac_t""yes" 1>&6
5406 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5407 cat >> confdefs.h
<<EOF
5408 #define $ac_tr_func 1
5412 echo "$ac_t""no" 1>&6
5418 CHECK_INCLUDE
="-I/usr/include $X_CFLAGS"
5419 CHECK_LIB
="-L/lib -L/usr/lib $X_LIBS"
5423 # Make sure we can run config.sub.
5424 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
5425 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5428 echo $ac_n "checking host system type""... $ac_c" 1>&6
5429 echo "configure:5430: checking host system type" >&5
5432 case "$host_alias" in
5436 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5437 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5439 *) host_alias
=$nonopt ;;
5443 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5444 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5445 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5446 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5447 echo "$ac_t""$host" 1>&6
5450 configuration
=$host_alias
5472 cat >> confdefs.h
<<\EOF
5476 case "${canonical}" in
5479 cat >> confdefs.h
<<\EOF
5486 cat >> confdefs.h
<<\EOF
5491 if test "x$TMP" = "xalpha"
5494 cat >> confdefs.h
<<\EOF
5500 *-*-irix5* | *-*-irix6* )
5503 cat >> confdefs.h
<<\EOF
5507 cat >> confdefs.h
<<\EOF
5516 cat >> confdefs.h
<<\EOF
5520 cat >> confdefs.h
<<\EOF
5521 #define __SOLARIS__ 1
5524 cat >> confdefs.h
<<\EOF
5533 cat >> confdefs.h
<<\EOF
5537 cat >> confdefs.h
<<\EOF
5541 cat >> confdefs.h
<<\EOF
5546 *-*-freebsd* | *-*-netbsd*)
5549 cat >> confdefs.h
<<\EOF
5550 #define __FREEBSD__ 1
5553 cat >> confdefs.h
<<\EOF
5561 cat >> confdefs.h
<<\EOF
5565 cat >> confdefs.h
<<\EOF
5573 cat >> confdefs.h
<<\EOF
5577 cat >> confdefs.h
<<\EOF
5585 cat >> confdefs.h
<<\EOF
5589 cat >> confdefs.h
<<\EOF
5598 cat >> confdefs.h
<<\EOF
5602 cat >> confdefs.h
<<\EOF
5606 cat >> confdefs.h
<<\EOF
5612 { echo "configure: error: I don't know your system type." 1>&2; exit 1; }
5617 rm -f ${OSTYPE}.system.cache.tmp
5618 touch ${OSTYPE}.system.cache.tmp
5619 touch ${OSTYPE}.system.cache
5624 DEFAULT_wxUSE_MOTIF
=0
5626 DEFAULT_wxUSE_THREADS
=0
5628 DEFAULT_wxUSE_SHARED
=1
5629 DEFAULT_wxUSE_OPTIMISE
=1
5630 DEFAULT_wxUSE_PROFILE
=0
5631 DEFAULT_wxUSE_DEBUG_FLAG
=0
5632 DEFAULT_wxUSE_DEBUG_INFO
=0
5633 DEFAULT_wxUSE_MEM_TRACING
=0
5634 DEFAULT_wxUSE_DMALLOC
=0
5635 DEFAULT_wxUSE_APPLE_IEEE
=1
5636 DEFAULT_wxUSE_IOSTREAMH
=1
5638 DEFAULT_wxUSE_ZLIB
=1
5639 DEFAULT_wxUSE_LIBPNG
=1
5640 DEFAULT_wxUSE_LIBJPEG
=1
5641 DEFAULT_wxUSE_ODBC
=1
5643 DEFAULT_wxUSE_TIMEDATE
=1
5644 DEFAULT_wxUSE_INTL
=1
5645 DEFAULT_wxUSE_CONFIG
=1
5646 DEFAULT_wxUSE_STREAMS
=1
5647 DEFAULT_wxUSE_SOCKETS
=1
5648 DEFAULT_wxUSE_SERIAL
=1
5649 DEFAULT_wxUSE_DYNLIB_CLASS
=1
5651 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
=1
5652 DEFAULT_WX_NORMALIZED_PS_FONTS
=1
5653 DEFAULT_wxUSE_POSTSCRIPT
=1
5656 DEFAULT_wxUSE_RESOURCES
=1
5657 DEFAULT_wxUSE_CLIPBOARD
=1
5658 DEFAULT_wxUSE_TOOLTIPS
=1
5659 DEFAULT_wxUSE_DRAG_AND_DROP
=1
5660 DEFAULT_wxUSE_SPLINE
=1
5662 DEFAULT_wxUSE_MDI_ARCHITECTURE
=1
5663 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
=1
5664 DEFAULT_wxUSE_PRINTING_ARCHITECTURE
=1
5666 DEFAULT_wxUSE_PROLOGIO
=1
5667 DEFAULT_wxUSE_WX_RESOURCES
=1
5669 DEFAULT_wxUSE_HELP
=1
5671 DEFAULT_wxUSE_UNICODE
=0
5672 DEFAULT_wxUSE_WCSRTOMBS
=0
5676 echo $ac_n "checking "for gtk
"""... $ac_c" 1>&6
5677 echo "configure:5678: checking "for gtk
"" >&5
5678 # Check whether --with-gtk or --without-gtk was given.
5679 if test "${with_gtk+set}" = set; then
5681 if test "x$with_gtk" = xyes
; then
5682 ac_cv_use_gtk
='wxUSE_GTK="1"'
5684 ac_cv_use_gtk
='wxUSE_GTK="0"'
5688 LINE
=`grep "wxUSE_GTK" ${OSTYPE}.system.cache`
5689 if test "x$LINE" != x
; then
5690 eval "DEFAULT_$LINE"
5692 ac_cv_use_gtk
='wxUSE_GTK='$DEFAULT_wxUSE_GTK
5696 eval "$ac_cv_use_gtk"
5697 echo $ac_cv_use_gtk >> ${OSTYPE}.system.cache.tmp
5698 if test "$wxUSE_GTK" = 1; then
5699 echo "$ac_t""yes" 1>&6
5701 echo "$ac_t""no" 1>&6
5706 echo $ac_n "checking "for qt
"""... $ac_c" 1>&6
5707 echo "configure:5708: checking "for qt
"" >&5
5708 # Check whether --with-qt or --without-qt was given.
5709 if test "${with_qt+set}" = set; then
5711 if test "x$with_qt" = xyes
; then
5712 ac_cv_use_qt
='wxUSE_QT="1"'
5714 ac_cv_use_qt
='wxUSE_QT="0"'
5718 LINE
=`grep "wxUSE_QT" ${OSTYPE}.system.cache`
5719 if test "x$LINE" != x
; then
5720 eval "DEFAULT_$LINE"
5722 ac_cv_use_qt
='wxUSE_QT='$DEFAULT_wxUSE_QT
5726 eval "$ac_cv_use_qt"
5727 echo $ac_cv_use_qt >> ${OSTYPE}.system.cache.tmp
5728 if test "$wxUSE_QT" = 1; then
5729 echo "$ac_t""yes" 1>&6
5731 echo "$ac_t""no" 1>&6
5736 echo $ac_n "checking "for motif
"""... $ac_c" 1>&6
5737 echo "configure:5738: checking "for motif
"" >&5
5738 # Check whether --with-motif or --without-motif was given.
5739 if test "${with_motif+set}" = set; then
5740 withval
="$with_motif"
5741 if test "x$with_motif" = xyes
; then
5742 ac_cv_use_motif
='wxUSE_MOTIF="1"'
5744 ac_cv_use_motif
='wxUSE_MOTIF="0"'
5748 LINE
=`grep "wxUSE_MOTIF" ${OSTYPE}.system.cache`
5749 if test "x$LINE" != x
; then
5750 eval "DEFAULT_$LINE"
5752 ac_cv_use_motif
='wxUSE_MOTIF='$DEFAULT_wxUSE_MOTIF
5756 eval "$ac_cv_use_motif"
5757 echo $ac_cv_use_motif >> ${OSTYPE}.system.cache.tmp
5758 if test "$wxUSE_MOTIF" = 1; then
5759 echo "$ac_t""yes" 1>&6
5761 echo "$ac_t""no" 1>&6
5767 echo $ac_n "checking "for shared
"""... $ac_c" 1>&6
5768 echo "configure:5769: checking "for shared
"" >&5
5769 # Check whether --with-shared or --without-shared was given.
5770 if test "${with_shared+set}" = set; then
5771 withval
="$with_shared"
5772 if test "x$with_shared" = xyes
; then
5773 ac_cv_use_shared
='wxUSE_SHARED="1"'
5775 ac_cv_use_shared
='wxUSE_SHARED="0"'
5779 LINE
=`grep "wxUSE_SHARED" ${OSTYPE}.system.cache`
5780 if test "x$LINE" != x
; then
5781 eval "DEFAULT_$LINE"
5783 ac_cv_use_shared
='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
5787 eval "$ac_cv_use_shared"
5788 echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp
5789 if test "$wxUSE_SHARED" = 1; then
5790 echo "$ac_t""yes" 1>&6
5792 echo "$ac_t""no" 1>&6
5797 echo $ac_n "checking "for optimise
"""... $ac_c" 1>&6
5798 echo "configure:5799: checking "for optimise
"" >&5
5799 # Check whether --with-optimise or --without-optimise was given.
5800 if test "${with_optimise+set}" = set; then
5801 withval
="$with_optimise"
5802 if test "x$with_optimise" = xyes
; then
5803 ac_cv_use_optimise
='wxUSE_OPTIMISE="1"'
5805 ac_cv_use_optimise
='wxUSE_OPTIMISE="0"'
5809 LINE
=`grep "wxUSE_OPTIMISE" ${OSTYPE}.system.cache`
5810 if test "x$LINE" != x
; then
5811 eval "DEFAULT_$LINE"
5813 ac_cv_use_optimise
='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
5817 eval "$ac_cv_use_optimise"
5818 echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp
5819 if test "$wxUSE_OPTIMISE" = 1; then
5820 echo "$ac_t""yes" 1>&6
5822 echo "$ac_t""no" 1>&6
5827 echo $ac_n "checking "for debug_flag
"""... $ac_c" 1>&6
5828 echo "configure:5829: checking "for debug_flag
"" >&5
5829 # Check whether --with-debug_flag or --without-debug_flag was given.
5830 if test "${with_debug_flag+set}" = set; then
5831 withval
="$with_debug_flag"
5832 if test "x$with_debug_flag" = xyes
; then
5833 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="1"'
5835 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="0"'
5839 LINE
=`grep "wxUSE_DEBUG_FLAG" ${OSTYPE}.system.cache`
5840 if test "x$LINE" != x
; then
5841 eval "DEFAULT_$LINE"
5843 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
5847 eval "$ac_cv_use_debug_flag"
5848 echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp
5849 if test "$wxUSE_DEBUG_FLAG" = 1; then
5850 echo "$ac_t""yes" 1>&6
5852 echo "$ac_t""no" 1>&6
5857 echo $ac_n "checking "for debug_info
"""... $ac_c" 1>&6
5858 echo "configure:5859: checking "for debug_info
"" >&5
5859 # Check whether --with-debug_info or --without-debug_info was given.
5860 if test "${with_debug_info+set}" = set; then
5861 withval
="$with_debug_info"
5862 if test "x$with_debug_info" = xyes
; then
5863 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="1"'
5865 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="0"'
5869 LINE
=`grep "wxUSE_DEBUG_INFO" ${OSTYPE}.system.cache`
5870 if test "x$LINE" != x
; then
5871 eval "DEFAULT_$LINE"
5873 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
5877 eval "$ac_cv_use_debug_info"
5878 echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp
5879 if test "$wxUSE_DEBUG_INFO" = 1; then
5880 echo "$ac_t""yes" 1>&6
5882 echo "$ac_t""no" 1>&6
5887 echo $ac_n "checking "for debug_gdb
"""... $ac_c" 1>&6
5888 echo "configure:5889: checking "for debug_gdb
"" >&5
5889 # Check whether --with-debug_gdb or --without-debug_gdb was given.
5890 if test "${with_debug_gdb+set}" = set; then
5891 withval
="$with_debug_gdb"
5892 if test "x$with_debug_gdb" = xyes
; then
5893 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="1"'
5895 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="0"'
5899 LINE
=`grep "wxUSE_DEBUG_GDB" ${OSTYPE}.system.cache`
5900 if test "x$LINE" != x
; then
5901 eval "DEFAULT_$LINE"
5903 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
5907 eval "$ac_cv_use_debug_gdb"
5908 echo $ac_cv_use_debug_gdb >> ${OSTYPE}.system.cache.tmp
5909 if test "$wxUSE_DEBUG_GDB" = 1; then
5910 echo "$ac_t""yes" 1>&6
5912 echo "$ac_t""no" 1>&6
5917 echo $ac_n "checking "for mem_tracing
"""... $ac_c" 1>&6
5918 echo "configure:5919: checking "for mem_tracing
"" >&5
5919 # Check whether --with-mem_tracing or --without-mem_tracing was given.
5920 if test "${with_mem_tracing+set}" = set; then
5921 withval
="$with_mem_tracing"
5922 if test "x$with_mem_tracing" = xyes
; then
5923 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="1"'
5925 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="0"'
5929 LINE
=`grep "wxUSE_MEM_TRACING" ${OSTYPE}.system.cache`
5930 if test "x$LINE" != x
; then
5931 eval "DEFAULT_$LINE"
5933 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
5937 eval "$ac_cv_use_mem_tracing"
5938 echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp
5939 if test "$wxUSE_MEM_TRACING" = 1; then
5940 echo "$ac_t""yes" 1>&6
5942 echo "$ac_t""no" 1>&6
5947 echo $ac_n "checking "for dmalloc
"""... $ac_c" 1>&6
5948 echo "configure:5949: checking "for dmalloc
"" >&5
5949 # Check whether --with-dmalloc or --without-dmalloc was given.
5950 if test "${with_dmalloc+set}" = set; then
5951 withval
="$with_dmalloc"
5952 if test "x$with_dmalloc" = xyes
; then
5953 ac_cv_use_dmalloc
='wxUSE_DMALLOC="1"'
5955 ac_cv_use_dmalloc
='wxUSE_DMALLOC="0"'
5959 LINE
=`grep "wxUSE_DMALLOC" ${OSTYPE}.system.cache`
5960 if test "x$LINE" != x
; then
5961 eval "DEFAULT_$LINE"
5963 ac_cv_use_dmalloc
='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
5967 eval "$ac_cv_use_dmalloc"
5968 echo $ac_cv_use_dmalloc >> ${OSTYPE}.system.cache.tmp
5969 if test "$wxUSE_DMALLOC" = 1; then
5970 echo "$ac_t""yes" 1>&6
5972 echo "$ac_t""no" 1>&6
5977 echo $ac_n "checking "for profile
"""... $ac_c" 1>&6
5978 echo "configure:5979: checking "for profile
"" >&5
5979 # Check whether --with-profile or --without-profile was given.
5980 if test "${with_profile+set}" = set; then
5981 withval
="$with_profile"
5982 if test "x$with_profile" = xyes
; then
5983 ac_cv_use_profile
='wxUSE_PROFILE="1"'
5985 ac_cv_use_profile
='wxUSE_PROFILE="0"'
5989 LINE
=`grep "wxUSE_PROFILE" ${OSTYPE}.system.cache`
5990 if test "x$LINE" != x
; then
5991 eval "DEFAULT_$LINE"
5993 ac_cv_use_profile
='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
5997 eval "$ac_cv_use_profile"
5998 echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp
5999 if test "$wxUSE_PROFILE" = 1; then
6000 echo "$ac_t""yes" 1>&6
6002 echo "$ac_t""no" 1>&6
6007 echo $ac_n "checking "for apple_ieee
"""... $ac_c" 1>&6
6008 echo "configure:6009: checking "for apple_ieee
"" >&5
6009 # Check whether --with-apple_ieee or --without-apple_ieee was given.
6010 if test "${with_apple_ieee+set}" = set; then
6011 withval
="$with_apple_ieee"
6012 if test "x$with_apple_ieee" = xyes
; then
6013 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="1"'
6015 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="0"'
6019 LINE
=`grep "wxUSE_APPLE_IEEE" ${OSTYPE}.system.cache`
6020 if test "x$LINE" != x
; then
6021 eval "DEFAULT_$LINE"
6023 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
6027 eval "$ac_cv_use_apple_ieee"
6028 echo $ac_cv_use_apple_ieee >> ${OSTYPE}.system.cache.tmp
6029 if test "$wxUSE_APPLE_IEEE" = 1; then
6030 echo "$ac_t""yes" 1>&6
6032 echo "$ac_t""no" 1>&6
6037 echo $ac_n "checking "for threads
"""... $ac_c" 1>&6
6038 echo "configure:6039: checking "for threads
"" >&5
6039 # Check whether --with-threads or --without-threads was given.
6040 if test "${with_threads+set}" = set; then
6041 withval
="$with_threads"
6042 if test "x$with_threads" = xyes
; then
6043 ac_cv_use_threads
='wxUSE_THREADS="1"'
6045 ac_cv_use_threads
='wxUSE_THREADS="0"'
6049 LINE
=`grep "wxUSE_THREADS" ${OSTYPE}.system.cache`
6050 if test "x$LINE" != x
; then
6051 eval "DEFAULT_$LINE"
6053 ac_cv_use_threads
='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6057 eval "$ac_cv_use_threads"
6058 echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp
6059 if test "$wxUSE_THREADS" = 1; then
6060 echo "$ac_t""yes" 1>&6
6062 echo "$ac_t""no" 1>&6
6067 echo $ac_n "checking "for dynlib
"""... $ac_c" 1>&6
6068 echo "configure:6069: checking "for dynlib
"" >&5
6069 # Check whether --with-dynlib or --without-dynlib was given.
6070 if test "${with_dynlib+set}" = set; then
6071 withval
="$with_dynlib"
6072 if test "x$with_dynlib" = xyes
; then
6073 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS="1"'
6075 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS="0"'
6079 LINE
=`grep "wxUSE_DYNLIB_CLASS" ${OSTYPE}.system.cache`
6080 if test "x$LINE" != x
; then
6081 eval "DEFAULT_$LINE"
6083 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
6087 eval "$ac_cv_use_dynlib"
6088 echo $ac_cv_use_dynlib >> ${OSTYPE}.system.cache.tmp
6089 if test "$wxUSE_DYNLIB_CLASS" = 1; then
6090 echo "$ac_t""yes" 1>&6
6092 echo "$ac_t""no" 1>&6
6098 echo $ac_n "checking "for zlib
"""... $ac_c" 1>&6
6099 echo "configure:6100: checking "for zlib
"" >&5
6100 # Check whether --with-zlib or --without-zlib was given.
6101 if test "${with_zlib+set}" = set; then
6102 withval
="$with_zlib"
6103 if test "x$with_zlib" = xyes
; then
6104 ac_cv_use_zlib
='wxUSE_ZLIB="1"'
6106 ac_cv_use_zlib
='wxUSE_ZLIB="0"'
6110 LINE
=`grep "wxUSE_ZLIB" ${OSTYPE}.system.cache`
6111 if test "x$LINE" != x
; then
6112 eval "DEFAULT_$LINE"
6114 ac_cv_use_zlib
='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
6118 eval "$ac_cv_use_zlib"
6119 echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp
6120 if test "$wxUSE_ZLIB" = 1; then
6121 echo "$ac_t""yes" 1>&6
6123 echo "$ac_t""no" 1>&6
6128 echo $ac_n "checking "for libpng
"""... $ac_c" 1>&6
6129 echo "configure:6130: checking "for libpng
"" >&5
6130 # Check whether --with-libpng or --without-libpng was given.
6131 if test "${with_libpng+set}" = set; then
6132 withval
="$with_libpng"
6133 if test "x$with_libpng" = xyes
; then
6134 ac_cv_use_libpng
='wxUSE_LIBPNG="1"'
6136 ac_cv_use_libpng
='wxUSE_LIBPNG="0"'
6140 LINE
=`grep "wxUSE_LIBPNG" ${OSTYPE}.system.cache`
6141 if test "x$LINE" != x
; then
6142 eval "DEFAULT_$LINE"
6144 ac_cv_use_libpng
='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
6148 eval "$ac_cv_use_libpng"
6149 echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp
6150 if test "$wxUSE_LIBPNG" = 1; then
6151 echo "$ac_t""yes" 1>&6
6153 echo "$ac_t""no" 1>&6
6158 echo $ac_n "checking "for libjpeg
"""... $ac_c" 1>&6
6159 echo "configure:6160: checking "for libjpeg
"" >&5
6160 # Check whether --with-libjpeg or --without-libjpeg was given.
6161 if test "${with_libjpeg+set}" = set; then
6162 withval
="$with_libjpeg"
6163 if test "x$with_libjpeg" = xyes
; then
6164 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="1"'
6166 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="0"'
6170 LINE
=`grep "wxUSE_LIBJPEG" ${OSTYPE}.system.cache`
6171 if test "x$LINE" != x
; then
6172 eval "DEFAULT_$LINE"
6174 ac_cv_use_libjpeg
='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
6178 eval "$ac_cv_use_libjpeg"
6179 echo $ac_cv_use_libjpeg >> ${OSTYPE}.system.cache.tmp
6180 if test "$wxUSE_LIBJPEG" = 1; then
6181 echo "$ac_t""yes" 1>&6
6183 echo "$ac_t""no" 1>&6
6188 echo $ac_n "checking "for odbc
"""... $ac_c" 1>&6
6189 echo "configure:6190: checking "for odbc
"" >&5
6190 # Check whether --with-odbc or --without-odbc was given.
6191 if test "${with_odbc+set}" = set; then
6192 withval
="$with_odbc"
6193 if test "x$with_odbc" = xyes
; then
6194 ac_cv_use_odbc
='wxUSE_ODBC="1"'
6196 ac_cv_use_odbc
='wxUSE_ODBC="0"'
6200 LINE
=`grep "wxUSE_ODBC" ${OSTYPE}.system.cache`
6201 if test "x$LINE" != x
; then
6202 eval "DEFAULT_$LINE"
6204 ac_cv_use_odbc
='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
6208 eval "$ac_cv_use_odbc"
6209 echo $ac_cv_use_odbc >> ${OSTYPE}.system.cache.tmp
6210 if test "$wxUSE_ODBC" = 1; then
6211 echo "$ac_t""yes" 1>&6
6213 echo "$ac_t""no" 1>&6
6219 echo $ac_n "checking "for timedate
"""... $ac_c" 1>&6
6220 echo "configure:6221: checking "for timedate
"" >&5
6221 # Check whether --with-timedate or --without-timedate was given.
6222 if test "${with_timedate+set}" = set; then
6223 withval
="$with_timedate"
6224 if test "x$with_timedate" = xyes
; then
6225 ac_cv_use_timedate
='wxUSE_TIMEDATE="1"'
6227 ac_cv_use_timedate
='wxUSE_TIMEDATE="0"'
6231 LINE
=`grep "wxUSE_TIMEDATE" ${OSTYPE}.system.cache`
6232 if test "x$LINE" != x
; then
6233 eval "DEFAULT_$LINE"
6235 ac_cv_use_timedate
='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
6239 eval "$ac_cv_use_timedate"
6240 echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp
6241 if test "$wxUSE_TIMEDATE" = 1; then
6242 echo "$ac_t""yes" 1>&6
6244 echo "$ac_t""no" 1>&6
6249 echo $ac_n "checking "for intl
"""... $ac_c" 1>&6
6250 echo "configure:6251: checking "for intl
"" >&5
6251 # Check whether --with-intl or --without-intl was given.
6252 if test "${with_intl+set}" = set; then
6253 withval
="$with_intl"
6254 if test "x$with_intl" = xyes
; then
6255 ac_cv_use_intl
='wxUSE_INTL="1"'
6257 ac_cv_use_intl
='wxUSE_INTL="0"'
6261 LINE
=`grep "wxUSE_INTL" ${OSTYPE}.system.cache`
6262 if test "x$LINE" != x
; then
6263 eval "DEFAULT_$LINE"
6265 ac_cv_use_intl
='wxUSE_INTL='$DEFAULT_wxUSE_INTL
6269 eval "$ac_cv_use_intl"
6270 echo $ac_cv_use_intl >> ${OSTYPE}.system.cache.tmp
6271 if test "$wxUSE_INTL" = 1; then
6272 echo "$ac_t""yes" 1>&6
6274 echo "$ac_t""no" 1>&6
6279 echo $ac_n "checking "for config
"""... $ac_c" 1>&6
6280 echo "configure:6281: checking "for config
"" >&5
6281 # Check whether --with-config or --without-config was given.
6282 if test "${with_config+set}" = set; then
6283 withval
="$with_config"
6284 if test "x$with_config" = xyes
; then
6285 ac_cv_use_config
='wxUSE_CONFIG="1"'
6287 ac_cv_use_config
='wxUSE_CONFIG="0"'
6291 LINE
=`grep "wxUSE_CONFIG" ${OSTYPE}.system.cache`
6292 if test "x$LINE" != x
; then
6293 eval "DEFAULT_$LINE"
6295 ac_cv_use_config
='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
6299 eval "$ac_cv_use_config"
6300 echo $ac_cv_use_config >> ${OSTYPE}.system.cache.tmp
6301 if test "$wxUSE_CONFIG" = 1; then
6302 echo "$ac_t""yes" 1>&6
6304 echo "$ac_t""no" 1>&6
6309 echo $ac_n "checking "for streams
"""... $ac_c" 1>&6
6310 echo "configure:6311: checking "for streams
"" >&5
6311 # Check whether --with-streams or --without-streams was given.
6312 if test "${with_streams+set}" = set; then
6313 withval
="$with_streams"
6314 if test "x$with_streams" = xyes
; then
6315 ac_cv_use_streams
='wxUSE_STREAMS="1"'
6317 ac_cv_use_streams
='wxUSE_STREAMS="0"'
6321 LINE
=`grep "wxUSE_STREAMS" ${OSTYPE}.system.cache`
6322 if test "x$LINE" != x
; then
6323 eval "DEFAULT_$LINE"
6325 ac_cv_use_streams
='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6329 eval "$ac_cv_use_streams"
6330 echo $ac_cv_use_streams >> ${OSTYPE}.system.cache.tmp
6331 if test "$wxUSE_STREAMS" = 1; then
6332 echo "$ac_t""yes" 1>&6
6334 echo "$ac_t""no" 1>&6
6339 echo $ac_n "checking "for serial
"""... $ac_c" 1>&6
6340 echo "configure:6341: checking "for serial
"" >&5
6341 # Check whether --with-serial or --without-serial was given.
6342 if test "${with_serial+set}" = set; then
6343 withval
="$with_serial"
6344 if test "x$with_serial" = xyes
; then
6345 ac_cv_use_serial
='wxUSE_SERIAL="1"'
6347 ac_cv_use_serial
='wxUSE_SERIAL="0"'
6351 LINE
=`grep "wxUSE_SERIAL" ${OSTYPE}.system.cache`
6352 if test "x$LINE" != x
; then
6353 eval "DEFAULT_$LINE"
6355 ac_cv_use_serial
='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
6359 eval "$ac_cv_use_serial"
6360 echo $ac_cv_use_serial >> ${OSTYPE}.system.cache.tmp
6361 if test "$wxUSE_SERIAL" = 1; then
6362 echo "$ac_t""yes" 1>&6
6364 echo "$ac_t""no" 1>&6
6369 echo $ac_n "checking "for sockets
"""... $ac_c" 1>&6
6370 echo "configure:6371: checking "for sockets
"" >&5
6371 # Check whether --with-sockets or --without-sockets was given.
6372 if test "${with_sockets+set}" = set; then
6373 withval
="$with_sockets"
6374 if test "x$with_sockets" = xyes
; then
6375 ac_cv_use_sockets
='wxUSE_SOCKETS="1"'
6377 ac_cv_use_sockets
='wxUSE_SOCKETS="0"'
6381 LINE
=`grep "wxUSE_SOCKETS" ${OSTYPE}.system.cache`
6382 if test "x$LINE" != x
; then
6383 eval "DEFAULT_$LINE"
6385 ac_cv_use_sockets
='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
6389 eval "$ac_cv_use_sockets"
6390 echo $ac_cv_use_sockets >> ${OSTYPE}.system.cache.tmp
6391 if test "$wxUSE_SOCKETS" = 1; then
6392 echo "$ac_t""yes" 1>&6
6394 echo "$ac_t""no" 1>&6
6400 echo $ac_n "checking "for afmfonts
"""... $ac_c" 1>&6
6401 echo "configure:6402: checking "for afmfonts
"" >&5
6402 # Check whether --with-afmfonts or --without-afmfonts was given.
6403 if test "${with_afmfonts+set}" = set; then
6404 withval
="$with_afmfonts"
6405 if test "x$with_afmfonts" = xyes
; then
6406 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="1"'
6408 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="0"'
6412 LINE
=`grep "wxUSE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache`
6413 if test "x$LINE" != x
; then
6414 eval "DEFAULT_$LINE"
6416 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT='$DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
6420 eval "$ac_cv_use_afmfonts"
6421 echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp
6422 if test "$wxUSE_AFM_FOR_POSTSCRIPT" = 1; then
6423 echo "$ac_t""yes" 1>&6
6425 echo "$ac_t""no" 1>&6
6430 echo $ac_n "checking "for normalized
"""... $ac_c" 1>&6
6431 echo "configure:6432: checking "for normalized
"" >&5
6432 # Check whether --with-normalized or --without-normalized was given.
6433 if test "${with_normalized+set}" = set; then
6434 withval
="$with_normalized"
6435 if test "x$with_normalized" = xyes
; then
6436 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="1"'
6438 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="0"'
6442 LINE
=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache`
6443 if test "x$LINE" != x
; then
6444 eval "DEFAULT_$LINE"
6446 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS
6450 eval "$ac_cv_use_normalized"
6451 echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp
6452 if test "$WX_NORMALIZED_PS_FONTS" = 1; then
6453 echo "$ac_t""yes" 1>&6
6455 echo "$ac_t""no" 1>&6
6460 echo $ac_n "checking "for postscript
"""... $ac_c" 1>&6
6461 echo "configure:6462: checking "for postscript
"" >&5
6462 # Check whether --with-postscript or --without-postscript was given.
6463 if test "${with_postscript+set}" = set; then
6464 withval
="$with_postscript"
6465 if test "x$with_postscript" = xyes
; then
6466 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="1"'
6468 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="0"'
6472 LINE
=`grep "wxUSE_POSTSCRIPT" ${OSTYPE}.system.cache`
6473 if test "x$LINE" != x
; then
6474 eval "DEFAULT_$LINE"
6476 ac_cv_use_postscript
='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6480 eval "$ac_cv_use_postscript"
6481 echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp
6482 if test "$wxUSE_POSTSCRIPT" = 1; then
6483 echo "$ac_t""yes" 1>&6
6485 echo "$ac_t""no" 1>&6
6491 echo $ac_n "checking "for unicode
"""... $ac_c" 1>&6
6492 echo "configure:6493: checking "for unicode
"" >&5
6493 # Check whether --with-unicode or --without-unicode was given.
6494 if test "${with_unicode+set}" = set; then
6495 withval
="$with_unicode"
6496 if test "x$with_unicode" = xyes
; then
6497 ac_cv_use_unicode
='wxUSE_UNICODE="1"'
6499 ac_cv_use_unicode
='wxUSE_UNICODE="0"'
6503 LINE
=`grep "wxUSE_UNICODE" ${OSTYPE}.system.cache`
6504 if test "x$LINE" != x
; then
6505 eval "DEFAULT_$LINE"
6507 ac_cv_use_unicode
='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6511 eval "$ac_cv_use_unicode"
6512 echo $ac_cv_use_unicode >> ${OSTYPE}.system.cache.tmp
6513 if test "$wxUSE_UNICODE" = 1; then
6514 echo "$ac_t""yes" 1>&6
6516 echo "$ac_t""no" 1>&6
6521 echo $ac_n "checking "for wcsrtombs
"""... $ac_c" 1>&6
6522 echo "configure:6523: checking "for wcsrtombs
"" >&5
6523 # Check whether --with-wcsrtombs or --without-wcsrtombs was given.
6524 if test "${with_wcsrtombs+set}" = set; then
6525 withval
="$with_wcsrtombs"
6526 if test "x$with_wcsrtombs" = xyes
; then
6527 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="1"'
6529 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="0"'
6533 LINE
=`grep "wxUSE_WCSRTOMBS" ${OSTYPE}.system.cache`
6534 if test "x$LINE" != x
; then
6535 eval "DEFAULT_$LINE"
6537 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
6541 eval "$ac_cv_use_wcsrtombs"
6542 echo $ac_cv_use_wcsrtombs >> ${OSTYPE}.system.cache.tmp
6543 if test "$wxUSE_WCSRTOMBS" = 1; then
6544 echo "$ac_t""yes" 1>&6
6546 echo "$ac_t""no" 1>&6
6552 echo $ac_n "checking "for wxresources
"""... $ac_c" 1>&6
6553 echo "configure:6554: checking "for wxresources
"" >&5
6554 # Check whether --with-wxresources or --without-wxresources was given.
6555 if test "${with_wxresources+set}" = set; then
6556 withval
="$with_wxresources"
6557 if test "x$with_wxresources" = xyes
; then
6558 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="1"'
6560 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="0"'
6564 LINE
=`grep "wxUSE_WX_RESOURCES" ${OSTYPE}.system.cache`
6565 if test "x$LINE" != x
; then
6566 eval "DEFAULT_$LINE"
6568 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES='$DEFAULT_wxUSE_WX_RESOURCES
6572 eval "$ac_cv_use_wxresources"
6573 echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp
6574 if test "$wxUSE_WX_RESOURCES" = 1; then
6575 echo "$ac_t""yes" 1>&6
6577 echo "$ac_t""no" 1>&6
6582 echo $ac_n "checking "for prologio
"""... $ac_c" 1>&6
6583 echo "configure:6584: checking "for prologio
"" >&5
6584 # Check whether --with-prologio or --without-prologio was given.
6585 if test "${with_prologio+set}" = set; then
6586 withval
="$with_prologio"
6587 if test "x$with_prologio" = xyes
; then
6588 ac_cv_use_prologio
='wxUSE_PROLOGIO="1"'
6590 ac_cv_use_prologio
='wxUSE_PROLOGIO="0"'
6594 LINE
=`grep "wxUSE_PROLOGIO" ${OSTYPE}.system.cache`
6595 if test "x$LINE" != x
; then
6596 eval "DEFAULT_$LINE"
6598 ac_cv_use_prologio
='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6602 eval "$ac_cv_use_prologio"
6603 echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp
6604 if test "$wxUSE_PROLOGIO" = 1; then
6605 echo "$ac_t""yes" 1>&6
6607 echo "$ac_t""no" 1>&6
6612 echo $ac_n "checking "for RPC
"""... $ac_c" 1>&6
6613 echo "configure:6614: checking "for RPC
"" >&5
6614 # Check whether --with-rpc or --without-rpc was given.
6615 if test "${with_rpc+set}" = set; then
6617 if test "x$with_rpc" = xyes
; then
6618 ac_cv_use_rpc
='wxUSE_RPC="1"'
6620 ac_cv_use_rpc
='wxUSE_RPC="0"'
6624 LINE
=`grep "wxUSE_RPC" ${OSTYPE}.system.cache`
6625 if test "x$LINE" != x
; then
6626 eval "DEFAULT_$LINE"
6628 ac_cv_use_rpc
='wxUSE_RPC='$DEFAULT_wxUSE_RPC
6632 eval "$ac_cv_use_rpc"
6633 echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp
6634 if test "$wxUSE_RPC" = 1; then
6635 echo "$ac_t""yes" 1>&6
6637 echo "$ac_t""no" 1>&6
6643 echo $ac_n "checking "for IPC
"""... $ac_c" 1>&6
6644 echo "configure:6645: checking "for IPC
"" >&5
6645 # Check whether --with-ipc or --without-ipc was given.
6646 if test "${with_ipc+set}" = set; then
6648 if test "x$with_ipc" = xyes
; then
6649 ac_cv_use_ipc
='wxUSE_IPC="1"'
6651 ac_cv_use_ipc
='wxUSE_IPC="0"'
6655 LINE
=`grep "wxUSE_IPC" ${OSTYPE}.system.cache`
6656 if test "x$LINE" != x
; then
6657 eval "DEFAULT_$LINE"
6659 ac_cv_use_ipc
='wxUSE_IPC='$DEFAULT_wxUSE_IPC
6663 eval "$ac_cv_use_ipc"
6664 echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp
6665 if test "$wxUSE_IPC" = 1; then
6666 echo "$ac_t""yes" 1>&6
6668 echo "$ac_t""no" 1>&6
6673 echo $ac_n "checking "for resources
"""... $ac_c" 1>&6
6674 echo "configure:6675: checking "for resources
"" >&5
6675 # Check whether --with-resources or --without-resources was given.
6676 if test "${with_resources+set}" = set; then
6677 withval
="$with_resources"
6678 if test "x$with_resources" = xyes
; then
6679 ac_cv_use_resources
='wxUSE_RESOURCES="1"'
6681 ac_cv_use_resources
='wxUSE_RESOURCES="0"'
6685 LINE
=`grep "wxUSE_RESOURCES" ${OSTYPE}.system.cache`
6686 if test "x$LINE" != x
; then
6687 eval "DEFAULT_$LINE"
6689 ac_cv_use_resources
='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6693 eval "$ac_cv_use_resources"
6694 echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp
6695 if test "$wxUSE_RESOURCES" = 1; then
6696 echo "$ac_t""yes" 1>&6
6698 echo "$ac_t""no" 1>&6
6703 echo $ac_n "checking "for clipboard
"""... $ac_c" 1>&6
6704 echo "configure:6705: checking "for clipboard
"" >&5
6705 # Check whether --with-clipboard or --without-clipboard was given.
6706 if test "${with_clipboard+set}" = set; then
6707 withval
="$with_clipboard"
6708 if test "x$with_clipboard" = xyes
; then
6709 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="1"'
6711 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="0"'
6715 LINE
=`grep "wxUSE_CLIPBOARD" ${OSTYPE}.system.cache`
6716 if test "x$LINE" != x
; then
6717 eval "DEFAULT_$LINE"
6719 ac_cv_use_clipboard
='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6723 eval "$ac_cv_use_clipboard"
6724 echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp
6725 if test "$wxUSE_CLIPBOARD" = 1; then
6726 echo "$ac_t""yes" 1>&6
6728 echo "$ac_t""no" 1>&6
6733 echo $ac_n "checking "for tooltips
"""... $ac_c" 1>&6
6734 echo "configure:6735: checking "for tooltips
"" >&5
6735 # Check whether --with-tooltips or --without-tooltips was given.
6736 if test "${with_tooltips+set}" = set; then
6737 withval
="$with_tooltips"
6738 if test "x$with_tooltips" = xyes
; then
6739 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="1"'
6741 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="0"'
6745 LINE
=`grep "wxUSE_TOOLTIPS" ${OSTYPE}.system.cache`
6746 if test "x$LINE" != x
; then
6747 eval "DEFAULT_$LINE"
6749 ac_cv_use_tooltips
='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
6753 eval "$ac_cv_use_tooltips"
6754 echo $ac_cv_use_tooltips >> ${OSTYPE}.system.cache.tmp
6755 if test "$wxUSE_TOOLTIPS" = 1; then
6756 echo "$ac_t""yes" 1>&6
6758 echo "$ac_t""no" 1>&6
6763 echo $ac_n "checking "for dnd
"""... $ac_c" 1>&6
6764 echo "configure:6765: checking "for dnd
"" >&5
6765 # Check whether --with-dnd or --without-dnd was given.
6766 if test "${with_dnd+set}" = set; then
6768 if test "x$with_dnd" = xyes
; then
6769 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="1"'
6771 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="0"'
6775 LINE
=`grep "wxUSE_DRAG_AND_DROP" ${OSTYPE}.system.cache`
6776 if test "x$LINE" != x
; then
6777 eval "DEFAULT_$LINE"
6779 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6783 eval "$ac_cv_use_dnd"
6784 echo $ac_cv_use_dnd >> ${OSTYPE}.system.cache.tmp
6785 if test "$wxUSE_DRAG_AND_DROP" = 1; then
6786 echo "$ac_t""yes" 1>&6
6788 echo "$ac_t""no" 1>&6
6793 echo $ac_n "checking "for spline
"""... $ac_c" 1>&6
6794 echo "configure:6795: checking "for spline
"" >&5
6795 # Check whether --with-spline or --without-spline was given.
6796 if test "${with_spline+set}" = set; then
6797 withval
="$with_spline"
6798 if test "x$with_spline" = xyes
; then
6799 ac_cv_use_spline
='wxUSE_SPLINE="1"'
6801 ac_cv_use_spline
='wxUSE_SPLINE="0"'
6805 LINE
=`grep "wxUSE_SPLINE" ${OSTYPE}.system.cache`
6806 if test "x$LINE" != x
; then
6807 eval "DEFAULT_$LINE"
6809 ac_cv_use_spline
='wxUSE_SPLINE='$DEFAULT_wxUSE_SPLINE
6813 eval "$ac_cv_use_spline"
6814 echo $ac_cv_use_spline >> ${OSTYPE}.system.cache.tmp
6815 if test "$wxUSE_SPLINE" = 1; then
6816 echo "$ac_t""yes" 1>&6
6818 echo "$ac_t""no" 1>&6
6824 echo $ac_n "checking "for mdi
"""... $ac_c" 1>&6
6825 echo "configure:6826: checking "for mdi
"" >&5
6826 # Check whether --with-mdi or --without-mdi was given.
6827 if test "${with_mdi+set}" = set; then
6829 if test "x$with_mdi" = xyes
; then
6830 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="1"'
6832 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="0"'
6836 LINE
=`grep "wxUSE_MDI_ARCHITECTURE" ${OSTYPE}.system.cache`
6837 if test "x$LINE" != x
; then
6838 eval "DEFAULT_$LINE"
6840 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6844 eval "$ac_cv_use_mdi"
6845 echo $ac_cv_use_mdi >> ${OSTYPE}.system.cache.tmp
6846 if test "$wxUSE_MDI_ARCHITECTURE" = 1; then
6847 echo "$ac_t""yes" 1>&6
6849 echo "$ac_t""no" 1>&6
6854 echo $ac_n "checking "for docview
"""... $ac_c" 1>&6
6855 echo "configure:6856: checking "for docview
"" >&5
6856 # Check whether --with-docview or --without-docview was given.
6857 if test "${with_docview+set}" = set; then
6858 withval
="$with_docview"
6859 if test "x$with_docview" = xyes
; then
6860 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="1"'
6862 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="0"'
6866 LINE
=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache`
6867 if test "x$LINE" != x
; then
6868 eval "DEFAULT_$LINE"
6870 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6874 eval "$ac_cv_use_docview"
6875 echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp
6876 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1; then
6877 echo "$ac_t""yes" 1>&6
6879 echo "$ac_t""no" 1>&6
6884 echo $ac_n "checking "for printarch
"""... $ac_c" 1>&6
6885 echo "configure:6886: checking "for printarch
"" >&5
6886 # Check whether --with-printarch or --without-printarch was given.
6887 if test "${with_printarch+set}" = set; then
6888 withval
="$with_printarch"
6889 if test "x$with_printarch" = xyes
; then
6890 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="1"'
6892 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="0"'
6896 LINE
=`grep "wxUSE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache`
6897 if test "x$LINE" != x
; then
6898 eval "DEFAULT_$LINE"
6900 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6904 eval "$ac_cv_use_printarch"
6905 echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp
6906 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1; then
6907 echo "$ac_t""yes" 1>&6
6909 echo "$ac_t""no" 1>&6
6914 echo $ac_n "checking "for help"""... $ac_c" 1>&6
6915 echo "configure:6916: checking "for help"" >&5
6916 # Check whether --with-help or --without-help was given.
6917 if test "${with_help+set}" = set; then
6918 withval
="$with_help"
6919 if test "x$with_help" = xyes
; then
6920 ac_cv_use_help
='wxUSE_HELP="1"'
6922 ac_cv_use_help
='wxUSE_HELP="0"'
6926 LINE
=`grep "wxUSE_HELP" ${OSTYPE}.system.cache`
6927 if test "x$LINE" != x
; then
6928 eval "DEFAULT_$LINE"
6930 ac_cv_use_help
='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6934 eval "$ac_cv_use_help"
6935 echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp
6936 if test "$wxUSE_HELP" = 1; then
6937 echo "$ac_t""yes" 1>&6
6939 echo "$ac_t""no" 1>&6
6944 if test "$wxUSE_UNIX" = 1 ; then
6945 cat >> confdefs.h
<<\EOF
6951 if test "$USE_LINUX" = 1; then
6952 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
6953 echo "configure:6954: checking for gettext in -lc" >&5
6954 ac_lib_var
=`echo c'_'gettext | sed 'y%./+-%__p_%'`
6955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6956 echo $ac_n "(cached) $ac_c" 1>&6
6958 ac_save_LIBS
="$LIBS"
6960 cat > conftest.
$ac_ext <<EOF
6961 #line 6962 "configure"
6962 #include "confdefs.h"
6963 /* Override any gcc2 internal prototype to avoid an error. */
6964 /* We use char because int might match the return type of a gcc2
6965 builtin and then its argument prototype would still apply. */
6972 if { (eval echo configure
:6973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6974 eval "ac_cv_lib_$ac_lib_var=yes"
6976 echo "configure: failed program was:" >&5
6977 cat conftest.
$ac_ext >&5
6979 eval "ac_cv_lib_$ac_lib_var=no"
6982 LIBS
="$ac_save_LIBS"
6985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6986 echo "$ac_t""yes" 1>&6
6987 cat >> confdefs.h
<<\EOF
6988 #define wxHAVE_GLIBC2 1
6992 echo "$ac_t""no" 1>&6
7011 if test "$wxUSE_GTK" = 1; then
7012 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7013 if test "${with_gtk_prefix+set}" = set; then
7014 withval
="$with_gtk_prefix"
7015 gtk_config_prefix
="$withval"
7017 gtk_config_prefix
=""
7020 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7021 if test "${with_gtk_exec_prefix+set}" = set; then
7022 withval
="$with_gtk_exec_prefix"
7023 gtk_config_exec_prefix
="$withval"
7025 gtk_config_exec_prefix
=""
7029 if test x
$gtk_config_exec_prefix != x
; then
7030 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7031 if test x
${GTK_CONFIG+set} != xset
; then
7032 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
7035 if test x
$gtk_config_prefix != x
; then
7036 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
7037 if test x
${GTK_CONFIG+set} != xset
; then
7038 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
7042 # Extract the first word of "gtk-config", so it can be a program name with args.
7043 set dummy gtk
-config; ac_word
=$2
7044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7045 echo "configure:7046: checking for $ac_word" >&5
7046 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7047 echo $ac_n "(cached) $ac_c" 1>&6
7049 case "$GTK_CONFIG" in
7051 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
7054 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a dos path.
7057 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7059 for ac_dir
in $ac_dummy; do
7060 test -z "$ac_dir" && ac_dir
=.
7061 if test -f $ac_dir/$ac_word; then
7062 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
7067 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
7071 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
7072 if test -n "$GTK_CONFIG"; then
7073 echo "$ac_t""$GTK_CONFIG" 1>&6
7075 echo "$ac_t""no" 1>&6
7078 min_gtk_version
=1.0.0
7079 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7080 echo "configure:7081: checking for GTK - version >= $min_gtk_version" >&5
7082 if test "$GTK_CONFIG" != "no" ; then
7083 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
7084 GTK_LIBS
=`$GTK_CONFIG --libs`
7085 ac_save_CFLAGS
="$CFLAGS"
7086 ac_save_LIBS
="$LIBS"
7087 CFLAGS
="$CFLAGS $GTK_CFLAGS"
7088 LIBS
="$LIBS $GTK_LIBS"
7089 if test "$cross_compiling" = yes; then
7090 echo $ac_n "cross compiling; assumed OK... $ac_c"
7092 cat > conftest.
$ac_ext <<EOF
7093 #line 7094 "configure"
7094 #include "confdefs.h"
7096 #include <gtk/gtk.h>
7102 int major, minor, micro;
7104 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
7105 printf("%s, bad version string\n", "$min_gtk_version");
7109 if (gtk_minor_version == 1) return FALSE;
7111 return !((gtk_major_version > major) ||
7112 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7113 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7117 if { (eval echo configure
:7118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7121 echo "configure: failed program was:" >&5
7122 cat conftest.
$ac_ext >&5
7129 CFLAGS
="$ac_save_CFLAGS"
7130 LIBS
="$ac_save_LIBS"
7134 if test "x$no_gtk" = x
; then
7135 echo "$ac_t""yes" 1>&6
7137 GUI_TK_INCLUDE
="$GTK_CFLAGS"
7138 GUI_TK_LIBRARY
="$GTK_LIBS"
7141 echo "$ac_t""no" 1>&6
7144 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.X or 1.0.X?" 1>&2; exit 1; }
7150 TOOLKIT_DEF
=__WXGTK__
7152 MAKEINCLUDE
=..
/gtk.inc
7153 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
7154 if test "${with_gtk_prefix+set}" = set; then
7155 withval
="$with_gtk_prefix"
7156 gtk_config_prefix
="$withval"
7158 gtk_config_prefix
=""
7161 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
7162 if test "${with_gtk_exec_prefix+set}" = set; then
7163 withval
="$with_gtk_exec_prefix"
7164 gtk_config_exec_prefix
="$withval"
7166 gtk_config_exec_prefix
=""
7170 if test x
$gtk_config_exec_prefix != x
; then
7171 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7172 if test x
${GTK_CONFIG+set} != xset
; then
7173 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
7176 if test x
$gtk_config_prefix != x
; then
7177 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
7178 if test x
${GTK_CONFIG+set} != xset
; then
7179 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
7183 # Extract the first word of "gtk-config", so it can be a program name with args.
7184 set dummy gtk
-config; ac_word
=$2
7185 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7186 echo "configure:7187: checking for $ac_word" >&5
7187 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
7188 echo $ac_n "(cached) $ac_c" 1>&6
7190 case "$GTK_CONFIG" in
7192 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
7195 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a dos path.
7198 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
7200 for ac_dir
in $ac_dummy; do
7201 test -z "$ac_dir" && ac_dir
=.
7202 if test -f $ac_dir/$ac_word; then
7203 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
7208 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
7212 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
7213 if test -n "$GTK_CONFIG"; then
7214 echo "$ac_t""$GTK_CONFIG" 1>&6
7216 echo "$ac_t""no" 1>&6
7219 min_gtk_version
=1.2.0
7220 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
7221 echo "configure:7222: checking for GTK - version >= $min_gtk_version" >&5
7223 if test "$GTK_CONFIG" != "no" ; then
7224 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
7225 GTK_LIBS
=`$GTK_CONFIG --libs`
7226 ac_save_CFLAGS
="$CFLAGS"
7227 ac_save_LIBS
="$LIBS"
7228 CFLAGS
="$CFLAGS $GTK_CFLAGS"
7229 LIBS
="$LIBS $GTK_LIBS"
7230 if test "$cross_compiling" = yes; then
7231 echo $ac_n "cross compiling; assumed OK... $ac_c"
7233 cat > conftest.
$ac_ext <<EOF
7234 #line 7235 "configure"
7235 #include "confdefs.h"
7237 #include <gtk/gtk.h>
7243 int major, minor, micro;
7245 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
7246 printf("%s, bad version string\n", "$min_gtk_version");
7250 if (gtk_minor_version == 1) return FALSE;
7252 return !((gtk_major_version > major) ||
7253 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7254 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
7258 if { (eval echo configure
:7259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7262 echo "configure: failed program was:" >&5
7263 cat conftest.
$ac_ext >&5
7270 CFLAGS
="$ac_save_CFLAGS"
7271 LIBS
="$ac_save_LIBS"
7275 if test "x$no_gtk" = x
; then
7276 echo "$ac_t""yes" 1>&6
7281 echo "$ac_t""no" 1>&6
7291 if test "$wxUSE_QT" = 1; then
7292 echo $ac_n "checking for Qt includes""... $ac_c" 1>&6
7293 echo "configure:7294: checking for Qt includes" >&5
7296 for ac_dir
in $SEARCH_INCLUDE;
7298 if test -f "$ac_dir/qapp.h"; then
7299 ac_find_includes
=$ac_dir
7304 if test "$ac_find_includes" != "" ; then
7305 echo "$ac_t""found $ac_find_includes" 1>&6
7306 echo $ac_n "checking for Qt library""... $ac_c" 1>&6
7307 echo "configure:7308: checking for Qt library" >&5
7310 for ac_dir
in $SEARCH_LIB;
7312 for ac_extension
in a so sl
; do
7313 if test -f "$ac_dir/libqt.$ac_extension"; then
7314 ac_find_libraries
=$ac_dir
7320 if test "$ac_find_libraries" != "" ; then
7322 ac_path_to_include
=$ac_find_includes
7323 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
7325 if test $result = 0; then
7326 ac_path_to_include
=""
7328 ac_path_to_include
="-I$ac_find_includes"
7332 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
7334 if test $result = 0; then
7337 ac_path_to_link
="-L$ac_find_libraries"
7340 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
7341 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
7342 echo "$ac_t""found Qt at $ac_find_libraries" 1>&6
7344 { echo "configure: error: no" 1>&2; exit 1; }
7347 { echo "configure: error: no" 1>&2; exit 1; }
7349 GUI_TK_LINK
="-lX11 -lqt -lm"
7351 TOOLKIT_DEF
=__WXQT__
7353 MAKEINCLUDE
=..
/qt.inc
7356 if test "$wxUSE_MOTIF" = 1; then
7357 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
7358 echo "configure:7359: checking for Motif/Lesstif includes" >&5
7361 for ac_dir
in $SEARCH_INCLUDE;
7363 if test -f "$ac_dir/Xm/Xm.h"; then
7364 ac_find_includes
=$ac_dir
7369 if test "$ac_find_includes" != "" ; then
7370 echo "$ac_t""found $ac_find_includes" 1>&6
7372 echo "$ac_t""no" 1>&6
7373 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
7376 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
7377 echo "configure:7378: checking for Motif/Lesstif library" >&5
7380 for ac_dir
in $SEARCH_LIB;
7382 for ac_extension
in a so sl
; do
7383 if test -f "$ac_dir/libXm.$ac_extension"; then
7384 ac_find_libraries
=$ac_dir
7390 if test "$ac_find_libraries" != "" ; then
7392 ac_path_to_include
=$ac_find_includes
7393 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
7395 if test $result = 0; then
7396 ac_path_to_include
=""
7398 ac_path_to_include
="-I$ac_find_includes"
7402 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
7404 if test $result = 0; then
7407 ac_path_to_link
="-L$ac_find_libraries"
7411 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
7412 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
7413 echo "$ac_t""found at $ac_find_libraries" 1>&6
7415 echo "$ac_t""no" 1>&6
7416 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
7419 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
7420 echo "configure:7421: checking for Xt library" >&5
7423 for ac_dir
in $SEARCH_LIB;
7425 for ac_extension
in a so sl
; do
7426 if test -f "$ac_dir/libXt.$ac_extension"; then
7427 ac_find_libraries
=$ac_dir
7433 if test "$ac_find_libraries" != "" ; then
7435 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
7437 if test $result = 0; then
7440 ac_path_to_link
="-L$ac_find_libraries"
7443 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
7444 echo "$ac_t""found at $ac_find_libraries" 1>&6
7446 echo "$ac_t""no" 1>&6
7447 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
7451 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7452 echo "configure:7453: checking for Xpm library" >&5
7455 for ac_dir
in $SEARCH_LIB;
7457 for ac_extension
in a so sl
; do
7458 if test -f "$ac_dir/libXpm.$ac_extension"; then
7459 ac_find_libraries
=$ac_dir
7465 if test "$ac_find_libraries" != "" ; then
7467 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
7469 if test $result = 0; then
7472 ac_path_to_link
="-L$ac_find_libraries"
7475 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
7477 cat >> confdefs.h
<<\EOF
7478 #define wxHAVE_LIB_XPM 1
7481 echo "$ac_t""found at $ac_find_libraries" 1>&6
7483 echo "$ac_t""no" 1>&6
7484 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7487 GUI_TK_LINK
="-lXm $(XPM_LINK)-lXmu -lXt -lX11 -lm"
7488 GUI_TK_LIBRARY
="$CHECK_LIB $GUI_TK_LINK"
7490 TOOLKIT_DEF
=__WXMOTIF__
7492 MAKEINCLUDE
=..
/motif.inc
7495 if test "$TOOLKIT" = ""; then
7496 { echo "configure: error: You must specify a toolkit: --with-gtk --with-qt --with-motif" 1>&2; exit 1; }
7511 if test "$WXGTK12" = 1 ; then
7512 cat >> confdefs.h
<<EOF
7513 #define __WXGTK12__ $WXGTK12
7521 if test "$wxUSE_DEBUG_GDB" = 1 ; then
7526 if test "$wxUSE_DEBUG_INFO" = 1 ; then
7533 if test "$wxUSE_DEBUG_FLAG" = 1 ; then
7534 cat >> confdefs.h
<<EOF
7535 #define WXDEBUG $wxUSE_DEBUG_FLAG
7538 WXDEBUG_DEFINE
="-D__WXDEBUG__"
7541 WXDEBUG_DEFINE
="-DGTK_NO_CHECK_CASTS"
7545 if test "$wxUSE_MEM_TRACING" = 1 ; then
7546 cat >> confdefs.h
<<EOF
7547 #define wxUSE_MEMORY_TRACING $wxUSE_MEM_TRACING
7550 cat >> confdefs.h
<<EOF
7551 #define wxUSE_GLOBAL_MEMORY_OPERATORS $wxUSE_MEM_TRACING
7556 if test "$wxUSE_DMALLOC" = 1 ; then
7557 EXTRA_LINK
="$EXTRA_LINK -ldmalloc"
7562 if test "$wxUSE_PROFILE" = 1 ; then
7567 CXXFLAGS
=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
7568 CFLAGS
=`echo "${CFLAGS}" | sed "s/\-O.//g" `
7569 if test "$wxUSE_OPTIMISE" = 0 ; then
7572 if test "$GCC" = yes ; then
7574 case "${canonical}" in
7576 OPTIMISE
="${OPTIMISE} "
7586 if test "$wxUSE_APPLE_IEEE" = 1 ; then
7587 APPLE_IEEE
="APPLE_IEEE"
7588 cat >> confdefs.h
<<EOF
7589 #define wxUSE_APPLE_IEEE $wxUSE_APPLE_IEEE
7594 wxUSE_IOSTREAMH
=$DEFAULT_wxUSE_IOSTREAMH
7595 cat >> confdefs.h
<<EOF
7596 #define wxUSE_IOSTREAMH $wxUSE_IOSTREAMH
7601 if test "$wxUSE_ZLIB" = 1 ; then
7602 cat >> confdefs.h
<<EOF
7603 #define wxUSE_ZLIB $wxUSE_ZLIB
7606 Z_C_SRC
="\$(Z_C_SRC)"
7610 if test "$wxUSE_LIBPNG" = 1 ; then
7611 cat >> confdefs.h
<<EOF
7612 #define wxUSE_LIBPNG $wxUSE_LIBPNG
7615 PNG_C_SRC
="\$(PNG_C_SRC)"
7619 if test "$wxUSE_LIBJPEG" = 1 ; then
7620 cat >> confdefs.h
<<EOF
7621 #define wxUSE_LIBJPEG $wxUSE_LIBJPEG
7624 JPEG_C_SRC
="\$(JPEG_C_SRC)"
7632 if test "$wxUSE_ODBC" = 1 ; then
7633 cat >> confdefs.h
<<EOF
7634 #define wxUSE_ODBC $wxUSE_ODBC
7637 IODBC_C_SRC
="\$(IODBC_C_SRC)"
7646 if test "$wxUSE_THREADS" = "1"; then
7648 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
7649 echo "configure:7650: checking for pthread_create in -lpthread" >&5
7650 ac_lib_var
=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
7651 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7652 echo $ac_n "(cached) $ac_c" 1>&6
7654 ac_save_LIBS
="$LIBS"
7655 LIBS
="-lpthread $LIBS"
7656 cat > conftest.
$ac_ext <<EOF
7657 #line 7658 "configure"
7658 #include "confdefs.h"
7659 /* Override any gcc2 internal prototype to avoid an error. */
7660 /* We use char because int might match the return type of a gcc2
7661 builtin and then its argument prototype would still apply. */
7662 char pthread_create();
7668 if { (eval echo configure
:7669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7670 eval "ac_cv_lib_$ac_lib_var=yes"
7672 echo "configure: failed program was:" >&5
7673 cat conftest.
$ac_ext >&5
7675 eval "ac_cv_lib_$ac_lib_var=no"
7678 LIBS
="$ac_save_LIBS"
7681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7682 echo "$ac_t""yes" 1>&6
7684 UNIX_THREAD
="unix/threadpsx.cpp"
7685 THREADS_LINK
="pthread"
7688 echo "$ac_t""no" 1>&6
7690 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
7691 echo "configure:7692: checking for pthread_create in -lc_r" >&5
7692 ac_lib_var
=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
7693 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7694 echo $ac_n "(cached) $ac_c" 1>&6
7696 ac_save_LIBS
="$LIBS"
7698 cat > conftest.
$ac_ext <<EOF
7699 #line 7700 "configure"
7700 #include "confdefs.h"
7701 /* Override any gcc2 internal prototype to avoid an error. */
7702 /* We use char because int might match the return type of a gcc2
7703 builtin and then its argument prototype would still apply. */
7704 char pthread_create();
7710 if { (eval echo configure
:7711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7712 eval "ac_cv_lib_$ac_lib_var=yes"
7714 echo "configure: failed program was:" >&5
7715 cat conftest.
$ac_ext >&5
7717 eval "ac_cv_lib_$ac_lib_var=no"
7720 LIBS
="$ac_save_LIBS"
7723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7724 echo "$ac_t""yes" 1>&6
7726 UNIX_THREAD
="unix/threadpsx.cpp"
7730 echo "$ac_t""no" 1>&6
7732 ac_safe
=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
7733 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
7734 echo "configure:7735: checking for sys/prctl.h" >&5
7735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7736 echo $ac_n "(cached) $ac_c" 1>&6
7738 cat > conftest.
$ac_ext <<EOF
7739 #line 7740 "configure"
7740 #include "confdefs.h"
7741 #include <sys/prctl.h>
7743 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7744 { (eval echo configure
:7745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7745 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7746 if test -z "$ac_err"; then
7748 eval "ac_cv_header_$ac_safe=yes"
7751 echo "configure: failed program was:" >&5
7752 cat conftest.
$ac_ext >&5
7754 eval "ac_cv_header_$ac_safe=no"
7758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7759 echo "$ac_t""yes" 1>&6
7761 UNIX_THREAD
="gtk/threadsgi.cpp"
7764 echo "$ac_t""no" 1>&6
7773 if test "$THREADS_LINK" != ""; then
7774 cat >> confdefs.h
<<\EOF
7775 #define wxUSE_THREADS 1
7779 echo "configure: warning: No thread support on this system" 1>&2
7783 if test -z "$UNIX_THREAD"; then
7787 if test "$wxUSE_THREADS" = "1"; then
7790 for ac_hdr
in sched.h
7792 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7793 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7794 echo "configure:7795: checking for $ac_hdr" >&5
7795 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7796 echo $ac_n "(cached) $ac_c" 1>&6
7798 cat > conftest.
$ac_ext <<EOF
7799 #line 7800 "configure"
7800 #include "confdefs.h"
7803 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7804 { (eval echo configure
:7805: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7805 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7806 if test -z "$ac_err"; then
7808 eval "ac_cv_header_$ac_safe=yes"
7811 echo "configure: failed program was:" >&5
7812 cat conftest.
$ac_ext >&5
7814 eval "ac_cv_header_$ac_safe=no"
7818 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7819 echo "$ac_t""yes" 1>&6
7820 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7821 cat >> confdefs.h
<<EOF
7822 #define $ac_tr_hdr 1
7826 echo "$ac_t""no" 1>&6
7831 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
7832 echo "configure:7833: checking for sched_yield in -l$THREADS_LINK" >&5
7833 ac_lib_var
=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
7834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7835 echo $ac_n "(cached) $ac_c" 1>&6
7837 ac_save_LIBS
="$LIBS"
7838 LIBS
="-l$THREADS_LINK $LIBS"
7839 cat > conftest.
$ac_ext <<EOF
7840 #line 7841 "configure"
7841 #include "confdefs.h"
7842 /* Override any gcc2 internal prototype to avoid an error. */
7843 /* We use char because int might match the return type of a gcc2
7844 builtin and then its argument prototype would still apply. */
7851 if { (eval echo configure
:7852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7853 eval "ac_cv_lib_$ac_lib_var=yes"
7855 echo "configure: failed program was:" >&5
7856 cat conftest.
$ac_ext >&5
7858 eval "ac_cv_lib_$ac_lib_var=no"
7861 LIBS
="$ac_save_LIBS"
7864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7865 echo "$ac_t""yes" 1>&6
7866 cat >> confdefs.h
<<\EOF
7867 #define HAVE_SCHED_YIELD 1
7871 echo "$ac_t""no" 1>&6
7872 echo $ac_n "checking for sched_yield in -l"posix4
"""... $ac_c" 1>&6
7873 echo "configure:7874: checking for sched_yield in -l"posix4
"" >&5
7874 ac_lib_var
=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
7875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7876 echo $ac_n "(cached) $ac_c" 1>&6
7878 ac_save_LIBS
="$LIBS"
7879 LIBS
="-l"posix4
" $LIBS"
7880 cat > conftest.
$ac_ext <<EOF
7881 #line 7882 "configure"
7882 #include "confdefs.h"
7883 /* Override any gcc2 internal prototype to avoid an error. */
7884 /* We use char because int might match the return type of a gcc2
7885 builtin and then its argument prototype would still apply. */
7892 if { (eval echo configure
:7893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7894 eval "ac_cv_lib_$ac_lib_var=yes"
7896 echo "configure: failed program was:" >&5
7897 cat conftest.
$ac_ext >&5
7899 eval "ac_cv_lib_$ac_lib_var=no"
7902 LIBS
="$ac_save_LIBS"
7905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7906 echo "$ac_t""yes" 1>&6
7907 cat >> confdefs.h
<<\EOF
7908 #define HAVE_SCHED_YIELD 1
7910 POSIX4_LINK
="-lposix4"
7912 echo "$ac_t""no" 1>&6
7913 echo "configure: warning: wxThread::Yield() will not work properly" 1>&2
7921 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
7922 echo "configure:7923: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
7923 ac_lib_var
=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
7924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7925 echo $ac_n "(cached) $ac_c" 1>&6
7927 ac_save_LIBS
="$LIBS"
7928 LIBS
="-l$THREADS_LINK $LIBS"
7929 cat > conftest.
$ac_ext <<EOF
7930 #line 7931 "configure"
7931 #include "confdefs.h"
7932 /* Override any gcc2 internal prototype to avoid an error. */
7933 /* We use char because int might match the return type of a gcc2
7934 builtin and then its argument prototype would still apply. */
7935 char pthread_attr_getschedpolicy();
7938 pthread_attr_getschedpolicy()
7941 if { (eval echo configure
:7942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7943 eval "ac_cv_lib_$ac_lib_var=yes"
7945 echo "configure: failed program was:" >&5
7946 cat conftest.
$ac_ext >&5
7948 eval "ac_cv_lib_$ac_lib_var=no"
7951 LIBS
="$ac_save_LIBS"
7954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7955 echo "$ac_t""yes" 1>&6
7956 cat >> confdefs.h
<<\EOF
7957 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
7961 echo "$ac_t""no" 1>&6
7962 echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4
"""... $ac_c" 1>&6
7963 echo "configure:7964: checking for pthread_attr_getschedpolicy in -l"posix4
"" >&5
7964 ac_lib_var
=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
7965 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7966 echo $ac_n "(cached) $ac_c" 1>&6
7968 ac_save_LIBS
="$LIBS"
7969 LIBS
="-l"posix4
" $LIBS"
7970 cat > conftest.
$ac_ext <<EOF
7971 #line 7972 "configure"
7972 #include "confdefs.h"
7973 /* Override any gcc2 internal prototype to avoid an error. */
7974 /* We use char because int might match the return type of a gcc2
7975 builtin and then its argument prototype would still apply. */
7976 char pthread_attr_getschedpolicy();
7979 pthread_attr_getschedpolicy()
7982 if { (eval echo configure
:7983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7984 eval "ac_cv_lib_$ac_lib_var=yes"
7986 echo "configure: failed program was:" >&5
7987 cat conftest.
$ac_ext >&5
7989 eval "ac_cv_lib_$ac_lib_var=no"
7992 LIBS
="$ac_save_LIBS"
7995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7996 echo "$ac_t""yes" 1>&6
7997 cat >> confdefs.h
<<\EOF
7998 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
8000 POSIX4_LINK
="-lposix4"
8002 echo "$ac_t""no" 1>&6
8003 echo "configure: warning: Setting thread priority will not work" 1>&2
8011 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
8012 echo "configure:8013: checking for pthread_cancel in -l$THREADS_LINK" >&5
8013 ac_lib_var
=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
8014 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8015 echo $ac_n "(cached) $ac_c" 1>&6
8017 ac_save_LIBS
="$LIBS"
8018 LIBS
="-l$THREADS_LINK $LIBS"
8019 cat > conftest.
$ac_ext <<EOF
8020 #line 8021 "configure"
8021 #include "confdefs.h"
8022 /* Override any gcc2 internal prototype to avoid an error. */
8023 /* We use char because int might match the return type of a gcc2
8024 builtin and then its argument prototype would still apply. */
8025 char pthread_cancel();
8031 if { (eval echo configure
:8032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8033 eval "ac_cv_lib_$ac_lib_var=yes"
8035 echo "configure: failed program was:" >&5
8036 cat conftest.
$ac_ext >&5
8038 eval "ac_cv_lib_$ac_lib_var=no"
8041 LIBS
="$ac_save_LIBS"
8044 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8045 echo "$ac_t""yes" 1>&6
8046 cat >> confdefs.h
<<\EOF
8047 #define HAVE_PTHREAD_CANCEL 1
8051 echo "$ac_t""no" 1>&6
8052 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
8056 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
8057 echo "configure:8058: checking for pthread_cleanup_push/pop" >&5
8058 cat > conftest.
$ac_ext <<EOF
8059 #line 8060 "configure"
8060 #include "confdefs.h"
8061 #include <pthread.h>
8064 pthread_cleanup_push(NULL, NULL);
8065 pthread_cleanup_pop(0);
8069 if { (eval echo configure
:8070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8071 echo "$ac_t""yes" 1>&6
8072 cat >> confdefs.h
<<\EOF
8073 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
8078 echo "configure: failed program was:" >&5
8079 cat conftest.
$ac_ext >&5
8081 echo "$ac_t""no" 1>&6
8086 THREADS_LINK
="-l$THREADS_LINK"
8094 if test "$wxUSE_CONFIG" = 1 ; then
8095 cat >> confdefs.h
<<EOF
8096 #define wxUSE_CONFIG $wxUSE_CONFIG
8101 if test "$wxUSE_TIMEDATE" = 1 ; then
8102 cat >> confdefs.h
<<EOF
8103 #define wxUSE_TIMEDATE $wxUSE_TIMEDATE
8108 if test "$wxUSE_INTL" = 1 ; then
8109 cat >> confdefs.h
<<EOF
8110 #define wxUSE_INTL $wxUSE_INTL
8115 if test "$wxUSE_STREAMS" = 1 ; then
8116 cat >> confdefs.h
<<EOF
8117 #define wxUSE_STREAMS $wxUSE_STREAMS
8122 if test "$wxUSE_SOCKETS" = 1 ; then
8123 if test "$wxUSE_THREADS" = 1 ; then
8124 cat >> confdefs.h
<<EOF
8125 #define wxUSE_SOCKETS $wxUSE_SOCKETS
8129 echo "configure: warning: sockets or only supported with threads" 1>&2
8134 if test "$wxUSE_SERIAL" = 1 ; then
8135 cat >> confdefs.h
<<EOF
8136 #define wxUSE_SERIAL $wxUSE_SERIAL
8142 if test "$wxUSE_SOCKETS" = "1"; then
8145 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8146 ac_cpp
='$CXXCPP $CPPFLAGS'
8147 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8148 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8149 cross_compiling
=$ac_cv_prog_cxx_cross
8151 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
8152 echo "configure:8153: checking the type of the third argument of getsockname" >&5
8153 cat > conftest.
$ac_ext <<EOF
8154 #line 8155 "configure"
8155 #include "confdefs.h"
8156 #include <sys/socket.h>
8158 socklen_t len; getsockname(0, NULL, &len);
8161 if { (eval echo configure
:8162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8163 cat >> confdefs.h
<<\EOF
8164 #define SOCKLEN_T socklen_t
8166 echo "$ac_t""socklen_t" 1>&6
8168 echo "configure: failed program was:" >&5
8169 cat conftest.
$ac_ext >&5
8171 cat > conftest.
$ac_ext <<EOF
8172 #line 8173 "configure"
8173 #include "confdefs.h"
8174 #include <sys/socket.h>
8176 size_t len; getsockname(0, NULL, &len);
8179 if { (eval echo configure
:8180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8181 cat >> confdefs.h
<<\EOF
8182 #define SOCKLEN_T size_t
8184 echo "$ac_t""size_t" 1>&6
8186 echo "configure: failed program was:" >&5
8187 cat conftest.
$ac_ext >&5
8189 cat > conftest.
$ac_ext <<EOF
8190 #line 8191 "configure"
8191 #include "confdefs.h"
8192 #include <sys/socket.h>
8194 int len; getsockname(0, NULL, &len);
8197 if { (eval echo configure
:8198: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8199 cat >> confdefs.h
<<\EOF
8200 #define SOCKLEN_T int
8202 echo "$ac_t""int" 1>&6
8204 echo "configure: failed program was:" >&5
8205 cat conftest.
$ac_ext >&5
8207 echo "$ac_t""unknown" 1>&6
8218 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8219 ac_cpp
='$CPP $CPPFLAGS'
8220 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8221 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8222 cross_compiling
=$ac_cv_prog_cc_cross
8228 if test "$wxUSE_DYNLIB_CLASS" = "1"; then
8229 for ac_func
in dlopen
8231 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8232 echo "configure:8233: checking for $ac_func" >&5
8233 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8234 echo $ac_n "(cached) $ac_c" 1>&6
8236 cat > conftest.
$ac_ext <<EOF
8237 #line 8238 "configure"
8238 #include "confdefs.h"
8239 /* System header to define __stub macros and hopefully few prototypes,
8240 which can conflict with char $ac_func(); below. */
8242 /* Override any gcc2 internal prototype to avoid an error. */
8243 /* We use char because int might match the return type of a gcc2
8244 builtin and then its argument prototype would still apply. */
8249 /* The GNU C library defines this for functions which it implements
8250 to always fail with ENOSYS. Some functions are actually named
8251 something starting with __ and the normal name is an alias. */
8252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8260 if { (eval echo configure
:8261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8262 eval "ac_cv_func_$ac_func=yes"
8264 echo "configure: failed program was:" >&5
8265 cat conftest.
$ac_ext >&5
8267 eval "ac_cv_func_$ac_func=no"
8272 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8273 echo "$ac_t""yes" 1>&6
8274 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8275 cat >> confdefs.h
<<EOF
8276 #define $ac_tr_func 1
8278 cat >> confdefs.h
<<\EOF
8279 #define HAVE_DLOPEN 1
8283 echo "$ac_t""no" 1>&6
8284 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
8285 echo "configure:8286: checking for dlopen in -ldl" >&5
8286 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
8287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8288 echo $ac_n "(cached) $ac_c" 1>&6
8290 ac_save_LIBS
="$LIBS"
8292 cat > conftest.
$ac_ext <<EOF
8293 #line 8294 "configure"
8294 #include "confdefs.h"
8295 /* Override any gcc2 internal prototype to avoid an error. */
8296 /* We use char because int might match the return type of a gcc2
8297 builtin and then its argument prototype would still apply. */
8304 if { (eval echo configure
:8305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8306 eval "ac_cv_lib_$ac_lib_var=yes"
8308 echo "configure: failed program was:" >&5
8309 cat conftest.
$ac_ext >&5
8311 eval "ac_cv_lib_$ac_lib_var=no"
8314 LIBS
="$ac_save_LIBS"
8317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8318 echo "$ac_t""yes" 1>&6
8319 cat >> confdefs.h
<<\EOF
8320 #define HAVE_DLOPEN 1
8324 echo "$ac_t""no" 1>&6
8330 for ac_func
in shl_load
8332 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8333 echo "configure:8334: checking for $ac_func" >&5
8334 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8335 echo $ac_n "(cached) $ac_c" 1>&6
8337 cat > conftest.
$ac_ext <<EOF
8338 #line 8339 "configure"
8339 #include "confdefs.h"
8340 /* System header to define __stub macros and hopefully few prototypes,
8341 which can conflict with char $ac_func(); below. */
8343 /* Override any gcc2 internal prototype to avoid an error. */
8344 /* We use char because int might match the return type of a gcc2
8345 builtin and then its argument prototype would still apply. */
8350 /* The GNU C library defines this for functions which it implements
8351 to always fail with ENOSYS. Some functions are actually named
8352 something starting with __ and the normal name is an alias. */
8353 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8361 if { (eval echo configure
:8362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8363 eval "ac_cv_func_$ac_func=yes"
8365 echo "configure: failed program was:" >&5
8366 cat conftest.
$ac_ext >&5
8368 eval "ac_cv_func_$ac_func=no"
8373 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8374 echo "$ac_t""yes" 1>&6
8375 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8376 cat >> confdefs.h
<<EOF
8377 #define $ac_tr_func 1
8379 cat >> confdefs.h
<<\EOF
8380 #define HAVE_SHL_LOAD 1
8384 echo "$ac_t""no" 1>&6
8389 if test "$HAVE_DL_FUNCS" = 0; then
8390 echo "configure: warning: "--with-dynlib will be disabled because no
function was found to load a shared library on this platform
"" 1>&2
8392 wxUSE_DYNLIB_CLASS
=0
8396 if test "$wxUSE_DYNLIB_CLASS" = 1 ; then
8397 cat >> confdefs.h
<<EOF
8398 #define wxUSE_DYNLIB_CLASS $wxUSE_DYNLIB_CLASS
8404 if test "$wxUSE_RPC" = 1 ; then
8405 cat >> confdefs.h
<<EOF
8406 #define wxUSE_RPC $wxUSE_RPC
8411 if test "$wxUSE_WX_RESOURCES" = 1 ; then
8412 cat >> confdefs.h
<<EOF
8413 #define wxUSE_WX_RESOURCES $wxUSE_WX_RESOURCES
8418 if test "$wxUSE_PROLOGIO" = 1 ; then
8419 cat >> confdefs.h
<<EOF
8420 #define wxUSE_PROLOGIO 1
8426 if test "$wxUSE_POSTSCRIPT" = 1 ; then
8427 cat >> confdefs.h
<<EOF
8428 #define wxUSE_POSTSCRIPT 1
8433 cat >> confdefs.h
<<EOF
8434 #define wxUSE_AFM_FOR_POSTSCRIPT $wxUSE_AFM_FOR_POSTSCRIPT
8438 cat >> confdefs.h
<<EOF
8439 #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS
8444 if test "$wxUSE_MDI_ARCHITECTURE" = 1 ; then
8445 cat >> confdefs.h
<<EOF
8446 #define wxUSE_MDI_ARCHITECTURE $wxUSE_MDI_ARCHITECTURE
8451 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1 ; then
8452 cat >> confdefs.h
<<EOF
8453 #define wxUSE_DOC_VIEW_ARCHITECTURE $wxUSE_DOC_VIEW_ARCHITECTURE
8458 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1 ; then
8459 cat >> confdefs.h
<<EOF
8460 #define wxUSE_PRINTING_ARCHITECTURE $wxUSE_PRINTING_ARCHITECTURE
8466 if test "$wxUSE_UNICODE" = 1 ; then
8467 cat >> confdefs.h
<<EOF
8468 #define wxUSE_UNICODE 1
8473 if test "$wxUSE_WCSRTOMBS" = 1 ; then
8474 cat >> confdefs.h
<<EOF
8475 #define wxUSE_WCSRTOMBS 1
8481 if test "$wxUSE_IPC" = 1 ; then
8482 cat >> confdefs.h
<<EOF
8488 if test "$wxUSE_RESOURCES" = 1 ; then
8489 cat >> confdefs.h
<<EOF
8490 #define wxUSE_RESOURCES $wxUSE_RESOURCES
8495 if test "$wxUSE_CLIPBOARD" = 1 ; then
8496 cat >> confdefs.h
<<EOF
8497 #define wxUSE_CLIPBOARD $wxUSE_CLIPBOARD
8502 if test "$wxUSE_TOOLTIPS" = 1 ; then
8503 if test "$wxUSE_MOTIF" = 1; then
8504 echo "configure: warning: tooltips are not supported yet under Motif" 1>&2
8507 cat >> confdefs.h
<<EOF
8508 #define wxUSE_TOOLTIPS $wxUSE_TOOLTIPS
8513 if test "$wxUSE_DRAG_AND_DROP" = 1 ; then
8514 if test "$WXGTK12" = 1 ; then
8515 cat >> confdefs.h
<<EOF
8516 #define wxUSE_DRAG_AND_DROP $wxUSE_DRAG_AND_DROP
8520 echo "configure: warning: drag and drop is only supported under GTK 1.2" 1>&2
8521 wxUSE_DRAG_AND_DROP
=0
8525 if test "$wxUSE_SPLINE" = 1 ; then
8526 cat >> confdefs.h
<<EOF
8527 #define wxUSE_SPLINE $wxUSE_SPLINE
8534 if test "$wxUSE_HELP" = 1 ; then
8536 cat >> confdefs.h
<<EOF
8537 #define wxUSE_HELP $wxUSE_HELP
8546 case "${canonical}" in
8548 if test "$GCC" != "yes" ; then
8549 CXXFLAGS
="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
8550 CFLAGS
="${CFLAGS} -z -D_HPUX_SOURCE"
8556 CREATE_SHARED
=sharedHpux
8561 CREATE_SHARED
=sharedLinux
8564 *-*-irix5* | *-*-irix6* )
8565 # PICFLAGS can remain empty, as pic is the default
8567 CREATE_SHARED
=sharedIrix
8568 cat >> confdefs.h
<<\EOF
8575 if test "$GCC" != "yes" ; then
8580 CREATE_SHARED
=sharedSolaris2
8581 cat >> confdefs.h
<<\EOF
8588 if test "$GCC" != "yes" ; then
8594 CREATE_SHARED
=sharedSunos4
8595 cat >> confdefs.h
<<\EOF
8601 *-*-freebsd* | *-*-netbsd*)
8603 CREATE_SHARED
=sharedBsd
8604 cat >> confdefs.h
<<\EOF
8612 CREATE_SHARED
=sharedOSF
8616 if test "$GCC" != "yes" ; then
8621 CREATE_SHARED
=sharedDgux
8622 cat >> confdefs.h
<<\EOF
8629 if test "$GCC" != "yes" ; then
8634 CREATE_SHARED
=sharedSysV
8635 cat >> confdefs.h
<<\EOF
8642 if test "$GCC" != "yes" ; then
8645 PICFLAGS
="-fPIC -D__SYSV__"
8647 CREATE_SHARED
=sharedAIX
8648 cat >> confdefs.h
<<\EOF
8659 if test "x$GCC" = xyes
; then
8660 CFLAGS
="${CFLAGS} -Wall -Wno-unused -Wno-uninitialized -D_REENTRANT -DLEX_SCANNER -DHAVE_LIBDL"
8663 if test "x$GXX" = xyes
; then
8664 if test "$wxUSE_MOTIF" = 1; then
8665 CXXFLAGS
="${CXXFLAGS} -Wall -Wno-unused -D_REENTRANT"
8667 CXXFLAGS
="${CXXFLAGS} -Wall -D_REENTRANT"
8671 if test "$wxUSE_SHARED" != 1; then
8681 echo $OS >> system.list
8683 TOOLKIT_DIR
=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
8687 cat > confcache
<<\EOF
8688 # This file is a shell script that caches the results of configure
8689 # tests run on this system so they can be shared between configure
8690 # scripts and configure runs. It is not useful on other systems.
8691 # If it contains results you don't want to keep, you may remove or edit it.
8693 # By default, configure uses ./config.cache as the cache file,
8694 # creating it if it does not exist already. You can give configure
8695 # the --cache-file=FILE option to use a different cache file; that is
8696 # what configure does when it calls configure scripts in
8697 # subdirectories, so they share the cache.
8698 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8699 # config.status only pays attention to the cache file if you give it the
8700 # --recheck option to rerun configure.
8703 # The following way of writing the cache mishandles newlines in values,
8704 # but we know of no workaround that is simple, portable, and efficient.
8705 # So, don't put newlines in cache variables' values.
8706 # Ultrix sh set writes to stderr and can't be redirected directly,
8707 # and sets the high bit in the cache file unless we assign to the vars.
8709 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8711 # `set' does not quote correctly, so add quotes (double-quote substitution
8712 # turns \\\\ into \\, and sed turns \\ into \).
8714 -e "s/'/'\\\\''/g" \
8715 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8718 # `set' quotes correctly as required by POSIX, so do not add quotes.
8719 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8722 if cmp -s $cache_file confcache
; then
8725 if test -w $cache_file; then
8726 echo "updating cache $cache_file"
8727 cat confcache
> $cache_file
8729 echo "not updating unwritable cache $cache_file"
8734 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8736 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8737 # Let make expand exec_prefix.
8738 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8740 # Any assignment to VPATH causes Sun make to only execute
8741 # the first set of double-colon rules, so remove it if not needed.
8742 # If there is a colon in the path, we need to keep it.
8743 if test "x$srcdir" = x.
; then
8744 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8747 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8749 DEFS
=-DHAVE_CONFIG_H
8751 # Without the "./", some shells look in PATH for config.status.
8752 : ${CONFIG_STATUS=./config.status}
8754 echo creating
$CONFIG_STATUS
8755 rm -f $CONFIG_STATUS
8756 cat > $CONFIG_STATUS <<EOF
8758 # Generated automatically by configure.
8759 # Run this file to recreate the current configuration.
8760 # This directory was configured as follows,
8761 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8763 # $0 $ac_configure_args
8765 # Compiler output produced by configure, useful for debugging
8766 # configure, is in ./config.log if it exists.
8768 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8771 case "\$ac_option" in
8772 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8773 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8774 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8775 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8776 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8778 -help | --help | --hel | --he | --h)
8779 echo "\$ac_cs_usage"; exit 0 ;;
8780 *) echo "\$ac_cs_usage"; exit 1 ;;
8784 ac_given_srcdir=$srcdir
8785 ac_given_INSTALL="$INSTALL"
8787 trap 'rm -fr `echo "./setup/substit ./wx-config:./wx-config.in ./include/wx/${TOOLKIT_DIR}/setup.h:./setup/setup.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8789 cat >> $CONFIG_STATUS <<EOF
8791 # Protect against being on the right side of a sed subst in config.status.
8792 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8793 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8797 s%@CFLAGS@%$CFLAGS%g
8798 s%@CPPFLAGS@%$CPPFLAGS%g
8799 s%@CXXFLAGS@%$CXXFLAGS%g
8800 s%@FFLAGS@%$FFLAGS%g
8802 s%@LDFLAGS@%$LDFLAGS%g
8804 s%@exec_prefix@%$exec_prefix%g
8805 s%@prefix@%$prefix%g
8806 s%@program_transform_name@%$program_transform_name%g
8807 s%@bindir@%$bindir%g
8808 s%@sbindir@%$sbindir%g
8809 s%@libexecdir@%$libexecdir%g
8810 s%@datadir@%$datadir%g
8811 s%@sysconfdir@%$sysconfdir%g
8812 s%@sharedstatedir@%$sharedstatedir%g
8813 s%@localstatedir@%$localstatedir%g
8814 s%@libdir@%$libdir%g
8815 s%@includedir@%$includedir%g
8816 s%@oldincludedir@%$oldincludedir%g
8817 s%@infodir@%$infodir%g
8818 s%@mandir@%$mandir%g
8819 s%@WXBASEDIR@%$WXBASEDIR%g
8823 s%@CXXCPP@%$CXXCPP%g
8824 s%@RANLIB@%$RANLIB%g
8826 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8827 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8828 s%@INSTALL_DATA@%$INSTALL_DATA%g
8832 s%@X_CFLAGS@%$X_CFLAGS%g
8833 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8834 s%@X_LIBS@%$X_LIBS%g
8835 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8836 s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g
8837 s%@WCHAR_LINK@%$WCHAR_LINK%g
8838 s%@LIBOBJS@%$LIBOBJS%g
8841 s%@LEXLIB@%$LEXLIB%g
8842 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
8843 s%@DL_LIBRARY@%$DL_LIBRARY%g
8845 s%@host_alias@%$host_alias%g
8846 s%@host_cpu@%$host_cpu%g
8847 s%@host_vendor@%$host_vendor%g
8848 s%@host_os@%$host_os%g
8849 s%@GTK_CONFIG@%$GTK_CONFIG%g
8850 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8851 s%@GTK_LIBS@%$GTK_LIBS%g
8852 s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g
8853 s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
8854 s%@GUI_TK_LINK@%$GUI_TK_LINK%g
8855 s%@WX_LINK@%$WX_LINK%g
8856 s%@TOOLKIT@%$TOOLKIT%g
8857 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
8858 s%@MAKEINCLUDE@%$MAKEINCLUDE%g
8859 s%@WXDEBUG@%$WXDEBUG%g
8860 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
8861 s%@EXTRA_LINK@%$EXTRA_LINK%g
8862 s%@PROFILE@%$PROFILE%g
8863 s%@OPTIMISE@%$OPTIMISE%g
8864 s%@Z_C_SRC@%$Z_C_SRC%g
8865 s%@PNG_C_SRC@%$PNG_C_SRC%g
8866 s%@JPEG_C_SRC@%$JPEG_C_SRC%g
8867 s%@JPEG_LINK@%$JPEG_LINK%g
8868 s%@IODBC_C_SRC@%$IODBC_C_SRC%g
8869 s%@UNIX_THREAD@%$UNIX_THREAD%g
8870 s%@THREADS_LINK@%$THREADS_LINK%g
8871 s%@POSIX4_LINK@%$POSIX4_LINK%g
8874 s%@PICFLAGS@%$PICFLAGS%g
8875 s%@CREATE_SHARED@%$CREATE_SHARED%g
8880 cat >> $CONFIG_STATUS <<\EOF
8882 # Split the substitutions into bite-sized pieces for seds with
8883 # small command number limits, like on Digital OSF/1 and HP-UX.
8884 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8885 ac_file
=1 # Number of current file.
8886 ac_beg
=1 # First line for current file.
8887 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8890 while $ac_more_lines; do
8891 if test $ac_beg -gt 1; then
8892 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8894 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8896 if test ! -s conftest.s
$ac_file; then
8898 rm -f conftest.s
$ac_file
8900 if test -z "$ac_sed_cmds"; then
8901 ac_sed_cmds
="sed -f conftest.s$ac_file"
8903 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8905 ac_file
=`expr $ac_file + 1`
8907 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8910 if test -z "$ac_sed_cmds"; then
8915 cat >> $CONFIG_STATUS <<EOF
8917 CONFIG_FILES=\${CONFIG_FILES-"./setup/substit ./wx-config:./wx-config.in"}
8919 cat >> $CONFIG_STATUS <<\EOF
8920 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8921 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8923 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8924 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8925 *) ac_file_in
="${ac_file}.in" ;;
8928 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8930 # Remove last slash and all that follows it. Not all systems have dirname.
8931 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8932 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8933 # The file is in a subdirectory.
8934 test ! -d "$ac_dir" && mkdir "$ac_dir"
8935 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8936 # A "../" for each directory in $ac_dir_suffix.
8937 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8939 ac_dir_suffix
= ac_dots
=
8942 case "$ac_given_srcdir" in
8944 if test -z "$ac_dots"; then top_srcdir
=.
8945 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8946 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8948 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8949 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8952 case "$ac_given_INSTALL" in
8953 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
8954 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
8957 echo creating
"$ac_file"
8959 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8961 *Makefile
*) ac_comsub
="1i\\
8962 # $configure_input" ;;
8966 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8968 s%@configure_input@%$configure_input%g
8969 s%@srcdir@%$srcdir%g
8970 s%@top_srcdir@%$top_srcdir%g
8971 s%@INSTALL@%$INSTALL%g
8972 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8976 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8977 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8979 # ac_d sets the value in "#define NAME VALUE" lines.
8980 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8981 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8984 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8985 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8986 ac_uB
='\([ ]\)%\1#\2define\3'
8989 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8990 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8991 ac_eB
='$%\1#\2define\3'
8995 if test "${CONFIG_HEADERS+set}" != set; then
8997 cat >> $CONFIG_STATUS <<EOF
8998 CONFIG_HEADERS="./include/wx/${TOOLKIT_DIR}/setup.h:./setup/setup.hin"
9000 cat >> $CONFIG_STATUS <<\EOF
9002 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
9003 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9005 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
9006 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
9007 *) ac_file_in
="${ac_file}.in" ;;
9010 echo creating
$ac_file
9012 rm -f conftest.frag conftest.
in conftest.out
9013 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9014 cat $ac_file_inputs > conftest.
in
9018 # Transform confdefs.h into a sed script conftest.vals that substitutes
9019 # the proper values into config.h.in to produce config.h. And first:
9020 # Protect against being on the right side of a sed subst in config.status.
9021 # Protect against being in an unquoted here document in config.status.
9023 cat > conftest.hdr
<<\EOF
9026 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9030 sed -n -f conftest.hdr confdefs.h > conftest.vals
9033 # This sed command replaces #undef with comments. This is necessary, for
9034 # example, in the case of _POSIX_SOURCE, which is predefined and required
9035 # on some systems where configure will not decide to define it.
9036 cat >> conftest.vals <<\EOF
9037 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9040 # Break up conftest.vals because some shells have a limit on
9041 # the size of here documents, and old seds have small limits too.
9046 ac_lines=`grep -c . conftest.vals
`
9047 # grep -c gives empty output for an empty file on some AIX systems.
9048 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9049 # Write a limited-size here document to conftest.frag.
9050 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9051 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9053 sed -f conftest.frag conftest.in > conftest.out
9055 mv conftest.out conftest.in
9057 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9059 mv conftest.tail conftest.vals
9063 cat >> $CONFIG_STATUS <<\EOF
9064 rm -f conftest.frag conftest.h
9065 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9066 cat conftest.in >> conftest.h
9068 if cmp -s $ac_file conftest.h 2>/dev/null; then
9069 echo "$ac_file is unchanged"
9072 # Remove last slash and all that follows it. Not all systems have dirname.
9073 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9074 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9075 # The file is in a subdirectory.
9076 test ! -d "$ac_dir" && mkdir "$ac_dir"
9079 mv conftest.h $ac_file
9084 cat >> $CONFIG_STATUS <<EOF
9087 cat >> $CONFIG_STATUS <<\EOF
9088 ./setup/general/createall
9091 chmod +x $CONFIG_STATUS
9092 rm -fr confdefs* $ac_clean_files
9093 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
9097 mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache