3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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 **--with-zlib use zlib for LZW comression"
47 **--with-libpng use libpng (PNG image format)"
49 **--with-libjpeg 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-afmfonts use Adobe Font Metric Font table"
65 **--with-PS-normalized use normalized PS fonts"
67 **--with-postscript use wxPostscriptDC device context"
69 **--with-unicode compile wxString with Unicode support"
71 **--with-wcsrtombs use wcsrtombs instead of (buggy in GNU libc5) wcstombs"
73 **--with-wxresources use wxWindows's resources"
75 **--with-prologio use Prolog IO library"
77 **--with-rpc use Prolog's remote procedure calls"
79 **--with-ipc use interprocess communication (wxSocket etc.)"
81 **--with-resources use X resources for saving information"
83 **--with-clipboard use wxClipboard classes"
85 **--with-tooltips use tooltips"
87 **--with-dnd use Drag'n'Drop classes"
89 **--with-mdi use multiple document interface architecture"
91 **--with-docview use document view architecture"
93 **--with-printarch use printing architecture"
95 **--with-help use help (using external browser at present)"
97 **--with-gtk-prefix=PFX Prefix where GTK is installed"
99 **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
101 # Initialize some variables set by options.
102 # The variables have the same names as the options, with
103 # dashes changed to underlines.
105 cache_file
=.
/config.cache
114 program_transform_name
=s
,x
,x
,
122 bindir
='${exec_prefix}/bin'
123 sbindir
='${exec_prefix}/sbin'
124 libexecdir
='${exec_prefix}/libexec'
125 datadir
='${prefix}/share'
126 sysconfdir
='${prefix}/etc'
127 sharedstatedir
='${prefix}/com'
128 localstatedir
='${prefix}/var'
129 libdir
='${exec_prefix}/lib'
130 includedir
='${prefix}/include'
131 oldincludedir
='/usr/include'
132 infodir
='${prefix}/info'
133 mandir
='${prefix}/man'
135 # Initialize some other variables.
138 # Maximum number of lines to put in a shell here document.
145 # If the previous option needs an argument, assign it.
146 if test -n "$ac_prev"; then
147 eval "$ac_prev=\$ac_option"
153 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
157 # Accept the important Cygnus configure options, so we can diagnose typos.
161 -bindir | --bindir | --bindi | --bind | --bin | --bi)
163 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
164 bindir
="$ac_optarg" ;;
166 -build | --build | --buil | --bui | --bu)
168 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
169 build
="$ac_optarg" ;;
171 -cache-file | --cache-file | --cache-fil | --cache-fi \
172 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
173 ac_prev
=cache_file
;;
174 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
175 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
176 cache_file
="$ac_optarg" ;;
178 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
180 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
182 datadir
="$ac_optarg" ;;
184 -disable-* | --disable-*)
185 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
186 # Reject names that are not valid shell variable names.
187 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
188 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
190 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}=no" ;;
193 -enable-* | --enable-*)
194 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
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'`
204 eval "enable_${ac_feature}='$ac_optarg'" ;;
206 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
207 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
208 | --exec | --exe | --ex)
209 ac_prev
=exec_prefix
;;
210 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
211 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
212 | --exec=* | --exe=* | --ex=*)
213 exec_prefix
="$ac_optarg" ;;
215 -gas | --gas | --ga | --g)
216 # Obsolete; use --with-gas.
219 -help | --help | --hel | --he)
220 # Omit some internal or obsolete options to make the list less imposing.
221 # This message is too long to be a string in the A/UX 3.1 sh.
223 Usage: configure [options] [host]
224 Options: [defaults in brackets after descriptions]
226 --cache-file=FILE cache test results in FILE
227 --help print this message
228 --no-create do not create output files
229 --quiet, --silent do not print \`checking...' messages
230 --version print the version of autoconf that created configure
231 Directory and file names:
232 --prefix=PREFIX install architecture-independent files in PREFIX
234 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
236 --bindir=DIR user executables in DIR [EPREFIX/bin]
237 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
238 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
239 --datadir=DIR read-only architecture-independent data in DIR
241 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
242 --sharedstatedir=DIR modifiable architecture-independent data in DIR
244 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
245 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
246 --includedir=DIR C header files in DIR [PREFIX/include]
247 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
248 --infodir=DIR info documentation in DIR [PREFIX/info]
249 --mandir=DIR man documentation in DIR [PREFIX/man]
250 --srcdir=DIR find the sources in DIR [configure dir or ..]
251 --program-prefix=PREFIX prepend PREFIX to installed program names
252 --program-suffix=SUFFIX append SUFFIX to installed program names
253 --program-transform-name=PROGRAM
254 run sed PROGRAM on installed program names
258 --build=BUILD configure for building on BUILD [BUILD=HOST]
259 --host=HOST configure for HOST [guessed]
260 --target=TARGET configure for TARGET [TARGET=HOST]
261 Features and packages:
262 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
263 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
264 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
265 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
266 --x-includes=DIR X include files are in DIR
267 --x-libraries=DIR X library files are in DIR
269 if test -n "$ac_help"; then
270 echo "--enable and --with options recognized:$ac_help"
274 -host | --host | --hos | --ho)
276 -host=* | --host=* | --hos=* | --ho=*)
279 -includedir | --includedir | --includedi | --included | --include \
280 | --includ | --inclu | --incl | --inc)
281 ac_prev
=includedir
;;
282 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
283 | --includ=* | --inclu=* | --incl=* | --inc=*)
284 includedir
="$ac_optarg" ;;
286 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
289 infodir
="$ac_optarg" ;;
291 -libdir | --libdir | --libdi | --libd)
293 -libdir=* | --libdir=* | --libdi=* | --libd=*)
294 libdir
="$ac_optarg" ;;
296 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
297 | --libexe | --libex | --libe)
298 ac_prev
=libexecdir
;;
299 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
300 | --libexe=* | --libex=* | --libe=*)
301 libexecdir
="$ac_optarg" ;;
303 -localstatedir | --localstatedir | --localstatedi | --localstated \
304 | --localstate | --localstat | --localsta | --localst \
305 | --locals | --local | --loca | --loc | --lo)
306 ac_prev
=localstatedir
;;
307 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
308 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
309 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
310 localstatedir
="$ac_optarg" ;;
312 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
315 mandir
="$ac_optarg" ;;
318 # Obsolete; use --without-fp.
321 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
325 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
326 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
329 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
330 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
331 | --oldin | --oldi | --old | --ol | --o)
332 ac_prev
=oldincludedir
;;
333 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
334 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
335 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
336 oldincludedir
="$ac_optarg" ;;
338 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
341 prefix
="$ac_optarg" ;;
343 -program-prefix | --program-prefix | --program-prefi | --program-pref \
344 | --program-pre | --program-pr | --program-p)
345 ac_prev
=program_prefix
;;
346 -program-prefix=* | --program-prefix=* | --program-prefi=* \
347 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
348 program_prefix
="$ac_optarg" ;;
350 -program-suffix | --program-suffix | --program-suffi | --program-suff \
351 | --program-suf | --program-su | --program-s)
352 ac_prev
=program_suffix
;;
353 -program-suffix=* | --program-suffix=* | --program-suffi=* \
354 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
355 program_suffix
="$ac_optarg" ;;
357 -program-transform-name | --program-transform-name \
358 | --program-transform-nam | --program-transform-na \
359 | --program-transform-n | --program-transform- \
360 | --program-transform | --program-transfor \
361 | --program-transfo | --program-transf \
362 | --program-trans | --program-tran \
363 | --progr-tra | --program-tr | --program-t)
364 ac_prev
=program_transform_name
;;
365 -program-transform-name=* | --program-transform-name=* \
366 | --program-transform-nam=* | --program-transform-na=* \
367 | --program-transform-n=* | --program-transform-=* \
368 | --program-transform=* | --program-transfor=* \
369 | --program-transfo=* | --program-transf=* \
370 | --program-trans=* | --program-tran=* \
371 | --progr-tra=* | --program-tr=* | --program-t=*)
372 program_transform_name
="$ac_optarg" ;;
374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
375 | -silent | --silent | --silen | --sile | --sil)
378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 sbindir
="$ac_optarg" ;;
384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
386 | --sharedst | --shareds | --shared | --share | --shar \
388 ac_prev
=sharedstatedir
;;
389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 sharedstatedir
="$ac_optarg" ;;
395 -site | --site | --sit)
397 -site=* | --site=* | --sit=*)
400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
403 srcdir
="$ac_optarg" ;;
405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
406 | --syscon | --sysco | --sysc | --sys | --sy)
407 ac_prev
=sysconfdir
;;
408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
410 sysconfdir
="$ac_optarg" ;;
412 -target | --target | --targe | --targ | --tar | --ta | --t)
414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
415 target
="$ac_optarg" ;;
417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
420 -version | --version | --versio | --versi | --vers)
421 echo "configure generated by autoconf version 2.12"
425 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package
=`echo $ac_package| sed 's/-/_/g'`
435 eval "with_${ac_package}='$ac_optarg'" ;;
437 -without-* | --without-*)
438 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
439 # Reject names that are not valid shell variable names.
440 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
441 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
443 ac_package
=`echo $ac_package| sed 's/-/_/g'`
444 eval "with_${ac_package}=no" ;;
447 # Obsolete; use --with-x.
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev
=x_includes
;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes
="$ac_optarg" ;;
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev
=x_libraries
;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries
="$ac_optarg" ;;
464 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
468 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
469 echo "configure: warning: $ac_option: invalid host type" 1>&2
471 if test "x$nonopt" != xNONE
; then
472 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
480 if test -n "$ac_prev"; then
481 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
484 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
486 # File descriptor usage:
489 # 2 errors and warnings
490 # 3 some systems may open it to /dev/tty
491 # 4 used on the Kubota Titan
492 # 6 checking for... messages and results
493 # 5 compiler messages saved in config.log
494 if test "$silent" = yes; then
502 This file contains any messages produced by compilers while
503 running configure, to aid debugging if configure makes a mistake.
506 # Strip out --no-create and --no-recursion so they do not pile up.
507 # Also quote any args containing shell metacharacters.
512 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
513 | --no-cr | --no-c) ;;
514 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
515 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
516 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
517 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
518 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
523 # Only set these to C if already set. These must not be set unconditionally
524 # because not all systems understand e.g. LANG=C (notably SCO).
525 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
526 # Non-C LC_CTYPE values break the ctype check.
527 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
528 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
529 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
530 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
532 # confdefs.h avoids OS command line length limits that DEFS can exceed.
533 rm -rf conftest
* confdefs.h
534 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
537 # A filename unique to this package, relative to the directory that
538 # configure is in, which we can look for to find out if srcdir is correct.
539 ac_unique_file
=configure.
in
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted
=yes
544 # Try the directory containing this script, then its parent.
546 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
549 if test ! -r $srcdir/$ac_unique_file; then
553 ac_srcdir_defaulted
=no
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
559 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
562 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
564 # Prefer explicitly selected file to automatically selected ones.
565 if test -z "$CONFIG_SITE"; then
566 if test "x$prefix" != xNONE
; then
567 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
569 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
572 for ac_site_file
in $CONFIG_SITE; do
573 if test -r "$ac_site_file"; then
574 echo "loading site script $ac_site_file"
579 if test -r "$cache_file"; then
580 echo "loading cache $cache_file"
583 echo "creating cache $cache_file"
588 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
589 ac_cpp
='$CPP $CPPFLAGS'
590 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
591 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
592 cross_compiling
=$ac_cv_prog_cc_cross
594 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
595 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
596 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
603 ac_n
= ac_c
='\c' ac_t
=
611 if test "x$OS" = "x"; then
613 { echo "configure: error: "The system variable OS has not been
set"
614 "please
set is everytime befor compiling on this system
"
615 "A good example
for this system would be
:"
616 "setenv OSTYPE
$UNAME for csh as a SHELL
"
617 "EXPORT OSTYPE
=$UNAME for sh as SHELL
"
618 "please
set this and restart again.
"
628 /usr/Motif-1.2/include \
629 /usr/Motif-2.1/include \
631 /usr/include/Motif1.2 \
632 /opt/xpm/include/X11 \
634 /usr/Motif1.2/include \
650 /usr/local/X11R6/include \
651 /usr/local/X11R5/include \
652 /usr/local/X11R4/include \
654 /usr/local/include/X11R6 \
655 /usr/local/include/X11R5 \
656 /usr/local/include/X11R4 \
660 /usr/local/X11/include \
661 /usr/local/include/X11 \
665 /usr/XFree86/include/X11 \
672 /usr/unsupported/include \
673 /usr/athena/include \
674 /usr/local/x11r5/include \
675 /usr/lpp/Xamples/include \
677 /usr/local/include/gtk \
678 /usr/local/include/qt \
681 /usr/openwin/include \
682 /usr/openwin/share/include \
685 SEARCH_LIB
="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
689 # Extract the first word of "gcc", so it can be a program name with args.
690 set dummy gcc
; ac_word
=$2
691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
692 echo "configure:693: checking for $ac_word" >&5
693 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
694 echo $ac_n "(cached) $ac_c" 1>&6
696 if test -n "$CC"; then
697 ac_cv_prog_CC
="$CC" # Let the user override the test.
699 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
700 for ac_dir
in $PATH; do
701 test -z "$ac_dir" && ac_dir
=.
702 if test -f $ac_dir/$ac_word; then
711 if test -n "$CC"; then
712 echo "$ac_t""$CC" 1>&6
714 echo "$ac_t""no" 1>&6
717 if test -z "$CC"; then
718 # Extract the first word of "cc", so it can be a program name with args.
719 set dummy cc
; ac_word
=$2
720 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
721 echo "configure:722: checking for $ac_word" >&5
722 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
723 echo $ac_n "(cached) $ac_c" 1>&6
725 if test -n "$CC"; then
726 ac_cv_prog_CC
="$CC" # Let the user override the test.
728 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
730 for ac_dir
in $PATH; do
731 test -z "$ac_dir" && ac_dir
=.
732 if test -f $ac_dir/$ac_word; then
733 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
742 if test $ac_prog_rejected = yes; then
743 # We found a bogon in the path, so make sure we never use it.
744 set dummy
$ac_cv_prog_CC
746 if test $# -gt 0; then
747 # We chose a different compiler from the bogus one.
748 # However, it has the same basename, so the bogon will be chosen
749 # first if we set CC to just the basename; use the full file name.
751 set dummy
"$ac_dir/$ac_word" "$@"
759 if test -n "$CC"; then
760 echo "$ac_t""$CC" 1>&6
762 echo "$ac_t""no" 1>&6
765 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
768 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
769 echo "configure:770: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
772 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
773 ac_cpp
='$CPP $CPPFLAGS'
774 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
775 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
776 cross_compiling
=$ac_cv_prog_cc_cross
778 cat > conftest.
$ac_ext <<EOF
779 #line 780 "configure"
780 #include "confdefs.h"
783 if { (eval echo configure
:784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
784 ac_cv_prog_cc_works
=yes
785 # If we can't run a trivial program, we are probably using a cross compiler.
786 if (.
/conftest
; exit) 2>/dev
/null
; then
787 ac_cv_prog_cc_cross
=no
789 ac_cv_prog_cc_cross
=yes
792 echo "configure: failed program was:" >&5
793 cat conftest.
$ac_ext >&5
794 ac_cv_prog_cc_works
=no
798 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
799 if test $ac_cv_prog_cc_works = no
; then
800 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
802 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
803 echo "configure:804: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
804 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
805 cross_compiling
=$ac_cv_prog_cc_cross
807 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
808 echo "configure:809: checking whether we are using GNU C" >&5
809 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
812 cat > conftest.c
<<EOF
817 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
824 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
826 if test $ac_cv_prog_gcc = yes; then
828 ac_test_CFLAGS
="${CFLAGS+set}"
829 ac_save_CFLAGS
="$CFLAGS"
831 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
832 echo "configure:833: checking whether ${CC-cc} accepts -g" >&5
833 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
836 echo 'void f(){}' > conftest.c
837 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
846 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
847 if test "$ac_test_CFLAGS" = set; then
848 CFLAGS
="$ac_save_CFLAGS"
849 elif test $ac_cv_prog_cc_g = yes; then
856 test "${CFLAGS+set}" = set || CFLAGS
="-g"
860 CFLAGS
=`echo "$CFLAGS" | sed 's/-g//g'`
862 if test "x$CC" != xcc
; then
863 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
864 echo "configure:865: checking whether $CC and cc understand -c and -o together" >&5
866 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
867 echo "configure:868: checking whether cc understands -c and -o together" >&5
869 set dummy
$CC; ac_cc
="`echo $2 |
870 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
871 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
872 echo $ac_n "(cached) $ac_c" 1>&6
874 echo 'foo(){}' > conftest.c
875 # Make sure it works both with $CC and with simple cc.
876 # We do the test twice because some compilers refuse to overwrite an
877 # existing .o file with -o, though they will create one.
878 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
879 if { (eval echo configure
:880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
880 test -f conftest.o
&& { (eval echo configure
:881: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
882 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
883 if test "x$CC" != xcc
; then
884 # Test first that cc exists at all.
885 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
886 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
887 if { (eval echo configure
:888: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
888 test -f conftest.o
&& { (eval echo configure
:889: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
893 # cc exists but doesn't like -o.
894 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
899 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
904 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
905 echo "$ac_t""yes" 1>&6
907 echo "$ac_t""no" 1>&6
908 cat >> confdefs.h
<<\EOF
909 #define NO_MINUS_C_MINUS_O 1
914 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
915 echo "configure:916: checking how to run the C preprocessor" >&5
916 # On Suns, sometimes $CPP names a directory.
917 if test -n "$CPP" && test -d "$CPP"; then
920 if test -z "$CPP"; then
921 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
922 echo $ac_n "(cached) $ac_c" 1>&6
924 # This must be in double quotes, not single quotes, because CPP may get
925 # substituted into the Makefile and "${CC-cc}" will confuse make.
927 # On the NeXT, cc -E runs the code through the compiler's parser,
928 # not just through cpp.
929 cat > conftest.
$ac_ext <<EOF
930 #line 931 "configure"
931 #include "confdefs.h"
935 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
936 { (eval echo configure
:937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
937 ac_err
=`grep -v '^ *+' conftest.out`
938 if test -z "$ac_err"; then
942 echo "configure: failed program was:" >&5
943 cat conftest.
$ac_ext >&5
945 CPP
="${CC-cc} -E -traditional-cpp"
946 cat > conftest.
$ac_ext <<EOF
947 #line 948 "configure"
948 #include "confdefs.h"
952 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
953 { (eval echo configure
:954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
954 ac_err
=`grep -v '^ *+' conftest.out`
955 if test -z "$ac_err"; then
959 echo "configure: failed program was:" >&5
960 cat conftest.
$ac_ext >&5
967 ac_cv_prog_CPP
="$CPP"
969 CPP
="$ac_cv_prog_CPP"
971 ac_cv_prog_CPP
="$CPP"
973 echo "$ac_t""$CPP" 1>&6
975 if test $ac_cv_prog_gcc = yes; then
976 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
977 echo "configure:978: checking whether ${CC-cc} needs -traditional" >&5
978 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
979 echo $ac_n "(cached) $ac_c" 1>&6
981 ac_pattern
="Autoconf.*'x'"
982 cat > conftest.
$ac_ext <<EOF
983 #line 984 "configure"
984 #include "confdefs.h"
988 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
989 egrep "$ac_pattern" >/dev
/null
2>&1; then
991 ac_cv_prog_gcc_traditional
=yes
994 ac_cv_prog_gcc_traditional
=no
999 if test $ac_cv_prog_gcc_traditional = no
; then
1000 cat > conftest.
$ac_ext <<EOF
1001 #line 1002 "configure"
1002 #include "confdefs.h"
1006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1007 egrep "$ac_pattern" >/dev
/null
2>&1; then
1009 ac_cv_prog_gcc_traditional
=yes
1016 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1017 if test $ac_cv_prog_gcc_traditional = yes; then
1018 CC
="$CC -traditional"
1025 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
1027 # Extract the first word of "$ac_prog", so it can be a program name with args.
1028 set dummy
$ac_prog; ac_word
=$2
1029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1030 echo "configure:1031: checking for $ac_word" >&5
1031 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1034 if test -n "$CXX"; then
1035 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1037 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1038 for ac_dir
in $PATH; do
1039 test -z "$ac_dir" && ac_dir
=.
1040 if test -f $ac_dir/$ac_word; then
1041 ac_cv_prog_CXX
="$ac_prog"
1048 CXX
="$ac_cv_prog_CXX"
1049 if test -n "$CXX"; then
1050 echo "$ac_t""$CXX" 1>&6
1052 echo "$ac_t""no" 1>&6
1055 test -n "$CXX" && break
1057 test -n "$CXX" || CXX
="gcc"
1060 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1061 echo "configure:1062: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1064 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1065 ac_cpp
='$CXXCPP $CPPFLAGS'
1066 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1067 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1068 cross_compiling
=$ac_cv_prog_cxx_cross
1070 cat > conftest.
$ac_ext <<EOF
1071 #line 1072 "configure"
1072 #include "confdefs.h"
1075 if { (eval echo configure
:1076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1076 ac_cv_prog_cxx_works
=yes
1077 # If we can't run a trivial program, we are probably using a cross compiler.
1078 if (.
/conftest
; exit) 2>/dev
/null
; then
1079 ac_cv_prog_cxx_cross
=no
1081 ac_cv_prog_cxx_cross
=yes
1084 echo "configure: failed program was:" >&5
1085 cat conftest.
$ac_ext >&5
1086 ac_cv_prog_cxx_works
=no
1090 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1091 ac_cpp
='$CPP $CPPFLAGS'
1092 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1093 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1094 cross_compiling
=$ac_cv_prog_cc_cross
1096 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1097 if test $ac_cv_prog_cxx_works = no
; then
1098 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1100 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1101 echo "configure:1102: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1102 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1103 cross_compiling
=$ac_cv_prog_cxx_cross
1105 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1106 echo "configure:1107: checking whether we are using GNU C++" >&5
1107 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1110 cat > conftest.C
<<EOF
1115 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
1122 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1124 if test $ac_cv_prog_gxx = yes; then
1126 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1127 ac_save_CXXFLAGS
="$CXXFLAGS"
1129 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1130 echo "configure:1131: checking whether ${CXX-g++} accepts -g" >&5
1131 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1132 echo $ac_n "(cached) $ac_c" 1>&6
1134 echo 'void f(){}' > conftest.cc
1135 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1136 ac_cv_prog_cxx_g
=yes
1144 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1145 if test "$ac_test_CXXFLAGS" = set; then
1146 CXXFLAGS
="$ac_save_CXXFLAGS"
1147 elif test $ac_cv_prog_cxx_g = yes; then
1154 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1157 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1158 echo "configure:1159: checking how to run the C++ preprocessor" >&5
1159 if test -z "$CXXCPP"; then
1160 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1164 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1165 ac_cpp
='$CXXCPP $CPPFLAGS'
1166 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1167 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1168 cross_compiling
=$ac_cv_prog_cxx_cross
1169 CXXCPP
="${CXX-g++} -E"
1170 cat > conftest.
$ac_ext <<EOF
1171 #line 1172 "configure"
1172 #include "confdefs.h"
1175 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1176 { (eval echo configure
:1177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1177 ac_err
=`grep -v '^ *+' conftest.out`
1178 if test -z "$ac_err"; then
1182 echo "configure: failed program was:" >&5
1183 cat conftest.
$ac_ext >&5
1188 ac_cv_prog_CXXCPP
="$CXXCPP"
1190 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1191 ac_cpp
='$CPP $CPPFLAGS'
1192 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1193 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1194 cross_compiling
=$ac_cv_prog_cc_cross
1197 CXXCPP
="$ac_cv_prog_CXXCPP"
1198 echo "$ac_t""$CXXCPP" 1>&6
1201 CXXFLAGS
=`echo "$CXXFLAGS" | sed 's/-g//g'`
1205 # Extract the first word of "ranlib", so it can be a program name with args.
1206 set dummy ranlib
; ac_word
=$2
1207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1208 echo "configure:1209: checking for $ac_word" >&5
1209 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1210 echo $ac_n "(cached) $ac_c" 1>&6
1212 if test -n "$RANLIB"; then
1213 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1215 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1216 for ac_dir
in $PATH; do
1217 test -z "$ac_dir" && ac_dir
=.
1218 if test -f $ac_dir/$ac_word; then
1219 ac_cv_prog_RANLIB
="ranlib"
1224 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1227 RANLIB
="$ac_cv_prog_RANLIB"
1228 if test -n "$RANLIB"; then
1229 echo "$ac_t""$RANLIB" 1>&6
1231 echo "$ac_t""no" 1>&6
1235 # Extract the first word of "ar", so it can be a program name with args.
1236 set dummy
ar; ac_word
=$2
1237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1238 echo "configure:1239: checking for $ac_word" >&5
1239 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1240 echo $ac_n "(cached) $ac_c" 1>&6
1242 if test -n "$AR"; then
1243 ac_cv_prog_AR
="$AR" # Let the user override the test.
1245 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1246 for ac_dir
in $PATH; do
1247 test -z "$ac_dir" && ac_dir
=.
1248 if test -f $ac_dir/$ac_word; then
1254 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1258 if test -n "$AR"; then
1259 echo "$ac_t""$AR" 1>&6
1261 echo "$ac_t""no" 1>&6
1266 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1267 if test -f $ac_dir/install-sh; then
1269 ac_install_sh
="$ac_aux_dir/install-sh -c"
1271 elif test -f $ac_dir/install.sh
; then
1273 ac_install_sh
="$ac_aux_dir/install.sh -c"
1277 if test -z "$ac_aux_dir"; then
1278 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1280 ac_config_guess
=$ac_aux_dir/config.guess
1281 ac_config_sub
=$ac_aux_dir/config.sub
1282 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1284 # Find a good install program. We prefer a C program (faster),
1285 # so one script is as good as another. But avoid the broken or
1286 # incompatible versions:
1287 # SysV /etc/install, /usr/sbin/install
1288 # SunOS /usr/etc/install
1289 # IRIX /sbin/install
1291 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1292 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1293 # ./install, which can be erroneously created by make from ./install.sh.
1294 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1295 echo "configure:1296: checking for a BSD compatible install" >&5
1296 if test -z "$INSTALL"; then
1297 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1300 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1301 for ac_dir
in $PATH; do
1302 # Account for people who put trailing slashes in PATH elements.
1304 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
1306 # OSF1 and SCO ODT 3.0 have their own names for install.
1307 for ac_prog
in ginstall installbsd scoinst
install; do
1308 if test -f $ac_dir/$ac_prog; then
1309 if test $ac_prog = install &&
1310 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1311 # AIX install. It has an incompatible calling convention.
1312 # OSF/1 installbsd also uses dspmsg, but is usable.
1315 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1326 if test "${ac_cv_path_install+set}" = set; then
1327 INSTALL
="$ac_cv_path_install"
1329 # As a last resort, use the slow shell script. We don't cache a
1330 # path for INSTALL within a source directory, because that will
1331 # break other packages using the cache if that directory is
1332 # removed, or if the path is relative.
1333 INSTALL
="$ac_install_sh"
1336 echo "$ac_t""$INSTALL" 1>&6
1338 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1339 # It thinks the first close brace ends the variable substitution.
1340 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1342 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1345 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1346 echo "configure:1347: checking whether ln -s works" >&5
1347 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1351 if ln -s X conftestdata
2>/dev
/null
1354 ac_cv_prog_LN_S
="ln -s"
1359 LN_S
="$ac_cv_prog_LN_S"
1360 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1361 echo "$ac_t""yes" 1>&6
1363 echo "$ac_t""no" 1>&6
1367 for ac_prog
in mawk gawk nawk
awk
1369 # Extract the first word of "$ac_prog", so it can be a program name with args.
1370 set dummy
$ac_prog; ac_word
=$2
1371 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1372 echo "configure:1373: checking for $ac_word" >&5
1373 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1374 echo $ac_n "(cached) $ac_c" 1>&6
1376 if test -n "$AWK"; then
1377 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1379 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1380 for ac_dir
in $PATH; do
1381 test -z "$ac_dir" && ac_dir
=.
1382 if test -f $ac_dir/$ac_word; then
1383 ac_cv_prog_AWK
="$ac_prog"
1390 AWK
="$ac_cv_prog_AWK"
1391 if test -n "$AWK"; then
1392 echo "$ac_t""$AWK" 1>&6
1394 echo "$ac_t""no" 1>&6
1397 test -n "$AWK" && break
1401 echo $ac_n "checking "make for VPATH support
"""... $ac_c" 1>&6
1402 echo "configure:1403: checking "make for VPATH support
"" >&5
1403 cat - << EOF > confMake
1409 if test ! -d sub
; then
1412 echo dummy
> sub
/file
1413 ${MAKE-make} -f confMake VPATH
=sub
2> config.log
> /dev
/null
1415 rm -f sub
/file check final_file confMake
1417 if test "$RESULT" = 0; then
1418 echo "$ac_t""yes" 1>&6
1420 echo "$ac_t""no" 1>&6
1421 { echo "configure: error: You need a make-utility that is able to use the variable
1423 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
1427 # If we find X, set shell vars x_includes and x_libraries to the
1428 # paths, otherwise set no_x=yes.
1429 # Uses ac_ vars as temps to allow command line to override cache and checks.
1430 # --without-x overrides everything else, but does not touch the cache.
1431 echo $ac_n "checking for X""... $ac_c" 1>&6
1432 echo "configure:1433: checking for X" >&5
1434 # Check whether --with-x or --without-x was given.
1435 if test "${with_x+set}" = set; then
1440 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1441 if test "x$with_x" = xno
; then
1442 # The user explicitly disabled X.
1445 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1446 # Both variables are already set.
1449 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1452 # One or both of the vars are not set, and there is no cached value.
1453 ac_x_includes
=NO ac_x_libraries
=NO
1455 if mkdir conftestdir
; then
1457 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1458 cat > Imakefile
<<'EOF'
1460 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1462 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1463 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1464 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1465 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1466 for ac_extension
in a so sl
; do
1467 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1468 test -f $ac_im_libdir/libX11.
$ac_extension; then
1469 ac_im_usrlibdir
=$ac_im_libdir; break
1472 # Screen out bogus values from the imake configuration. They are
1473 # bogus both because they are the default anyway, and because
1474 # using them would break gcc on systems where it needs fixed includes.
1475 case "$ac_im_incroot" in
1477 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1479 case "$ac_im_usrlibdir" in
1481 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1488 if test "$ac_x_includes" = NO
; then
1489 # Guess where to find include files, by looking for this one X11 .h file.
1490 test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
1492 # First, try using that file with no special directory specified.
1493 cat > conftest.
$ac_ext <<EOF
1494 #line 1495 "configure"
1495 #include "confdefs.h"
1496 #include <$x_direct_test_include>
1498 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1499 { (eval echo configure
:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1500 ac_err
=`grep -v '^ *+' conftest.out`
1501 if test -z "$ac_err"; then
1503 # We can compile using X headers with no special include directory.
1507 echo "configure: failed program was:" >&5
1508 cat conftest.
$ac_ext >&5
1510 # Look for the header file in a standard set of common directories.
1511 # Check X11 before X11Rn because it is often a symlink to the current release.
1514 /usr
/X
11R
6/include \
1515 /usr
/X
11R
5/include \
1516 /usr
/X
11R
4/include \
1519 /usr
/include
/X11R6 \
1520 /usr
/include
/X11R5 \
1521 /usr
/include
/X11R4 \
1523 /usr
/local
/X
11/include \
1524 /usr
/local
/X
11R
6/include \
1525 /usr
/local
/X
11R
5/include \
1526 /usr
/local
/X
11R
4/include \
1528 /usr
/local
/include
/X11 \
1529 /usr
/local
/include
/X11R6 \
1530 /usr
/local
/include
/X11R5 \
1531 /usr
/local
/include
/X11R4 \
1535 /usr
/XFree
86/include
/X11 \
1538 /usr
/local
/include \
1539 /usr
/unsupported
/include \
1540 /usr
/athena
/include \
1541 /usr
/local
/x
11r
5/include \
1542 /usr
/lpp
/Xamples
/include \
1544 /usr
/openwin
/include \
1545 /usr
/openwin
/share
/include \
1548 if test -r "$ac_dir/$x_direct_test_include"; then
1549 ac_x_includes
=$ac_dir
1555 fi # $ac_x_includes = NO
1557 if test "$ac_x_libraries" = NO
; then
1558 # Check for the libraries.
1560 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1561 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1563 # See if we find them without any special options.
1564 # Don't add to $LIBS permanently.
1565 ac_save_LIBS
="$LIBS"
1566 LIBS
="-l$x_direct_test_library $LIBS"
1567 cat > conftest.
$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1572 ${x_direct_test_function}()
1575 if { (eval echo configure
:1576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1577 LIBS
="$ac_save_LIBS"
1578 # We can link X programs with no special library path.
1581 echo "configure: failed program was:" >&5
1582 cat conftest.
$ac_ext >&5
1584 LIBS
="$ac_save_LIBS"
1585 # First see if replacing the include by lib works.
1586 # Check X11 before X11Rn because it is often a symlink to the current release.
1587 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1598 /usr
/local
/X
11/lib \
1599 /usr
/local
/X
11R
6/lib \
1600 /usr
/local
/X
11R
5/lib \
1601 /usr
/local
/X
11R
4/lib \
1603 /usr
/local
/lib
/X11 \
1604 /usr
/local
/lib
/X11R6 \
1605 /usr
/local
/lib
/X11R5 \
1606 /usr
/local
/lib
/X11R4 \
1610 /usr
/XFree
86/lib
/X11 \
1614 /usr
/unsupported
/lib \
1616 /usr
/local
/x
11r
5/lib \
1617 /usr
/lpp
/Xamples
/lib \
1621 /usr
/openwin
/share
/lib \
1624 for ac_extension
in a so sl
; do
1625 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1626 ac_x_libraries
=$ac_dir
1633 fi # $ac_x_libraries = NO
1635 if test "$ac_x_includes" = NO
|| test "$ac_x_libraries" = NO
; then
1636 # Didn't find X anywhere. Cache the known absence of X.
1637 ac_cv_have_x
="have_x=no"
1639 # Record where we found X for the cache.
1640 ac_cv_have_x
="have_x=yes \
1641 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1645 eval "$ac_cv_have_x"
1648 if test "$have_x" != yes; then
1649 echo "$ac_t""$have_x" 1>&6
1652 # If each of the values was on the command line, it overrides each guess.
1653 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1654 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1655 # Update the cache value to reflect the command line values.
1656 ac_cv_have_x
="have_x=yes \
1657 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1658 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1661 if test "$no_x" = yes; then
1662 # Not all programs may use this symbol, but it does not hurt to define it.
1663 cat >> confdefs.h
<<\EOF
1664 #define X_DISPLAY_MISSING 1
1667 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1669 if test -n "$x_includes"; then
1670 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1673 # It would also be nice to do this for all -L options, not just this one.
1674 if test -n "$x_libraries"; then
1675 X_LIBS
="$X_LIBS -L$x_libraries"
1676 # For Solaris; some versions of Sun CC require a space after -R and
1677 # others require no space. Words are not sufficient . . . .
1678 case "`(uname -sr) 2>/dev/null`" in
1680 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1681 echo "configure:1682: checking whether -R must be followed by a space" >&5
1682 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1683 cat > conftest.
$ac_ext <<EOF
1684 #line 1685 "configure"
1685 #include "confdefs.h"
1691 if { (eval echo configure
:1692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1695 echo "configure: failed program was:" >&5
1696 cat conftest.
$ac_ext >&5
1701 if test $ac_R_nospace = yes; then
1702 echo "$ac_t""no" 1>&6
1703 X_LIBS
="$X_LIBS -R$x_libraries"
1705 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1706 cat > conftest.
$ac_ext <<EOF
1707 #line 1708 "configure"
1708 #include "confdefs.h"
1714 if { (eval echo configure
:1715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1718 echo "configure: failed program was:" >&5
1719 cat conftest.
$ac_ext >&5
1724 if test $ac_R_space = yes; then
1725 echo "$ac_t""yes" 1>&6
1726 X_LIBS
="$X_LIBS -R $x_libraries"
1728 echo "$ac_t""neither works" 1>&6
1731 LIBS
="$ac_xsave_LIBS"
1735 # Check for system-dependent libraries X programs must link with.
1736 # Do this before checking for the system-independent R6 libraries
1737 # (-lICE), since we may need -lsocket or whatever for X linking.
1739 if test "$ISC" = yes; then
1740 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1742 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1743 # libraries were built with DECnet support. And karl@cs.umb.edu says
1744 # the Alpha needs dnet_stub (dnet does not exist).
1745 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1746 echo "configure:1747: checking for dnet_ntoa in -ldnet" >&5
1747 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1751 ac_save_LIBS
="$LIBS"
1753 cat > conftest.
$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1756 /* Override any gcc2 internal prototype to avoid an error. */
1757 /* We use char because int might match the return type of a gcc2
1758 builtin and then its argument prototype would still apply. */
1765 if { (eval echo configure
:1766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1767 eval "ac_cv_lib_$ac_lib_var=yes"
1769 echo "configure: failed program was:" >&5
1770 cat conftest.
$ac_ext >&5
1772 eval "ac_cv_lib_$ac_lib_var=no"
1775 LIBS
="$ac_save_LIBS"
1778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1779 echo "$ac_t""yes" 1>&6
1780 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1782 echo "$ac_t""no" 1>&6
1785 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1786 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1787 echo "configure:1788: checking for dnet_ntoa in -ldnet_stub" >&5
1788 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1789 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1792 ac_save_LIBS
="$LIBS"
1793 LIBS
="-ldnet_stub $LIBS"
1794 cat > conftest.
$ac_ext <<EOF
1795 #line 1796 "configure"
1796 #include "confdefs.h"
1797 /* Override any gcc2 internal prototype to avoid an error. */
1798 /* We use char because int might match the return type of a gcc2
1799 builtin and then its argument prototype would still apply. */
1806 if { (eval echo configure
:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1808 eval "ac_cv_lib_$ac_lib_var=yes"
1810 echo "configure: failed program was:" >&5
1811 cat conftest.
$ac_ext >&5
1813 eval "ac_cv_lib_$ac_lib_var=no"
1816 LIBS
="$ac_save_LIBS"
1819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1820 echo "$ac_t""yes" 1>&6
1821 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1823 echo "$ac_t""no" 1>&6
1828 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1829 # to get the SysV transport functions.
1830 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1832 # The nsl library prevents programs from opening the X display
1833 # on Irix 5.2, according to dickey@clark.net.
1834 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1835 echo "configure:1836: checking for gethostbyname" >&5
1836 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1837 echo $ac_n "(cached) $ac_c" 1>&6
1839 cat > conftest.
$ac_ext <<EOF
1840 #line 1841 "configure"
1841 #include "confdefs.h"
1842 /* System header to define __stub macros and hopefully few prototypes,
1843 which can conflict with char gethostbyname(); below. */
1845 /* Override any gcc2 internal prototype to avoid an error. */
1846 /* We use char because int might match the return type of a gcc2
1847 builtin and then its argument prototype would still apply. */
1848 char gethostbyname();
1852 /* The GNU C library defines this for functions which it implements
1853 to always fail with ENOSYS. Some functions are actually named
1854 something starting with __ and the normal name is an alias. */
1855 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1863 if { (eval echo configure
:1864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1865 eval "ac_cv_func_gethostbyname=yes"
1867 echo "configure: failed program was:" >&5
1868 cat conftest.
$ac_ext >&5
1870 eval "ac_cv_func_gethostbyname=no"
1875 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1876 echo "$ac_t""yes" 1>&6
1879 echo "$ac_t""no" 1>&6
1882 if test $ac_cv_func_gethostbyname = no
; then
1883 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1884 echo "configure:1885: checking for gethostbyname in -lnsl" >&5
1885 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1886 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1887 echo $ac_n "(cached) $ac_c" 1>&6
1889 ac_save_LIBS
="$LIBS"
1891 cat > conftest.
$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1894 /* Override any gcc2 internal prototype to avoid an error. */
1895 /* We use char because int might match the return type of a gcc2
1896 builtin and then its argument prototype would still apply. */
1897 char gethostbyname();
1903 if { (eval echo configure
:1904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1905 eval "ac_cv_lib_$ac_lib_var=yes"
1907 echo "configure: failed program was:" >&5
1908 cat conftest.
$ac_ext >&5
1910 eval "ac_cv_lib_$ac_lib_var=no"
1913 LIBS
="$ac_save_LIBS"
1916 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1917 echo "$ac_t""yes" 1>&6
1918 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1920 echo "$ac_t""no" 1>&6
1925 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1926 # socket/setsockopt and other routines are undefined under SCO ODT
1927 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1928 # on later versions), says simon@lia.di.epfl.ch: it contains
1929 # gethostby* variants that don't use the nameserver (or something).
1930 # -lsocket must be given before -lnsl if both are needed.
1931 # We assume that if connect needs -lnsl, so does gethostbyname.
1932 echo $ac_n "checking for connect""... $ac_c" 1>&6
1933 echo "configure:1934: checking for connect" >&5
1934 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1935 echo $ac_n "(cached) $ac_c" 1>&6
1937 cat > conftest.
$ac_ext <<EOF
1938 #line 1939 "configure"
1939 #include "confdefs.h"
1940 /* System header to define __stub macros and hopefully few prototypes,
1941 which can conflict with char connect(); below. */
1943 /* Override any gcc2 internal prototype to avoid an error. */
1944 /* We use char because int might match the return type of a gcc2
1945 builtin and then its argument prototype would still apply. */
1950 /* The GNU C library defines this for functions which it implements
1951 to always fail with ENOSYS. Some functions are actually named
1952 something starting with __ and the normal name is an alias. */
1953 #if defined (__stub_connect) || defined (__stub___connect)
1961 if { (eval echo configure
:1962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1963 eval "ac_cv_func_connect=yes"
1965 echo "configure: failed program was:" >&5
1966 cat conftest.
$ac_ext >&5
1968 eval "ac_cv_func_connect=no"
1973 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1974 echo "$ac_t""yes" 1>&6
1977 echo "$ac_t""no" 1>&6
1980 if test $ac_cv_func_connect = no
; then
1981 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1982 echo "configure:1983: checking for connect in -lsocket" >&5
1983 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1984 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1987 ac_save_LIBS
="$LIBS"
1988 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1989 cat > conftest.
$ac_ext <<EOF
1990 #line 1991 "configure"
1991 #include "confdefs.h"
1992 /* Override any gcc2 internal prototype to avoid an error. */
1993 /* We use char because int might match the return type of a gcc2
1994 builtin and then its argument prototype would still apply. */
2001 if { (eval echo configure
:2002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2003 eval "ac_cv_lib_$ac_lib_var=yes"
2005 echo "configure: failed program was:" >&5
2006 cat conftest.
$ac_ext >&5
2008 eval "ac_cv_lib_$ac_lib_var=no"
2011 LIBS
="$ac_save_LIBS"
2014 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2015 echo "$ac_t""yes" 1>&6
2016 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
2018 echo "$ac_t""no" 1>&6
2023 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2024 echo $ac_n "checking for remove""... $ac_c" 1>&6
2025 echo "configure:2026: checking for remove" >&5
2026 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2027 echo $ac_n "(cached) $ac_c" 1>&6
2029 cat > conftest.
$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2032 /* System header to define __stub macros and hopefully few prototypes,
2033 which can conflict with char remove(); below. */
2035 /* Override any gcc2 internal prototype to avoid an error. */
2036 /* We use char because int might match the return type of a gcc2
2037 builtin and then its argument prototype would still apply. */
2042 /* The GNU C library defines this for functions which it implements
2043 to always fail with ENOSYS. Some functions are actually named
2044 something starting with __ and the normal name is an alias. */
2045 #if defined (__stub_remove) || defined (__stub___remove)
2053 if { (eval echo configure
:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2055 eval "ac_cv_func_remove=yes"
2057 echo "configure: failed program was:" >&5
2058 cat conftest.
$ac_ext >&5
2060 eval "ac_cv_func_remove=no"
2065 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2066 echo "$ac_t""yes" 1>&6
2069 echo "$ac_t""no" 1>&6
2072 if test $ac_cv_func_remove = no
; then
2073 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2074 echo "configure:2075: checking for remove in -lposix" >&5
2075 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2079 ac_save_LIBS
="$LIBS"
2080 LIBS
="-lposix $LIBS"
2081 cat > conftest.
$ac_ext <<EOF
2082 #line 2083 "configure"
2083 #include "confdefs.h"
2084 /* Override any gcc2 internal prototype to avoid an error. */
2085 /* We use char because int might match the return type of a gcc2
2086 builtin and then its argument prototype would still apply. */
2093 if { (eval echo configure
:2094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2095 eval "ac_cv_lib_$ac_lib_var=yes"
2097 echo "configure: failed program was:" >&5
2098 cat conftest.
$ac_ext >&5
2100 eval "ac_cv_lib_$ac_lib_var=no"
2103 LIBS
="$ac_save_LIBS"
2106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2107 echo "$ac_t""yes" 1>&6
2108 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2110 echo "$ac_t""no" 1>&6
2115 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2116 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2117 echo "configure:2118: checking for shmat" >&5
2118 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2119 echo $ac_n "(cached) $ac_c" 1>&6
2121 cat > conftest.
$ac_ext <<EOF
2122 #line 2123 "configure"
2123 #include "confdefs.h"
2124 /* System header to define __stub macros and hopefully few prototypes,
2125 which can conflict with char shmat(); below. */
2127 /* Override any gcc2 internal prototype to avoid an error. */
2128 /* We use char because int might match the return type of a gcc2
2129 builtin and then its argument prototype would still apply. */
2134 /* The GNU C library defines this for functions which it implements
2135 to always fail with ENOSYS. Some functions are actually named
2136 something starting with __ and the normal name is an alias. */
2137 #if defined (__stub_shmat) || defined (__stub___shmat)
2145 if { (eval echo configure
:2146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2147 eval "ac_cv_func_shmat=yes"
2149 echo "configure: failed program was:" >&5
2150 cat conftest.
$ac_ext >&5
2152 eval "ac_cv_func_shmat=no"
2157 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2158 echo "$ac_t""yes" 1>&6
2161 echo "$ac_t""no" 1>&6
2164 if test $ac_cv_func_shmat = no
; then
2165 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2166 echo "configure:2167: checking for shmat in -lipc" >&5
2167 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2171 ac_save_LIBS
="$LIBS"
2173 cat > conftest.
$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2176 /* Override any gcc2 internal prototype to avoid an error. */
2177 /* We use char because int might match the return type of a gcc2
2178 builtin and then its argument prototype would still apply. */
2185 if { (eval echo configure
:2186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2187 eval "ac_cv_lib_$ac_lib_var=yes"
2189 echo "configure: failed program was:" >&5
2190 cat conftest.
$ac_ext >&5
2192 eval "ac_cv_lib_$ac_lib_var=no"
2195 LIBS
="$ac_save_LIBS"
2198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2199 echo "$ac_t""yes" 1>&6
2200 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2202 echo "$ac_t""no" 1>&6
2208 # Check for libraries that X11R6 Xt/Xaw programs need.
2209 ac_save_LDFLAGS
="$LDFLAGS"
2210 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2211 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2212 # check for ICE first), but we must link in the order -lSM -lICE or
2213 # we get undefined symbols. So assume we have SM if we have ICE.
2214 # These have to be linked with before -lX11, unlike the other
2215 # libraries we check for below, so use a different variable.
2216 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2217 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2218 echo "configure:2219: checking for IceConnectionNumber in -lICE" >&5
2219 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2223 ac_save_LIBS
="$LIBS"
2225 cat > conftest.
$ac_ext <<EOF
2226 #line 2227 "configure"
2227 #include "confdefs.h"
2228 /* Override any gcc2 internal prototype to avoid an error. */
2229 /* We use char because int might match the return type of a gcc2
2230 builtin and then its argument prototype would still apply. */
2231 char IceConnectionNumber();
2234 IceConnectionNumber()
2237 if { (eval echo configure
:2238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2239 eval "ac_cv_lib_$ac_lib_var=yes"
2241 echo "configure: failed program was:" >&5
2242 cat conftest.
$ac_ext >&5
2244 eval "ac_cv_lib_$ac_lib_var=no"
2247 LIBS
="$ac_save_LIBS"
2250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2251 echo "$ac_t""yes" 1>&6
2252 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2254 echo "$ac_t""no" 1>&6
2257 LDFLAGS
="$ac_save_LDFLAGS"
2263 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2265 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2266 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2267 echo "configure:2268: checking for $ac_hdr that defines DIR" >&5
2268 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2271 cat > conftest.
$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2274 #include <sys/types.h>
2280 if { (eval echo configure
:2281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2282 eval "ac_cv_header_dirent_$ac_safe=yes"
2284 echo "configure: failed program was:" >&5
2285 cat conftest.
$ac_ext >&5
2287 eval "ac_cv_header_dirent_$ac_safe=no"
2291 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2292 echo "$ac_t""yes" 1>&6
2293 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2294 cat >> confdefs.h
<<EOF
2295 #define $ac_tr_hdr 1
2297 ac_header_dirent
=$ac_hdr; break
2299 echo "$ac_t""no" 1>&6
2302 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2303 if test $ac_header_dirent = dirent.h
; then
2304 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2305 echo "configure:2306: checking for opendir in -ldir" >&5
2306 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2307 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6
2310 ac_save_LIBS
="$LIBS"
2312 cat > conftest.
$ac_ext <<EOF
2313 #line 2314 "configure"
2314 #include "confdefs.h"
2315 /* Override any gcc2 internal prototype to avoid an error. */
2316 /* We use char because int might match the return type of a gcc2
2317 builtin and then its argument prototype would still apply. */
2324 if { (eval echo configure
:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2326 eval "ac_cv_lib_$ac_lib_var=yes"
2328 echo "configure: failed program was:" >&5
2329 cat conftest.
$ac_ext >&5
2331 eval "ac_cv_lib_$ac_lib_var=no"
2334 LIBS
="$ac_save_LIBS"
2337 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2338 echo "$ac_t""yes" 1>&6
2341 echo "$ac_t""no" 1>&6
2345 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2346 echo "configure:2347: checking for opendir in -lx" >&5
2347 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2349 echo $ac_n "(cached) $ac_c" 1>&6
2351 ac_save_LIBS
="$LIBS"
2353 cat > conftest.
$ac_ext <<EOF
2354 #line 2355 "configure"
2355 #include "confdefs.h"
2356 /* Override any gcc2 internal prototype to avoid an error. */
2357 /* We use char because int might match the return type of a gcc2
2358 builtin and then its argument prototype would still apply. */
2365 if { (eval echo configure
:2366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2367 eval "ac_cv_lib_$ac_lib_var=yes"
2369 echo "configure: failed program was:" >&5
2370 cat conftest.
$ac_ext >&5
2372 eval "ac_cv_lib_$ac_lib_var=no"
2375 LIBS
="$ac_save_LIBS"
2378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2379 echo "$ac_t""yes" 1>&6
2382 echo "$ac_t""no" 1>&6
2387 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2388 echo "configure:2389: checking for ANSI C header files" >&5
2389 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2392 cat > conftest.
$ac_ext <<EOF
2393 #line 2394 "configure"
2394 #include "confdefs.h"
2400 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2401 { (eval echo configure
:2402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2402 ac_err
=`grep -v '^ *+' conftest.out`
2403 if test -z "$ac_err"; then
2405 ac_cv_header_stdc
=yes
2408 echo "configure: failed program was:" >&5
2409 cat conftest.
$ac_ext >&5
2411 ac_cv_header_stdc
=no
2415 if test $ac_cv_header_stdc = yes; then
2416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2417 cat > conftest.
$ac_ext <<EOF
2418 #line 2419 "configure"
2419 #include "confdefs.h"
2422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2423 egrep "memchr" >/dev
/null
2>&1; then
2427 ac_cv_header_stdc
=no
2433 if test $ac_cv_header_stdc = yes; then
2434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2435 cat > conftest.
$ac_ext <<EOF
2436 #line 2437 "configure"
2437 #include "confdefs.h"
2440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2441 egrep "free" >/dev
/null
2>&1; then
2445 ac_cv_header_stdc
=no
2451 if test $ac_cv_header_stdc = yes; then
2452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2453 if test "$cross_compiling" = yes; then
2456 cat > conftest.
$ac_ext <<EOF
2457 #line 2458 "configure"
2458 #include "confdefs.h"
2460 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2461 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2463 int main () { int i; for (i = 0; i < 256; i++)
2464 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2468 if { (eval echo configure
:2469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2472 echo "configure: failed program was:" >&5
2473 cat conftest.
$ac_ext >&5
2475 ac_cv_header_stdc
=no
2483 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2484 if test $ac_cv_header_stdc = yes; then
2485 cat >> confdefs.h
<<\EOF
2486 #define STDC_HEADERS 1
2491 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2492 echo "configure:2493: checking for sys/wait.h that is POSIX.1 compatible" >&5
2493 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2494 echo $ac_n "(cached) $ac_c" 1>&6
2496 cat > conftest.
$ac_ext <<EOF
2497 #line 2498 "configure"
2498 #include "confdefs.h"
2499 #include <sys/types.h>
2500 #include <sys/wait.h>
2502 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2505 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2510 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2513 if { (eval echo configure
:2514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2515 ac_cv_header_sys_wait_h
=yes
2517 echo "configure: failed program was:" >&5
2518 cat conftest.
$ac_ext >&5
2520 ac_cv_header_sys_wait_h
=no
2525 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2526 if test $ac_cv_header_sys_wait_h = yes; then
2527 cat >> confdefs.h
<<\EOF
2528 #define HAVE_SYS_WAIT_H 1
2533 for ac_hdr
in fcntl.h
2535 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2537 echo "configure:2538: checking for $ac_hdr" >&5
2538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2541 cat > conftest.
$ac_ext <<EOF
2542 #line 2543 "configure"
2543 #include "confdefs.h"
2546 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2547 { (eval echo configure
:2548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2548 ac_err
=`grep -v '^ *+' conftest.out`
2549 if test -z "$ac_err"; then
2551 eval "ac_cv_header_$ac_safe=yes"
2554 echo "configure: failed program was:" >&5
2555 cat conftest.
$ac_ext >&5
2557 eval "ac_cv_header_$ac_safe=no"
2561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2562 echo "$ac_t""yes" 1>&6
2563 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2564 cat >> confdefs.h
<<EOF
2565 #define $ac_tr_hdr 1
2569 echo "$ac_t""no" 1>&6
2573 for ac_hdr
in limits.h
2575 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2576 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2577 echo "configure:2578: checking for $ac_hdr" >&5
2578 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2581 cat > conftest.
$ac_ext <<EOF
2582 #line 2583 "configure"
2583 #include "confdefs.h"
2586 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2587 { (eval echo configure
:2588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2588 ac_err
=`grep -v '^ *+' conftest.out`
2589 if test -z "$ac_err"; then
2591 eval "ac_cv_header_$ac_safe=yes"
2594 echo "configure: failed program was:" >&5
2595 cat conftest.
$ac_ext >&5
2597 eval "ac_cv_header_$ac_safe=no"
2601 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2602 echo "$ac_t""yes" 1>&6
2603 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2604 cat >> confdefs.h
<<EOF
2605 #define $ac_tr_hdr 1
2609 echo "$ac_t""no" 1>&6
2613 for ac_hdr
in sys
/file.h
2615 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2616 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2617 echo "configure:2618: checking for $ac_hdr" >&5
2618 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2621 cat > conftest.
$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2626 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2627 { (eval echo configure
:2628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2628 ac_err
=`grep -v '^ *+' conftest.out`
2629 if test -z "$ac_err"; then
2631 eval "ac_cv_header_$ac_safe=yes"
2634 echo "configure: failed program was:" >&5
2635 cat conftest.
$ac_ext >&5
2637 eval "ac_cv_header_$ac_safe=no"
2641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2642 echo "$ac_t""yes" 1>&6
2643 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2644 cat >> confdefs.h
<<EOF
2645 #define $ac_tr_hdr 1
2649 echo "$ac_t""no" 1>&6
2653 for ac_hdr
in sys
/time.h
2655 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2656 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2657 echo "configure:2658: checking for $ac_hdr" >&5
2658 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2659 echo $ac_n "(cached) $ac_c" 1>&6
2661 cat > conftest.
$ac_ext <<EOF
2662 #line 2663 "configure"
2663 #include "confdefs.h"
2666 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2667 { (eval echo configure
:2668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2668 ac_err
=`grep -v '^ *+' conftest.out`
2669 if test -z "$ac_err"; then
2671 eval "ac_cv_header_$ac_safe=yes"
2674 echo "configure: failed program was:" >&5
2675 cat conftest.
$ac_ext >&5
2677 eval "ac_cv_header_$ac_safe=no"
2681 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2682 echo "$ac_t""yes" 1>&6
2683 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2684 cat >> confdefs.h
<<EOF
2685 #define $ac_tr_hdr 1
2689 echo "$ac_t""no" 1>&6
2693 for ac_hdr
in unistd.h
2695 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2696 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2697 echo "configure:2698: checking for $ac_hdr" >&5
2698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2699 echo $ac_n "(cached) $ac_c" 1>&6
2701 cat > conftest.
$ac_ext <<EOF
2702 #line 2703 "configure"
2703 #include "confdefs.h"
2706 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2707 { (eval echo configure
:2708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2708 ac_err
=`grep -v '^ *+' conftest.out`
2709 if test -z "$ac_err"; then
2711 eval "ac_cv_header_$ac_safe=yes"
2714 echo "configure: failed program was:" >&5
2715 cat conftest.
$ac_ext >&5
2717 eval "ac_cv_header_$ac_safe=no"
2721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2722 echo "$ac_t""yes" 1>&6
2723 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2724 cat >> confdefs.h
<<EOF
2725 #define $ac_tr_hdr 1
2729 echo "$ac_t""no" 1>&6
2733 for ac_hdr
in fnmatch.h
2735 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2737 echo "configure:2738: checking for $ac_hdr" >&5
2738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 cat > conftest.
$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2746 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2747 { (eval echo configure
:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2748 ac_err
=`grep -v '^ *+' conftest.out`
2749 if test -z "$ac_err"; then
2751 eval "ac_cv_header_$ac_safe=yes"
2754 echo "configure: failed program was:" >&5
2755 cat conftest.
$ac_ext >&5
2757 eval "ac_cv_header_$ac_safe=no"
2761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2762 echo "$ac_t""yes" 1>&6
2763 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2764 cat >> confdefs.h
<<EOF
2765 #define $ac_tr_hdr 1
2769 echo "$ac_t""no" 1>&6
2773 for ac_hdr
in linux
/joystick.h
2775 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2776 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2777 echo "configure:2778: checking for $ac_hdr" >&5
2778 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2779 echo $ac_n "(cached) $ac_c" 1>&6
2781 cat > conftest.
$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2786 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2787 { (eval echo configure
:2788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2788 ac_err
=`grep -v '^ *+' conftest.out`
2789 if test -z "$ac_err"; then
2791 eval "ac_cv_header_$ac_safe=yes"
2794 echo "configure: failed program was:" >&5
2795 cat conftest.
$ac_ext >&5
2797 eval "ac_cv_header_$ac_safe=no"
2801 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2802 echo "$ac_t""yes" 1>&6
2803 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2804 cat >> confdefs.h
<<EOF
2805 #define $ac_tr_hdr 1
2809 echo "$ac_t""no" 1>&6
2814 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
2815 GTK_JOYSTICK
="gtk/joystick.cpp"
2819 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2820 echo "configure:2821: checking for vprintf" >&5
2821 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2824 cat > conftest.
$ac_ext <<EOF
2825 #line 2826 "configure"
2826 #include "confdefs.h"
2827 /* System header to define __stub macros and hopefully few prototypes,
2828 which can conflict with char vprintf(); below. */
2830 /* Override any gcc2 internal prototype to avoid an error. */
2831 /* We use char because int might match the return type of a gcc2
2832 builtin and then its argument prototype would still apply. */
2837 /* The GNU C library defines this for functions which it implements
2838 to always fail with ENOSYS. Some functions are actually named
2839 something starting with __ and the normal name is an alias. */
2840 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2848 if { (eval echo configure
:2849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2850 eval "ac_cv_func_vprintf=yes"
2852 echo "configure: failed program was:" >&5
2853 cat conftest.
$ac_ext >&5
2855 eval "ac_cv_func_vprintf=no"
2860 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2861 echo "$ac_t""yes" 1>&6
2862 cat >> confdefs.h
<<\EOF
2863 #define HAVE_VPRINTF 1
2867 echo "$ac_t""no" 1>&6
2870 if test "$ac_cv_func_vprintf" != yes; then
2871 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2872 echo "configure:2873: checking for _doprnt" >&5
2873 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2876 cat > conftest.
$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2879 /* System header to define __stub macros and hopefully few prototypes,
2880 which can conflict with char _doprnt(); below. */
2882 /* Override any gcc2 internal prototype to avoid an error. */
2883 /* We use char because int might match the return type of a gcc2
2884 builtin and then its argument prototype would still apply. */
2889 /* The GNU C library defines this for functions which it implements
2890 to always fail with ENOSYS. Some functions are actually named
2891 something starting with __ and the normal name is an alias. */
2892 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2900 if { (eval echo configure
:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2902 eval "ac_cv_func__doprnt=yes"
2904 echo "configure: failed program was:" >&5
2905 cat conftest.
$ac_ext >&5
2907 eval "ac_cv_func__doprnt=no"
2912 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2913 echo "$ac_t""yes" 1>&6
2914 cat >> confdefs.h
<<\EOF
2915 #define HAVE_DOPRNT 1
2919 echo "$ac_t""no" 1>&6
2924 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
2925 echo "configure:2926: checking for vsnprintf" >&5
2926 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
2927 echo $ac_n "(cached) $ac_c" 1>&6
2929 cat > conftest.
$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2932 /* System header to define __stub macros and hopefully few prototypes,
2933 which can conflict with char vsnprintf(); below. */
2935 /* Override any gcc2 internal prototype to avoid an error. */
2936 /* We use char because int might match the return type of a gcc2
2937 builtin and then its argument prototype would still apply. */
2942 /* The GNU C library defines this for functions which it implements
2943 to always fail with ENOSYS. Some functions are actually named
2944 something starting with __ and the normal name is an alias. */
2945 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
2953 if { (eval echo configure
:2954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2955 eval "ac_cv_func_vsnprintf=yes"
2957 echo "configure: failed program was:" >&5
2958 cat conftest.
$ac_ext >&5
2960 eval "ac_cv_func_vsnprintf=no"
2965 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
2966 echo "$ac_t""yes" 1>&6
2967 cat >> confdefs.h
<<\EOF
2968 #define HAVE_VSNPRINTF 1
2972 echo "$ac_t""no" 1>&6
2978 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2979 ac_cpp
='$CXXCPP $CPPFLAGS'
2980 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2981 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2982 cross_compiling
=$ac_cv_prog_cxx_cross
2984 for ac_hdr
in iostream
2986 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2987 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2988 echo "configure:2989: checking for $ac_hdr" >&5
2989 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2990 echo $ac_n "(cached) $ac_c" 1>&6
2992 cat > conftest.
$ac_ext <<EOF
2993 #line 2994 "configure"
2994 #include "confdefs.h"
2997 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2998 { (eval echo configure
:2999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2999 ac_err
=`grep -v '^ *+' conftest.out`
3000 if test -z "$ac_err"; then
3002 eval "ac_cv_header_$ac_safe=yes"
3005 echo "configure: failed program was:" >&5
3006 cat conftest.
$ac_ext >&5
3008 eval "ac_cv_header_$ac_safe=no"
3012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3013 echo "$ac_t""yes" 1>&6
3014 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3015 cat >> confdefs.h
<<EOF
3016 #define $ac_tr_hdr 1
3020 echo "$ac_t""no" 1>&6
3024 if test "x$HAVE_IOSTREAM" = "x" ; then
3025 cat >> confdefs.h
<<\EOF
3026 #define wxUSE_IOSTREAMH 1
3031 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3032 ac_cpp
='$CPP $CPPFLAGS'
3033 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3034 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3035 cross_compiling
=$ac_cv_prog_cc_cross
3038 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3039 echo "configure:3040: checking for uid_t in sys/types.h" >&5
3040 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3041 echo $ac_n "(cached) $ac_c" 1>&6
3043 cat > conftest.
$ac_ext <<EOF
3044 #line 3045 "configure"
3045 #include "confdefs.h"
3046 #include <sys/types.h>
3048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3049 egrep "uid_t" >/dev
/null
2>&1; then
3051 ac_cv_type_uid_t
=yes
3060 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3061 if test $ac_cv_type_uid_t = no
; then
3062 cat >> confdefs.h
<<\EOF
3066 cat >> confdefs.h
<<\EOF
3072 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3073 echo "configure:3074: checking type of array argument to getgroups" >&5
3074 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3075 echo $ac_n "(cached) $ac_c" 1>&6
3077 if test "$cross_compiling" = yes; then
3078 ac_cv_type_getgroups
=cross
3080 cat > conftest.
$ac_ext <<EOF
3081 #line 3082 "configure"
3082 #include "confdefs.h"
3084 /* Thanks to Mike Rendell for this test. */
3085 #include <sys/types.h>
3088 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3093 union { gid_t gval; long lval; } val;
3096 for (i = 0; i < NGID; i++)
3097 gidset[i] = val.gval;
3098 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3100 /* Exit non-zero if getgroups seems to require an array of ints. This
3101 happens when gid_t is short but getgroups modifies an array of ints. */
3102 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3106 if { (eval echo configure
:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3108 ac_cv_type_getgroups
=gid_t
3110 echo "configure: failed program was:" >&5
3111 cat conftest.
$ac_ext >&5
3113 ac_cv_type_getgroups
=int
3118 if test $ac_cv_type_getgroups = cross
; then
3119 cat > conftest.
$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3125 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3127 ac_cv_type_getgroups
=gid_t
3130 ac_cv_type_getgroups
=int
3137 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3138 cat >> confdefs.h
<<EOF
3139 #define GETGROUPS_T $ac_cv_type_getgroups
3143 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3144 echo "configure:3145: checking for mode_t" >&5
3145 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3148 cat > conftest.
$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3151 #include <sys/types.h>
3157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3158 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3160 ac_cv_type_mode_t
=yes
3163 ac_cv_type_mode_t
=no
3168 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3169 if test $ac_cv_type_mode_t = no
; then
3170 cat >> confdefs.h
<<\EOF
3176 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3177 echo "configure:3178: checking for off_t" >&5
3178 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3179 echo $ac_n "(cached) $ac_c" 1>&6
3181 cat > conftest.
$ac_ext <<EOF
3182 #line 3183 "configure"
3183 #include "confdefs.h"
3184 #include <sys/types.h>
3190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3191 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3193 ac_cv_type_off_t
=yes
3201 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3202 if test $ac_cv_type_off_t = no
; then
3203 cat >> confdefs.h
<<\EOF
3209 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3210 echo "configure:3211: checking for pid_t" >&5
3211 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3212 echo $ac_n "(cached) $ac_c" 1>&6
3214 cat > conftest.
$ac_ext <<EOF
3215 #line 3216 "configure"
3216 #include "confdefs.h"
3217 #include <sys/types.h>
3223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3224 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3226 ac_cv_type_pid_t
=yes
3234 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3235 if test $ac_cv_type_pid_t = no
; then
3236 cat >> confdefs.h
<<\EOF
3242 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3243 echo "configure:3244: checking return type of signal handlers" >&5
3244 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3245 echo $ac_n "(cached) $ac_c" 1>&6
3247 cat > conftest.
$ac_ext <<EOF
3248 #line 3249 "configure"
3249 #include "confdefs.h"
3250 #include <sys/types.h>
3256 extern "C" void (*signal (int, void (*)(int)))(int);
3258 void (*signal ()) ();
3265 if { (eval echo configure
:3266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3267 ac_cv_type_signal
=void
3269 echo "configure: failed program was:" >&5
3270 cat conftest.
$ac_ext >&5
3272 ac_cv_type_signal
=int
3277 echo "$ac_t""$ac_cv_type_signal" 1>&6
3278 cat >> confdefs.h
<<EOF
3279 #define RETSIGTYPE $ac_cv_type_signal
3283 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3284 echo "configure:3285: checking for size_t" >&5
3285 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3288 cat > conftest.
$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3291 #include <sys/types.h>
3297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3298 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3300 ac_cv_type_size_t
=yes
3303 ac_cv_type_size_t
=no
3308 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3309 if test $ac_cv_type_size_t = no
; then
3310 cat >> confdefs.h
<<\EOF
3311 #define size_t unsigned
3316 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3317 echo "configure:3318: checking for uid_t in sys/types.h" >&5
3318 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3319 echo $ac_n "(cached) $ac_c" 1>&6
3321 cat > conftest.
$ac_ext <<EOF
3322 #line 3323 "configure"
3323 #include "confdefs.h"
3324 #include <sys/types.h>
3326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3327 egrep "uid_t" >/dev
/null
2>&1; then
3329 ac_cv_type_uid_t
=yes
3338 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3339 if test $ac_cv_type_uid_t = no
; then
3340 cat >> confdefs.h
<<\EOF
3344 cat >> confdefs.h
<<\EOF
3352 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3353 echo "configure:3354: checking whether stat file-mode macros are broken" >&5
3354 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3357 cat > conftest.
$ac_ext <<EOF
3358 #line 3359 "configure"
3359 #include "confdefs.h"
3360 #include <sys/types.h>
3361 #include <sys/stat.h>
3363 #if defined(S_ISBLK) && defined(S_IFDIR)
3364 # if S_ISBLK (S_IFDIR)
3369 #if defined(S_ISBLK) && defined(S_IFCHR)
3370 # if S_ISBLK (S_IFCHR)
3375 #if defined(S_ISLNK) && defined(S_IFREG)
3376 # if S_ISLNK (S_IFREG)
3381 #if defined(S_ISSOCK) && defined(S_IFREG)
3382 # if S_ISSOCK (S_IFREG)
3388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3389 egrep "You lose" >/dev
/null
2>&1; then
3391 ac_cv_header_stat_broken
=yes
3394 ac_cv_header_stat_broken
=no
3400 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3401 if test $ac_cv_header_stat_broken = yes; then
3402 cat >> confdefs.h
<<\EOF
3403 #define STAT_MACROS_BROKEN 1
3408 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3409 echo "configure:3410: checking whether time.h and sys/time.h may both be included" >&5
3410 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 cat > conftest.
$ac_ext <<EOF
3414 #line 3415 "configure"
3415 #include "confdefs.h"
3416 #include <sys/types.h>
3417 #include <sys/time.h>
3423 if { (eval echo configure
:3424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3425 ac_cv_header_time
=yes
3427 echo "configure: failed program was:" >&5
3428 cat conftest.
$ac_ext >&5
3430 ac_cv_header_time
=no
3435 echo "$ac_t""$ac_cv_header_time" 1>&6
3436 if test $ac_cv_header_time = yes; then
3437 cat >> confdefs.h
<<\EOF
3438 #define TIME_WITH_SYS_TIME 1
3443 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3444 echo "configure:3445: checking for st_blksize in struct stat" >&5
3445 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3446 echo $ac_n "(cached) $ac_c" 1>&6
3448 cat > conftest.
$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3451 #include <sys/types.h>
3452 #include <sys/stat.h>
3454 struct stat s; s.st_blksize;
3457 if { (eval echo configure
:3458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3459 ac_cv_struct_st_blksize
=yes
3461 echo "configure: failed program was:" >&5
3462 cat conftest.
$ac_ext >&5
3464 ac_cv_struct_st_blksize
=no
3469 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3470 if test $ac_cv_struct_st_blksize = yes; then
3471 cat >> confdefs.h
<<\EOF
3472 #define HAVE_ST_BLKSIZE 1
3477 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3478 echo "configure:3479: checking for st_blocks in struct stat" >&5
3479 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3480 echo $ac_n "(cached) $ac_c" 1>&6
3482 cat > conftest.
$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3485 #include <sys/types.h>
3486 #include <sys/stat.h>
3488 struct stat s; s.st_blocks;
3491 if { (eval echo configure
:3492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3493 ac_cv_struct_st_blocks
=yes
3495 echo "configure: failed program was:" >&5
3496 cat conftest.
$ac_ext >&5
3498 ac_cv_struct_st_blocks
=no
3503 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3504 if test $ac_cv_struct_st_blocks = yes; then
3505 cat >> confdefs.h
<<\EOF
3506 #define HAVE_ST_BLOCKS 1
3510 LIBOBJS
="$LIBOBJS fileblocks.o"
3513 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3514 echo "configure:3515: checking for st_rdev in struct stat" >&5
3515 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3518 cat > conftest.
$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 #include <sys/types.h>
3522 #include <sys/stat.h>
3524 struct stat s; s.st_rdev;
3527 if { (eval echo configure
:3528: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3529 ac_cv_struct_st_rdev
=yes
3531 echo "configure: failed program was:" >&5
3532 cat conftest.
$ac_ext >&5
3534 ac_cv_struct_st_rdev
=no
3539 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3540 if test $ac_cv_struct_st_rdev = yes; then
3541 cat >> confdefs.h
<<\EOF
3542 #define HAVE_ST_RDEV 1
3547 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3548 echo "configure:3549: checking whether struct tm is in sys/time.h or time.h" >&5
3549 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3550 echo $ac_n "(cached) $ac_c" 1>&6
3552 cat > conftest.
$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3555 #include <sys/types.h>
3558 struct tm *tp; tp->tm_sec;
3561 if { (eval echo configure
:3562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3563 ac_cv_struct_tm
=time.h
3565 echo "configure: failed program was:" >&5
3566 cat conftest.
$ac_ext >&5
3568 ac_cv_struct_tm
=sys
/time.h
3573 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3574 if test $ac_cv_struct_tm = sys
/time.h
; then
3575 cat >> confdefs.h
<<\EOF
3576 #define TM_IN_SYS_TIME 1
3581 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3582 echo "configure:3583: checking for tm_zone in struct tm" >&5
3583 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3584 echo $ac_n "(cached) $ac_c" 1>&6
3586 cat > conftest.
$ac_ext <<EOF
3587 #line 3588 "configure"
3588 #include "confdefs.h"
3589 #include <sys/types.h>
3590 #include <$ac_cv_struct_tm>
3592 struct tm tm; tm.tm_zone;
3595 if { (eval echo configure
:3596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3597 ac_cv_struct_tm_zone
=yes
3599 echo "configure: failed program was:" >&5
3600 cat conftest.
$ac_ext >&5
3602 ac_cv_struct_tm_zone
=no
3607 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3608 if test "$ac_cv_struct_tm_zone" = yes; then
3609 cat >> confdefs.h
<<\EOF
3610 #define HAVE_TM_ZONE 1
3614 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3615 echo "configure:3616: checking for tzname" >&5
3616 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3619 cat > conftest.
$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3623 #ifndef tzname /* For SGI. */
3624 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3630 if { (eval echo configure
:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3632 ac_cv_var_tzname
=yes
3634 echo "configure: failed program was:" >&5
3635 cat conftest.
$ac_ext >&5
3642 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3643 if test $ac_cv_var_tzname = yes; then
3644 cat >> confdefs.h
<<\EOF
3645 #define HAVE_TZNAME 1
3653 echo $ac_n "checking for working const""... $ac_c" 1>&6
3654 echo "configure:3655: checking for working const" >&5
3655 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3658 cat > conftest.
$ac_ext <<EOF
3659 #line 3660 "configure"
3660 #include "confdefs.h"
3664 /* Ultrix mips cc rejects this. */
3665 typedef int charset[2]; const charset x;
3666 /* SunOS 4.1.1 cc rejects this. */
3667 char const *const *ccp;
3669 /* NEC SVR4.0.2 mips cc rejects this. */
3670 struct point {int x, y;};
3671 static struct point const zero = {0,0};
3672 /* AIX XL C 1.02.0.0 rejects this.
3673 It does not let you subtract one const X* pointer from another in an arm
3674 of an if-expression whose if-part is not a constant expression */
3675 const char *g = "string";
3676 ccp = &g + (g ? g-g : 0);
3677 /* HPUX 7.0 cc rejects these. */
3680 ccp = (char const *const *) p;
3681 { /* SCO 3.2v4 cc rejects this. */
3683 char const *s = 0 ? (char *) 0 : (char const *) 0;
3687 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3689 const int *foo = &x[0];
3692 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3693 typedef const int *iptr;
3697 { /* AIX XL C 1.02.0.0 rejects this saying
3698 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3699 struct s { int j; const int *ap[3]; };
3700 struct s *b; b->j = 5;
3702 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3708 if { (eval echo configure
:3709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3712 echo "configure: failed program was:" >&5
3713 cat conftest.
$ac_ext >&5
3720 echo "$ac_t""$ac_cv_c_const" 1>&6
3721 if test $ac_cv_c_const = no
; then
3722 cat >> confdefs.h
<<\EOF
3728 echo $ac_n "checking for inline""... $ac_c" 1>&6
3729 echo "configure:3730: checking for inline" >&5
3730 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3734 for ac_kw
in inline __inline__ __inline
; do
3735 cat > conftest.
$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3743 if { (eval echo configure
:3744: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3745 ac_cv_c_inline
=$ac_kw; break
3747 echo "configure: failed program was:" >&5
3748 cat conftest.
$ac_ext >&5
3755 echo "$ac_t""$ac_cv_c_inline" 1>&6
3756 case "$ac_cv_c_inline" in
3758 no
) cat >> confdefs.h
<<\EOF
3762 *) cat >> confdefs.h
<<EOF
3763 #define inline $ac_cv_c_inline
3768 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3769 echo "configure:3770: checking whether char is unsigned" >&5
3770 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6
3773 if test "$GCC" = yes; then
3774 # GCC predefines this symbol on systems where it applies.
3775 cat > conftest.
$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3778 #ifdef __CHAR_UNSIGNED__
3783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3784 egrep "yes" >/dev
/null
2>&1; then
3786 ac_cv_c_char_unsigned
=yes
3789 ac_cv_c_char_unsigned
=no
3794 if test "$cross_compiling" = yes; then
3795 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3797 cat > conftest.
$ac_ext <<EOF
3798 #line 3799 "configure"
3799 #include "confdefs.h"
3800 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3801 #if !defined(__STDC__) || __STDC__ != 1
3805 volatile char c = 255; exit(c < 0);
3808 if { (eval echo configure
:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3810 ac_cv_c_char_unsigned
=yes
3812 echo "configure: failed program was:" >&5
3813 cat conftest.
$ac_ext >&5
3815 ac_cv_c_char_unsigned
=no
3823 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3824 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3825 cat >> confdefs.h
<<\EOF
3826 #define __CHAR_UNSIGNED__ 1
3831 echo $ac_n "checking for long double""... $ac_c" 1>&6
3832 echo "configure:3833: checking for long double" >&5
3833 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
3834 echo $ac_n "(cached) $ac_c" 1>&6
3836 if test "$GCC" = yes; then
3837 ac_cv_c_long_double
=yes
3839 if test "$cross_compiling" = yes; then
3840 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3842 cat > conftest.
$ac_ext <<EOF
3843 #line 3844 "configure"
3844 #include "confdefs.h"
3846 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
3847 long double foo = 0.0;
3848 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
3849 exit(sizeof(long double) < sizeof(double)); }
3851 if { (eval echo configure
:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3853 ac_cv_c_long_double
=yes
3855 echo "configure: failed program was:" >&5
3856 cat conftest.
$ac_ext >&5
3858 ac_cv_c_long_double
=no
3866 echo "$ac_t""$ac_cv_c_long_double" 1>&6
3867 if test $ac_cv_c_long_double = yes; then
3868 cat >> confdefs.h
<<\EOF
3869 #define HAVE_LONG_DOUBLE 1
3875 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3876 echo "configure:3877: checking whether byte ordering is bigendian" >&5
3877 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3878 echo $ac_n "(cached) $ac_c" 1>&6
3880 ac_cv_c_bigendian
=unknown
3881 # See if sys/param.h defines the BYTE_ORDER macro.
3882 cat > conftest.
$ac_ext <<EOF
3883 #line 3884 "configure"
3884 #include "confdefs.h"
3885 #include <sys/types.h>
3886 #include <sys/param.h>
3889 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3894 if { (eval echo configure
:3895: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3896 # It does; now see whether it defined to BIG_ENDIAN or not.
3897 cat > conftest.
$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3900 #include <sys/types.h>
3901 #include <sys/param.h>
3904 #if BYTE_ORDER != BIG_ENDIAN
3909 if { (eval echo configure
:3910: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3911 ac_cv_c_bigendian
=yes
3913 echo "configure: failed program was:" >&5
3914 cat conftest.
$ac_ext >&5
3916 ac_cv_c_bigendian
=no
3920 echo "configure: failed program was:" >&5
3921 cat conftest.
$ac_ext >&5
3924 if test $ac_cv_c_bigendian = unknown
; then
3925 if test "$cross_compiling" = yes; then
3926 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3928 cat > conftest.
$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3932 /* Are we little or big endian? From Harbison&Steele. */
3936 char c[sizeof (long)];
3939 exit (u.c[sizeof (long) - 1] == 1);
3942 if { (eval echo configure
:3943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3944 ac_cv_c_bigendian
=no
3946 echo "configure: failed program was:" >&5
3947 cat conftest.
$ac_ext >&5
3949 ac_cv_c_bigendian
=yes
3957 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3958 if test $ac_cv_c_bigendian = yes; then
3959 cat >> confdefs.h
<<\EOF
3960 #define WORDS_BIGENDIAN 1
3966 echo $ac_n "checking size of int *""... $ac_c" 1>&6
3967 echo "configure:3968: checking size of int *" >&5
3968 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
3969 echo $ac_n "(cached) $ac_c" 1>&6
3971 if test "$cross_compiling" = yes; then
3972 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3974 cat > conftest.
$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3980 FILE *f=fopen("conftestval", "w");
3982 fprintf(f, "%d\n", sizeof(int *));
3986 if { (eval echo configure
:3987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3988 ac_cv_sizeof_int_p
=`cat conftestval`
3990 echo "configure: failed program was:" >&5
3991 cat conftest.
$ac_ext >&5
3993 ac_cv_sizeof_int_p
=0
3999 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
4000 cat >> confdefs.h
<<EOF
4001 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
4005 echo $ac_n "checking size of int""... $ac_c" 1>&6
4006 echo "configure:4007: checking size of int" >&5
4007 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4010 if test "$cross_compiling" = yes; then
4011 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4013 cat > conftest.
$ac_ext <<EOF
4014 #line 4015 "configure"
4015 #include "confdefs.h"
4019 FILE *f=fopen("conftestval", "w");
4021 fprintf(f, "%d\n", sizeof(int));
4025 if { (eval echo configure
:4026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4027 ac_cv_sizeof_int
=`cat conftestval`
4029 echo "configure: failed program was:" >&5
4030 cat conftest.
$ac_ext >&5
4038 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4039 cat >> confdefs.h
<<EOF
4040 #define SIZEOF_INT $ac_cv_sizeof_int
4044 echo $ac_n "checking size of long""... $ac_c" 1>&6
4045 echo "configure:4046: checking size of long" >&5
4046 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4047 echo $ac_n "(cached) $ac_c" 1>&6
4049 if test "$cross_compiling" = yes; then
4050 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4052 cat > conftest.
$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4058 FILE *f=fopen("conftestval", "w");
4060 fprintf(f, "%d\n", sizeof(long));
4064 if { (eval echo configure
:4065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4066 ac_cv_sizeof_long
=`cat conftestval`
4068 echo "configure: failed program was:" >&5
4069 cat conftest.
$ac_ext >&5
4077 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4078 cat >> confdefs.h
<<EOF
4079 #define SIZEOF_LONG $ac_cv_sizeof_long
4083 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4084 echo "configure:4085: checking size of long long" >&5
4085 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4086 echo $ac_n "(cached) $ac_c" 1>&6
4088 if test "$cross_compiling" = yes; then
4089 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4091 cat > conftest.
$ac_ext <<EOF
4092 #line 4093 "configure"
4093 #include "confdefs.h"
4097 FILE *f=fopen("conftestval", "w");
4099 fprintf(f, "%d\n", sizeof(long long));
4103 if { (eval echo configure
:4104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4105 ac_cv_sizeof_long_long
=`cat conftestval`
4107 echo "configure: failed program was:" >&5
4108 cat conftest.
$ac_ext >&5
4110 ac_cv_sizeof_long_long
=0
4116 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4117 cat >> confdefs.h
<<EOF
4118 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4126 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4127 echo "configure:4128: checking for long file names" >&5
4128 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
4129 echo $ac_n "(cached) $ac_c" 1>&6
4131 ac_cv_sys_long_file_names
=yes
4132 # Test for long file names in all the places we know might matter:
4133 # . the current directory, where building will happen
4134 # $prefix/lib where we will be installing things
4135 # $exec_prefix/lib likewise
4136 # eval it to expand exec_prefix.
4137 # $TMPDIR if set, where it might want to write temporary files
4138 # if $TMPDIR is not set:
4139 # /tmp where it might want to write temporary files
4142 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4143 ac_tmpdirs
="$TMPDIR"
4145 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
4147 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4148 test -d $ac_dir || continue
4149 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4150 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
4151 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
4152 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
4153 if test ! -f $ac_dir/conftest9012345
|| test "$val" != 1; then
4154 ac_cv_sys_long_file_names
=no
4155 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4158 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4162 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4163 if test $ac_cv_sys_long_file_names = yes; then
4164 cat >> confdefs.h
<<\EOF
4165 #define HAVE_LONG_FILE_NAMES 1
4173 for ac_prog
in 'bison -y' byacc
4175 # Extract the first word of "$ac_prog", so it can be a program name with args.
4176 set dummy
$ac_prog; ac_word
=$2
4177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4178 echo "configure:4179: checking for $ac_word" >&5
4179 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4182 if test -n "$YACC"; then
4183 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4185 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4186 for ac_dir
in $PATH; do
4187 test -z "$ac_dir" && ac_dir
=.
4188 if test -f $ac_dir/$ac_word; then
4189 ac_cv_prog_YACC
="$ac_prog"
4196 YACC
="$ac_cv_prog_YACC"
4197 if test -n "$YACC"; then
4198 echo "$ac_t""$YACC" 1>&6
4200 echo "$ac_t""no" 1>&6
4203 test -n "$YACC" && break
4205 test -n "$YACC" || YACC
="yacc"
4208 # Extract the first word of "flex", so it can be a program name with args.
4209 set dummy flex
; ac_word
=$2
4210 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4211 echo "configure:4212: checking for $ac_word" >&5
4212 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4213 echo $ac_n "(cached) $ac_c" 1>&6
4215 if test -n "$LEX"; then
4216 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4218 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4219 for ac_dir
in $PATH; do
4220 test -z "$ac_dir" && ac_dir
=.
4221 if test -f $ac_dir/$ac_word; then
4222 ac_cv_prog_LEX
="flex"
4227 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
4230 LEX
="$ac_cv_prog_LEX"
4231 if test -n "$LEX"; then
4232 echo "$ac_t""$LEX" 1>&6
4234 echo "$ac_t""no" 1>&6
4237 if test -z "$LEXLIB"
4243 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4244 echo "configure:4245: checking for yywrap in -l$ac_lib" >&5
4245 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4246 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4247 echo $ac_n "(cached) $ac_c" 1>&6
4249 ac_save_LIBS
="$LIBS"
4250 LIBS
="-l$ac_lib $LIBS"
4251 cat > conftest.
$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4254 /* Override any gcc2 internal prototype to avoid an error. */
4255 /* We use char because int might match the return type of a gcc2
4256 builtin and then its argument prototype would still apply. */
4263 if { (eval echo configure
:4264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4265 eval "ac_cv_lib_$ac_lib_var=yes"
4267 echo "configure: failed program was:" >&5
4268 cat conftest.
$ac_ext >&5
4270 eval "ac_cv_lib_$ac_lib_var=no"
4273 LIBS
="$ac_save_LIBS"
4276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4277 echo "$ac_t""yes" 1>&6
4280 echo "$ac_t""no" 1>&6
4285 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4286 echo "configure:4287: checking lex output file root" >&5
4287 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4290 # The minimal lex program is just a single line: %%. But some broken lexes
4291 # (Solaris, I think it was) want two %% lines, so accommodate them.
4294 if test -f lex.yy.c
; then
4295 ac_cv_prog_lex_root
=lex.yy
4296 elif test -f lexyy.c
; then
4297 ac_cv_prog_lex_root
=lexyy
4299 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4303 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4304 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4306 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4307 echo "configure:4308: checking whether yytext is a pointer" >&5
4308 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4309 echo $ac_n "(cached) $ac_c" 1>&6
4311 # POSIX says lex can declare yytext either as a pointer or an array; the
4312 # default is implementation-dependent. Figure out which it is, since
4313 # not all implementations provide the %pointer and %array declarations.
4314 ac_cv_prog_lex_yytext_pointer
=no
4315 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4316 ac_save_LIBS
="$LIBS"
4317 LIBS
="$LIBS $LEXLIB"
4318 cat > conftest.
$ac_ext <<EOF
4319 #line 4320 "configure"
4320 #include "confdefs.h"
4321 `cat $LEX_OUTPUT_ROOT.c`
4326 if { (eval echo configure
:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4328 ac_cv_prog_lex_yytext_pointer
=yes
4330 echo "configure: failed program was:" >&5
4331 cat conftest.
$ac_ext >&5
4334 LIBS
="$ac_save_LIBS"
4335 rm -f "${LEX_OUTPUT_ROOT}.c"
4339 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4340 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4341 cat >> confdefs.h
<<\EOF
4342 #define YYTEXT_POINTER 1
4350 for ac_func
in dlopen
4352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4353 echo "configure:4354: checking for $ac_func" >&5
4354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4357 cat > conftest.
$ac_ext <<EOF
4358 #line 4359 "configure"
4359 #include "confdefs.h"
4360 /* System header to define __stub macros and hopefully few prototypes,
4361 which can conflict with char $ac_func(); below. */
4363 /* Override any gcc2 internal prototype to avoid an error. */
4364 /* We use char because int might match the return type of a gcc2
4365 builtin and then its argument prototype would still apply. */
4370 /* The GNU C library defines this for functions which it implements
4371 to always fail with ENOSYS. Some functions are actually named
4372 something starting with __ and the normal name is an alias. */
4373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4381 if { (eval echo configure
:4382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4383 eval "ac_cv_func_$ac_func=yes"
4385 echo "configure: failed program was:" >&5
4386 cat conftest.
$ac_ext >&5
4388 eval "ac_cv_func_$ac_func=no"
4393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4394 echo "$ac_t""yes" 1>&6
4395 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4396 cat >> confdefs.h
<<EOF
4397 #define $ac_tr_func 1
4399 cat >> confdefs.h
<<\EOF
4400 #define HAVE_LIBDL 1
4404 echo "$ac_t""no" 1>&6
4405 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4406 echo "configure:4407: checking for dlopen in -ldl" >&5
4407 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4408 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4411 ac_save_LIBS
="$LIBS"
4413 cat > conftest.
$ac_ext <<EOF
4414 #line 4415 "configure"
4415 #include "confdefs.h"
4416 /* Override any gcc2 internal prototype to avoid an error. */
4417 /* We use char because int might match the return type of a gcc2
4418 builtin and then its argument prototype would still apply. */
4425 if { (eval echo configure
:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4427 eval "ac_cv_lib_$ac_lib_var=yes"
4429 echo "configure: failed program was:" >&5
4430 cat conftest.
$ac_ext >&5
4432 eval "ac_cv_lib_$ac_lib_var=no"
4435 LIBS
="$ac_save_LIBS"
4438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4439 echo "$ac_t""yes" 1>&6
4440 cat >> confdefs.h
<<\EOF
4441 #define HAVE_LIBDL 1
4445 echo "$ac_t""no" 1>&6
4446 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4447 echo "configure:4448: checking for dld_link in -ldld" >&5
4448 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4452 ac_save_LIBS
="$LIBS"
4454 cat > conftest.
$ac_ext <<EOF
4455 #line 4456 "configure"
4456 #include "confdefs.h"
4457 /* Override any gcc2 internal prototype to avoid an error. */
4458 /* We use char because int might match the return type of a gcc2
4459 builtin and then its argument prototype would still apply. */
4466 if { (eval echo configure
:4467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4468 eval "ac_cv_lib_$ac_lib_var=yes"
4470 echo "configure: failed program was:" >&5
4471 cat conftest.
$ac_ext >&5
4473 eval "ac_cv_lib_$ac_lib_var=no"
4476 LIBS
="$ac_save_LIBS"
4479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4480 echo "$ac_t""yes" 1>&6
4481 cat >> confdefs.h
<<\EOF
4486 echo "$ac_t""no" 1>&6
4487 for ac_func
in shl_load
4489 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4490 echo "configure:4491: checking for $ac_func" >&5
4491 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4492 echo $ac_n "(cached) $ac_c" 1>&6
4494 cat > conftest.
$ac_ext <<EOF
4495 #line 4496 "configure"
4496 #include "confdefs.h"
4497 /* System header to define __stub macros and hopefully few prototypes,
4498 which can conflict with char $ac_func(); below. */
4500 /* Override any gcc2 internal prototype to avoid an error. */
4501 /* We use char because int might match the return type of a gcc2
4502 builtin and then its argument prototype would still apply. */
4507 /* The GNU C library defines this for functions which it implements
4508 to always fail with ENOSYS. Some functions are actually named
4509 something starting with __ and the normal name is an alias. */
4510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4518 if { (eval echo configure
:4519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4520 eval "ac_cv_func_$ac_func=yes"
4522 echo "configure: failed program was:" >&5
4523 cat conftest.
$ac_ext >&5
4525 eval "ac_cv_func_$ac_func=no"
4530 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4531 echo "$ac_t""yes" 1>&6
4532 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4533 cat >> confdefs.h
<<EOF
4534 #define $ac_tr_func 1
4536 cat >> confdefs.h
<<\EOF
4537 #define HAVE_SHL_LOAD 1
4541 echo "$ac_t""no" 1>&6
4557 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
4558 echo "configure:4559: checking for underscore before symbols" >&5
4559 if eval "test \"`echo '$''{'libltdl_cv_uscore'+set}'`\" = set"; then
4560 echo $ac_n "(cached) $ac_c" 1>&6
4563 echo "main(){int i=1;} fnord(){int i=23; int ltuae=42;}" > conftest.c
4564 ${CC} -c conftest.c
> /dev
/null
4565 if (nm conftest.o
| grep _fnord
) > /dev
/null
; then
4566 libltdl_cv_uscore
=yes
4568 libltdl_cv_uscore
=no
4574 echo "$ac_t""$libltdl_cv_uscore" 1>&6
4576 if test x
"$libltdl_cv_uscore" = xyes
; then
4577 if test x
"$ac_cv_func_dlopen" = xyes
||
4578 test x
"$ac_cv_lib_dl_dlopen" = xyes
; then
4579 echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
4580 echo "configure:4581: checking whether we have to add an underscore for dlsym" >&5
4581 if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
4582 echo $ac_n "(cached) $ac_c" 1>&6
4584 if test "$cross_compiling" = yes; then
4585 libltdl_cv_need_uscore
=no
4588 cat > conftest.
$ac_ext <<EOF
4589 #line 4590 "configure"
4590 #include "confdefs.h"
4594 fnord() { int i=42;}
4595 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
4596 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
4597 if(ptr1 && !ptr2) exit(0); } exit(1); }
4600 if { (eval echo configure
:4601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4602 libltdl_cv_need_uscore
=no
4604 echo "configure: failed program was:" >&5
4605 cat conftest.
$ac_ext >&5
4607 libltdl_cv_need_uscore
=yes
4614 echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
4618 if test x
"$libltdl_cv_need_uscore" = xyes
; then
4619 cat >> confdefs.h
<<\EOF
4620 #define NEED_USCORE 1
4626 for ac_func
in strerror
4628 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4629 echo "configure:4630: checking for $ac_func" >&5
4630 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4631 echo $ac_n "(cached) $ac_c" 1>&6
4633 cat > conftest.
$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4636 /* System header to define __stub macros and hopefully few prototypes,
4637 which can conflict with char $ac_func(); below. */
4639 /* Override any gcc2 internal prototype to avoid an error. */
4640 /* We use char because int might match the return type of a gcc2
4641 builtin and then its argument prototype would still apply. */
4646 /* The GNU C library defines this for functions which it implements
4647 to always fail with ENOSYS. Some functions are actually named
4648 something starting with __ and the normal name is an alias. */
4649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4657 if { (eval echo configure
:4658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4659 eval "ac_cv_func_$ac_func=yes"
4661 echo "configure: failed program was:" >&5
4662 cat conftest.
$ac_ext >&5
4664 eval "ac_cv_func_$ac_func=no"
4669 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4670 echo "$ac_t""yes" 1>&6
4671 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4672 cat >> confdefs.h
<<EOF
4673 #define $ac_tr_func 1
4677 echo "$ac_t""no" 1>&6
4683 CHECK_INCLUDE
="-I/usr/include $X_CFLAGS"
4684 CHECK_LIB
="-L/lib -L/usr/lib $X_LIBS"
4688 # Make sure we can run config.sub.
4689 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
4690 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
4693 echo $ac_n "checking host system type""... $ac_c" 1>&6
4694 echo "configure:4695: checking host system type" >&5
4697 case "$host_alias" in
4701 if host_alias
=`$ac_config_guess`; then :
4702 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
4704 *) host_alias
=$nonopt ;;
4708 host=`$ac_config_sub $host_alias`
4709 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4710 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4711 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4712 echo "$ac_t""$host" 1>&6
4715 configuration
=$host_alias
4737 cat >> confdefs.h
<<\EOF
4741 case "${canonical}" in
4744 cat >> confdefs.h
<<\EOF
4751 cat >> confdefs.h
<<\EOF
4756 if test "x$TMP" = "xalpha"
4759 cat >> confdefs.h
<<\EOF
4765 *-*-irix5* | *-*-irix6* )
4768 cat >> confdefs.h
<<\EOF
4772 cat >> confdefs.h
<<\EOF
4781 cat >> confdefs.h
<<\EOF
4785 cat >> confdefs.h
<<\EOF
4786 #define __SOLARIS__ 1
4789 cat >> confdefs.h
<<\EOF
4798 cat >> confdefs.h
<<\EOF
4802 cat >> confdefs.h
<<\EOF
4806 cat >> confdefs.h
<<\EOF
4811 *-*-freebsd* | *-*-netbsd*)
4814 cat >> confdefs.h
<<\EOF
4815 #define __FREEBSD__ 1
4818 cat >> confdefs.h
<<\EOF
4826 cat >> confdefs.h
<<\EOF
4830 cat >> confdefs.h
<<\EOF
4838 cat >> confdefs.h
<<\EOF
4842 cat >> confdefs.h
<<\EOF
4850 cat >> confdefs.h
<<\EOF
4854 cat >> confdefs.h
<<\EOF
4863 cat >> confdefs.h
<<\EOF
4867 cat >> confdefs.h
<<\EOF
4871 cat >> confdefs.h
<<\EOF
4877 { echo "configure: error: I don't know your system type." 1>&2; exit 1; }
4882 rm -f ${OSTYPE}.system.cache.tmp
4883 touch ${OSTYPE}.system.cache.tmp
4884 touch ${OSTYPE}.system.cache
4889 DEFAULT_wxUSE_MOTIF
=0
4891 DEFAULT_wxUSE_THREADS
=0
4893 DEFAULT_wxUSE_SHARED
=1
4894 DEFAULT_wxUSE_OPTIMISE
=1
4895 DEFAULT_wxUSE_PROFILE
=0
4896 DEFAULT_wxUSE_DEBUG_FLAG
=0
4897 DEFAULT_wxUSE_DEBUG_INFO
=0
4898 DEFAULT_wxUSE_MEM_TRACING
=0
4899 DEFAULT_wxUSE_DMALLOC
=0
4900 DEFAULT_wxUSE_APPLE_IEEE
=1
4901 DEFAULT_wxUSE_IOSTREAMH
=1
4903 DEFAULT_wxUSE_ZLIB
=1
4904 DEFAULT_wxUSE_LIBPNG
=1
4905 DEFAULT_wxUSE_LIBJPEG
=0
4906 DEFAULT_wxUSE_ODBC
=1
4908 DEFAULT_wxUSE_TIMEDATE
=1
4909 DEFAULT_wxUSE_INTL
=1
4910 DEFAULT_wxUSE_CONFIG
=1
4911 DEFAULT_wxUSE_STREAMS
=1
4912 DEFAULT_wxUSE_SERIAL
=1
4913 DEFAULT_wxUSE_DYNLIB_CLASS
=1
4915 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
=1
4916 DEFAULT_WX_NORMALIZED_PS_FONTS
=1
4917 DEFAULT_wxUSE_POSTSCRIPT
=1
4920 DEFAULT_wxUSE_RESOURCES
=1
4921 DEFAULT_wxUSE_CLIPBOARD
=1
4922 DEFAULT_wxUSE_TOOLTIPS
=1
4923 DEFAULT_wxUSE_DRAG_AND_DROP
=1
4925 DEFAULT_wxUSE_MDI_ARCHITECTURE
=1
4926 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
=1
4927 DEFAULT_wxUSE_PRINTING_ARCHITECTURE
=1
4929 DEFAULT_wxUSE_PROLOGIO
=1
4930 DEFAULT_wxUSE_WX_RESOURCES
=1
4932 DEFAULT_wxUSE_HELP
=1
4934 DEFAULT_wxUSE_UNICODE
=1
4935 DEFAULT_wxUSE_WCSRTOMBS
=0
4939 echo $ac_n "checking "for gtk
"""... $ac_c" 1>&6
4940 echo "configure:4941: checking "for gtk
"" >&5
4941 # Check whether --with-gtk or --without-gtk was given.
4942 if test "${with_gtk+set}" = set; then
4944 if test "x$with_gtk" = xyes
; then
4945 ac_cv_use_gtk
='wxUSE_GTK="1"'
4947 ac_cv_use_gtk
='wxUSE_GTK="0"'
4951 LINE
=`grep "wxUSE_GTK" ${OSTYPE}.system.cache`
4952 if test "x$LINE" != x
; then
4953 eval "DEFAULT_$LINE"
4955 ac_cv_use_gtk
='wxUSE_GTK='$DEFAULT_wxUSE_GTK
4959 eval "$ac_cv_use_gtk"
4960 echo $ac_cv_use_gtk >> ${OSTYPE}.system.cache.tmp
4961 if test "$wxUSE_GTK" = 1; then
4962 echo "$ac_t""yes" 1>&6
4964 echo "$ac_t""no" 1>&6
4969 echo $ac_n "checking "for qt
"""... $ac_c" 1>&6
4970 echo "configure:4971: checking "for qt
"" >&5
4971 # Check whether --with-qt or --without-qt was given.
4972 if test "${with_qt+set}" = set; then
4974 if test "x$with_qt" = xyes
; then
4975 ac_cv_use_qt
='wxUSE_QT="1"'
4977 ac_cv_use_qt
='wxUSE_QT="0"'
4981 LINE
=`grep "wxUSE_QT" ${OSTYPE}.system.cache`
4982 if test "x$LINE" != x
; then
4983 eval "DEFAULT_$LINE"
4985 ac_cv_use_qt
='wxUSE_QT='$DEFAULT_wxUSE_QT
4989 eval "$ac_cv_use_qt"
4990 echo $ac_cv_use_qt >> ${OSTYPE}.system.cache.tmp
4991 if test "$wxUSE_QT" = 1; then
4992 echo "$ac_t""yes" 1>&6
4994 echo "$ac_t""no" 1>&6
4999 echo $ac_n "checking "for motif
"""... $ac_c" 1>&6
5000 echo "configure:5001: checking "for motif
"" >&5
5001 # Check whether --with-motif or --without-motif was given.
5002 if test "${with_motif+set}" = set; then
5003 withval
="$with_motif"
5004 if test "x$with_motif" = xyes
; then
5005 ac_cv_use_motif
='wxUSE_MOTIF="1"'
5007 ac_cv_use_motif
='wxUSE_MOTIF="0"'
5011 LINE
=`grep "wxUSE_MOTIF" ${OSTYPE}.system.cache`
5012 if test "x$LINE" != x
; then
5013 eval "DEFAULT_$LINE"
5015 ac_cv_use_motif
='wxUSE_MOTIF='$DEFAULT_wxUSE_MOTIF
5019 eval "$ac_cv_use_motif"
5020 echo $ac_cv_use_motif >> ${OSTYPE}.system.cache.tmp
5021 if test "$wxUSE_MOTIF" = 1; then
5022 echo "$ac_t""yes" 1>&6
5024 echo "$ac_t""no" 1>&6
5030 echo $ac_n "checking "for shared
"""... $ac_c" 1>&6
5031 echo "configure:5032: checking "for shared
"" >&5
5032 # Check whether --with-shared or --without-shared was given.
5033 if test "${with_shared+set}" = set; then
5034 withval
="$with_shared"
5035 if test "x$with_shared" = xyes
; then
5036 ac_cv_use_shared
='wxUSE_SHARED="1"'
5038 ac_cv_use_shared
='wxUSE_SHARED="0"'
5042 LINE
=`grep "wxUSE_SHARED" ${OSTYPE}.system.cache`
5043 if test "x$LINE" != x
; then
5044 eval "DEFAULT_$LINE"
5046 ac_cv_use_shared
='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
5050 eval "$ac_cv_use_shared"
5051 echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp
5052 if test "$wxUSE_SHARED" = 1; then
5053 echo "$ac_t""yes" 1>&6
5055 echo "$ac_t""no" 1>&6
5060 echo $ac_n "checking "for optimise
"""... $ac_c" 1>&6
5061 echo "configure:5062: checking "for optimise
"" >&5
5062 # Check whether --with-optimise or --without-optimise was given.
5063 if test "${with_optimise+set}" = set; then
5064 withval
="$with_optimise"
5065 if test "x$with_optimise" = xyes
; then
5066 ac_cv_use_optimise
='wxUSE_OPTIMISE="1"'
5068 ac_cv_use_optimise
='wxUSE_OPTIMISE="0"'
5072 LINE
=`grep "wxUSE_OPTIMISE" ${OSTYPE}.system.cache`
5073 if test "x$LINE" != x
; then
5074 eval "DEFAULT_$LINE"
5076 ac_cv_use_optimise
='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
5080 eval "$ac_cv_use_optimise"
5081 echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp
5082 if test "$wxUSE_OPTIMISE" = 1; then
5083 echo "$ac_t""yes" 1>&6
5085 echo "$ac_t""no" 1>&6
5090 echo $ac_n "checking "for debug_flag
"""... $ac_c" 1>&6
5091 echo "configure:5092: checking "for debug_flag
"" >&5
5092 # Check whether --with-debug_flag or --without-debug_flag was given.
5093 if test "${with_debug_flag+set}" = set; then
5094 withval
="$with_debug_flag"
5095 if test "x$with_debug_flag" = xyes
; then
5096 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="1"'
5098 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="0"'
5102 LINE
=`grep "wxUSE_DEBUG_FLAG" ${OSTYPE}.system.cache`
5103 if test "x$LINE" != x
; then
5104 eval "DEFAULT_$LINE"
5106 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
5110 eval "$ac_cv_use_debug_flag"
5111 echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp
5112 if test "$wxUSE_DEBUG_FLAG" = 1; then
5113 echo "$ac_t""yes" 1>&6
5115 echo "$ac_t""no" 1>&6
5120 echo $ac_n "checking "for debug_info
"""... $ac_c" 1>&6
5121 echo "configure:5122: checking "for debug_info
"" >&5
5122 # Check whether --with-debug_info or --without-debug_info was given.
5123 if test "${with_debug_info+set}" = set; then
5124 withval
="$with_debug_info"
5125 if test "x$with_debug_info" = xyes
; then
5126 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="1"'
5128 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="0"'
5132 LINE
=`grep "wxUSE_DEBUG_INFO" ${OSTYPE}.system.cache`
5133 if test "x$LINE" != x
; then
5134 eval "DEFAULT_$LINE"
5136 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
5140 eval "$ac_cv_use_debug_info"
5141 echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp
5142 if test "$wxUSE_DEBUG_INFO" = 1; then
5143 echo "$ac_t""yes" 1>&6
5145 echo "$ac_t""no" 1>&6
5150 echo $ac_n "checking "for debug_gdb
"""... $ac_c" 1>&6
5151 echo "configure:5152: checking "for debug_gdb
"" >&5
5152 # Check whether --with-debug_gdb or --without-debug_gdb was given.
5153 if test "${with_debug_gdb+set}" = set; then
5154 withval
="$with_debug_gdb"
5155 if test "x$with_debug_gdb" = xyes
; then
5156 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="1"'
5158 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="0"'
5162 LINE
=`grep "wxUSE_DEBUG_GDB" ${OSTYPE}.system.cache`
5163 if test "x$LINE" != x
; then
5164 eval "DEFAULT_$LINE"
5166 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
5170 eval "$ac_cv_use_debug_gdb"
5171 echo $ac_cv_use_debug_gdb >> ${OSTYPE}.system.cache.tmp
5172 if test "$wxUSE_DEBUG_GDB" = 1; then
5173 echo "$ac_t""yes" 1>&6
5175 echo "$ac_t""no" 1>&6
5180 echo $ac_n "checking "for mem_tracing
"""... $ac_c" 1>&6
5181 echo "configure:5182: checking "for mem_tracing
"" >&5
5182 # Check whether --with-mem_tracing or --without-mem_tracing was given.
5183 if test "${with_mem_tracing+set}" = set; then
5184 withval
="$with_mem_tracing"
5185 if test "x$with_mem_tracing" = xyes
; then
5186 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="1"'
5188 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="0"'
5192 LINE
=`grep "wxUSE_MEM_TRACING" ${OSTYPE}.system.cache`
5193 if test "x$LINE" != x
; then
5194 eval "DEFAULT_$LINE"
5196 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
5200 eval "$ac_cv_use_mem_tracing"
5201 echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp
5202 if test "$wxUSE_MEM_TRACING" = 1; then
5203 echo "$ac_t""yes" 1>&6
5205 echo "$ac_t""no" 1>&6
5210 echo $ac_n "checking "for dmalloc
"""... $ac_c" 1>&6
5211 echo "configure:5212: checking "for dmalloc
"" >&5
5212 # Check whether --with-dmalloc or --without-dmalloc was given.
5213 if test "${with_dmalloc+set}" = set; then
5214 withval
="$with_dmalloc"
5215 if test "x$with_dmalloc" = xyes
; then
5216 ac_cv_use_dmalloc
='wxUSE_DMALLOC="1"'
5218 ac_cv_use_dmalloc
='wxUSE_DMALLOC="0"'
5222 LINE
=`grep "wxUSE_DMALLOC" ${OSTYPE}.system.cache`
5223 if test "x$LINE" != x
; then
5224 eval "DEFAULT_$LINE"
5226 ac_cv_use_dmalloc
='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
5230 eval "$ac_cv_use_dmalloc"
5231 echo $ac_cv_use_dmalloc >> ${OSTYPE}.system.cache.tmp
5232 if test "$wxUSE_DMALLOC" = 1; then
5233 echo "$ac_t""yes" 1>&6
5235 echo "$ac_t""no" 1>&6
5240 echo $ac_n "checking "for profile
"""... $ac_c" 1>&6
5241 echo "configure:5242: checking "for profile
"" >&5
5242 # Check whether --with-profile or --without-profile was given.
5243 if test "${with_profile+set}" = set; then
5244 withval
="$with_profile"
5245 if test "x$with_profile" = xyes
; then
5246 ac_cv_use_profile
='wxUSE_PROFILE="1"'
5248 ac_cv_use_profile
='wxUSE_PROFILE="0"'
5252 LINE
=`grep "wxUSE_PROFILE" ${OSTYPE}.system.cache`
5253 if test "x$LINE" != x
; then
5254 eval "DEFAULT_$LINE"
5256 ac_cv_use_profile
='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
5260 eval "$ac_cv_use_profile"
5261 echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp
5262 if test "$wxUSE_PROFILE" = 1; then
5263 echo "$ac_t""yes" 1>&6
5265 echo "$ac_t""no" 1>&6
5270 echo $ac_n "checking "for apple_ieee
"""... $ac_c" 1>&6
5271 echo "configure:5272: checking "for apple_ieee
"" >&5
5272 # Check whether --with-apple_ieee or --without-apple_ieee was given.
5273 if test "${with_apple_ieee+set}" = set; then
5274 withval
="$with_apple_ieee"
5275 if test "x$with_apple_ieee" = xyes
; then
5276 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="1"'
5278 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="0"'
5282 LINE
=`grep "wxUSE_APPLE_IEEE" ${OSTYPE}.system.cache`
5283 if test "x$LINE" != x
; then
5284 eval "DEFAULT_$LINE"
5286 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5290 eval "$ac_cv_use_apple_ieee"
5291 echo $ac_cv_use_apple_ieee >> ${OSTYPE}.system.cache.tmp
5292 if test "$wxUSE_APPLE_IEEE" = 1; then
5293 echo "$ac_t""yes" 1>&6
5295 echo "$ac_t""no" 1>&6
5300 echo $ac_n "checking "for threads
"""... $ac_c" 1>&6
5301 echo "configure:5302: checking "for threads
"" >&5
5302 # Check whether --with-threads or --without-threads was given.
5303 if test "${with_threads+set}" = set; then
5304 withval
="$with_threads"
5305 if test "x$with_threads" = xyes
; then
5306 ac_cv_use_threads
='wxUSE_THREADS="1"'
5308 ac_cv_use_threads
='wxUSE_THREADS="0"'
5312 LINE
=`grep "wxUSE_THREADS" ${OSTYPE}.system.cache`
5313 if test "x$LINE" != x
; then
5314 eval "DEFAULT_$LINE"
5316 ac_cv_use_threads
='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5320 eval "$ac_cv_use_threads"
5321 echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp
5322 if test "$wxUSE_THREADS" = 1; then
5323 echo "$ac_t""yes" 1>&6
5325 echo "$ac_t""no" 1>&6
5330 echo $ac_n "checking "for dynlib
"""... $ac_c" 1>&6
5331 echo "configure:5332: checking "for dynlib
"" >&5
5332 # Check whether --with-dynlib or --without-dynlib was given.
5333 if test "${with_dynlib+set}" = set; then
5334 withval
="$with_dynlib"
5335 if test "x$with_dynlib" = xyes
; then
5336 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS="1"'
5338 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS="0"'
5342 LINE
=`grep "wxUSE_DYNLIB_CLASS" ${OSTYPE}.system.cache`
5343 if test "x$LINE" != x
; then
5344 eval "DEFAULT_$LINE"
5346 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5350 eval "$ac_cv_use_dynlib"
5351 echo $ac_cv_use_dynlib >> ${OSTYPE}.system.cache.tmp
5352 if test "$wxUSE_DYNLIB_CLASS" = 1; then
5353 echo "$ac_t""yes" 1>&6
5355 echo "$ac_t""no" 1>&6
5361 echo $ac_n "checking "for zlib
"""... $ac_c" 1>&6
5362 echo "configure:5363: checking "for zlib
"" >&5
5363 # Check whether --with-zlib or --without-zlib was given.
5364 if test "${with_zlib+set}" = set; then
5365 withval
="$with_zlib"
5366 if test "x$with_zlib" = xyes
; then
5367 ac_cv_use_zlib
='wxUSE_ZLIB="1"'
5369 ac_cv_use_zlib
='wxUSE_ZLIB="0"'
5373 LINE
=`grep "wxUSE_ZLIB" ${OSTYPE}.system.cache`
5374 if test "x$LINE" != x
; then
5375 eval "DEFAULT_$LINE"
5377 ac_cv_use_zlib
='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
5381 eval "$ac_cv_use_zlib"
5382 echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp
5383 if test "$wxUSE_ZLIB" = 1; then
5384 echo "$ac_t""yes" 1>&6
5386 echo "$ac_t""no" 1>&6
5391 echo $ac_n "checking "for libpng
"""... $ac_c" 1>&6
5392 echo "configure:5393: checking "for libpng
"" >&5
5393 # Check whether --with-libpng or --without-libpng was given.
5394 if test "${with_libpng+set}" = set; then
5395 withval
="$with_libpng"
5396 if test "x$with_libpng" = xyes
; then
5397 ac_cv_use_libpng
='wxUSE_LIBPNG="1"'
5399 ac_cv_use_libpng
='wxUSE_LIBPNG="0"'
5403 LINE
=`grep "wxUSE_LIBPNG" ${OSTYPE}.system.cache`
5404 if test "x$LINE" != x
; then
5405 eval "DEFAULT_$LINE"
5407 ac_cv_use_libpng
='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
5411 eval "$ac_cv_use_libpng"
5412 echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp
5413 if test "$wxUSE_LIBPNG" = 1; then
5414 echo "$ac_t""yes" 1>&6
5416 echo "$ac_t""no" 1>&6
5421 echo $ac_n "checking "for libjpeg
"""... $ac_c" 1>&6
5422 echo "configure:5423: checking "for libjpeg
"" >&5
5423 # Check whether --with-libjpeg or --without-libjpeg was given.
5424 if test "${with_libjpeg+set}" = set; then
5425 withval
="$with_libjpeg"
5426 if test "x$with_libjpeg" = xyes
; then
5427 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="1"'
5429 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="0"'
5433 LINE
=`grep "wxUSE_LIBJPEG" ${OSTYPE}.system.cache`
5434 if test "x$LINE" != x
; then
5435 eval "DEFAULT_$LINE"
5437 ac_cv_use_libjpeg
='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
5441 eval "$ac_cv_use_libjpeg"
5442 echo $ac_cv_use_libjpeg >> ${OSTYPE}.system.cache.tmp
5443 if test "$wxUSE_LIBJPEG" = 1; then
5444 echo "$ac_t""yes" 1>&6
5446 echo "$ac_t""no" 1>&6
5451 echo $ac_n "checking "for odbc
"""... $ac_c" 1>&6
5452 echo "configure:5453: checking "for odbc
"" >&5
5453 # Check whether --with-odbc or --without-odbc was given.
5454 if test "${with_odbc+set}" = set; then
5455 withval
="$with_odbc"
5456 if test "x$with_odbc" = xyes
; then
5457 ac_cv_use_odbc
='wxUSE_ODBC="1"'
5459 ac_cv_use_odbc
='wxUSE_ODBC="0"'
5463 LINE
=`grep "wxUSE_ODBC" ${OSTYPE}.system.cache`
5464 if test "x$LINE" != x
; then
5465 eval "DEFAULT_$LINE"
5467 ac_cv_use_odbc
='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
5471 eval "$ac_cv_use_odbc"
5472 echo $ac_cv_use_odbc >> ${OSTYPE}.system.cache.tmp
5473 if test "$wxUSE_ODBC" = 1; then
5474 echo "$ac_t""yes" 1>&6
5476 echo "$ac_t""no" 1>&6
5482 echo $ac_n "checking "for timedate
"""... $ac_c" 1>&6
5483 echo "configure:5484: checking "for timedate
"" >&5
5484 # Check whether --with-timedate or --without-timedate was given.
5485 if test "${with_timedate+set}" = set; then
5486 withval
="$with_timedate"
5487 if test "x$with_timedate" = xyes
; then
5488 ac_cv_use_timedate
='wxUSE_TIMEDATE="1"'
5490 ac_cv_use_timedate
='wxUSE_TIMEDATE="0"'
5494 LINE
=`grep "wxUSE_TIMEDATE" ${OSTYPE}.system.cache`
5495 if test "x$LINE" != x
; then
5496 eval "DEFAULT_$LINE"
5498 ac_cv_use_timedate
='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
5502 eval "$ac_cv_use_timedate"
5503 echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp
5504 if test "$wxUSE_TIMEDATE" = 1; then
5505 echo "$ac_t""yes" 1>&6
5507 echo "$ac_t""no" 1>&6
5512 echo $ac_n "checking "for intl
"""... $ac_c" 1>&6
5513 echo "configure:5514: checking "for intl
"" >&5
5514 # Check whether --with-intl or --without-intl was given.
5515 if test "${with_intl+set}" = set; then
5516 withval
="$with_intl"
5517 if test "x$with_intl" = xyes
; then
5518 ac_cv_use_intl
='wxUSE_INTL="1"'
5520 ac_cv_use_intl
='wxUSE_INTL="0"'
5524 LINE
=`grep "wxUSE_INTL" ${OSTYPE}.system.cache`
5525 if test "x$LINE" != x
; then
5526 eval "DEFAULT_$LINE"
5528 ac_cv_use_intl
='wxUSE_INTL='$DEFAULT_wxUSE_INTL
5532 eval "$ac_cv_use_intl"
5533 echo $ac_cv_use_intl >> ${OSTYPE}.system.cache.tmp
5534 if test "$wxUSE_INTL" = 1; then
5535 echo "$ac_t""yes" 1>&6
5537 echo "$ac_t""no" 1>&6
5542 echo $ac_n "checking "for config
"""... $ac_c" 1>&6
5543 echo "configure:5544: checking "for config
"" >&5
5544 # Check whether --with-config or --without-config was given.
5545 if test "${with_config+set}" = set; then
5546 withval
="$with_config"
5547 if test "x$with_config" = xyes
; then
5548 ac_cv_use_config
='wxUSE_CONFIG="1"'
5550 ac_cv_use_config
='wxUSE_CONFIG="0"'
5554 LINE
=`grep "wxUSE_CONFIG" ${OSTYPE}.system.cache`
5555 if test "x$LINE" != x
; then
5556 eval "DEFAULT_$LINE"
5558 ac_cv_use_config
='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
5562 eval "$ac_cv_use_config"
5563 echo $ac_cv_use_config >> ${OSTYPE}.system.cache.tmp
5564 if test "$wxUSE_CONFIG" = 1; then
5565 echo "$ac_t""yes" 1>&6
5567 echo "$ac_t""no" 1>&6
5572 echo $ac_n "checking "for streams
"""... $ac_c" 1>&6
5573 echo "configure:5574: checking "for streams
"" >&5
5574 # Check whether --with-streams or --without-streams was given.
5575 if test "${with_streams+set}" = set; then
5576 withval
="$with_streams"
5577 if test "x$with_streams" = xyes
; then
5578 ac_cv_use_streams
='wxUSE_STREAMS="1"'
5580 ac_cv_use_streams
='wxUSE_STREAMS="0"'
5584 LINE
=`grep "wxUSE_STREAMS" ${OSTYPE}.system.cache`
5585 if test "x$LINE" != x
; then
5586 eval "DEFAULT_$LINE"
5588 ac_cv_use_streams
='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5592 eval "$ac_cv_use_streams"
5593 echo $ac_cv_use_streams >> ${OSTYPE}.system.cache.tmp
5594 if test "$wxUSE_STREAMS" = 1; then
5595 echo "$ac_t""yes" 1>&6
5597 echo "$ac_t""no" 1>&6
5602 echo $ac_n "checking "for serial
"""... $ac_c" 1>&6
5603 echo "configure:5604: checking "for serial
"" >&5
5604 # Check whether --with-serial or --without-serial was given.
5605 if test "${with_serial+set}" = set; then
5606 withval
="$with_serial"
5607 if test "x$with_serial" = xyes
; then
5608 ac_cv_use_serial
='wxUSE_SERIAL="1"'
5610 ac_cv_use_serial
='wxUSE_SERIAL="0"'
5614 LINE
=`grep "wxUSE_SERIAL" ${OSTYPE}.system.cache`
5615 if test "x$LINE" != x
; then
5616 eval "DEFAULT_$LINE"
5618 ac_cv_use_serial
='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
5622 eval "$ac_cv_use_serial"
5623 echo $ac_cv_use_serial >> ${OSTYPE}.system.cache.tmp
5624 if test "$wxUSE_SERIAL" = 1; then
5625 echo "$ac_t""yes" 1>&6
5627 echo "$ac_t""no" 1>&6
5633 echo $ac_n "checking "for afmfonts
"""... $ac_c" 1>&6
5634 echo "configure:5635: checking "for afmfonts
"" >&5
5635 # Check whether --with-afmfonts or --without-afmfonts was given.
5636 if test "${with_afmfonts+set}" = set; then
5637 withval
="$with_afmfonts"
5638 if test "x$with_afmfonts" = xyes
; then
5639 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="1"'
5641 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="0"'
5645 LINE
=`grep "wxUSE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache`
5646 if test "x$LINE" != x
; then
5647 eval "DEFAULT_$LINE"
5649 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT='$DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
5653 eval "$ac_cv_use_afmfonts"
5654 echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp
5655 if test "$wxUSE_AFM_FOR_POSTSCRIPT" = 1; then
5656 echo "$ac_t""yes" 1>&6
5658 echo "$ac_t""no" 1>&6
5663 echo $ac_n "checking "for normalized
"""... $ac_c" 1>&6
5664 echo "configure:5665: checking "for normalized
"" >&5
5665 # Check whether --with-normalized or --without-normalized was given.
5666 if test "${with_normalized+set}" = set; then
5667 withval
="$with_normalized"
5668 if test "x$with_normalized" = xyes
; then
5669 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="1"'
5671 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="0"'
5675 LINE
=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache`
5676 if test "x$LINE" != x
; then
5677 eval "DEFAULT_$LINE"
5679 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS
5683 eval "$ac_cv_use_normalized"
5684 echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp
5685 if test "$WX_NORMALIZED_PS_FONTS" = 1; then
5686 echo "$ac_t""yes" 1>&6
5688 echo "$ac_t""no" 1>&6
5693 echo $ac_n "checking "for postscript
"""... $ac_c" 1>&6
5694 echo "configure:5695: checking "for postscript
"" >&5
5695 # Check whether --with-postscript or --without-postscript was given.
5696 if test "${with_postscript+set}" = set; then
5697 withval
="$with_postscript"
5698 if test "x$with_postscript" = xyes
; then
5699 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="1"'
5701 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="0"'
5705 LINE
=`grep "wxUSE_POSTSCRIPT" ${OSTYPE}.system.cache`
5706 if test "x$LINE" != x
; then
5707 eval "DEFAULT_$LINE"
5709 ac_cv_use_postscript
='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5713 eval "$ac_cv_use_postscript"
5714 echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp
5715 if test "$wxUSE_POSTSCRIPT" = 1; then
5716 echo "$ac_t""yes" 1>&6
5718 echo "$ac_t""no" 1>&6
5724 echo $ac_n "checking "for unicode
"""... $ac_c" 1>&6
5725 echo "configure:5726: checking "for unicode
"" >&5
5726 # Check whether --with-unicode or --without-unicode was given.
5727 if test "${with_unicode+set}" = set; then
5728 withval
="$with_unicode"
5729 if test "x$with_unicode" = xyes
; then
5730 ac_cv_use_unicode
='wxUSE_UNICODE="1"'
5732 ac_cv_use_unicode
='wxUSE_UNICODE="0"'
5736 LINE
=`grep "wxUSE_UNICODE" ${OSTYPE}.system.cache`
5737 if test "x$LINE" != x
; then
5738 eval "DEFAULT_$LINE"
5740 ac_cv_use_unicode
='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5744 eval "$ac_cv_use_unicode"
5745 echo $ac_cv_use_unicode >> ${OSTYPE}.system.cache.tmp
5746 if test "$wxUSE_UNICODE" = 1; then
5747 echo "$ac_t""yes" 1>&6
5749 echo "$ac_t""no" 1>&6
5754 echo $ac_n "checking "for wcsrtombs
"""... $ac_c" 1>&6
5755 echo "configure:5756: checking "for wcsrtombs
"" >&5
5756 # Check whether --with-wcsrtombs or --without-wcsrtombs was given.
5757 if test "${with_wcsrtombs+set}" = set; then
5758 withval
="$with_wcsrtombs"
5759 if test "x$with_wcsrtombs" = xyes
; then
5760 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="1"'
5762 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="0"'
5766 LINE
=`grep "wxUSE_WCSRTOMBS" ${OSTYPE}.system.cache`
5767 if test "x$LINE" != x
; then
5768 eval "DEFAULT_$LINE"
5770 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
5774 eval "$ac_cv_use_wcsrtombs"
5775 echo $ac_cv_use_wcsrtombs >> ${OSTYPE}.system.cache.tmp
5776 if test "$wxUSE_WCSRTOMBS" = 1; then
5777 echo "$ac_t""yes" 1>&6
5779 echo "$ac_t""no" 1>&6
5785 echo $ac_n "checking "for wxresources
"""... $ac_c" 1>&6
5786 echo "configure:5787: checking "for wxresources
"" >&5
5787 # Check whether --with-wxresources or --without-wxresources was given.
5788 if test "${with_wxresources+set}" = set; then
5789 withval
="$with_wxresources"
5790 if test "x$with_wxresources" = xyes
; then
5791 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="1"'
5793 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="0"'
5797 LINE
=`grep "wxUSE_WX_RESOURCES" ${OSTYPE}.system.cache`
5798 if test "x$LINE" != x
; then
5799 eval "DEFAULT_$LINE"
5801 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES='$DEFAULT_wxUSE_WX_RESOURCES
5805 eval "$ac_cv_use_wxresources"
5806 echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp
5807 if test "$wxUSE_WX_RESOURCES" = 1; then
5808 echo "$ac_t""yes" 1>&6
5810 echo "$ac_t""no" 1>&6
5815 echo $ac_n "checking "for prologio
"""... $ac_c" 1>&6
5816 echo "configure:5817: checking "for prologio
"" >&5
5817 # Check whether --with-prologio or --without-prologio was given.
5818 if test "${with_prologio+set}" = set; then
5819 withval
="$with_prologio"
5820 if test "x$with_prologio" = xyes
; then
5821 ac_cv_use_prologio
='wxUSE_PROLOGIO="1"'
5823 ac_cv_use_prologio
='wxUSE_PROLOGIO="0"'
5827 LINE
=`grep "wxUSE_PROLOGIO" ${OSTYPE}.system.cache`
5828 if test "x$LINE" != x
; then
5829 eval "DEFAULT_$LINE"
5831 ac_cv_use_prologio
='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5835 eval "$ac_cv_use_prologio"
5836 echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp
5837 if test "$wxUSE_PROLOGIO" = 1; then
5838 echo "$ac_t""yes" 1>&6
5840 echo "$ac_t""no" 1>&6
5845 echo $ac_n "checking "for RPC
"""... $ac_c" 1>&6
5846 echo "configure:5847: checking "for RPC
"" >&5
5847 # Check whether --with-rpc or --without-rpc was given.
5848 if test "${with_rpc+set}" = set; then
5850 if test "x$with_rpc" = xyes
; then
5851 ac_cv_use_rpc
='wxUSE_RPC="1"'
5853 ac_cv_use_rpc
='wxUSE_RPC="0"'
5857 LINE
=`grep "wxUSE_RPC" ${OSTYPE}.system.cache`
5858 if test "x$LINE" != x
; then
5859 eval "DEFAULT_$LINE"
5861 ac_cv_use_rpc
='wxUSE_RPC='$DEFAULT_wxUSE_RPC
5865 eval "$ac_cv_use_rpc"
5866 echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp
5867 if test "$wxUSE_RPC" = 1; then
5868 echo "$ac_t""yes" 1>&6
5870 echo "$ac_t""no" 1>&6
5876 echo $ac_n "checking "for IPC
"""... $ac_c" 1>&6
5877 echo "configure:5878: checking "for IPC
"" >&5
5878 # Check whether --with-ipc or --without-ipc was given.
5879 if test "${with_ipc+set}" = set; then
5881 if test "x$with_ipc" = xyes
; then
5882 ac_cv_use_ipc
='wxUSE_IPC="1"'
5884 ac_cv_use_ipc
='wxUSE_IPC="0"'
5888 LINE
=`grep "wxUSE_IPC" ${OSTYPE}.system.cache`
5889 if test "x$LINE" != x
; then
5890 eval "DEFAULT_$LINE"
5892 ac_cv_use_ipc
='wxUSE_IPC='$DEFAULT_wxUSE_IPC
5896 eval "$ac_cv_use_ipc"
5897 echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp
5898 if test "$wxUSE_IPC" = 1; then
5899 echo "$ac_t""yes" 1>&6
5901 echo "$ac_t""no" 1>&6
5906 echo $ac_n "checking "for resources
"""... $ac_c" 1>&6
5907 echo "configure:5908: checking "for resources
"" >&5
5908 # Check whether --with-resources or --without-resources was given.
5909 if test "${with_resources+set}" = set; then
5910 withval
="$with_resources"
5911 if test "x$with_resources" = xyes
; then
5912 ac_cv_use_resources
='wxUSE_RESOURCES="1"'
5914 ac_cv_use_resources
='wxUSE_RESOURCES="0"'
5918 LINE
=`grep "wxUSE_RESOURCES" ${OSTYPE}.system.cache`
5919 if test "x$LINE" != x
; then
5920 eval "DEFAULT_$LINE"
5922 ac_cv_use_resources
='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5926 eval "$ac_cv_use_resources"
5927 echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp
5928 if test "$wxUSE_RESOURCES" = 1; then
5929 echo "$ac_t""yes" 1>&6
5931 echo "$ac_t""no" 1>&6
5936 echo $ac_n "checking "for clipboard
"""... $ac_c" 1>&6
5937 echo "configure:5938: checking "for clipboard
"" >&5
5938 # Check whether --with-clipboard or --without-clipboard was given.
5939 if test "${with_clipboard+set}" = set; then
5940 withval
="$with_clipboard"
5941 if test "x$with_clipboard" = xyes
; then
5942 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="1"'
5944 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="0"'
5948 LINE
=`grep "wxUSE_CLIPBOARD" ${OSTYPE}.system.cache`
5949 if test "x$LINE" != x
; then
5950 eval "DEFAULT_$LINE"
5952 ac_cv_use_clipboard
='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5956 eval "$ac_cv_use_clipboard"
5957 echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp
5958 if test "$wxUSE_CLIPBOARD" = 1; then
5959 echo "$ac_t""yes" 1>&6
5961 echo "$ac_t""no" 1>&6
5966 echo $ac_n "checking "for tooltips
"""... $ac_c" 1>&6
5967 echo "configure:5968: checking "for tooltips
"" >&5
5968 # Check whether --with-tooltips or --without-tooltips was given.
5969 if test "${with_tooltips+set}" = set; then
5970 withval
="$with_tooltips"
5971 if test "x$with_tooltips" = xyes
; then
5972 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="1"'
5974 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="0"'
5978 LINE
=`grep "wxUSE_TOOLTIPS" ${OSTYPE}.system.cache`
5979 if test "x$LINE" != x
; then
5980 eval "DEFAULT_$LINE"
5982 ac_cv_use_tooltips
='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5986 eval "$ac_cv_use_tooltips"
5987 echo $ac_cv_use_tooltips >> ${OSTYPE}.system.cache.tmp
5988 if test "$wxUSE_TOOLTIPS" = 1; then
5989 echo "$ac_t""yes" 1>&6
5991 echo "$ac_t""no" 1>&6
5996 echo $ac_n "checking "for dnd
"""... $ac_c" 1>&6
5997 echo "configure:5998: checking "for dnd
"" >&5
5998 # Check whether --with-dnd or --without-dnd was given.
5999 if test "${with_dnd+set}" = set; then
6001 if test "x$with_dnd" = xyes
; then
6002 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="1"'
6004 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="0"'
6008 LINE
=`grep "wxUSE_DRAG_AND_DROP" ${OSTYPE}.system.cache`
6009 if test "x$LINE" != x
; then
6010 eval "DEFAULT_$LINE"
6012 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6016 eval "$ac_cv_use_dnd"
6017 echo $ac_cv_use_dnd >> ${OSTYPE}.system.cache.tmp
6018 if test "$wxUSE_DRAG_AND_DROP" = 1; then
6019 echo "$ac_t""yes" 1>&6
6021 echo "$ac_t""no" 1>&6
6027 echo $ac_n "checking "for mdi
"""... $ac_c" 1>&6
6028 echo "configure:6029: checking "for mdi
"" >&5
6029 # Check whether --with-mdi or --without-mdi was given.
6030 if test "${with_mdi+set}" = set; then
6032 if test "x$with_mdi" = xyes
; then
6033 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="1"'
6035 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="0"'
6039 LINE
=`grep "wxUSE_MDI_ARCHITECTURE" ${OSTYPE}.system.cache`
6040 if test "x$LINE" != x
; then
6041 eval "DEFAULT_$LINE"
6043 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6047 eval "$ac_cv_use_mdi"
6048 echo $ac_cv_use_mdi >> ${OSTYPE}.system.cache.tmp
6049 if test "$wxUSE_MDI_ARCHITECTURE" = 1; then
6050 echo "$ac_t""yes" 1>&6
6052 echo "$ac_t""no" 1>&6
6057 echo $ac_n "checking "for docview
"""... $ac_c" 1>&6
6058 echo "configure:6059: checking "for docview
"" >&5
6059 # Check whether --with-docview or --without-docview was given.
6060 if test "${with_docview+set}" = set; then
6061 withval
="$with_docview"
6062 if test "x$with_docview" = xyes
; then
6063 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="1"'
6065 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="0"'
6069 LINE
=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache`
6070 if test "x$LINE" != x
; then
6071 eval "DEFAULT_$LINE"
6073 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6077 eval "$ac_cv_use_docview"
6078 echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp
6079 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1; then
6080 echo "$ac_t""yes" 1>&6
6082 echo "$ac_t""no" 1>&6
6087 echo $ac_n "checking "for printarch
"""... $ac_c" 1>&6
6088 echo "configure:6089: checking "for printarch
"" >&5
6089 # Check whether --with-printarch or --without-printarch was given.
6090 if test "${with_printarch+set}" = set; then
6091 withval
="$with_printarch"
6092 if test "x$with_printarch" = xyes
; then
6093 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="1"'
6095 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="0"'
6099 LINE
=`grep "wxUSE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache`
6100 if test "x$LINE" != x
; then
6101 eval "DEFAULT_$LINE"
6103 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6107 eval "$ac_cv_use_printarch"
6108 echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp
6109 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1; then
6110 echo "$ac_t""yes" 1>&6
6112 echo "$ac_t""no" 1>&6
6117 echo $ac_n "checking "for help"""... $ac_c" 1>&6
6118 echo "configure:6119: checking "for help"" >&5
6119 # Check whether --with-help or --without-help was given.
6120 if test "${with_help+set}" = set; then
6121 withval
="$with_help"
6122 if test "x$with_help" = xyes
; then
6123 ac_cv_use_help
='wxUSE_HELP="1"'
6125 ac_cv_use_help
='wxUSE_HELP="0"'
6129 LINE
=`grep "wxUSE_HELP" ${OSTYPE}.system.cache`
6130 if test "x$LINE" != x
; then
6131 eval "DEFAULT_$LINE"
6133 ac_cv_use_help
='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6137 eval "$ac_cv_use_help"
6138 echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp
6139 if test "$wxUSE_HELP" = 1; then
6140 echo "$ac_t""yes" 1>&6
6142 echo "$ac_t""no" 1>&6
6147 if test "$wxUSE_UNIX" = 1 ; then
6148 cat >> confdefs.h
<<\EOF
6154 if test "$USE_LINUX" = 1; then
6155 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
6156 echo "configure:6157: checking for gettext in -lc" >&5
6157 ac_lib_var
=`echo c'_'gettext | sed 'y%./+-%__p_%'`
6158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6159 echo $ac_n "(cached) $ac_c" 1>&6
6161 ac_save_LIBS
="$LIBS"
6163 cat > conftest.
$ac_ext <<EOF
6164 #line 6165 "configure"
6165 #include "confdefs.h"
6166 /* Override any gcc2 internal prototype to avoid an error. */
6167 /* We use char because int might match the return type of a gcc2
6168 builtin and then its argument prototype would still apply. */
6175 if { (eval echo configure
:6176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6177 eval "ac_cv_lib_$ac_lib_var=yes"
6179 echo "configure: failed program was:" >&5
6180 cat conftest.
$ac_ext >&5
6182 eval "ac_cv_lib_$ac_lib_var=no"
6185 LIBS
="$ac_save_LIBS"
6188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6189 echo "$ac_t""yes" 1>&6
6190 cat >> confdefs.h
<<\EOF
6191 #define wxHAVE_GLIBC2 1
6195 echo "$ac_t""no" 1>&6
6212 if test "$wxUSE_GTK" = 1; then
6213 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6214 if test "${with_gtk_prefix+set}" = set; then
6215 withval
="$with_gtk_prefix"
6216 gtk_config_prefix
="$withval"
6218 gtk_config_prefix
=""
6221 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
6222 if test "${with_gtk_exec_prefix+set}" = set; then
6223 withval
="$with_gtk_exec_prefix"
6224 gtk_config_exec_prefix
="$withval"
6226 gtk_config_exec_prefix
=""
6230 if test x
$gtk_config_exec_prefix != x
; then
6231 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6232 if test x
${GTK_CONFIG+set} != xset
; then
6233 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
6236 if test x
$gtk_config_prefix != x
; then
6237 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
6238 if test x
${GTK_CONFIG+set} != xset
; then
6239 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
6243 # Extract the first word of "gtk-config", so it can be a program name with args.
6244 set dummy gtk
-config; ac_word
=$2
6245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6246 echo "configure:6247: checking for $ac_word" >&5
6247 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6248 echo $ac_n "(cached) $ac_c" 1>&6
6250 case "$GTK_CONFIG" in
6252 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
6255 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6256 for ac_dir
in $PATH; do
6257 test -z "$ac_dir" && ac_dir
=.
6258 if test -f $ac_dir/$ac_word; then
6259 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
6264 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
6268 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
6269 if test -n "$GTK_CONFIG"; then
6270 echo "$ac_t""$GTK_CONFIG" 1>&6
6272 echo "$ac_t""no" 1>&6
6275 min_gtk_version
=1.0.4
6276 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6277 echo "configure:6278: checking for GTK - version >= $min_gtk_version" >&5
6279 if test "$GTK_CONFIG" != "no" ; then
6280 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
6281 GTK_LIBS
=`$GTK_CONFIG --libs`
6282 ac_save_CFLAGS
="$CFLAGS"
6283 ac_save_LIBS
="$LIBS"
6284 CFLAGS
="$CFLAGS $GTK_CFLAGS"
6285 LIBS
="$LIBS $GTK_LIBS"
6286 if test "$cross_compiling" = yes; then
6287 echo $ac_n "cross compiling; assumed OK... $ac_c"
6289 cat > conftest.
$ac_ext <<EOF
6290 #line 6291 "configure"
6291 #include "confdefs.h"
6293 #include <gtk/gtk.h>
6299 int major, minor, micro;
6301 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
6302 printf("%s, bad version string\n", "$min_gtk_version");
6306 if (gtk_minor_version > 0) return FALSE;
6308 return !((gtk_major_version > major) ||
6309 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6310 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6314 if { (eval echo configure
:6315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6318 echo "configure: failed program was:" >&5
6319 cat conftest.
$ac_ext >&5
6326 CFLAGS
="$ac_save_CFLAGS"
6327 LIBS
="$ac_save_LIBS"
6331 if test "x$no_gtk" = x
; then
6332 echo "$ac_t""yes" 1>&6
6334 GUI_TK_INCLUDE
="$GTK_CFLAGS"
6335 GUI_TK_LIBRARY
="$GTK_LIBS"
6338 echo "$ac_t""no" 1>&6
6341 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.0.4 up-to 1.0.6?" 1>&2; exit 1; }
6347 TOOLKIT_DEF
=__WXGTK__
6349 MAKEINCLUDE
=..
/gtk.inc
6352 if test "$wxUSE_QT" = 1; then
6353 echo $ac_n "checking for Qt includes""... $ac_c" 1>&6
6354 echo "configure:6355: checking for Qt includes" >&5
6357 for ac_dir
in $SEARCH_INCLUDE;
6359 if test -f "$ac_dir/qapp.h"; then
6360 ac_find_includes
=$ac_dir
6365 if test "$ac_find_includes" != "" ; then
6366 echo "$ac_t""found $ac_find_includes" 1>&6
6367 echo $ac_n "checking for Qt library""... $ac_c" 1>&6
6368 echo "configure:6369: checking for Qt library" >&5
6371 for ac_dir
in $SEARCH_LIB;
6373 for ac_extension
in a so sl
; do
6374 if test -f "$ac_dir/libqt.$ac_extension"; then
6375 ac_find_libraries
=$ac_dir
6381 if test "$ac_find_libraries" != "" ; then
6383 ac_path_to_include
=$ac_find_includes
6384 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
6386 if test $result = 0; then
6387 ac_path_to_include
=""
6389 ac_path_to_include
="-I$ac_find_includes"
6393 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6395 if test $result = 0; then
6398 ac_path_to_link
="-L$ac_find_libraries"
6401 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
6402 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
6403 echo "$ac_t""found Qt at $ac_find_libraries" 1>&6
6405 { echo "configure: error: no" 1>&2; exit 1; }
6408 { echo "configure: error: no" 1>&2; exit 1; }
6410 GUI_TK_LINK
="-lX11 -lqt -lm"
6412 TOOLKIT_DEF
=__WXQT__
6414 MAKEINCLUDE
=..
/qt.inc
6417 if test "$wxUSE_MOTIF" = 1; then
6418 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
6419 echo "configure:6420: checking for Motif/Lesstif includes" >&5
6422 for ac_dir
in $SEARCH_INCLUDE;
6424 if test -f "$ac_dir/Xm/Xm.h"; then
6425 ac_find_includes
=$ac_dir
6430 if test "$ac_find_includes" != "" ; then
6431 echo "$ac_t""found $ac_find_includes" 1>&6
6432 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
6433 echo "configure:6434: checking for Motif/Lesstif library" >&5
6436 for ac_dir
in $SEARCH_LIB;
6438 for ac_extension
in a so sl
; do
6439 if test -f "$ac_dir/libXm.$ac_extension"; then
6440 ac_find_libraries
=$ac_dir
6446 if test "$ac_find_libraries" != "" ; then
6448 ac_path_to_include
=$ac_find_includes
6449 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
6451 if test $result = 0; then
6452 ac_path_to_include
=""
6454 ac_path_to_include
="-I$ac_find_includes"
6458 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6460 if test $result = 0; then
6463 ac_path_to_link
="-L$ac_find_libraries"
6466 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
6467 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
6468 echo "$ac_t""found at $ac_find_libraries" 1>&6
6469 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
6470 echo "configure:6471: checking for Xt library" >&5
6473 for ac_dir
in $SEARCH_LIB;
6475 for ac_extension
in a so sl
; do
6476 if test -f "$ac_dir/libXt.$ac_extension"; then
6477 ac_find_libraries
=$ac_dir
6483 if test "$ac_find_libraries" != "" ; then
6485 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6487 if test $result = 0; then
6490 ac_path_to_link
="-L$ac_find_libraries"
6493 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
6494 echo "$ac_t""found at $ac_find_libraries" 1>&6
6495 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6496 echo "configure:6497: checking for Xpm library" >&5
6499 for ac_dir
in $SEARCH_LIB;
6501 for ac_extension
in a so sl
; do
6502 if test -f "$ac_dir/libXpm.$ac_extension"; then
6503 ac_find_libraries
=$ac_dir
6509 if test "$ac_find_libraries" != "" ; then
6511 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6513 if test $result = 0; then
6516 ac_path_to_link
="-L$ac_find_libraries"
6519 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
6520 echo "$ac_t""found at $ac_find_libraries" 1>&6
6522 { echo "configure: error: no" 1>&2; exit 1; }
6525 { echo "configure: error: no" 1>&2; exit 1; }
6528 { echo "configure: error: no" 1>&2; exit 1; }
6531 { echo "configure: error: no" 1>&2; exit 1; }
6534 GUI_TK_LINK
="-lXm -lXpm -lXmu -lXt -lX11 -lm"
6535 GUI_TK_LIBRARY
="$CHECK_LIB $GUI_TK_LINK"
6537 TOOLKIT_DEF
="__WXMOTIF__ -D__LINUX__ -D__UNIX__"
6539 MAKEINCLUDE
=..
/motif.inc
6542 if test "$TOOLKIT" = ""; then
6543 { echo "configure: error: You must specify a toolkit: --with-gtk --with-qt --with-motif" 1>&2; exit 1; }
6561 if test "$wxUSE_DEBUG_GDB" = 1 ; then
6566 if test "$wxUSE_DEBUG_INFO" = 1 ; then
6570 EXTRA_LINK
="-s $EXTRA_LINK"
6575 if test "$wxUSE_DEBUG_FLAG" = 1 ; then
6576 cat >> confdefs.h
<<EOF
6577 #define WXDEBUG $wxUSE_DEBUG_FLAG
6580 WXDEBUG_DEFINE
="-D__WXDEBUG__"
6583 WXDEBUG_DEFINE
="-DGTK_NO_CHECK_CASTS"
6587 if test "$wxUSE_MEM_TRACING" = 1 ; then
6588 cat >> confdefs.h
<<EOF
6589 #define wxUSE_MEMORY_TRACING $wxUSE_MEM_TRACING
6592 cat >> confdefs.h
<<EOF
6593 #define wxUSE_GLOBAL_MEMORY_OPERATORS $wxUSE_MEM_TRACING
6598 if test "$wxUSE_DMALLOC" = 1 ; then
6599 EXTRA_LINK
="$EXTRA_LINK -ldmalloc"
6604 if test "$wxUSE_PROFILE" = 1 ; then
6609 CXXFLAGS
=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
6610 CFLAGS
=`echo "${CFLAGS}" | sed "s/\-O.//g" `
6611 if test "$wxUSE_OPTIMISE" = 0 ; then
6614 if test "$GCC" = yes ; then
6616 case "${canonical}" in
6618 OPTIMISE
="${OPTIMISE} "
6628 if test "$wxUSE_APPLE_IEEE" = 1 ; then
6629 APPLE_IEEE
="APPLE_IEEE"
6630 cat >> confdefs.h
<<EOF
6631 #define wxUSE_APPLE_IEEE $wxUSE_APPLE_IEEE
6636 wxUSE_IOSTREAMH
=$DEFAULT_wxUSE_IOSTREAMH
6637 cat >> confdefs.h
<<EOF
6638 #define wxUSE_IOSTREAMH $wxUSE_IOSTREAMH
6643 if test "$wxUSE_ZLIB" = 1 ; then
6644 cat >> confdefs.h
<<EOF
6645 #define wxUSE_ZLIB $wxUSE_ZLIB
6648 Z_C_SRC
="\$(Z_C_SRC)"
6652 if test "$wxUSE_LIBPNG" = 1 ; then
6653 cat >> confdefs.h
<<EOF
6654 #define wxUSE_LIBPNG $wxUSE_LIBPNG
6657 PNG_C_SRC
="\$(PNG_C_SRC)"
6662 if test "$wxUSE_LIBJPEG" = 1 ; then
6663 cat >> confdefs.h
<<EOF
6664 #define wxUSE_LIBJPEG $wxUSE_LIBJPEG
6667 echo $ac_n "checking for in -ljpeg""... $ac_c" 1>&6
6668 echo "configure:6669: checking for in -ljpeg" >&5
6669 ac_lib_var
=`echo jpeg'_' | sed 'y%./+-%__p_%'`
6670 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6671 echo $ac_n "(cached) $ac_c" 1>&6
6673 ac_save_LIBS
="$LIBS"
6675 cat > conftest.
$ac_ext <<EOF
6676 #line 6677 "configure"
6677 #include "confdefs.h"
6678 /* Override any gcc2 internal prototype to avoid an error. */
6679 /* We use char because int might match the return type of a gcc2
6680 builtin and then its argument prototype would still apply. */
6687 if { (eval echo configure
:6688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6689 eval "ac_cv_lib_$ac_lib_var=yes"
6691 echo "configure: failed program was:" >&5
6692 cat conftest.
$ac_ext >&5
6694 eval "ac_cv_lib_$ac_lib_var=no"
6697 LIBS
="$ac_save_LIBS"
6700 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6701 echo "$ac_t""yes" 1>&6
6702 ac_tr_lib
=HAVE_LIB
`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6703 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6704 cat >> confdefs.h
<<EOF
6705 #define $ac_tr_lib 1
6711 echo "$ac_t""no" 1>&6
6719 if test "$wxUSE_ODBC" = 1 ; then
6720 cat >> confdefs.h
<<EOF
6721 #define wxUSE_ODBC $wxUSE_ODBC
6724 IODBC_C_SRC
="\$(IODBC_C_SRC)"
6729 if test "$wxUSE_CONFIG" = 1 ; then
6730 cat >> confdefs.h
<<EOF
6731 #define wxUSE_CONFIG $wxUSE_CONFIG
6736 if test "$wxUSE_TIMEDATE" = 1 ; then
6737 cat >> confdefs.h
<<EOF
6738 #define wxUSE_TIMEDATE $wxUSE_TIMEDATE
6743 if test "$wxUSE_INTL" = 1 ; then
6744 cat >> confdefs.h
<<EOF
6745 #define wxUSE_INTL $wxUSE_INTL
6750 if test "$wxUSE_STREAMS" = 1 ; then
6751 cat >> confdefs.h
<<EOF
6752 #define wxUSE_STREAMS $wxUSE_STREAMS
6757 if test "$wxUSE_SERIAL" = 1 ; then
6758 cat >> confdefs.h
<<EOF
6759 #define wxUSE_SERIAL $wxUSE_SERIAL
6766 if test "$wxUSE_DYNLIB_CLASS" = "1"; then
6767 for ac_func
in dlopen
6769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6770 echo "configure:6771: checking for $ac_func" >&5
6771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6774 cat > conftest.
$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6777 /* System header to define __stub macros and hopefully few prototypes,
6778 which can conflict with char $ac_func(); below. */
6780 /* Override any gcc2 internal prototype to avoid an error. */
6781 /* We use char because int might match the return type of a gcc2
6782 builtin and then its argument prototype would still apply. */
6787 /* The GNU C library defines this for functions which it implements
6788 to always fail with ENOSYS. Some functions are actually named
6789 something starting with __ and the normal name is an alias. */
6790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6798 if { (eval echo configure
:6799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6800 eval "ac_cv_func_$ac_func=yes"
6802 echo "configure: failed program was:" >&5
6803 cat conftest.
$ac_ext >&5
6805 eval "ac_cv_func_$ac_func=no"
6810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6811 echo "$ac_t""yes" 1>&6
6812 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6813 cat >> confdefs.h
<<EOF
6814 #define $ac_tr_func 1
6816 cat >> confdefs.h
<<\EOF
6817 #define HAVE_DLOPEN 1
6821 echo "$ac_t""no" 1>&6
6822 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6823 echo "configure:6824: checking for dlopen in -ldl" >&5
6824 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
6825 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6826 echo $ac_n "(cached) $ac_c" 1>&6
6828 ac_save_LIBS
="$LIBS"
6830 cat > conftest.
$ac_ext <<EOF
6831 #line 6832 "configure"
6832 #include "confdefs.h"
6833 /* Override any gcc2 internal prototype to avoid an error. */
6834 /* We use char because int might match the return type of a gcc2
6835 builtin and then its argument prototype would still apply. */
6842 if { (eval echo configure
:6843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6844 eval "ac_cv_lib_$ac_lib_var=yes"
6846 echo "configure: failed program was:" >&5
6847 cat conftest.
$ac_ext >&5
6849 eval "ac_cv_lib_$ac_lib_var=no"
6852 LIBS
="$ac_save_LIBS"
6855 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6856 echo "$ac_t""yes" 1>&6
6857 cat >> confdefs.h
<<\EOF
6858 #define HAVE_DLOPEN 1
6862 echo "$ac_t""no" 1>&6
6868 for ac_func
in shl_load
6870 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6871 echo "configure:6872: checking for $ac_func" >&5
6872 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6873 echo $ac_n "(cached) $ac_c" 1>&6
6875 cat > conftest.
$ac_ext <<EOF
6876 #line 6877 "configure"
6877 #include "confdefs.h"
6878 /* System header to define __stub macros and hopefully few prototypes,
6879 which can conflict with char $ac_func(); below. */
6881 /* Override any gcc2 internal prototype to avoid an error. */
6882 /* We use char because int might match the return type of a gcc2
6883 builtin and then its argument prototype would still apply. */
6888 /* The GNU C library defines this for functions which it implements
6889 to always fail with ENOSYS. Some functions are actually named
6890 something starting with __ and the normal name is an alias. */
6891 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6899 if { (eval echo configure
:6900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6901 eval "ac_cv_func_$ac_func=yes"
6903 echo "configure: failed program was:" >&5
6904 cat conftest.
$ac_ext >&5
6906 eval "ac_cv_func_$ac_func=no"
6911 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6912 echo "$ac_t""yes" 1>&6
6913 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6914 cat >> confdefs.h
<<EOF
6915 #define $ac_tr_func 1
6917 cat >> confdefs.h
<<\EOF
6918 #define HAVE_SHL_LOAD 1
6922 echo "$ac_t""no" 1>&6
6927 if test "$HAVE_DL_FUNCS" = 0; then
6928 echo "configure: warning: "--with-dynlib will be disabled because no
function was found to load a shared library on this platform
"" 1>&2
6930 wxUSE_DYNLIB_CLASS
=0
6934 if test "$wxUSE_DYNLIB_CLASS" = 1 ; then
6935 cat >> confdefs.h
<<EOF
6936 #define wxUSE_DYNLIB_CLASS $wxUSE_DYNLIB_CLASS
6942 if test "$wxUSE_RPC" = 1 ; then
6943 cat >> confdefs.h
<<EOF
6944 #define wxUSE_RPC $wxUSE_RPC
6949 if test "$wxUSE_WX_RESOURCES" = 1 ; then
6950 cat >> confdefs.h
<<EOF
6951 #define wxUSE_WX_RESOURCES $wxUSE_WX_RESOURCES
6956 if test "$wxUSE_PROLOGIO" = 1 ; then
6957 cat >> confdefs.h
<<EOF
6958 #define wxUSE_PROLOGIO 1
6964 if test "$wxUSE_POSTSCRIPT" = 1 ; then
6965 cat >> confdefs.h
<<EOF
6966 #define wxUSE_POSTSCRIPT 1
6971 cat >> confdefs.h
<<EOF
6972 #define wxUSE_AFM_FOR_POSTSCRIPT $wxUSE_AFM_FOR_POSTSCRIPT
6976 cat >> confdefs.h
<<EOF
6977 #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS
6982 if test "$wxUSE_MDI_ARCHITECTURE" = 1 ; then
6983 cat >> confdefs.h
<<EOF
6984 #define wxUSE_MDI_ARCHITECTURE $wxUSE_MDI_ARCHITECTURE
6989 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1 ; then
6990 cat >> confdefs.h
<<EOF
6991 #define wxUSE_DOC_VIEW_ARCHITECTURE $wxUSE_DOC_VIEW_ARCHITECTURE
6996 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1 ; then
6997 cat >> confdefs.h
<<EOF
6998 #define wxUSE_PRINTING_ARCHITECTURE $wxUSE_PRINTING_ARCHITECTURE
7004 if test "$wxUSE_UNICODE" = 1 ; then
7005 cat >> confdefs.h
<<EOF
7006 #define wxUSE_UNICODE 1
7011 if test "$wxUSE_WCSRTOMBS" = 1 ; then
7012 cat >> confdefs.h
<<EOF
7013 #define wxUSE_WCSRTOMBS 1
7019 if test "$wxUSE_IPC" = 1 ; then
7020 cat >> confdefs.h
<<EOF
7026 if test "$wxUSE_RESOURCES" = 1 ; then
7027 cat >> confdefs.h
<<EOF
7028 #define wxUSE_RESOURCES $wxUSE_RESOURCES
7033 if test "$wxUSE_CLIPBOARD" = 1 ; then
7034 cat >> confdefs.h
<<EOF
7035 #define wxUSE_CLIPBOARD $wxUSE_CLIPBOARD
7040 if test "$wxUSE_TOOLTIPS" = 1 ; then
7041 cat >> confdefs.h
<<EOF
7042 #define wxUSE_TOOLTIPS $wxUSE_TOOLTIPS
7047 if test "$wxUSE_DRAG_AND_DROP" = 1 ; then
7048 cat >> confdefs.h
<<EOF
7049 #define wxUSE_DRAG_AND_DROP $wxUSE_DRAG_AND_DROP
7056 if test "$wxUSE_HELP" = 1 ; then
7058 cat >> confdefs.h
<<EOF
7059 #define wxUSE_HELP $wxUSE_HELP
7069 if test "$wxUSE_THREADS" = "1"; then
7072 echo $ac_n "checking for pthread_create in -lpthread-0.7""... $ac_c" 1>&6
7073 echo "configure:7074: checking for pthread_create in -lpthread-0.7" >&5
7074 ac_lib_var
=`echo pthread-0.7'_'pthread_create | sed 'y%./+-%__p_%'`
7075 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7076 echo $ac_n "(cached) $ac_c" 1>&6
7078 ac_save_LIBS
="$LIBS"
7079 LIBS
="-lpthread-0.7 $LIBS"
7080 cat > conftest.
$ac_ext <<EOF
7081 #line 7082 "configure"
7082 #include "confdefs.h"
7083 /* Override any gcc2 internal prototype to avoid an error. */
7084 /* We use char because int might match the return type of a gcc2
7085 builtin and then its argument prototype would still apply. */
7086 char pthread_create();
7092 if { (eval echo configure
:7093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7094 eval "ac_cv_lib_$ac_lib_var=yes"
7096 echo "configure: failed program was:" >&5
7097 cat conftest.
$ac_ext >&5
7099 eval "ac_cv_lib_$ac_lib_var=no"
7102 LIBS
="$ac_save_LIBS"
7105 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7106 echo "$ac_t""yes" 1>&6
7108 UNIX_THREAD
="gtk/threadpsx.cpp"
7109 THREADS_LINK
="-lpthread-0.7"
7112 echo "$ac_t""no" 1>&6
7114 ac_safe
=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
7115 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
7116 echo "configure:7117: checking for sys/prctl.h" >&5
7117 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7118 echo $ac_n "(cached) $ac_c" 1>&6
7120 cat > conftest.
$ac_ext <<EOF
7121 #line 7122 "configure"
7122 #include "confdefs.h"
7123 #include <sys/prctl.h>
7125 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7126 { (eval echo configure
:7127: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7127 ac_err
=`grep -v '^ *+' conftest.out`
7128 if test -z "$ac_err"; then
7130 eval "ac_cv_header_$ac_safe=yes"
7133 echo "configure: failed program was:" >&5
7134 cat conftest.
$ac_ext >&5
7136 eval "ac_cv_header_$ac_safe=no"
7140 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7141 echo "$ac_t""yes" 1>&6
7143 UNIX_THREAD
="gtk/threadsgi.cpp"
7146 echo "$ac_t""no" 1>&6
7151 echo $ac_n "checking for pthread_setcanceltype in -lpthread""... $ac_c" 1>&6
7152 echo "configure:7153: checking for pthread_setcanceltype in -lpthread" >&5
7153 ac_lib_var
=`echo pthread'_'pthread_setcanceltype | sed 'y%./+-%__p_%'`
7154 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7155 echo $ac_n "(cached) $ac_c" 1>&6
7157 ac_save_LIBS
="$LIBS"
7158 LIBS
="-lpthread $LIBS"
7159 cat > conftest.
$ac_ext <<EOF
7160 #line 7161 "configure"
7161 #include "confdefs.h"
7162 /* Override any gcc2 internal prototype to avoid an error. */
7163 /* We use char because int might match the return type of a gcc2
7164 builtin and then its argument prototype would still apply. */
7165 char pthread_setcanceltype();
7168 pthread_setcanceltype()
7171 if { (eval echo configure
:7172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7173 eval "ac_cv_lib_$ac_lib_var=yes"
7175 echo "configure: failed program was:" >&5
7176 cat conftest.
$ac_ext >&5
7178 eval "ac_cv_lib_$ac_lib_var=no"
7181 LIBS
="$ac_save_LIBS"
7184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7185 echo "$ac_t""yes" 1>&6
7187 UNIX_THREAD
="gtk/threadpsx.cpp"
7188 THREADS_LINK
="-lpthread"
7191 echo "$ac_t""no" 1>&6
7198 if test "$THREADS_LINK" != ""; then
7199 cat >> confdefs.h
<<\EOF
7200 #define wxUSE_THREADS 1
7206 echo $ac_n "checking for printf in -lposix4""... $ac_c" 1>&6
7207 echo "configure:7208: checking for printf in -lposix4" >&5
7208 ac_lib_var
=`echo posix4'_'printf | sed 'y%./+-%__p_%'`
7209 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7210 echo $ac_n "(cached) $ac_c" 1>&6
7212 ac_save_LIBS
="$LIBS"
7213 LIBS
="-lposix4 $LIBS"
7214 cat > conftest.
$ac_ext <<EOF
7215 #line 7216 "configure"
7216 #include "confdefs.h"
7217 /* Override any gcc2 internal prototype to avoid an error. */
7218 /* We use char because int might match the return type of a gcc2
7219 builtin and then its argument prototype would still apply. */
7226 if { (eval echo configure
:7227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7228 eval "ac_cv_lib_$ac_lib_var=yes"
7230 echo "configure: failed program was:" >&5
7231 cat conftest.
$ac_ext >&5
7233 eval "ac_cv_lib_$ac_lib_var=no"
7236 LIBS
="$ac_save_LIBS"
7239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7240 echo "$ac_t""yes" 1>&6
7242 THREADS_LINK
="$THREADS_LINK -lposix4"
7245 echo "$ac_t""no" 1>&6
7251 if test "$wxUSE_MOTIF" = "1"; then
7252 UNIX_THREAD
="motif/thread.cpp"
7255 if test -z "$UNIX_THREAD"; then
7266 case "${canonical}" in
7269 if test "$GCC" != "yes" ; then
7270 CXXFLAGS
="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
7271 CFLAGS
="${CFLAGS} -z -D_HPUX_SOURCE"
7277 CREATE_SHARED
=sharedHpux
7282 CREATE_SHARED
=sharedLinux
7285 *-*-irix5* | *-*-irix6* )
7286 # PICFLAGS can remain empty, as pic is the default
7288 CREATE_SHARED
=sharedIrix
7289 cat >> confdefs.h
<<\EOF
7296 if test "$GCC" != "yes" ; then
7301 CREATE_SHARED
=sharedSolaris2
7302 cat >> confdefs.h
<<\EOF
7309 if test "$GCC" != "yes" ; then
7315 CREATE_SHARED
=sharedSunos4
7316 cat >> confdefs.h
<<\EOF
7322 *-*-freebsd* | *-*-netbsd*)
7324 CREATE_SHARED
=sharedBsd
7325 cat >> confdefs.h
<<\EOF
7333 CREATE_SHARED
=sharedOSF
7337 if test "$GCC" != "yes" ; then
7342 CREATE_SHARED
=sharedDgux
7343 cat >> confdefs.h
<<\EOF
7350 if test "$GCC" != "yes" ; then
7355 CREATE_SHARED
=sharedSysV
7356 cat >> confdefs.h
<<\EOF
7363 if test "$GCC" != "yes" ; then
7368 CREATE_SHARED
=sharedAIX
7369 cat >> confdefs.h
<<\EOF
7380 if test "x$GCC" = xyes
; then
7381 CFLAGS
="${CFLAGS} -Wall -Wno-unused -Wno-uninitialized -D_REENTRANT -DLEX_SCANNER -DHAVE_LIBDL"
7384 if test "x$GXX" = xyes
; then
7385 if test "$wxUSE_MOTIF" = 1; then
7386 CXXFLAGS
="${CXXFLAGS} -Wall -Wno-unused -D_REENTRANT"
7388 CXXFLAGS
="${CXXFLAGS} -Wall -D_REENTRANT"
7392 if test "$wxUSE_SHARED" != 1; then
7402 echo $OS >> system.list
7406 cat > confcache
<<\EOF
7407 # This file is a shell script that caches the results of configure
7408 # tests run on this system so they can be shared between configure
7409 # scripts and configure runs. It is not useful on other systems.
7410 # If it contains results you don't want to keep, you may remove or edit it.
7412 # By default, configure uses ./config.cache as the cache file,
7413 # creating it if it does not exist already. You can give configure
7414 # the --cache-file=FILE option to use a different cache file; that is
7415 # what configure does when it calls configure scripts in
7416 # subdirectories, so they share the cache.
7417 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7418 # config.status only pays attention to the cache file if you give it the
7419 # --recheck option to rerun configure.
7422 # The following way of writing the cache mishandles newlines in values,
7423 # but we know of no workaround that is simple, portable, and efficient.
7424 # So, don't put newlines in cache variables' values.
7425 # Ultrix sh set writes to stderr and can't be redirected directly,
7426 # and sets the high bit in the cache file unless we assign to the vars.
7428 case `(ac_space=' '; set) 2>&1` in
7430 # `set' does not quote correctly, so add quotes (double-quote substitution
7431 # turns \\\\ into \\, and sed turns \\ into \).
7433 -e "s/'/'\\\\''/g" \
7434 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7437 # `set' quotes correctly as required by POSIX, so do not add quotes.
7438 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7441 if cmp -s $cache_file confcache
; then
7444 if test -w $cache_file; then
7445 echo "updating cache $cache_file"
7446 cat confcache
> $cache_file
7448 echo "not updating unwritable cache $cache_file"
7453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7455 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7456 # Let make expand exec_prefix.
7457 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7459 # Any assignment to VPATH causes Sun make to only execute
7460 # the first set of double-colon rules, so remove it if not needed.
7461 # If there is a colon in the path, we need to keep it.
7462 if test "x$srcdir" = x.
; then
7463 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7466 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7468 DEFS
=-DHAVE_CONFIG_H
7470 # Without the "./", some shells look in PATH for config.status.
7471 : ${CONFIG_STATUS=./config.status}
7473 echo creating
$CONFIG_STATUS
7474 rm -f $CONFIG_STATUS
7475 cat > $CONFIG_STATUS <<EOF
7477 # Generated automatically by configure.
7478 # Run this file to recreate the current configuration.
7479 # This directory was configured as follows,
7480 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7482 # $0 $ac_configure_args
7484 # Compiler output produced by configure, useful for debugging
7485 # configure, is in ./config.log if it exists.
7487 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7490 case "\$ac_option" in
7491 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7492 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7493 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7494 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7495 echo "$CONFIG_STATUS generated by autoconf version 2.12"
7497 -help | --help | --hel | --he | --h)
7498 echo "\$ac_cs_usage"; exit 0 ;;
7499 *) echo "\$ac_cs_usage"; exit 1 ;;
7503 ac_given_srcdir=$srcdir
7504 ac_given_INSTALL="$INSTALL"
7506 trap 'rm -fr `echo "./setup/substit ./wx-config:./wx-config.in ./include/wx/gtk/setup.h:./setup/setup.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
7508 cat >> $CONFIG_STATUS <<EOF
7510 # Protect against being on the right side of a sed subst in config.status.
7511 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7512 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7515 s%@CFLAGS@%$CFLAGS%g
7516 s%@CPPFLAGS@%$CPPFLAGS%g
7517 s%@CXXFLAGS@%$CXXFLAGS%g
7519 s%@LDFLAGS@%$LDFLAGS%g
7521 s%@exec_prefix@%$exec_prefix%g
7522 s%@prefix@%$prefix%g
7523 s%@program_transform_name@%$program_transform_name%g
7524 s%@bindir@%$bindir%g
7525 s%@sbindir@%$sbindir%g
7526 s%@libexecdir@%$libexecdir%g
7527 s%@datadir@%$datadir%g
7528 s%@sysconfdir@%$sysconfdir%g
7529 s%@sharedstatedir@%$sharedstatedir%g
7530 s%@localstatedir@%$localstatedir%g
7531 s%@libdir@%$libdir%g
7532 s%@includedir@%$includedir%g
7533 s%@oldincludedir@%$oldincludedir%g
7534 s%@infodir@%$infodir%g
7535 s%@mandir@%$mandir%g
7536 s%@WXBASEDIR@%$WXBASEDIR%g
7540 s%@CXXCPP@%$CXXCPP%g
7541 s%@RANLIB@%$RANLIB%g
7543 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7544 s%@INSTALL_DATA@%$INSTALL_DATA%g
7547 s%@X_CFLAGS@%$X_CFLAGS%g
7548 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7549 s%@X_LIBS@%$X_LIBS%g
7550 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7551 s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g
7552 s%@LIBOBJS@%$LIBOBJS%g
7555 s%@LEXLIB@%$LEXLIB%g
7556 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
7557 s%@DL_LIBRARY@%$DL_LIBRARY%g
7559 s%@host_alias@%$host_alias%g
7560 s%@host_cpu@%$host_cpu%g
7561 s%@host_vendor@%$host_vendor%g
7562 s%@host_os@%$host_os%g
7563 s%@GTK_CONFIG@%$GTK_CONFIG%g
7564 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
7565 s%@GTK_LIBS@%$GTK_LIBS%g
7566 s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g
7567 s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
7568 s%@GUI_TK_LINK@%$GUI_TK_LINK%g
7569 s%@WX_LINK@%$WX_LINK%g
7570 s%@TOOLKIT@%$TOOLKIT%g
7571 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
7572 s%@MAKEINCLUDE@%$MAKEINCLUDE%g
7573 s%@WXDEBUG@%$WXDEBUG%g
7574 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
7575 s%@EXTRA_LINK@%$EXTRA_LINK%g
7576 s%@PROFILE@%$PROFILE%g
7577 s%@OPTIMISE@%$OPTIMISE%g
7578 s%@Z_C_SRC@%$Z_C_SRC%g
7579 s%@PNG_C_SRC@%$PNG_C_SRC%g
7580 s%@JPEG_LINK@%$JPEG_LINK%g
7581 s%@IODBC_C_SRC@%$IODBC_C_SRC%g
7583 s%@UNIX_THREAD@%$UNIX_THREAD%g
7584 s%@THREADS_LINK@%$THREADS_LINK%g
7586 s%@PICFLAGS@%$PICFLAGS%g
7587 s%@CREATE_SHARED@%$CREATE_SHARED%g
7592 cat >> $CONFIG_STATUS <<\EOF
7594 # Split the substitutions into bite-sized pieces for seds with
7595 # small command number limits, like on Digital OSF/1 and HP-UX.
7596 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7597 ac_file
=1 # Number of current file.
7598 ac_beg
=1 # First line for current file.
7599 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7602 while $ac_more_lines; do
7603 if test $ac_beg -gt 1; then
7604 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7606 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7608 if test ! -s conftest.s
$ac_file; then
7610 rm -f conftest.s
$ac_file
7612 if test -z "$ac_sed_cmds"; then
7613 ac_sed_cmds
="sed -f conftest.s$ac_file"
7615 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7617 ac_file
=`expr $ac_file + 1`
7619 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7622 if test -z "$ac_sed_cmds"; then
7627 cat >> $CONFIG_STATUS <<EOF
7629 CONFIG_FILES=\${CONFIG_FILES-"./setup/substit ./wx-config:./wx-config.in"}
7631 cat >> $CONFIG_STATUS <<\EOF
7632 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7633 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7635 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7636 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7637 *) ac_file_in
="${ac_file}.in" ;;
7640 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7642 # Remove last slash and all that follows it. Not all systems have dirname.
7643 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7644 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7645 # The file is in a subdirectory.
7646 test ! -d "$ac_dir" && mkdir "$ac_dir"
7647 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7648 # A "../" for each directory in $ac_dir_suffix.
7649 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7651 ac_dir_suffix
= ac_dots
=
7654 case "$ac_given_srcdir" in
7656 if test -z "$ac_dots"; then top_srcdir
=.
7657 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7658 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7660 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7661 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7664 case "$ac_given_INSTALL" in
7665 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7666 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7669 echo creating
"$ac_file"
7671 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7673 *Makefile
*) ac_comsub
="1i\\
7674 # $configure_input" ;;
7678 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7680 s%@configure_input@%$configure_input%g
7681 s%@srcdir@%$srcdir%g
7682 s%@top_srcdir@%$top_srcdir%g
7683 s%@INSTALL@%$INSTALL%g
7684 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7688 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7689 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7691 # ac_d sets the value in "#define NAME VALUE" lines.
7692 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7693 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7696 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7697 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7698 ac_uB
='\([ ]\)%\1#\2define\3'
7701 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7702 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7703 ac_eB
='$%\1#\2define\3'
7707 if test "${CONFIG_HEADERS+set}" != set; then
7709 cat >> $CONFIG_STATUS <<EOF
7710 CONFIG_HEADERS="./include/wx/gtk/setup.h:./setup/setup.hin"
7712 cat >> $CONFIG_STATUS <<\EOF
7714 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7715 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7717 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7718 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7719 *) ac_file_in
="${ac_file}.in" ;;
7722 echo creating
$ac_file
7724 rm -f conftest.frag conftest.
in conftest.out
7725 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7726 cat $ac_file_inputs > conftest.
in
7730 # Transform confdefs.h into a sed script conftest.vals that substitutes
7731 # the proper values into config.h.in to produce config.h. And first:
7732 # Protect against being on the right side of a sed subst in config.status.
7733 # Protect against being in an unquoted here document in config.status.
7735 cat > conftest.hdr
<<\EOF
7738 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7742 sed -n -f conftest.hdr confdefs.h > conftest.vals
7745 # This sed command replaces #undef with comments. This is necessary, for
7746 # example, in the case of _POSIX_SOURCE, which is predefined and required
7747 # on some systems where configure will not decide to define it.
7748 cat >> conftest.vals <<\EOF
7749 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7752 # Break up conftest.vals because some shells have a limit on
7753 # the size of here documents, and old seds have small limits too.
7758 ac_lines=`grep -c . conftest.vals
`
7759 # grep -c gives empty output for an empty file on some AIX systems.
7760 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7761 # Write a limited-size here document to conftest.frag.
7762 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7763 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7765 sed -f conftest.frag conftest.in > conftest.out
7767 mv conftest.out conftest.in
7769 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7771 mv conftest.tail conftest.vals
7775 cat >> $CONFIG_STATUS <<\EOF
7776 rm -f conftest.frag conftest.h
7777 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7778 cat conftest.in >> conftest.h
7780 if cmp -s $ac_file conftest.h 2>/dev/null; then
7781 echo "$ac_file is unchanged"
7784 # Remove last slash and all that follows it. Not all systems have dirname.
7785 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7786 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7787 # The file is in a subdirectory.
7788 test ! -d "$ac_dir" && mkdir "$ac_dir"
7791 mv conftest.h $ac_file
7796 cat >> $CONFIG_STATUS <<EOF
7799 cat >> $CONFIG_STATUS <<\EOF
7800 ./setup/general/createall
7803 chmod +x $CONFIG_STATUS
7804 rm -fr confdefs* $ac_clean_files
7805 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7809 mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache