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-zlib use zlib for LZW comression"
45 **--with-libpng use libpng (PNG image format)"
47 **--with-libjpeg use libjpeg (JPEG image format)"
49 **--with-odbc use iODBC and wxODBC classes"
51 **--with-timedate use wxTime and wxDate classes"
53 **--with-intl use internationalization system"
55 **--with-config use wxConfig class"
57 **--with-streams use wxStream etc classes"
59 **--with-serial use class serialization"
61 **--with-afmfonts use Adobe Font Metric Font table"
63 **--with-PS-normalized use normalized PS fonts"
65 **--with-postscript use wxPostscriptDC device context"
67 **--with-unicode compile wxString with Unicode support"
69 **--with-wcsrtombs use wcsrtombs instead of (buggy in GNU libc5) wcstombs"
71 **--with-wxresources use wxWindows's resources"
73 **--with-prologio use Prolog IO library"
75 **--with-rpc use Prolog's remote procedure calls"
77 **--with-ipc use interprocess communication (wxSocket etc.)"
79 **--with-resources use X resources for saving information"
81 **--with-clipboard use wxClipboard classes"
83 **--with-tooltips use tooltips"
85 **--with-dnd use Drag'n'Drop classes"
87 **--with-mdi use multiple document interface architecture"
89 **--with-docview use document view architecture"
91 **--with-printarch use printing architecture"
93 **--with-help use help (using external browser at present)"
95 **--with-gtk-prefix=PFX Prefix where GTK is installed"
97 **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
99 # Initialize some variables set by options.
100 # The variables have the same names as the options, with
101 # dashes changed to underlines.
103 cache_file
=.
/config.cache
112 program_transform_name
=s
,x
,x
,
120 bindir
='${exec_prefix}/bin'
121 sbindir
='${exec_prefix}/sbin'
122 libexecdir
='${exec_prefix}/libexec'
123 datadir
='${prefix}/share'
124 sysconfdir
='${prefix}/etc'
125 sharedstatedir
='${prefix}/com'
126 localstatedir
='${prefix}/var'
127 libdir
='${exec_prefix}/lib'
128 includedir
='${prefix}/include'
129 oldincludedir
='/usr/include'
130 infodir
='${prefix}/info'
131 mandir
='${prefix}/man'
133 # Initialize some other variables.
136 # Maximum number of lines to put in a shell here document.
143 # If the previous option needs an argument, assign it.
144 if test -n "$ac_prev"; then
145 eval "$ac_prev=\$ac_option"
151 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
155 # Accept the important Cygnus configure options, so we can diagnose typos.
159 -bindir | --bindir | --bindi | --bind | --bin | --bi)
161 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
162 bindir
="$ac_optarg" ;;
164 -build | --build | --buil | --bui | --bu)
166 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
167 build
="$ac_optarg" ;;
169 -cache-file | --cache-file | --cache-fil | --cache-fi \
170 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
171 ac_prev
=cache_file
;;
172 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
173 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
174 cache_file
="$ac_optarg" ;;
176 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
178 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
180 datadir
="$ac_optarg" ;;
182 -disable-* | --disable-*)
183 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
184 # Reject names that are not valid shell variable names.
185 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
186 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
188 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
189 eval "enable_${ac_feature}=no" ;;
191 -enable-* | --enable-*)
192 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
193 # Reject names that are not valid shell variable names.
194 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
195 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
197 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
202 eval "enable_${ac_feature}='$ac_optarg'" ;;
204 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
205 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
206 | --exec | --exe | --ex)
207 ac_prev
=exec_prefix
;;
208 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
209 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
210 | --exec=* | --exe=* | --ex=*)
211 exec_prefix
="$ac_optarg" ;;
213 -gas | --gas | --ga | --g)
214 # Obsolete; use --with-gas.
217 -help | --help | --hel | --he)
218 # Omit some internal or obsolete options to make the list less imposing.
219 # This message is too long to be a string in the A/UX 3.1 sh.
221 Usage: configure [options] [host]
222 Options: [defaults in brackets after descriptions]
224 --cache-file=FILE cache test results in FILE
225 --help print this message
226 --no-create do not create output files
227 --quiet, --silent do not print \`checking...' messages
228 --version print the version of autoconf that created configure
229 Directory and file names:
230 --prefix=PREFIX install architecture-independent files in PREFIX
232 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
234 --bindir=DIR user executables in DIR [EPREFIX/bin]
235 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
236 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
237 --datadir=DIR read-only architecture-independent data in DIR
239 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
240 --sharedstatedir=DIR modifiable architecture-independent data in DIR
242 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
243 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
244 --includedir=DIR C header files in DIR [PREFIX/include]
245 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
246 --infodir=DIR info documentation in DIR [PREFIX/info]
247 --mandir=DIR man documentation in DIR [PREFIX/man]
248 --srcdir=DIR find the sources in DIR [configure dir or ..]
249 --program-prefix=PREFIX prepend PREFIX to installed program names
250 --program-suffix=SUFFIX append SUFFIX to installed program names
251 --program-transform-name=PROGRAM
252 run sed PROGRAM on installed program names
256 --build=BUILD configure for building on BUILD [BUILD=HOST]
257 --host=HOST configure for HOST [guessed]
258 --target=TARGET configure for TARGET [TARGET=HOST]
259 Features and packages:
260 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
261 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
262 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
263 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
264 --x-includes=DIR X include files are in DIR
265 --x-libraries=DIR X library files are in DIR
267 if test -n "$ac_help"; then
268 echo "--enable and --with options recognized:$ac_help"
272 -host | --host | --hos | --ho)
274 -host=* | --host=* | --hos=* | --ho=*)
277 -includedir | --includedir | --includedi | --included | --include \
278 | --includ | --inclu | --incl | --inc)
279 ac_prev
=includedir
;;
280 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
281 | --includ=* | --inclu=* | --incl=* | --inc=*)
282 includedir
="$ac_optarg" ;;
284 -infodir | --infodir | --infodi | --infod | --info | --inf)
286 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
287 infodir
="$ac_optarg" ;;
289 -libdir | --libdir | --libdi | --libd)
291 -libdir=* | --libdir=* | --libdi=* | --libd=*)
292 libdir
="$ac_optarg" ;;
294 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
295 | --libexe | --libex | --libe)
296 ac_prev
=libexecdir
;;
297 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
298 | --libexe=* | --libex=* | --libe=*)
299 libexecdir
="$ac_optarg" ;;
301 -localstatedir | --localstatedir | --localstatedi | --localstated \
302 | --localstate | --localstat | --localsta | --localst \
303 | --locals | --local | --loca | --loc | --lo)
304 ac_prev
=localstatedir
;;
305 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
306 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
307 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
308 localstatedir
="$ac_optarg" ;;
310 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
312 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
313 mandir
="$ac_optarg" ;;
316 # Obsolete; use --without-fp.
319 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
324 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
327 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
328 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
329 | --oldin | --oldi | --old | --ol | --o)
330 ac_prev
=oldincludedir
;;
331 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
332 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
333 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
334 oldincludedir
="$ac_optarg" ;;
336 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
338 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
339 prefix
="$ac_optarg" ;;
341 -program-prefix | --program-prefix | --program-prefi | --program-pref \
342 | --program-pre | --program-pr | --program-p)
343 ac_prev
=program_prefix
;;
344 -program-prefix=* | --program-prefix=* | --program-prefi=* \
345 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
346 program_prefix
="$ac_optarg" ;;
348 -program-suffix | --program-suffix | --program-suffi | --program-suff \
349 | --program-suf | --program-su | --program-s)
350 ac_prev
=program_suffix
;;
351 -program-suffix=* | --program-suffix=* | --program-suffi=* \
352 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
353 program_suffix
="$ac_optarg" ;;
355 -program-transform-name | --program-transform-name \
356 | --program-transform-nam | --program-transform-na \
357 | --program-transform-n | --program-transform- \
358 | --program-transform | --program-transfor \
359 | --program-transfo | --program-transf \
360 | --program-trans | --program-tran \
361 | --progr-tra | --program-tr | --program-t)
362 ac_prev
=program_transform_name
;;
363 -program-transform-name=* | --program-transform-name=* \
364 | --program-transform-nam=* | --program-transform-na=* \
365 | --program-transform-n=* | --program-transform-=* \
366 | --program-transform=* | --program-transfor=* \
367 | --program-transfo=* | --program-transf=* \
368 | --program-trans=* | --program-tran=* \
369 | --progr-tra=* | --program-tr=* | --program-t=*)
370 program_transform_name
="$ac_optarg" ;;
372 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
373 | -silent | --silent | --silen | --sile | --sil)
376 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
378 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
380 sbindir
="$ac_optarg" ;;
382 -sharedstatedir | --sharedstatedir | --sharedstatedi \
383 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
384 | --sharedst | --shareds | --shared | --share | --shar \
386 ac_prev
=sharedstatedir
;;
387 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
388 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
389 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
391 sharedstatedir
="$ac_optarg" ;;
393 -site | --site | --sit)
395 -site=* | --site=* | --sit=*)
398 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
400 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
401 srcdir
="$ac_optarg" ;;
403 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
404 | --syscon | --sysco | --sysc | --sys | --sy)
405 ac_prev
=sysconfdir
;;
406 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
407 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
408 sysconfdir
="$ac_optarg" ;;
410 -target | --target | --targe | --targ | --tar | --ta | --t)
412 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
413 target
="$ac_optarg" ;;
415 -v | -verbose | --verbose | --verbos | --verbo | --verb)
418 -version | --version | --versio | --versi | --vers)
419 echo "configure generated by autoconf version 2.12"
423 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
424 # Reject names that are not valid shell variable names.
425 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
426 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
428 ac_package
=`echo $ac_package| sed 's/-/_/g'`
433 eval "with_${ac_package}='$ac_optarg'" ;;
435 -without-* | --without-*)
436 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
437 # Reject names that are not valid shell variable names.
438 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
439 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
441 ac_package
=`echo $ac_package| sed 's/-/_/g'`
442 eval "with_${ac_package}=no" ;;
445 # Obsolete; use --with-x.
448 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
449 | --x-incl | --x-inc | --x-in | --x-i)
450 ac_prev
=x_includes
;;
451 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
452 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
453 x_includes
="$ac_optarg" ;;
455 -x-libraries | --x-libraries | --x-librarie | --x-librari \
456 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
457 ac_prev
=x_libraries
;;
458 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
459 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
460 x_libraries
="$ac_optarg" ;;
462 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
466 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
467 echo "configure: warning: $ac_option: invalid host type" 1>&2
469 if test "x$nonopt" != xNONE
; then
470 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
478 if test -n "$ac_prev"; then
479 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
482 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
484 # File descriptor usage:
487 # 2 errors and warnings
488 # 3 some systems may open it to /dev/tty
489 # 4 used on the Kubota Titan
490 # 6 checking for... messages and results
491 # 5 compiler messages saved in config.log
492 if test "$silent" = yes; then
500 This file contains any messages produced by compilers while
501 running configure, to aid debugging if configure makes a mistake.
504 # Strip out --no-create and --no-recursion so they do not pile up.
505 # Also quote any args containing shell metacharacters.
510 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
511 | --no-cr | --no-c) ;;
512 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
513 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
514 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
515 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
516 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
521 # Only set these to C if already set. These must not be set unconditionally
522 # because not all systems understand e.g. LANG=C (notably SCO).
523 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
524 # Non-C LC_CTYPE values break the ctype check.
525 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
526 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
527 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
528 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
530 # confdefs.h avoids OS command line length limits that DEFS can exceed.
531 rm -rf conftest
* confdefs.h
532 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
535 # A filename unique to this package, relative to the directory that
536 # configure is in, which we can look for to find out if srcdir is correct.
537 ac_unique_file
=configure.
in
539 # Find the source files, if location was not specified.
540 if test -z "$srcdir"; then
541 ac_srcdir_defaulted
=yes
542 # Try the directory containing this script, then its parent.
544 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
545 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
547 if test ! -r $srcdir/$ac_unique_file; then
551 ac_srcdir_defaulted
=no
553 if test ! -r $srcdir/$ac_unique_file; then
554 if test "$ac_srcdir_defaulted" = yes; then
555 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
557 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
560 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
562 # Prefer explicitly selected file to automatically selected ones.
563 if test -z "$CONFIG_SITE"; then
564 if test "x$prefix" != xNONE
; then
565 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
567 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
570 for ac_site_file
in $CONFIG_SITE; do
571 if test -r "$ac_site_file"; then
572 echo "loading site script $ac_site_file"
577 if test -r "$cache_file"; then
578 echo "loading cache $cache_file"
581 echo "creating cache $cache_file"
586 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
587 ac_cpp
='$CPP $CPPFLAGS'
588 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
589 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
590 cross_compiling
=$ac_cv_prog_cc_cross
592 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
593 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
594 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
601 ac_n
= ac_c
='\c' ac_t
=
609 if test "x$OS" = "x"; then
611 { echo "configure: error: "The system variable OS has not been
set"
612 "please
set is everytime befor compiling on this system
"
613 "A good example
for this system would be
:"
614 "setenv OSTYPE
$UNAME for csh as a SHELL
"
615 "EXPORT OSTYPE
=$UNAME for sh as SHELL
"
616 "please
set this and restart again.
"
626 /usr/Motif-1.2/include \
627 /usr/Motif-2.1/include \
629 /usr/include/Motif1.2 \
630 /opt/xpm/include/X11 \
632 /usr/Motif1.2/include \
647 /usr/local/X11R6/include \
648 /usr/local/X11R5/include \
649 /usr/local/X11R4/include \
651 /usr/local/include/X11R6 \
652 /usr/local/include/X11R5 \
653 /usr/local/include/X11R4 \
657 /usr/local/X11/include \
658 /usr/local/include/X11 \
662 /usr/XFree86/include/X11 \
669 /usr/unsupported/include \
670 /usr/athena/include \
671 /usr/local/x11r5/include \
672 /usr/lpp/Xamples/include \
674 /usr/local/include/gtk \
675 /usr/local/include/qt \
678 /usr/openwin/include \
679 /usr/openwin/share/include \
682 SEARCH_LIB
="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
686 # Extract the first word of "gcc", so it can be a program name with args.
687 set dummy gcc
; ac_word
=$2
688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
689 echo "configure:690: checking for $ac_word" >&5
690 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
691 echo $ac_n "(cached) $ac_c" 1>&6
693 if test -n "$CC"; then
694 ac_cv_prog_CC
="$CC" # Let the user override the test.
696 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
697 for ac_dir
in $PATH; do
698 test -z "$ac_dir" && ac_dir
=.
699 if test -f $ac_dir/$ac_word; then
708 if test -n "$CC"; then
709 echo "$ac_t""$CC" 1>&6
711 echo "$ac_t""no" 1>&6
714 if test -z "$CC"; then
715 # Extract the first word of "cc", so it can be a program name with args.
716 set dummy cc
; ac_word
=$2
717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
718 echo "configure:719: checking for $ac_word" >&5
719 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
720 echo $ac_n "(cached) $ac_c" 1>&6
722 if test -n "$CC"; then
723 ac_cv_prog_CC
="$CC" # Let the user override the test.
725 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
727 for ac_dir
in $PATH; do
728 test -z "$ac_dir" && ac_dir
=.
729 if test -f $ac_dir/$ac_word; then
730 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
739 if test $ac_prog_rejected = yes; then
740 # We found a bogon in the path, so make sure we never use it.
741 set dummy
$ac_cv_prog_CC
743 if test $# -gt 0; then
744 # We chose a different compiler from the bogus one.
745 # However, it has the same basename, so the bogon will be chosen
746 # first if we set CC to just the basename; use the full file name.
748 set dummy
"$ac_dir/$ac_word" "$@"
756 if test -n "$CC"; then
757 echo "$ac_t""$CC" 1>&6
759 echo "$ac_t""no" 1>&6
762 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
765 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
766 echo "configure:767: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
769 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
770 ac_cpp
='$CPP $CPPFLAGS'
771 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
772 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
773 cross_compiling
=$ac_cv_prog_cc_cross
775 cat > conftest.
$ac_ext <<EOF
776 #line 777 "configure"
777 #include "confdefs.h"
780 if { (eval echo configure
:781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
781 ac_cv_prog_cc_works
=yes
782 # If we can't run a trivial program, we are probably using a cross compiler.
783 if (.
/conftest
; exit) 2>/dev
/null
; then
784 ac_cv_prog_cc_cross
=no
786 ac_cv_prog_cc_cross
=yes
789 echo "configure: failed program was:" >&5
790 cat conftest.
$ac_ext >&5
791 ac_cv_prog_cc_works
=no
795 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
796 if test $ac_cv_prog_cc_works = no
; then
797 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
799 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
800 echo "configure:801: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
801 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
802 cross_compiling
=$ac_cv_prog_cc_cross
804 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
805 echo "configure:806: checking whether we are using GNU C" >&5
806 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
807 echo $ac_n "(cached) $ac_c" 1>&6
809 cat > conftest.c
<<EOF
814 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
821 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
823 if test $ac_cv_prog_gcc = yes; then
825 ac_test_CFLAGS
="${CFLAGS+set}"
826 ac_save_CFLAGS
="$CFLAGS"
828 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
829 echo "configure:830: checking whether ${CC-cc} accepts -g" >&5
830 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
831 echo $ac_n "(cached) $ac_c" 1>&6
833 echo 'void f(){}' > conftest.c
834 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
843 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
844 if test "$ac_test_CFLAGS" = set; then
845 CFLAGS
="$ac_save_CFLAGS"
846 elif test $ac_cv_prog_cc_g = yes; then
853 test "${CFLAGS+set}" = set || CFLAGS
="-g"
857 CFLAGS
=`echo "$CFLAGS" | sed 's/-g//g'`
859 if test "x$CC" != xcc
; then
860 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
861 echo "configure:862: checking whether $CC and cc understand -c and -o together" >&5
863 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
864 echo "configure:865: checking whether cc understands -c and -o together" >&5
866 set dummy
$CC; ac_cc
="`echo $2 |
867 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
868 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
869 echo $ac_n "(cached) $ac_c" 1>&6
871 echo 'foo(){}' > conftest.c
872 # Make sure it works both with $CC and with simple cc.
873 # We do the test twice because some compilers refuse to overwrite an
874 # existing .o file with -o, though they will create one.
875 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
876 if { (eval echo configure
:877: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
877 test -f conftest.o
&& { (eval echo configure
:878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
879 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
880 if test "x$CC" != xcc
; then
881 # Test first that cc exists at all.
882 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
883 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
884 if { (eval echo configure
:885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
885 test -f conftest.o
&& { (eval echo configure
:886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
890 # cc exists but doesn't like -o.
891 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
896 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
901 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
902 echo "$ac_t""yes" 1>&6
904 echo "$ac_t""no" 1>&6
905 cat >> confdefs.h
<<\EOF
906 #define NO_MINUS_C_MINUS_O 1
911 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
912 echo "configure:913: checking how to run the C preprocessor" >&5
913 # On Suns, sometimes $CPP names a directory.
914 if test -n "$CPP" && test -d "$CPP"; then
917 if test -z "$CPP"; then
918 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
921 # This must be in double quotes, not single quotes, because CPP may get
922 # substituted into the Makefile and "${CC-cc}" will confuse make.
924 # On the NeXT, cc -E runs the code through the compiler's parser,
925 # not just through cpp.
926 cat > conftest.
$ac_ext <<EOF
927 #line 928 "configure"
928 #include "confdefs.h"
932 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
933 { (eval echo configure
:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
934 ac_err
=`grep -v '^ *+' conftest.out`
935 if test -z "$ac_err"; then
939 echo "configure: failed program was:" >&5
940 cat conftest.
$ac_ext >&5
942 CPP
="${CC-cc} -E -traditional-cpp"
943 cat > conftest.
$ac_ext <<EOF
944 #line 945 "configure"
945 #include "confdefs.h"
949 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
950 { (eval echo configure
:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
951 ac_err
=`grep -v '^ *+' conftest.out`
952 if test -z "$ac_err"; then
956 echo "configure: failed program was:" >&5
957 cat conftest.
$ac_ext >&5
964 ac_cv_prog_CPP
="$CPP"
966 CPP
="$ac_cv_prog_CPP"
968 ac_cv_prog_CPP
="$CPP"
970 echo "$ac_t""$CPP" 1>&6
972 if test $ac_cv_prog_gcc = yes; then
973 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
974 echo "configure:975: checking whether ${CC-cc} needs -traditional" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
978 ac_pattern
="Autoconf.*'x'"
979 cat > conftest.
$ac_ext <<EOF
980 #line 981 "configure"
981 #include "confdefs.h"
985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
986 egrep "$ac_pattern" >/dev
/null
2>&1; then
988 ac_cv_prog_gcc_traditional
=yes
991 ac_cv_prog_gcc_traditional
=no
996 if test $ac_cv_prog_gcc_traditional = no
; then
997 cat > conftest.
$ac_ext <<EOF
998 #line 999 "configure"
999 #include "confdefs.h"
1003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1004 egrep "$ac_pattern" >/dev
/null
2>&1; then
1006 ac_cv_prog_gcc_traditional
=yes
1013 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1014 if test $ac_cv_prog_gcc_traditional = yes; then
1015 CC
="$CC -traditional"
1022 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++
1024 # Extract the first word of "$ac_prog", so it can be a program name with args.
1025 set dummy
$ac_prog; ac_word
=$2
1026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1027 echo "configure:1028: checking for $ac_word" >&5
1028 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1029 echo $ac_n "(cached) $ac_c" 1>&6
1031 if test -n "$CXX"; then
1032 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1034 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1035 for ac_dir
in $PATH; do
1036 test -z "$ac_dir" && ac_dir
=.
1037 if test -f $ac_dir/$ac_word; then
1038 ac_cv_prog_CXX
="$ac_prog"
1045 CXX
="$ac_cv_prog_CXX"
1046 if test -n "$CXX"; then
1047 echo "$ac_t""$CXX" 1>&6
1049 echo "$ac_t""no" 1>&6
1052 test -n "$CXX" && break
1054 test -n "$CXX" || CXX
="gcc"
1057 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1058 echo "configure:1059: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1061 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1062 ac_cpp
='$CXXCPP $CPPFLAGS'
1063 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1064 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1065 cross_compiling
=$ac_cv_prog_cxx_cross
1067 cat > conftest.
$ac_ext <<EOF
1068 #line 1069 "configure"
1069 #include "confdefs.h"
1072 if { (eval echo configure
:1073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1073 ac_cv_prog_cxx_works
=yes
1074 # If we can't run a trivial program, we are probably using a cross compiler.
1075 if (.
/conftest
; exit) 2>/dev
/null
; then
1076 ac_cv_prog_cxx_cross
=no
1078 ac_cv_prog_cxx_cross
=yes
1081 echo "configure: failed program was:" >&5
1082 cat conftest.
$ac_ext >&5
1083 ac_cv_prog_cxx_works
=no
1087 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1088 ac_cpp
='$CPP $CPPFLAGS'
1089 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1090 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1091 cross_compiling
=$ac_cv_prog_cc_cross
1093 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1094 if test $ac_cv_prog_cxx_works = no
; then
1095 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1097 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1099 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1100 cross_compiling
=$ac_cv_prog_cxx_cross
1102 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1103 echo "configure:1104: checking whether we are using GNU C++" >&5
1104 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1107 cat > conftest.C
<<EOF
1112 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
1119 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1121 if test $ac_cv_prog_gxx = yes; then
1123 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1124 ac_save_CXXFLAGS
="$CXXFLAGS"
1126 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1127 echo "configure:1128: checking whether ${CXX-g++} accepts -g" >&5
1128 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1129 echo $ac_n "(cached) $ac_c" 1>&6
1131 echo 'void f(){}' > conftest.cc
1132 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1133 ac_cv_prog_cxx_g
=yes
1141 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1142 if test "$ac_test_CXXFLAGS" = set; then
1143 CXXFLAGS
="$ac_save_CXXFLAGS"
1144 elif test $ac_cv_prog_cxx_g = yes; then
1151 test "${CXXFLAGS+set}" = set || CXXFLAGS
="-g"
1154 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1155 echo "configure:1156: checking how to run the C++ preprocessor" >&5
1156 if test -z "$CXXCPP"; then
1157 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1158 echo $ac_n "(cached) $ac_c" 1>&6
1161 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1162 ac_cpp
='$CXXCPP $CPPFLAGS'
1163 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1164 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1165 cross_compiling
=$ac_cv_prog_cxx_cross
1166 CXXCPP
="${CXX-g++} -E"
1167 cat > conftest.
$ac_ext <<EOF
1168 #line 1169 "configure"
1169 #include "confdefs.h"
1172 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1173 { (eval echo configure
:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1174 ac_err
=`grep -v '^ *+' conftest.out`
1175 if test -z "$ac_err"; then
1179 echo "configure: failed program was:" >&5
1180 cat conftest.
$ac_ext >&5
1185 ac_cv_prog_CXXCPP
="$CXXCPP"
1187 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1188 ac_cpp
='$CPP $CPPFLAGS'
1189 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1190 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1191 cross_compiling
=$ac_cv_prog_cc_cross
1194 CXXCPP
="$ac_cv_prog_CXXCPP"
1195 echo "$ac_t""$CXXCPP" 1>&6
1198 CXXFLAGS
=`echo "$CXXFLAGS" | sed 's/-g//g'`
1202 # Extract the first word of "ranlib", so it can be a program name with args.
1203 set dummy ranlib
; ac_word
=$2
1204 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1205 echo "configure:1206: checking for $ac_word" >&5
1206 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 if test -n "$RANLIB"; then
1210 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1212 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1213 for ac_dir
in $PATH; do
1214 test -z "$ac_dir" && ac_dir
=.
1215 if test -f $ac_dir/$ac_word; then
1216 ac_cv_prog_RANLIB
="ranlib"
1221 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1224 RANLIB
="$ac_cv_prog_RANLIB"
1225 if test -n "$RANLIB"; then
1226 echo "$ac_t""$RANLIB" 1>&6
1228 echo "$ac_t""no" 1>&6
1232 # Extract the first word of "ar", so it can be a program name with args.
1233 set dummy
ar; ac_word
=$2
1234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1235 echo "configure:1236: checking for $ac_word" >&5
1236 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1237 echo $ac_n "(cached) $ac_c" 1>&6
1239 if test -n "$AR"; then
1240 ac_cv_prog_AR
="$AR" # Let the user override the test.
1242 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1243 for ac_dir
in $PATH; do
1244 test -z "$ac_dir" && ac_dir
=.
1245 if test -f $ac_dir/$ac_word; then
1251 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1255 if test -n "$AR"; then
1256 echo "$ac_t""$AR" 1>&6
1258 echo "$ac_t""no" 1>&6
1263 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1264 if test -f $ac_dir/install-sh; then
1266 ac_install_sh
="$ac_aux_dir/install-sh -c"
1268 elif test -f $ac_dir/install.sh
; then
1270 ac_install_sh
="$ac_aux_dir/install.sh -c"
1274 if test -z "$ac_aux_dir"; then
1275 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1277 ac_config_guess
=$ac_aux_dir/config.guess
1278 ac_config_sub
=$ac_aux_dir/config.sub
1279 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1281 # Find a good install program. We prefer a C program (faster),
1282 # so one script is as good as another. But avoid the broken or
1283 # incompatible versions:
1284 # SysV /etc/install, /usr/sbin/install
1285 # SunOS /usr/etc/install
1286 # IRIX /sbin/install
1288 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1289 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1290 # ./install, which can be erroneously created by make from ./install.sh.
1291 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1292 echo "configure:1293: checking for a BSD compatible install" >&5
1293 if test -z "$INSTALL"; then
1294 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
="${IFS}:"
1298 for ac_dir
in $PATH; do
1299 # Account for people who put trailing slashes in PATH elements.
1301 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
1303 # OSF1 and SCO ODT 3.0 have their own names for install.
1304 for ac_prog
in ginstall installbsd scoinst
install; do
1305 if test -f $ac_dir/$ac_prog; then
1306 if test $ac_prog = install &&
1307 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1308 # AIX install. It has an incompatible calling convention.
1309 # OSF/1 installbsd also uses dspmsg, but is usable.
1312 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1323 if test "${ac_cv_path_install+set}" = set; then
1324 INSTALL
="$ac_cv_path_install"
1326 # As a last resort, use the slow shell script. We don't cache a
1327 # path for INSTALL within a source directory, because that will
1328 # break other packages using the cache if that directory is
1329 # removed, or if the path is relative.
1330 INSTALL
="$ac_install_sh"
1333 echo "$ac_t""$INSTALL" 1>&6
1335 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1336 # It thinks the first close brace ends the variable substitution.
1337 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1339 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1342 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1343 echo "configure:1344: checking whether ln -s works" >&5
1344 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1348 if ln -s X conftestdata
2>/dev
/null
1351 ac_cv_prog_LN_S
="ln -s"
1356 LN_S
="$ac_cv_prog_LN_S"
1357 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1358 echo "$ac_t""yes" 1>&6
1360 echo "$ac_t""no" 1>&6
1364 for ac_prog
in mawk gawk nawk
awk
1366 # Extract the first word of "$ac_prog", so it can be a program name with args.
1367 set dummy
$ac_prog; ac_word
=$2
1368 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1369 echo "configure:1370: checking for $ac_word" >&5
1370 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1371 echo $ac_n "(cached) $ac_c" 1>&6
1373 if test -n "$AWK"; then
1374 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1376 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1377 for ac_dir
in $PATH; do
1378 test -z "$ac_dir" && ac_dir
=.
1379 if test -f $ac_dir/$ac_word; then
1380 ac_cv_prog_AWK
="$ac_prog"
1387 AWK
="$ac_cv_prog_AWK"
1388 if test -n "$AWK"; then
1389 echo "$ac_t""$AWK" 1>&6
1391 echo "$ac_t""no" 1>&6
1394 test -n "$AWK" && break
1398 echo $ac_n "checking "make for VPATH support
"""... $ac_c" 1>&6
1399 echo "configure:1400: checking "make for VPATH support
"" >&5
1400 cat - << EOF > confMake
1406 if test ! -d sub
; then
1409 echo dummy
> sub
/file
1410 ${MAKE-make} -f confMake VPATH
=sub
2> config.log
> /dev
/null
1412 rm -f sub
/file check final_file confMake
1414 if test "$RESULT" = 0; then
1415 echo "$ac_t""yes" 1>&6
1417 echo "$ac_t""no" 1>&6
1418 { echo "configure: error: You need a make-utility that is able to use the variable
1420 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
1424 # If we find X, set shell vars x_includes and x_libraries to the
1425 # paths, otherwise set no_x=yes.
1426 # Uses ac_ vars as temps to allow command line to override cache and checks.
1427 # --without-x overrides everything else, but does not touch the cache.
1428 echo $ac_n "checking for X""... $ac_c" 1>&6
1429 echo "configure:1430: checking for X" >&5
1431 # Check whether --with-x or --without-x was given.
1432 if test "${with_x+set}" = set; then
1437 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1438 if test "x$with_x" = xno
; then
1439 # The user explicitly disabled X.
1442 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1443 # Both variables are already set.
1446 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1449 # One or both of the vars are not set, and there is no cached value.
1450 ac_x_includes
=NO ac_x_libraries
=NO
1452 if mkdir conftestdir
; then
1454 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1455 cat > Imakefile
<<'EOF'
1457 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1459 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1460 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1461 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1462 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1463 for ac_extension
in a so sl
; do
1464 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1465 test -f $ac_im_libdir/libX11.
$ac_extension; then
1466 ac_im_usrlibdir
=$ac_im_libdir; break
1469 # Screen out bogus values from the imake configuration. They are
1470 # bogus both because they are the default anyway, and because
1471 # using them would break gcc on systems where it needs fixed includes.
1472 case "$ac_im_incroot" in
1474 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1476 case "$ac_im_usrlibdir" in
1478 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1485 if test "$ac_x_includes" = NO
; then
1486 # Guess where to find include files, by looking for this one X11 .h file.
1487 test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
1489 # First, try using that file with no special directory specified.
1490 cat > conftest.
$ac_ext <<EOF
1491 #line 1492 "configure"
1492 #include "confdefs.h"
1493 #include <$x_direct_test_include>
1495 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1496 { (eval echo configure
:1497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1497 ac_err
=`grep -v '^ *+' conftest.out`
1498 if test -z "$ac_err"; then
1500 # We can compile using X headers with no special include directory.
1504 echo "configure: failed program was:" >&5
1505 cat conftest.
$ac_ext >&5
1507 # Look for the header file in a standard set of common directories.
1508 # Check X11 before X11Rn because it is often a symlink to the current release.
1511 /usr
/X
11R
6/include \
1512 /usr
/X
11R
5/include \
1513 /usr
/X
11R
4/include \
1516 /usr
/include
/X11R6 \
1517 /usr
/include
/X11R5 \
1518 /usr
/include
/X11R4 \
1520 /usr
/local
/X
11/include \
1521 /usr
/local
/X
11R
6/include \
1522 /usr
/local
/X
11R
5/include \
1523 /usr
/local
/X
11R
4/include \
1525 /usr
/local
/include
/X11 \
1526 /usr
/local
/include
/X11R6 \
1527 /usr
/local
/include
/X11R5 \
1528 /usr
/local
/include
/X11R4 \
1532 /usr
/XFree
86/include
/X11 \
1535 /usr
/local
/include \
1536 /usr
/unsupported
/include \
1537 /usr
/athena
/include \
1538 /usr
/local
/x
11r
5/include \
1539 /usr
/lpp
/Xamples
/include \
1541 /usr
/openwin
/include \
1542 /usr
/openwin
/share
/include \
1545 if test -r "$ac_dir/$x_direct_test_include"; then
1546 ac_x_includes
=$ac_dir
1552 fi # $ac_x_includes = NO
1554 if test "$ac_x_libraries" = NO
; then
1555 # Check for the libraries.
1557 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1558 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1560 # See if we find them without any special options.
1561 # Don't add to $LIBS permanently.
1562 ac_save_LIBS
="$LIBS"
1563 LIBS
="-l$x_direct_test_library $LIBS"
1564 cat > conftest.
$ac_ext <<EOF
1565 #line 1566 "configure"
1566 #include "confdefs.h"
1569 ${x_direct_test_function}()
1572 if { (eval echo configure
:1573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1574 LIBS
="$ac_save_LIBS"
1575 # We can link X programs with no special library path.
1578 echo "configure: failed program was:" >&5
1579 cat conftest.
$ac_ext >&5
1581 LIBS
="$ac_save_LIBS"
1582 # First see if replacing the include by lib works.
1583 # Check X11 before X11Rn because it is often a symlink to the current release.
1584 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1595 /usr
/local
/X
11/lib \
1596 /usr
/local
/X
11R
6/lib \
1597 /usr
/local
/X
11R
5/lib \
1598 /usr
/local
/X
11R
4/lib \
1600 /usr
/local
/lib
/X11 \
1601 /usr
/local
/lib
/X11R6 \
1602 /usr
/local
/lib
/X11R5 \
1603 /usr
/local
/lib
/X11R4 \
1607 /usr
/XFree
86/lib
/X11 \
1611 /usr
/unsupported
/lib \
1613 /usr
/local
/x
11r
5/lib \
1614 /usr
/lpp
/Xamples
/lib \
1618 /usr
/openwin
/share
/lib \
1621 for ac_extension
in a so sl
; do
1622 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1623 ac_x_libraries
=$ac_dir
1630 fi # $ac_x_libraries = NO
1632 if test "$ac_x_includes" = NO
|| test "$ac_x_libraries" = NO
; then
1633 # Didn't find X anywhere. Cache the known absence of X.
1634 ac_cv_have_x
="have_x=no"
1636 # Record where we found X for the cache.
1637 ac_cv_have_x
="have_x=yes \
1638 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1642 eval "$ac_cv_have_x"
1645 if test "$have_x" != yes; then
1646 echo "$ac_t""$have_x" 1>&6
1649 # If each of the values was on the command line, it overrides each guess.
1650 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1651 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1652 # Update the cache value to reflect the command line values.
1653 ac_cv_have_x
="have_x=yes \
1654 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1655 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1658 if test "$no_x" = yes; then
1659 # Not all programs may use this symbol, but it does not hurt to define it.
1660 cat >> confdefs.h
<<\EOF
1661 #define X_DISPLAY_MISSING 1
1664 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1666 if test -n "$x_includes"; then
1667 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1670 # It would also be nice to do this for all -L options, not just this one.
1671 if test -n "$x_libraries"; then
1672 X_LIBS
="$X_LIBS -L$x_libraries"
1673 # For Solaris; some versions of Sun CC require a space after -R and
1674 # others require no space. Words are not sufficient . . . .
1675 case "`(uname -sr) 2>/dev/null`" in
1677 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1678 echo "configure:1679: checking whether -R must be followed by a space" >&5
1679 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1680 cat > conftest.
$ac_ext <<EOF
1681 #line 1682 "configure"
1682 #include "confdefs.h"
1688 if { (eval echo configure
:1689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1692 echo "configure: failed program was:" >&5
1693 cat conftest.
$ac_ext >&5
1698 if test $ac_R_nospace = yes; then
1699 echo "$ac_t""no" 1>&6
1700 X_LIBS
="$X_LIBS -R$x_libraries"
1702 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1703 cat > conftest.
$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1711 if { (eval echo configure
:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1715 echo "configure: failed program was:" >&5
1716 cat conftest.
$ac_ext >&5
1721 if test $ac_R_space = yes; then
1722 echo "$ac_t""yes" 1>&6
1723 X_LIBS
="$X_LIBS -R $x_libraries"
1725 echo "$ac_t""neither works" 1>&6
1728 LIBS
="$ac_xsave_LIBS"
1732 # Check for system-dependent libraries X programs must link with.
1733 # Do this before checking for the system-independent R6 libraries
1734 # (-lICE), since we may need -lsocket or whatever for X linking.
1736 if test "$ISC" = yes; then
1737 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1739 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1740 # libraries were built with DECnet support. And karl@cs.umb.edu says
1741 # the Alpha needs dnet_stub (dnet does not exist).
1742 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1743 echo "configure:1744: checking for dnet_ntoa in -ldnet" >&5
1744 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1748 ac_save_LIBS
="$LIBS"
1750 cat > conftest.
$ac_ext <<EOF
1751 #line 1752 "configure"
1752 #include "confdefs.h"
1753 /* Override any gcc2 internal prototype to avoid an error. */
1754 /* We use char because int might match the return type of a gcc2
1755 builtin and then its argument prototype would still apply. */
1762 if { (eval echo configure
:1763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1764 eval "ac_cv_lib_$ac_lib_var=yes"
1766 echo "configure: failed program was:" >&5
1767 cat conftest.
$ac_ext >&5
1769 eval "ac_cv_lib_$ac_lib_var=no"
1772 LIBS
="$ac_save_LIBS"
1775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1776 echo "$ac_t""yes" 1>&6
1777 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1779 echo "$ac_t""no" 1>&6
1782 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1783 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1784 echo "configure:1785: checking for dnet_ntoa in -ldnet_stub" >&5
1785 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1786 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1787 echo $ac_n "(cached) $ac_c" 1>&6
1789 ac_save_LIBS
="$LIBS"
1790 LIBS
="-ldnet_stub $LIBS"
1791 cat > conftest.
$ac_ext <<EOF
1792 #line 1793 "configure"
1793 #include "confdefs.h"
1794 /* Override any gcc2 internal prototype to avoid an error. */
1795 /* We use char because int might match the return type of a gcc2
1796 builtin and then its argument prototype would still apply. */
1803 if { (eval echo configure
:1804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1805 eval "ac_cv_lib_$ac_lib_var=yes"
1807 echo "configure: failed program was:" >&5
1808 cat conftest.
$ac_ext >&5
1810 eval "ac_cv_lib_$ac_lib_var=no"
1813 LIBS
="$ac_save_LIBS"
1816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1817 echo "$ac_t""yes" 1>&6
1818 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1820 echo "$ac_t""no" 1>&6
1825 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1826 # to get the SysV transport functions.
1827 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1829 # The nsl library prevents programs from opening the X display
1830 # on Irix 5.2, according to dickey@clark.net.
1831 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1832 echo "configure:1833: checking for gethostbyname" >&5
1833 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1834 echo $ac_n "(cached) $ac_c" 1>&6
1836 cat > conftest.
$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1839 /* System header to define __stub macros and hopefully few prototypes,
1840 which can conflict with char gethostbyname(); below. */
1842 /* Override any gcc2 internal prototype to avoid an error. */
1843 /* We use char because int might match the return type of a gcc2
1844 builtin and then its argument prototype would still apply. */
1845 char gethostbyname();
1849 /* The GNU C library defines this for functions which it implements
1850 to always fail with ENOSYS. Some functions are actually named
1851 something starting with __ and the normal name is an alias. */
1852 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1860 if { (eval echo configure
:1861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1862 eval "ac_cv_func_gethostbyname=yes"
1864 echo "configure: failed program was:" >&5
1865 cat conftest.
$ac_ext >&5
1867 eval "ac_cv_func_gethostbyname=no"
1872 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1873 echo "$ac_t""yes" 1>&6
1876 echo "$ac_t""no" 1>&6
1879 if test $ac_cv_func_gethostbyname = no
; then
1880 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1881 echo "configure:1882: checking for gethostbyname in -lnsl" >&5
1882 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1883 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1884 echo $ac_n "(cached) $ac_c" 1>&6
1886 ac_save_LIBS
="$LIBS"
1888 cat > conftest.
$ac_ext <<EOF
1889 #line 1890 "configure"
1890 #include "confdefs.h"
1891 /* Override any gcc2 internal prototype to avoid an error. */
1892 /* We use char because int might match the return type of a gcc2
1893 builtin and then its argument prototype would still apply. */
1894 char gethostbyname();
1900 if { (eval echo configure
:1901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1902 eval "ac_cv_lib_$ac_lib_var=yes"
1904 echo "configure: failed program was:" >&5
1905 cat conftest.
$ac_ext >&5
1907 eval "ac_cv_lib_$ac_lib_var=no"
1910 LIBS
="$ac_save_LIBS"
1913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1914 echo "$ac_t""yes" 1>&6
1915 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
1917 echo "$ac_t""no" 1>&6
1922 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1923 # socket/setsockopt and other routines are undefined under SCO ODT
1924 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1925 # on later versions), says simon@lia.di.epfl.ch: it contains
1926 # gethostby* variants that don't use the nameserver (or something).
1927 # -lsocket must be given before -lnsl if both are needed.
1928 # We assume that if connect needs -lnsl, so does gethostbyname.
1929 echo $ac_n "checking for connect""... $ac_c" 1>&6
1930 echo "configure:1931: checking for connect" >&5
1931 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1932 echo $ac_n "(cached) $ac_c" 1>&6
1934 cat > conftest.
$ac_ext <<EOF
1935 #line 1936 "configure"
1936 #include "confdefs.h"
1937 /* System header to define __stub macros and hopefully few prototypes,
1938 which can conflict with char connect(); below. */
1940 /* Override any gcc2 internal prototype to avoid an error. */
1941 /* We use char because int might match the return type of a gcc2
1942 builtin and then its argument prototype would still apply. */
1947 /* The GNU C library defines this for functions which it implements
1948 to always fail with ENOSYS. Some functions are actually named
1949 something starting with __ and the normal name is an alias. */
1950 #if defined (__stub_connect) || defined (__stub___connect)
1958 if { (eval echo configure
:1959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1960 eval "ac_cv_func_connect=yes"
1962 echo "configure: failed program was:" >&5
1963 cat conftest.
$ac_ext >&5
1965 eval "ac_cv_func_connect=no"
1970 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1971 echo "$ac_t""yes" 1>&6
1974 echo "$ac_t""no" 1>&6
1977 if test $ac_cv_func_connect = no
; then
1978 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1979 echo "configure:1980: checking for connect in -lsocket" >&5
1980 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1982 echo $ac_n "(cached) $ac_c" 1>&6
1984 ac_save_LIBS
="$LIBS"
1985 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
1986 cat > conftest.
$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1989 /* Override any gcc2 internal prototype to avoid an error. */
1990 /* We use char because int might match the return type of a gcc2
1991 builtin and then its argument prototype would still apply. */
1998 if { (eval echo configure
:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2000 eval "ac_cv_lib_$ac_lib_var=yes"
2002 echo "configure: failed program was:" >&5
2003 cat conftest.
$ac_ext >&5
2005 eval "ac_cv_lib_$ac_lib_var=no"
2008 LIBS
="$ac_save_LIBS"
2011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2012 echo "$ac_t""yes" 1>&6
2013 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
2015 echo "$ac_t""no" 1>&6
2020 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2021 echo $ac_n "checking for remove""... $ac_c" 1>&6
2022 echo "configure:2023: checking for remove" >&5
2023 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2026 cat > conftest.
$ac_ext <<EOF
2027 #line 2028 "configure"
2028 #include "confdefs.h"
2029 /* System header to define __stub macros and hopefully few prototypes,
2030 which can conflict with char remove(); below. */
2032 /* Override any gcc2 internal prototype to avoid an error. */
2033 /* We use char because int might match the return type of a gcc2
2034 builtin and then its argument prototype would still apply. */
2039 /* The GNU C library defines this for functions which it implements
2040 to always fail with ENOSYS. Some functions are actually named
2041 something starting with __ and the normal name is an alias. */
2042 #if defined (__stub_remove) || defined (__stub___remove)
2050 if { (eval echo configure
:2051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2052 eval "ac_cv_func_remove=yes"
2054 echo "configure: failed program was:" >&5
2055 cat conftest.
$ac_ext >&5
2057 eval "ac_cv_func_remove=no"
2062 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2063 echo "$ac_t""yes" 1>&6
2066 echo "$ac_t""no" 1>&6
2069 if test $ac_cv_func_remove = no
; then
2070 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2071 echo "configure:2072: checking for remove in -lposix" >&5
2072 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2073 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2076 ac_save_LIBS
="$LIBS"
2077 LIBS
="-lposix $LIBS"
2078 cat > conftest.
$ac_ext <<EOF
2079 #line 2080 "configure"
2080 #include "confdefs.h"
2081 /* Override any gcc2 internal prototype to avoid an error. */
2082 /* We use char because int might match the return type of a gcc2
2083 builtin and then its argument prototype would still apply. */
2090 if { (eval echo configure
:2091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2092 eval "ac_cv_lib_$ac_lib_var=yes"
2094 echo "configure: failed program was:" >&5
2095 cat conftest.
$ac_ext >&5
2097 eval "ac_cv_lib_$ac_lib_var=no"
2100 LIBS
="$ac_save_LIBS"
2103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2104 echo "$ac_t""yes" 1>&6
2105 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2107 echo "$ac_t""no" 1>&6
2112 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2113 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2114 echo "configure:2115: checking for shmat" >&5
2115 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2116 echo $ac_n "(cached) $ac_c" 1>&6
2118 cat > conftest.
$ac_ext <<EOF
2119 #line 2120 "configure"
2120 #include "confdefs.h"
2121 /* System header to define __stub macros and hopefully few prototypes,
2122 which can conflict with char shmat(); below. */
2124 /* Override any gcc2 internal prototype to avoid an error. */
2125 /* We use char because int might match the return type of a gcc2
2126 builtin and then its argument prototype would still apply. */
2131 /* The GNU C library defines this for functions which it implements
2132 to always fail with ENOSYS. Some functions are actually named
2133 something starting with __ and the normal name is an alias. */
2134 #if defined (__stub_shmat) || defined (__stub___shmat)
2142 if { (eval echo configure
:2143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2144 eval "ac_cv_func_shmat=yes"
2146 echo "configure: failed program was:" >&5
2147 cat conftest.
$ac_ext >&5
2149 eval "ac_cv_func_shmat=no"
2154 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2155 echo "$ac_t""yes" 1>&6
2158 echo "$ac_t""no" 1>&6
2161 if test $ac_cv_func_shmat = no
; then
2162 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2163 echo "configure:2164: checking for shmat in -lipc" >&5
2164 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2166 echo $ac_n "(cached) $ac_c" 1>&6
2168 ac_save_LIBS
="$LIBS"
2170 cat > conftest.
$ac_ext <<EOF
2171 #line 2172 "configure"
2172 #include "confdefs.h"
2173 /* Override any gcc2 internal prototype to avoid an error. */
2174 /* We use char because int might match the return type of a gcc2
2175 builtin and then its argument prototype would still apply. */
2182 if { (eval echo configure
:2183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2184 eval "ac_cv_lib_$ac_lib_var=yes"
2186 echo "configure: failed program was:" >&5
2187 cat conftest.
$ac_ext >&5
2189 eval "ac_cv_lib_$ac_lib_var=no"
2192 LIBS
="$ac_save_LIBS"
2195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2196 echo "$ac_t""yes" 1>&6
2197 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2199 echo "$ac_t""no" 1>&6
2205 # Check for libraries that X11R6 Xt/Xaw programs need.
2206 ac_save_LDFLAGS
="$LDFLAGS"
2207 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2208 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2209 # check for ICE first), but we must link in the order -lSM -lICE or
2210 # we get undefined symbols. So assume we have SM if we have ICE.
2211 # These have to be linked with before -lX11, unlike the other
2212 # libraries we check for below, so use a different variable.
2213 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2214 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2215 echo "configure:2216: checking for IceConnectionNumber in -lICE" >&5
2216 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2217 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2220 ac_save_LIBS
="$LIBS"
2222 cat > conftest.
$ac_ext <<EOF
2223 #line 2224 "configure"
2224 #include "confdefs.h"
2225 /* Override any gcc2 internal prototype to avoid an error. */
2226 /* We use char because int might match the return type of a gcc2
2227 builtin and then its argument prototype would still apply. */
2228 char IceConnectionNumber();
2231 IceConnectionNumber()
2234 if { (eval echo configure
:2235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2236 eval "ac_cv_lib_$ac_lib_var=yes"
2238 echo "configure: failed program was:" >&5
2239 cat conftest.
$ac_ext >&5
2241 eval "ac_cv_lib_$ac_lib_var=no"
2244 LIBS
="$ac_save_LIBS"
2247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2248 echo "$ac_t""yes" 1>&6
2249 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2251 echo "$ac_t""no" 1>&6
2254 LDFLAGS
="$ac_save_LDFLAGS"
2260 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2262 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2263 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2264 echo "configure:2265: checking for $ac_hdr that defines DIR" >&5
2265 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 cat > conftest.
$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2271 #include <sys/types.h>
2277 if { (eval echo configure
:2278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2279 eval "ac_cv_header_dirent_$ac_safe=yes"
2281 echo "configure: failed program was:" >&5
2282 cat conftest.
$ac_ext >&5
2284 eval "ac_cv_header_dirent_$ac_safe=no"
2288 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2289 echo "$ac_t""yes" 1>&6
2290 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2291 cat >> confdefs.h
<<EOF
2292 #define $ac_tr_hdr 1
2294 ac_header_dirent
=$ac_hdr; break
2296 echo "$ac_t""no" 1>&6
2299 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2300 if test $ac_header_dirent = dirent.h
; then
2301 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2302 echo "configure:2303: checking for opendir in -ldir" >&5
2303 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2307 ac_save_LIBS
="$LIBS"
2309 cat > conftest.
$ac_ext <<EOF
2310 #line 2311 "configure"
2311 #include "confdefs.h"
2312 /* Override any gcc2 internal prototype to avoid an error. */
2313 /* We use char because int might match the return type of a gcc2
2314 builtin and then its argument prototype would still apply. */
2321 if { (eval echo configure
:2322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2323 eval "ac_cv_lib_$ac_lib_var=yes"
2325 echo "configure: failed program was:" >&5
2326 cat conftest.
$ac_ext >&5
2328 eval "ac_cv_lib_$ac_lib_var=no"
2331 LIBS
="$ac_save_LIBS"
2334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2335 echo "$ac_t""yes" 1>&6
2338 echo "$ac_t""no" 1>&6
2342 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2343 echo "configure:2344: checking for opendir in -lx" >&5
2344 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2345 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2346 echo $ac_n "(cached) $ac_c" 1>&6
2348 ac_save_LIBS
="$LIBS"
2350 cat > conftest.
$ac_ext <<EOF
2351 #line 2352 "configure"
2352 #include "confdefs.h"
2353 /* Override any gcc2 internal prototype to avoid an error. */
2354 /* We use char because int might match the return type of a gcc2
2355 builtin and then its argument prototype would still apply. */
2362 if { (eval echo configure
:2363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2364 eval "ac_cv_lib_$ac_lib_var=yes"
2366 echo "configure: failed program was:" >&5
2367 cat conftest.
$ac_ext >&5
2369 eval "ac_cv_lib_$ac_lib_var=no"
2372 LIBS
="$ac_save_LIBS"
2375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2376 echo "$ac_t""yes" 1>&6
2379 echo "$ac_t""no" 1>&6
2384 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2385 echo "configure:2386: checking for ANSI C header files" >&5
2386 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2387 echo $ac_n "(cached) $ac_c" 1>&6
2389 cat > conftest.
$ac_ext <<EOF
2390 #line 2391 "configure"
2391 #include "confdefs.h"
2397 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2398 { (eval echo configure
:2399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2399 ac_err
=`grep -v '^ *+' conftest.out`
2400 if test -z "$ac_err"; then
2402 ac_cv_header_stdc
=yes
2405 echo "configure: failed program was:" >&5
2406 cat conftest.
$ac_ext >&5
2408 ac_cv_header_stdc
=no
2412 if test $ac_cv_header_stdc = yes; then
2413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2414 cat > conftest.
$ac_ext <<EOF
2415 #line 2416 "configure"
2416 #include "confdefs.h"
2419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2420 egrep "memchr" >/dev
/null
2>&1; then
2424 ac_cv_header_stdc
=no
2430 if test $ac_cv_header_stdc = yes; then
2431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2432 cat > conftest.
$ac_ext <<EOF
2433 #line 2434 "configure"
2434 #include "confdefs.h"
2437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2438 egrep "free" >/dev
/null
2>&1; then
2442 ac_cv_header_stdc
=no
2448 if test $ac_cv_header_stdc = yes; then
2449 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2450 if test "$cross_compiling" = yes; then
2453 cat > conftest.
$ac_ext <<EOF
2454 #line 2455 "configure"
2455 #include "confdefs.h"
2457 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2458 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2460 int main () { int i; for (i = 0; i < 256; i++)
2461 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2465 if { (eval echo configure
:2466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
2469 echo "configure: failed program was:" >&5
2470 cat conftest.
$ac_ext >&5
2472 ac_cv_header_stdc
=no
2480 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2481 if test $ac_cv_header_stdc = yes; then
2482 cat >> confdefs.h
<<\EOF
2483 #define STDC_HEADERS 1
2488 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2489 echo "configure:2490: checking for sys/wait.h that is POSIX.1 compatible" >&5
2490 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2493 cat > conftest.
$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2496 #include <sys/types.h>
2497 #include <sys/wait.h>
2499 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2502 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2507 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2510 if { (eval echo configure
:2511: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2512 ac_cv_header_sys_wait_h
=yes
2514 echo "configure: failed program was:" >&5
2515 cat conftest.
$ac_ext >&5
2517 ac_cv_header_sys_wait_h
=no
2522 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2523 if test $ac_cv_header_sys_wait_h = yes; then
2524 cat >> confdefs.h
<<\EOF
2525 #define HAVE_SYS_WAIT_H 1
2530 for ac_hdr
in fcntl.h
2532 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2533 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2534 echo "configure:2535: checking for $ac_hdr" >&5
2535 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2536 echo $ac_n "(cached) $ac_c" 1>&6
2538 cat > conftest.
$ac_ext <<EOF
2539 #line 2540 "configure"
2540 #include "confdefs.h"
2543 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2544 { (eval echo configure
:2545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2545 ac_err
=`grep -v '^ *+' conftest.out`
2546 if test -z "$ac_err"; then
2548 eval "ac_cv_header_$ac_safe=yes"
2551 echo "configure: failed program was:" >&5
2552 cat conftest.
$ac_ext >&5
2554 eval "ac_cv_header_$ac_safe=no"
2558 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2559 echo "$ac_t""yes" 1>&6
2560 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2561 cat >> confdefs.h
<<EOF
2562 #define $ac_tr_hdr 1
2566 echo "$ac_t""no" 1>&6
2570 for ac_hdr
in limits.h
2572 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2573 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2574 echo "configure:2575: checking for $ac_hdr" >&5
2575 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2576 echo $ac_n "(cached) $ac_c" 1>&6
2578 cat > conftest.
$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2583 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2584 { (eval echo configure
:2585: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2585 ac_err
=`grep -v '^ *+' conftest.out`
2586 if test -z "$ac_err"; then
2588 eval "ac_cv_header_$ac_safe=yes"
2591 echo "configure: failed program was:" >&5
2592 cat conftest.
$ac_ext >&5
2594 eval "ac_cv_header_$ac_safe=no"
2598 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2599 echo "$ac_t""yes" 1>&6
2600 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2601 cat >> confdefs.h
<<EOF
2602 #define $ac_tr_hdr 1
2606 echo "$ac_t""no" 1>&6
2610 for ac_hdr
in sys
/file.h
2612 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2613 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2614 echo "configure:2615: checking for $ac_hdr" >&5
2615 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2618 cat > conftest.
$ac_ext <<EOF
2619 #line 2620 "configure"
2620 #include "confdefs.h"
2623 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2624 { (eval echo configure
:2625: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2625 ac_err
=`grep -v '^ *+' conftest.out`
2626 if test -z "$ac_err"; then
2628 eval "ac_cv_header_$ac_safe=yes"
2631 echo "configure: failed program was:" >&5
2632 cat conftest.
$ac_ext >&5
2634 eval "ac_cv_header_$ac_safe=no"
2638 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2639 echo "$ac_t""yes" 1>&6
2640 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2641 cat >> confdefs.h
<<EOF
2642 #define $ac_tr_hdr 1
2646 echo "$ac_t""no" 1>&6
2650 for ac_hdr
in sys
/time.h
2652 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2653 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2654 echo "configure:2655: checking for $ac_hdr" >&5
2655 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2656 echo $ac_n "(cached) $ac_c" 1>&6
2658 cat > conftest.
$ac_ext <<EOF
2659 #line 2660 "configure"
2660 #include "confdefs.h"
2663 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2664 { (eval echo configure
:2665: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2665 ac_err
=`grep -v '^ *+' conftest.out`
2666 if test -z "$ac_err"; then
2668 eval "ac_cv_header_$ac_safe=yes"
2671 echo "configure: failed program was:" >&5
2672 cat conftest.
$ac_ext >&5
2674 eval "ac_cv_header_$ac_safe=no"
2678 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2679 echo "$ac_t""yes" 1>&6
2680 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2681 cat >> confdefs.h
<<EOF
2682 #define $ac_tr_hdr 1
2686 echo "$ac_t""no" 1>&6
2690 for ac_hdr
in unistd.h
2692 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2693 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2694 echo "configure:2695: checking for $ac_hdr" >&5
2695 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2696 echo $ac_n "(cached) $ac_c" 1>&6
2698 cat > conftest.
$ac_ext <<EOF
2699 #line 2700 "configure"
2700 #include "confdefs.h"
2703 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2704 { (eval echo configure
:2705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2705 ac_err
=`grep -v '^ *+' conftest.out`
2706 if test -z "$ac_err"; then
2708 eval "ac_cv_header_$ac_safe=yes"
2711 echo "configure: failed program was:" >&5
2712 cat conftest.
$ac_ext >&5
2714 eval "ac_cv_header_$ac_safe=no"
2718 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2719 echo "$ac_t""yes" 1>&6
2720 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2721 cat >> confdefs.h
<<EOF
2722 #define $ac_tr_hdr 1
2726 echo "$ac_t""no" 1>&6
2730 for ac_hdr
in fnmatch.h
2732 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2733 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2734 echo "configure:2735: checking for $ac_hdr" >&5
2735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2738 cat > conftest.
$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2743 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2744 { (eval echo configure
:2745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2745 ac_err
=`grep -v '^ *+' conftest.out`
2746 if test -z "$ac_err"; then
2748 eval "ac_cv_header_$ac_safe=yes"
2751 echo "configure: failed program was:" >&5
2752 cat conftest.
$ac_ext >&5
2754 eval "ac_cv_header_$ac_safe=no"
2758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2759 echo "$ac_t""yes" 1>&6
2760 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2761 cat >> confdefs.h
<<EOF
2762 #define $ac_tr_hdr 1
2766 echo "$ac_t""no" 1>&6
2770 for ac_hdr
in linux
/joystick.h
2772 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2773 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2774 echo "configure:2775: checking for $ac_hdr" >&5
2775 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2776 echo $ac_n "(cached) $ac_c" 1>&6
2778 cat > conftest.
$ac_ext <<EOF
2779 #line 2780 "configure"
2780 #include "confdefs.h"
2783 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2784 { (eval echo configure
:2785: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2785 ac_err
=`grep -v '^ *+' conftest.out`
2786 if test -z "$ac_err"; then
2788 eval "ac_cv_header_$ac_safe=yes"
2791 echo "configure: failed program was:" >&5
2792 cat conftest.
$ac_ext >&5
2794 eval "ac_cv_header_$ac_safe=no"
2798 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2799 echo "$ac_t""yes" 1>&6
2800 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2801 cat >> confdefs.h
<<EOF
2802 #define $ac_tr_hdr 1
2806 echo "$ac_t""no" 1>&6
2811 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
2812 GTK_JOYSTICK
="gtk/joystick.cpp"
2816 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2817 echo "configure:2818: checking for vprintf" >&5
2818 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2821 cat > conftest.
$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2824 /* System header to define __stub macros and hopefully few prototypes,
2825 which can conflict with char vprintf(); below. */
2827 /* Override any gcc2 internal prototype to avoid an error. */
2828 /* We use char because int might match the return type of a gcc2
2829 builtin and then its argument prototype would still apply. */
2834 /* The GNU C library defines this for functions which it implements
2835 to always fail with ENOSYS. Some functions are actually named
2836 something starting with __ and the normal name is an alias. */
2837 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2845 if { (eval echo configure
:2846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2847 eval "ac_cv_func_vprintf=yes"
2849 echo "configure: failed program was:" >&5
2850 cat conftest.
$ac_ext >&5
2852 eval "ac_cv_func_vprintf=no"
2857 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2858 echo "$ac_t""yes" 1>&6
2859 cat >> confdefs.h
<<\EOF
2860 #define HAVE_VPRINTF 1
2864 echo "$ac_t""no" 1>&6
2867 if test "$ac_cv_func_vprintf" != yes; then
2868 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2869 echo "configure:2870: checking for _doprnt" >&5
2870 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2871 echo $ac_n "(cached) $ac_c" 1>&6
2873 cat > conftest.
$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2876 /* System header to define __stub macros and hopefully few prototypes,
2877 which can conflict with char _doprnt(); below. */
2879 /* Override any gcc2 internal prototype to avoid an error. */
2880 /* We use char because int might match the return type of a gcc2
2881 builtin and then its argument prototype would still apply. */
2886 /* The GNU C library defines this for functions which it implements
2887 to always fail with ENOSYS. Some functions are actually named
2888 something starting with __ and the normal name is an alias. */
2889 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2897 if { (eval echo configure
:2898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2899 eval "ac_cv_func__doprnt=yes"
2901 echo "configure: failed program was:" >&5
2902 cat conftest.
$ac_ext >&5
2904 eval "ac_cv_func__doprnt=no"
2909 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2910 echo "$ac_t""yes" 1>&6
2911 cat >> confdefs.h
<<\EOF
2912 #define HAVE_DOPRNT 1
2916 echo "$ac_t""no" 1>&6
2921 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
2922 echo "configure:2923: checking for vsnprintf" >&5
2923 if eval "test \"`echo '$''{'ac_cv_func_vsnprintf'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2926 cat > conftest.
$ac_ext <<EOF
2927 #line 2928 "configure"
2928 #include "confdefs.h"
2929 /* System header to define __stub macros and hopefully few prototypes,
2930 which can conflict with char vsnprintf(); below. */
2932 /* Override any gcc2 internal prototype to avoid an error. */
2933 /* We use char because int might match the return type of a gcc2
2934 builtin and then its argument prototype would still apply. */
2939 /* The GNU C library defines this for functions which it implements
2940 to always fail with ENOSYS. Some functions are actually named
2941 something starting with __ and the normal name is an alias. */
2942 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
2950 if { (eval echo configure
:2951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
2952 eval "ac_cv_func_vsnprintf=yes"
2954 echo "configure: failed program was:" >&5
2955 cat conftest.
$ac_ext >&5
2957 eval "ac_cv_func_vsnprintf=no"
2962 if eval "test \"`echo '$ac_cv_func_'vsnprintf`\" = yes"; then
2963 echo "$ac_t""yes" 1>&6
2964 cat >> confdefs.h
<<\EOF
2965 #define HAVE_VSNPRINTF 1
2969 echo "$ac_t""no" 1>&6
2975 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2976 ac_cpp
='$CXXCPP $CPPFLAGS'
2977 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2978 ac_link
='${CXX-g++} -o conftest $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2979 cross_compiling
=$ac_cv_prog_cxx_cross
2981 for ac_hdr
in iostream
2983 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2984 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2985 echo "configure:2986: checking for $ac_hdr" >&5
2986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2989 cat > conftest.
$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2994 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2995 { (eval echo configure
:2996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2996 ac_err
=`grep -v '^ *+' conftest.out`
2997 if test -z "$ac_err"; then
2999 eval "ac_cv_header_$ac_safe=yes"
3002 echo "configure: failed program was:" >&5
3003 cat conftest.
$ac_ext >&5
3005 eval "ac_cv_header_$ac_safe=no"
3009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3010 echo "$ac_t""yes" 1>&6
3011 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3012 cat >> confdefs.h
<<EOF
3013 #define $ac_tr_hdr 1
3017 echo "$ac_t""no" 1>&6
3021 if test "x$HAVE_IOSTREAM" = "x" ; then
3022 cat >> confdefs.h
<<\EOF
3023 #define wxUSE_IOSTREAMH 1
3028 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3029 ac_cpp
='$CPP $CPPFLAGS'
3030 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3031 ac_link
='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3032 cross_compiling
=$ac_cv_prog_cc_cross
3035 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3036 echo "configure:3037: checking for uid_t in sys/types.h" >&5
3037 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3040 cat > conftest.
$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3043 #include <sys/types.h>
3045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3046 egrep "uid_t" >/dev
/null
2>&1; then
3048 ac_cv_type_uid_t
=yes
3057 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3058 if test $ac_cv_type_uid_t = no
; then
3059 cat >> confdefs.h
<<\EOF
3063 cat >> confdefs.h
<<\EOF
3069 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3070 echo "configure:3071: checking type of array argument to getgroups" >&5
3071 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3074 if test "$cross_compiling" = yes; then
3075 ac_cv_type_getgroups
=cross
3077 cat > conftest.
$ac_ext <<EOF
3078 #line 3079 "configure"
3079 #include "confdefs.h"
3081 /* Thanks to Mike Rendell for this test. */
3082 #include <sys/types.h>
3085 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3090 union { gid_t gval; long lval; } val;
3093 for (i = 0; i < NGID; i++)
3094 gidset[i] = val.gval;
3095 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3097 /* Exit non-zero if getgroups seems to require an array of ints. This
3098 happens when gid_t is short but getgroups modifies an array of ints. */
3099 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3103 if { (eval echo configure
:3104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3105 ac_cv_type_getgroups
=gid_t
3107 echo "configure: failed program was:" >&5
3108 cat conftest.
$ac_ext >&5
3110 ac_cv_type_getgroups
=int
3115 if test $ac_cv_type_getgroups = cross
; then
3116 cat > conftest.
$ac_ext <<EOF
3117 #line 3118 "configure"
3118 #include "confdefs.h"
3121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3122 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3124 ac_cv_type_getgroups
=gid_t
3127 ac_cv_type_getgroups
=int
3134 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3135 cat >> confdefs.h
<<EOF
3136 #define GETGROUPS_T $ac_cv_type_getgroups
3140 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3141 echo "configure:3142: checking for mode_t" >&5
3142 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3143 echo $ac_n "(cached) $ac_c" 1>&6
3145 cat > conftest.
$ac_ext <<EOF
3146 #line 3147 "configure"
3147 #include "confdefs.h"
3148 #include <sys/types.h>
3154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3155 egrep "mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3157 ac_cv_type_mode_t
=yes
3160 ac_cv_type_mode_t
=no
3165 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3166 if test $ac_cv_type_mode_t = no
; then
3167 cat >> confdefs.h
<<\EOF
3173 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3174 echo "configure:3175: checking for off_t" >&5
3175 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3176 echo $ac_n "(cached) $ac_c" 1>&6
3178 cat > conftest.
$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3181 #include <sys/types.h>
3187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3188 egrep "off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3190 ac_cv_type_off_t
=yes
3198 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3199 if test $ac_cv_type_off_t = no
; then
3200 cat >> confdefs.h
<<\EOF
3206 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3207 echo "configure:3208: checking for pid_t" >&5
3208 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3211 cat > conftest.
$ac_ext <<EOF
3212 #line 3213 "configure"
3213 #include "confdefs.h"
3214 #include <sys/types.h>
3220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3221 egrep "pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3223 ac_cv_type_pid_t
=yes
3231 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3232 if test $ac_cv_type_pid_t = no
; then
3233 cat >> confdefs.h
<<\EOF
3239 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3240 echo "configure:3241: checking return type of signal handlers" >&5
3241 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3244 cat > conftest.
$ac_ext <<EOF
3245 #line 3246 "configure"
3246 #include "confdefs.h"
3247 #include <sys/types.h>
3253 extern "C" void (*signal (int, void (*)(int)))(int);
3255 void (*signal ()) ();
3262 if { (eval echo configure
:3263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3264 ac_cv_type_signal
=void
3266 echo "configure: failed program was:" >&5
3267 cat conftest.
$ac_ext >&5
3269 ac_cv_type_signal
=int
3274 echo "$ac_t""$ac_cv_type_signal" 1>&6
3275 cat >> confdefs.h
<<EOF
3276 #define RETSIGTYPE $ac_cv_type_signal
3280 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3281 echo "configure:3282: checking for size_t" >&5
3282 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3283 echo $ac_n "(cached) $ac_c" 1>&6
3285 cat > conftest.
$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3288 #include <sys/types.h>
3294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3295 egrep "size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3297 ac_cv_type_size_t
=yes
3300 ac_cv_type_size_t
=no
3305 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3306 if test $ac_cv_type_size_t = no
; then
3307 cat >> confdefs.h
<<\EOF
3308 #define size_t unsigned
3313 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3314 echo "configure:3315: checking for uid_t in sys/types.h" >&5
3315 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3318 cat > conftest.
$ac_ext <<EOF
3319 #line 3320 "configure"
3320 #include "confdefs.h"
3321 #include <sys/types.h>
3323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3324 egrep "uid_t" >/dev
/null
2>&1; then
3326 ac_cv_type_uid_t
=yes
3335 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3336 if test $ac_cv_type_uid_t = no
; then
3337 cat >> confdefs.h
<<\EOF
3341 cat >> confdefs.h
<<\EOF
3349 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3350 echo "configure:3351: checking whether stat file-mode macros are broken" >&5
3351 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3354 cat > conftest.
$ac_ext <<EOF
3355 #line 3356 "configure"
3356 #include "confdefs.h"
3357 #include <sys/types.h>
3358 #include <sys/stat.h>
3360 #if defined(S_ISBLK) && defined(S_IFDIR)
3361 # if S_ISBLK (S_IFDIR)
3366 #if defined(S_ISBLK) && defined(S_IFCHR)
3367 # if S_ISBLK (S_IFCHR)
3372 #if defined(S_ISLNK) && defined(S_IFREG)
3373 # if S_ISLNK (S_IFREG)
3378 #if defined(S_ISSOCK) && defined(S_IFREG)
3379 # if S_ISSOCK (S_IFREG)
3385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3386 egrep "You lose" >/dev
/null
2>&1; then
3388 ac_cv_header_stat_broken
=yes
3391 ac_cv_header_stat_broken
=no
3397 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3398 if test $ac_cv_header_stat_broken = yes; then
3399 cat >> confdefs.h
<<\EOF
3400 #define STAT_MACROS_BROKEN 1
3405 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3406 echo "configure:3407: checking whether time.h and sys/time.h may both be included" >&5
3407 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3408 echo $ac_n "(cached) $ac_c" 1>&6
3410 cat > conftest.
$ac_ext <<EOF
3411 #line 3412 "configure"
3412 #include "confdefs.h"
3413 #include <sys/types.h>
3414 #include <sys/time.h>
3420 if { (eval echo configure
:3421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3422 ac_cv_header_time
=yes
3424 echo "configure: failed program was:" >&5
3425 cat conftest.
$ac_ext >&5
3427 ac_cv_header_time
=no
3432 echo "$ac_t""$ac_cv_header_time" 1>&6
3433 if test $ac_cv_header_time = yes; then
3434 cat >> confdefs.h
<<\EOF
3435 #define TIME_WITH_SYS_TIME 1
3440 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3441 echo "configure:3442: checking for st_blksize in struct stat" >&5
3442 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3443 echo $ac_n "(cached) $ac_c" 1>&6
3445 cat > conftest.
$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3448 #include <sys/types.h>
3449 #include <sys/stat.h>
3451 struct stat s; s.st_blksize;
3454 if { (eval echo configure
:3455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3456 ac_cv_struct_st_blksize
=yes
3458 echo "configure: failed program was:" >&5
3459 cat conftest.
$ac_ext >&5
3461 ac_cv_struct_st_blksize
=no
3466 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3467 if test $ac_cv_struct_st_blksize = yes; then
3468 cat >> confdefs.h
<<\EOF
3469 #define HAVE_ST_BLKSIZE 1
3474 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3475 echo "configure:3476: checking for st_blocks in struct stat" >&5
3476 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3479 cat > conftest.
$ac_ext <<EOF
3480 #line 3481 "configure"
3481 #include "confdefs.h"
3482 #include <sys/types.h>
3483 #include <sys/stat.h>
3485 struct stat s; s.st_blocks;
3488 if { (eval echo configure
:3489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3490 ac_cv_struct_st_blocks
=yes
3492 echo "configure: failed program was:" >&5
3493 cat conftest.
$ac_ext >&5
3495 ac_cv_struct_st_blocks
=no
3500 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3501 if test $ac_cv_struct_st_blocks = yes; then
3502 cat >> confdefs.h
<<\EOF
3503 #define HAVE_ST_BLOCKS 1
3507 LIBOBJS
="$LIBOBJS fileblocks.o"
3510 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
3511 echo "configure:3512: checking for st_rdev in struct stat" >&5
3512 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
3513 echo $ac_n "(cached) $ac_c" 1>&6
3515 cat > conftest.
$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3518 #include <sys/types.h>
3519 #include <sys/stat.h>
3521 struct stat s; s.st_rdev;
3524 if { (eval echo configure
:3525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3526 ac_cv_struct_st_rdev
=yes
3528 echo "configure: failed program was:" >&5
3529 cat conftest.
$ac_ext >&5
3531 ac_cv_struct_st_rdev
=no
3536 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
3537 if test $ac_cv_struct_st_rdev = yes; then
3538 cat >> confdefs.h
<<\EOF
3539 #define HAVE_ST_RDEV 1
3544 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
3545 echo "configure:3546: checking whether struct tm is in sys/time.h or time.h" >&5
3546 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
3547 echo $ac_n "(cached) $ac_c" 1>&6
3549 cat > conftest.
$ac_ext <<EOF
3550 #line 3551 "configure"
3551 #include "confdefs.h"
3552 #include <sys/types.h>
3555 struct tm *tp; tp->tm_sec;
3558 if { (eval echo configure
:3559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3560 ac_cv_struct_tm
=time.h
3562 echo "configure: failed program was:" >&5
3563 cat conftest.
$ac_ext >&5
3565 ac_cv_struct_tm
=sys
/time.h
3570 echo "$ac_t""$ac_cv_struct_tm" 1>&6
3571 if test $ac_cv_struct_tm = sys
/time.h
; then
3572 cat >> confdefs.h
<<\EOF
3573 #define TM_IN_SYS_TIME 1
3578 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
3579 echo "configure:3580: checking for tm_zone in struct tm" >&5
3580 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3583 cat > conftest.
$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3586 #include <sys/types.h>
3587 #include <$ac_cv_struct_tm>
3589 struct tm tm; tm.tm_zone;
3592 if { (eval echo configure
:3593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3594 ac_cv_struct_tm_zone
=yes
3596 echo "configure: failed program was:" >&5
3597 cat conftest.
$ac_ext >&5
3599 ac_cv_struct_tm_zone
=no
3604 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
3605 if test "$ac_cv_struct_tm_zone" = yes; then
3606 cat >> confdefs.h
<<\EOF
3607 #define HAVE_TM_ZONE 1
3611 echo $ac_n "checking for tzname""... $ac_c" 1>&6
3612 echo "configure:3613: checking for tzname" >&5
3613 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
3614 echo $ac_n "(cached) $ac_c" 1>&6
3616 cat > conftest.
$ac_ext <<EOF
3617 #line 3618 "configure"
3618 #include "confdefs.h"
3620 #ifndef tzname /* For SGI. */
3621 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
3627 if { (eval echo configure
:3628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
3629 ac_cv_var_tzname
=yes
3631 echo "configure: failed program was:" >&5
3632 cat conftest.
$ac_ext >&5
3639 echo "$ac_t""$ac_cv_var_tzname" 1>&6
3640 if test $ac_cv_var_tzname = yes; then
3641 cat >> confdefs.h
<<\EOF
3642 #define HAVE_TZNAME 1
3650 echo $ac_n "checking for working const""... $ac_c" 1>&6
3651 echo "configure:3652: checking for working const" >&5
3652 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 cat > conftest.
$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3661 /* Ultrix mips cc rejects this. */
3662 typedef int charset[2]; const charset x;
3663 /* SunOS 4.1.1 cc rejects this. */
3664 char const *const *ccp;
3666 /* NEC SVR4.0.2 mips cc rejects this. */
3667 struct point {int x, y;};
3668 static struct point const zero = {0,0};
3669 /* AIX XL C 1.02.0.0 rejects this.
3670 It does not let you subtract one const X* pointer from another in an arm
3671 of an if-expression whose if-part is not a constant expression */
3672 const char *g = "string";
3673 ccp = &g + (g ? g-g : 0);
3674 /* HPUX 7.0 cc rejects these. */
3677 ccp = (char const *const *) p;
3678 { /* SCO 3.2v4 cc rejects this. */
3680 char const *s = 0 ? (char *) 0 : (char const *) 0;
3684 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3686 const int *foo = &x[0];
3689 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3690 typedef const int *iptr;
3694 { /* AIX XL C 1.02.0.0 rejects this saying
3695 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3696 struct s { int j; const int *ap[3]; };
3697 struct s *b; b->j = 5;
3699 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3705 if { (eval echo configure
:3706: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3709 echo "configure: failed program was:" >&5
3710 cat conftest.
$ac_ext >&5
3717 echo "$ac_t""$ac_cv_c_const" 1>&6
3718 if test $ac_cv_c_const = no
; then
3719 cat >> confdefs.h
<<\EOF
3725 echo $ac_n "checking for inline""... $ac_c" 1>&6
3726 echo "configure:3727: checking for inline" >&5
3727 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3731 for ac_kw
in inline __inline__ __inline
; do
3732 cat > conftest.
$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3740 if { (eval echo configure
:3741: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3742 ac_cv_c_inline
=$ac_kw; break
3744 echo "configure: failed program was:" >&5
3745 cat conftest.
$ac_ext >&5
3752 echo "$ac_t""$ac_cv_c_inline" 1>&6
3753 case "$ac_cv_c_inline" in
3755 no
) cat >> confdefs.h
<<\EOF
3759 *) cat >> confdefs.h
<<EOF
3760 #define inline $ac_cv_c_inline
3765 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
3766 echo "configure:3767: checking whether char is unsigned" >&5
3767 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3770 if test "$GCC" = yes; then
3771 # GCC predefines this symbol on systems where it applies.
3772 cat > conftest.
$ac_ext <<EOF
3773 #line 3774 "configure"
3774 #include "confdefs.h"
3775 #ifdef __CHAR_UNSIGNED__
3780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3781 egrep "yes" >/dev
/null
2>&1; then
3783 ac_cv_c_char_unsigned
=yes
3786 ac_cv_c_char_unsigned
=no
3791 if test "$cross_compiling" = yes; then
3792 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3794 cat > conftest.
$ac_ext <<EOF
3795 #line 3796 "configure"
3796 #include "confdefs.h"
3797 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
3798 #if !defined(__STDC__) || __STDC__ != 1
3802 volatile char c = 255; exit(c < 0);
3805 if { (eval echo configure
:3806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3807 ac_cv_c_char_unsigned
=yes
3809 echo "configure: failed program was:" >&5
3810 cat conftest.
$ac_ext >&5
3812 ac_cv_c_char_unsigned
=no
3820 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
3821 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
3822 cat >> confdefs.h
<<\EOF
3823 #define __CHAR_UNSIGNED__ 1
3828 echo $ac_n "checking for long double""... $ac_c" 1>&6
3829 echo "configure:3830: checking for long double" >&5
3830 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3833 if test "$GCC" = yes; then
3834 ac_cv_c_long_double
=yes
3836 if test "$cross_compiling" = yes; then
3837 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3839 cat > conftest.
$ac_ext <<EOF
3840 #line 3841 "configure"
3841 #include "confdefs.h"
3843 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
3844 long double foo = 0.0;
3845 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
3846 exit(sizeof(long double) < sizeof(double)); }
3848 if { (eval echo configure
:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3850 ac_cv_c_long_double
=yes
3852 echo "configure: failed program was:" >&5
3853 cat conftest.
$ac_ext >&5
3855 ac_cv_c_long_double
=no
3863 echo "$ac_t""$ac_cv_c_long_double" 1>&6
3864 if test $ac_cv_c_long_double = yes; then
3865 cat >> confdefs.h
<<\EOF
3866 #define HAVE_LONG_DOUBLE 1
3872 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3873 echo "configure:3874: checking whether byte ordering is bigendian" >&5
3874 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3875 echo $ac_n "(cached) $ac_c" 1>&6
3877 ac_cv_c_bigendian
=unknown
3878 # See if sys/param.h defines the BYTE_ORDER macro.
3879 cat > conftest.
$ac_ext <<EOF
3880 #line 3881 "configure"
3881 #include "confdefs.h"
3882 #include <sys/types.h>
3883 #include <sys/param.h>
3886 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3891 if { (eval echo configure
:3892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3893 # It does; now see whether it defined to BIG_ENDIAN or not.
3894 cat > conftest.
$ac_ext <<EOF
3895 #line 3896 "configure"
3896 #include "confdefs.h"
3897 #include <sys/types.h>
3898 #include <sys/param.h>
3901 #if BYTE_ORDER != BIG_ENDIAN
3906 if { (eval echo configure
:3907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3908 ac_cv_c_bigendian
=yes
3910 echo "configure: failed program was:" >&5
3911 cat conftest.
$ac_ext >&5
3913 ac_cv_c_bigendian
=no
3917 echo "configure: failed program was:" >&5
3918 cat conftest.
$ac_ext >&5
3921 if test $ac_cv_c_bigendian = unknown
; then
3922 if test "$cross_compiling" = yes; then
3923 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3925 cat > conftest.
$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3929 /* Are we little or big endian? From Harbison&Steele. */
3933 char c[sizeof (long)];
3936 exit (u.c[sizeof (long) - 1] == 1);
3939 if { (eval echo configure
:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3941 ac_cv_c_bigendian
=no
3943 echo "configure: failed program was:" >&5
3944 cat conftest.
$ac_ext >&5
3946 ac_cv_c_bigendian
=yes
3954 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3955 if test $ac_cv_c_bigendian = yes; then
3956 cat >> confdefs.h
<<\EOF
3957 #define WORDS_BIGENDIAN 1
3963 echo $ac_n "checking size of int *""... $ac_c" 1>&6
3964 echo "configure:3965: checking size of int *" >&5
3965 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
3966 echo $ac_n "(cached) $ac_c" 1>&6
3968 if test "$cross_compiling" = yes; then
3969 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3971 cat > conftest.
$ac_ext <<EOF
3972 #line 3973 "configure"
3973 #include "confdefs.h"
3977 FILE *f=fopen("conftestval", "w");
3979 fprintf(f, "%d\n", sizeof(int *));
3983 if { (eval echo configure
:3984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
3985 ac_cv_sizeof_int_p
=`cat conftestval`
3987 echo "configure: failed program was:" >&5
3988 cat conftest.
$ac_ext >&5
3990 ac_cv_sizeof_int_p
=0
3996 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
3997 cat >> confdefs.h
<<EOF
3998 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
4002 echo $ac_n "checking size of int""... $ac_c" 1>&6
4003 echo "configure:4004: checking size of int" >&5
4004 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4007 if test "$cross_compiling" = yes; then
4008 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4010 cat > conftest.
$ac_ext <<EOF
4011 #line 4012 "configure"
4012 #include "confdefs.h"
4016 FILE *f=fopen("conftestval", "w");
4018 fprintf(f, "%d\n", sizeof(int));
4022 if { (eval echo configure
:4023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4024 ac_cv_sizeof_int
=`cat conftestval`
4026 echo "configure: failed program was:" >&5
4027 cat conftest.
$ac_ext >&5
4035 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4036 cat >> confdefs.h
<<EOF
4037 #define SIZEOF_INT $ac_cv_sizeof_int
4041 echo $ac_n "checking size of long""... $ac_c" 1>&6
4042 echo "configure:4043: checking size of long" >&5
4043 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4044 echo $ac_n "(cached) $ac_c" 1>&6
4046 if test "$cross_compiling" = yes; then
4047 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4049 cat > conftest.
$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4055 FILE *f=fopen("conftestval", "w");
4057 fprintf(f, "%d\n", sizeof(long));
4061 if { (eval echo configure
:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4063 ac_cv_sizeof_long
=`cat conftestval`
4065 echo "configure: failed program was:" >&5
4066 cat conftest.
$ac_ext >&5
4074 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4075 cat >> confdefs.h
<<EOF
4076 #define SIZEOF_LONG $ac_cv_sizeof_long
4080 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4081 echo "configure:4082: checking size of long long" >&5
4082 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4083 echo $ac_n "(cached) $ac_c" 1>&6
4085 if test "$cross_compiling" = yes; then
4086 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4088 cat > conftest.
$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4094 FILE *f=fopen("conftestval", "w");
4096 fprintf(f, "%d\n", sizeof(long long));
4100 if { (eval echo configure
:4101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4102 ac_cv_sizeof_long_long
=`cat conftestval`
4104 echo "configure: failed program was:" >&5
4105 cat conftest.
$ac_ext >&5
4107 ac_cv_sizeof_long_long
=0
4113 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4114 cat >> confdefs.h
<<EOF
4115 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4123 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4124 echo "configure:4125: checking for long file names" >&5
4125 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
4126 echo $ac_n "(cached) $ac_c" 1>&6
4128 ac_cv_sys_long_file_names
=yes
4129 # Test for long file names in all the places we know might matter:
4130 # . the current directory, where building will happen
4131 # $prefix/lib where we will be installing things
4132 # $exec_prefix/lib likewise
4133 # eval it to expand exec_prefix.
4134 # $TMPDIR if set, where it might want to write temporary files
4135 # if $TMPDIR is not set:
4136 # /tmp where it might want to write temporary files
4139 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4140 ac_tmpdirs
="$TMPDIR"
4142 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
4144 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4145 test -d $ac_dir || continue
4146 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4147 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
4148 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
4149 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
4150 if test ! -f $ac_dir/conftest9012345
|| test "$val" != 1; then
4151 ac_cv_sys_long_file_names
=no
4152 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4155 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4159 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4160 if test $ac_cv_sys_long_file_names = yes; then
4161 cat >> confdefs.h
<<\EOF
4162 #define HAVE_LONG_FILE_NAMES 1
4170 for ac_prog
in 'bison -y' byacc
4172 # Extract the first word of "$ac_prog", so it can be a program name with args.
4173 set dummy
$ac_prog; ac_word
=$2
4174 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4175 echo "configure:4176: checking for $ac_word" >&5
4176 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4177 echo $ac_n "(cached) $ac_c" 1>&6
4179 if test -n "$YACC"; then
4180 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4182 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4183 for ac_dir
in $PATH; do
4184 test -z "$ac_dir" && ac_dir
=.
4185 if test -f $ac_dir/$ac_word; then
4186 ac_cv_prog_YACC
="$ac_prog"
4193 YACC
="$ac_cv_prog_YACC"
4194 if test -n "$YACC"; then
4195 echo "$ac_t""$YACC" 1>&6
4197 echo "$ac_t""no" 1>&6
4200 test -n "$YACC" && break
4202 test -n "$YACC" || YACC
="yacc"
4205 # Extract the first word of "flex", so it can be a program name with args.
4206 set dummy flex
; ac_word
=$2
4207 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4208 echo "configure:4209: checking for $ac_word" >&5
4209 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4212 if test -n "$LEX"; then
4213 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4215 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
4216 for ac_dir
in $PATH; do
4217 test -z "$ac_dir" && ac_dir
=.
4218 if test -f $ac_dir/$ac_word; then
4219 ac_cv_prog_LEX
="flex"
4224 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
4227 LEX
="$ac_cv_prog_LEX"
4228 if test -n "$LEX"; then
4229 echo "$ac_t""$LEX" 1>&6
4231 echo "$ac_t""no" 1>&6
4234 if test -z "$LEXLIB"
4240 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4241 echo "configure:4242: checking for yywrap in -l$ac_lib" >&5
4242 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4244 echo $ac_n "(cached) $ac_c" 1>&6
4246 ac_save_LIBS
="$LIBS"
4247 LIBS
="-l$ac_lib $LIBS"
4248 cat > conftest.
$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4251 /* Override any gcc2 internal prototype to avoid an error. */
4252 /* We use char because int might match the return type of a gcc2
4253 builtin and then its argument prototype would still apply. */
4260 if { (eval echo configure
:4261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4262 eval "ac_cv_lib_$ac_lib_var=yes"
4264 echo "configure: failed program was:" >&5
4265 cat conftest.
$ac_ext >&5
4267 eval "ac_cv_lib_$ac_lib_var=no"
4270 LIBS
="$ac_save_LIBS"
4273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4274 echo "$ac_t""yes" 1>&6
4277 echo "$ac_t""no" 1>&6
4282 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4283 echo "configure:4284: checking lex output file root" >&5
4284 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4285 echo $ac_n "(cached) $ac_c" 1>&6
4287 # The minimal lex program is just a single line: %%. But some broken lexes
4288 # (Solaris, I think it was) want two %% lines, so accommodate them.
4291 if test -f lex.yy.c
; then
4292 ac_cv_prog_lex_root
=lex.yy
4293 elif test -f lexyy.c
; then
4294 ac_cv_prog_lex_root
=lexyy
4296 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4300 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4301 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4303 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4304 echo "configure:4305: checking whether yytext is a pointer" >&5
4305 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4308 # POSIX says lex can declare yytext either as a pointer or an array; the
4309 # default is implementation-dependent. Figure out which it is, since
4310 # not all implementations provide the %pointer and %array declarations.
4311 ac_cv_prog_lex_yytext_pointer
=no
4312 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4313 ac_save_LIBS
="$LIBS"
4314 LIBS
="$LIBS $LEXLIB"
4315 cat > conftest.
$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4318 `cat $LEX_OUTPUT_ROOT.c`
4323 if { (eval echo configure
:4324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4325 ac_cv_prog_lex_yytext_pointer
=yes
4327 echo "configure: failed program was:" >&5
4328 cat conftest.
$ac_ext >&5
4331 LIBS
="$ac_save_LIBS"
4332 rm -f "${LEX_OUTPUT_ROOT}.c"
4336 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4337 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4338 cat >> confdefs.h
<<\EOF
4339 #define YYTEXT_POINTER 1
4347 for ac_func
in dlopen
4349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4350 echo "configure:4351: checking for $ac_func" >&5
4351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4354 cat > conftest.
$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4357 /* System header to define __stub macros and hopefully few prototypes,
4358 which can conflict with char $ac_func(); below. */
4360 /* Override any gcc2 internal prototype to avoid an error. */
4361 /* We use char because int might match the return type of a gcc2
4362 builtin and then its argument prototype would still apply. */
4367 /* The GNU C library defines this for functions which it implements
4368 to always fail with ENOSYS. Some functions are actually named
4369 something starting with __ and the normal name is an alias. */
4370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4378 if { (eval echo configure
:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4380 eval "ac_cv_func_$ac_func=yes"
4382 echo "configure: failed program was:" >&5
4383 cat conftest.
$ac_ext >&5
4385 eval "ac_cv_func_$ac_func=no"
4390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4392 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4393 cat >> confdefs.h
<<EOF
4394 #define $ac_tr_func 1
4396 cat >> confdefs.h
<<\EOF
4397 #define HAVE_LIBDL 1
4401 echo "$ac_t""no" 1>&6
4402 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4403 echo "configure:4404: checking for dlopen in -ldl" >&5
4404 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4406 echo $ac_n "(cached) $ac_c" 1>&6
4408 ac_save_LIBS
="$LIBS"
4410 cat > conftest.
$ac_ext <<EOF
4411 #line 4412 "configure"
4412 #include "confdefs.h"
4413 /* Override any gcc2 internal prototype to avoid an error. */
4414 /* We use char because int might match the return type of a gcc2
4415 builtin and then its argument prototype would still apply. */
4422 if { (eval echo configure
:4423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4424 eval "ac_cv_lib_$ac_lib_var=yes"
4426 echo "configure: failed program was:" >&5
4427 cat conftest.
$ac_ext >&5
4429 eval "ac_cv_lib_$ac_lib_var=no"
4432 LIBS
="$ac_save_LIBS"
4435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4436 echo "$ac_t""yes" 1>&6
4437 cat >> confdefs.h
<<\EOF
4438 #define HAVE_LIBDL 1
4442 echo "$ac_t""no" 1>&6
4443 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
4444 echo "configure:4445: checking for dld_link in -ldld" >&5
4445 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
4446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4447 echo $ac_n "(cached) $ac_c" 1>&6
4449 ac_save_LIBS
="$LIBS"
4451 cat > conftest.
$ac_ext <<EOF
4452 #line 4453 "configure"
4453 #include "confdefs.h"
4454 /* Override any gcc2 internal prototype to avoid an error. */
4455 /* We use char because int might match the return type of a gcc2
4456 builtin and then its argument prototype would still apply. */
4463 if { (eval echo configure
:4464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4465 eval "ac_cv_lib_$ac_lib_var=yes"
4467 echo "configure: failed program was:" >&5
4468 cat conftest.
$ac_ext >&5
4470 eval "ac_cv_lib_$ac_lib_var=no"
4473 LIBS
="$ac_save_LIBS"
4476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4477 echo "$ac_t""yes" 1>&6
4478 cat >> confdefs.h
<<\EOF
4483 echo "$ac_t""no" 1>&6
4484 for ac_func
in shl_load
4486 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4487 echo "configure:4488: checking for $ac_func" >&5
4488 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4489 echo $ac_n "(cached) $ac_c" 1>&6
4491 cat > conftest.
$ac_ext <<EOF
4492 #line 4493 "configure"
4493 #include "confdefs.h"
4494 /* System header to define __stub macros and hopefully few prototypes,
4495 which can conflict with char $ac_func(); below. */
4497 /* Override any gcc2 internal prototype to avoid an error. */
4498 /* We use char because int might match the return type of a gcc2
4499 builtin and then its argument prototype would still apply. */
4504 /* The GNU C library defines this for functions which it implements
4505 to always fail with ENOSYS. Some functions are actually named
4506 something starting with __ and the normal name is an alias. */
4507 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4515 if { (eval echo configure
:4516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4517 eval "ac_cv_func_$ac_func=yes"
4519 echo "configure: failed program was:" >&5
4520 cat conftest.
$ac_ext >&5
4522 eval "ac_cv_func_$ac_func=no"
4527 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4528 echo "$ac_t""yes" 1>&6
4529 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4530 cat >> confdefs.h
<<EOF
4531 #define $ac_tr_func 1
4533 cat >> confdefs.h
<<\EOF
4534 #define HAVE_SHL_LOAD 1
4538 echo "$ac_t""no" 1>&6
4554 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
4555 echo "configure:4556: checking for underscore before symbols" >&5
4556 if eval "test \"`echo '$''{'libltdl_cv_uscore'+set}'`\" = set"; then
4557 echo $ac_n "(cached) $ac_c" 1>&6
4560 echo "main(){int i=1;} fnord(){int i=23; int ltuae=42;}" > conftest.c
4561 ${CC} -c conftest.c
> /dev
/null
4562 if (nm conftest.o
| grep _fnord
) > /dev
/null
; then
4563 libltdl_cv_uscore
=yes
4565 libltdl_cv_uscore
=no
4571 echo "$ac_t""$libltdl_cv_uscore" 1>&6
4573 if test x
"$libltdl_cv_uscore" = xyes
; then
4574 if test x
"$ac_cv_func_dlopen" = xyes
||
4575 test x
"$ac_cv_lib_dl_dlopen" = xyes
; then
4576 echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
4577 echo "configure:4578: checking whether we have to add an underscore for dlsym" >&5
4578 if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4581 if test "$cross_compiling" = yes; then
4582 libltdl_cv_need_uscore
=no
4585 cat > conftest.
$ac_ext <<EOF
4586 #line 4587 "configure"
4587 #include "confdefs.h"
4591 fnord() { int i=42;}
4592 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
4593 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
4594 if(ptr1 && !ptr2) exit(0); } exit(1); }
4597 if { (eval echo configure
:4598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
4599 libltdl_cv_need_uscore
=no
4601 echo "configure: failed program was:" >&5
4602 cat conftest.
$ac_ext >&5
4604 libltdl_cv_need_uscore
=yes
4611 echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
4615 if test x
"$libltdl_cv_need_uscore" = xyes
; then
4616 cat >> confdefs.h
<<\EOF
4617 #define NEED_USCORE 1
4623 for ac_func
in strerror
4625 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4626 echo "configure:4627: checking for $ac_func" >&5
4627 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
4630 cat > conftest.
$ac_ext <<EOF
4631 #line 4632 "configure"
4632 #include "confdefs.h"
4633 /* System header to define __stub macros and hopefully few prototypes,
4634 which can conflict with char $ac_func(); below. */
4636 /* Override any gcc2 internal prototype to avoid an error. */
4637 /* We use char because int might match the return type of a gcc2
4638 builtin and then its argument prototype would still apply. */
4643 /* The GNU C library defines this for functions which it implements
4644 to always fail with ENOSYS. Some functions are actually named
4645 something starting with __ and the normal name is an alias. */
4646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4654 if { (eval echo configure
:4655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
4656 eval "ac_cv_func_$ac_func=yes"
4658 echo "configure: failed program was:" >&5
4659 cat conftest.
$ac_ext >&5
4661 eval "ac_cv_func_$ac_func=no"
4666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4667 echo "$ac_t""yes" 1>&6
4668 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4669 cat >> confdefs.h
<<EOF
4670 #define $ac_tr_func 1
4674 echo "$ac_t""no" 1>&6
4680 CHECK_INCLUDE
="-I/usr/include $X_CFLAGS"
4681 CHECK_LIB
="-L/lib -L/usr/lib $X_LIBS"
4685 # Make sure we can run config.sub.
4686 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
4687 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
4690 echo $ac_n "checking host system type""... $ac_c" 1>&6
4691 echo "configure:4692: checking host system type" >&5
4694 case "$host_alias" in
4698 if host_alias
=`$ac_config_guess`; then :
4699 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
4701 *) host_alias
=$nonopt ;;
4705 host=`$ac_config_sub $host_alias`
4706 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4707 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4708 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4709 echo "$ac_t""$host" 1>&6
4712 configuration
=$host_alias
4734 cat >> confdefs.h
<<\EOF
4738 case "${canonical}" in
4741 cat >> confdefs.h
<<\EOF
4748 cat >> confdefs.h
<<\EOF
4753 if test "x$TMP" = "xalpha"
4756 cat >> confdefs.h
<<\EOF
4762 *-*-irix5* | *-*-irix6* )
4765 cat >> confdefs.h
<<\EOF
4769 cat >> confdefs.h
<<\EOF
4778 cat >> confdefs.h
<<\EOF
4782 cat >> confdefs.h
<<\EOF
4783 #define __SOLARIS__ 1
4786 cat >> confdefs.h
<<\EOF
4795 cat >> confdefs.h
<<\EOF
4799 cat >> confdefs.h
<<\EOF
4803 cat >> confdefs.h
<<\EOF
4808 *-*-freebsd* | *-*-netbsd*)
4811 cat >> confdefs.h
<<\EOF
4812 #define __FREEBSD__ 1
4815 cat >> confdefs.h
<<\EOF
4823 cat >> confdefs.h
<<\EOF
4827 cat >> confdefs.h
<<\EOF
4835 cat >> confdefs.h
<<\EOF
4839 cat >> confdefs.h
<<\EOF
4847 cat >> confdefs.h
<<\EOF
4851 cat >> confdefs.h
<<\EOF
4860 cat >> confdefs.h
<<\EOF
4864 cat >> confdefs.h
<<\EOF
4868 cat >> confdefs.h
<<\EOF
4874 { echo "configure: error: I don't know your system type." 1>&2; exit 1; }
4879 rm -f ${OSTYPE}.system.cache.tmp
4880 touch ${OSTYPE}.system.cache.tmp
4881 touch ${OSTYPE}.system.cache
4886 DEFAULT_wxUSE_MOTIF
=0
4888 DEFAULT_wxUSE_THREADS
=0
4890 DEFAULT_wxUSE_SHARED
=1
4891 DEFAULT_wxUSE_OPTIMISE
=1
4892 DEFAULT_wxUSE_PROFILE
=0
4893 DEFAULT_wxUSE_DEBUG_FLAG
=0
4894 DEFAULT_wxUSE_DEBUG_INFO
=0
4895 DEFAULT_wxUSE_MEM_TRACING
=0
4896 DEFAULT_wxUSE_DMALLOC
=0
4897 DEFAULT_wxUSE_APPLE_IEEE
=1
4898 DEFAULT_wxUSE_IOSTREAMH
=1
4900 DEFAULT_wxUSE_ZLIB
=1
4901 DEFAULT_wxUSE_LIBPNG
=1
4902 DEFAULT_wxUSE_LIBJPEG
=0
4903 DEFAULT_wxUSE_ODBC
=1
4905 DEFAULT_wxUSE_TIMEDATE
=1
4906 DEFAULT_wxUSE_INTL
=1
4907 DEFAULT_wxUSE_CONFIG
=1
4908 DEFAULT_wxUSE_STREAMS
=1
4909 DEFAULT_wxUSE_SERIAL
=1
4911 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
=1
4912 DEFAULT_WX_NORMALIZED_PS_FONTS
=1
4913 DEFAULT_wxUSE_POSTSCRIPT
=1
4916 DEFAULT_wxUSE_RESOURCES
=1
4917 DEFAULT_wxUSE_CLIPBOARD
=1
4918 DEFAULT_wxUSE_TOOLTIPS
=1
4919 DEFAULT_wxUSE_DRAG_AND_DROP
=1
4921 DEFAULT_wxUSE_MDI_ARCHITECTURE
=1
4922 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
=1
4923 DEFAULT_wxUSE_PRINTING_ARCHITECTURE
=1
4925 DEFAULT_wxUSE_PROLOGIO
=1
4926 DEFAULT_wxUSE_WX_RESOURCES
=1
4928 DEFAULT_wxUSE_HELP
=1
4930 DEFAULT_wxUSE_UNICODE
=1
4931 DEFAULT_wxUSE_WCSRTOMBS
=0
4935 echo $ac_n "checking "for gtk
"""... $ac_c" 1>&6
4936 echo "configure:4937: checking "for gtk
"" >&5
4937 # Check whether --with-gtk or --without-gtk was given.
4938 if test "${with_gtk+set}" = set; then
4940 if test "x$with_gtk" = xyes
; then
4941 ac_cv_use_gtk
='wxUSE_GTK="1"'
4943 ac_cv_use_gtk
='wxUSE_GTK="0"'
4947 LINE
=`grep "wxUSE_GTK" ${OSTYPE}.system.cache`
4948 if test "x$LINE" != x
; then
4949 eval "DEFAULT_$LINE"
4951 ac_cv_use_gtk
='wxUSE_GTK='$DEFAULT_wxUSE_GTK
4955 eval "$ac_cv_use_gtk"
4956 echo $ac_cv_use_gtk >> ${OSTYPE}.system.cache.tmp
4957 if test "$wxUSE_GTK" = 1; then
4958 echo "$ac_t""yes" 1>&6
4960 echo "$ac_t""no" 1>&6
4965 echo $ac_n "checking "for qt
"""... $ac_c" 1>&6
4966 echo "configure:4967: checking "for qt
"" >&5
4967 # Check whether --with-qt or --without-qt was given.
4968 if test "${with_qt+set}" = set; then
4970 if test "x$with_qt" = xyes
; then
4971 ac_cv_use_qt
='wxUSE_QT="1"'
4973 ac_cv_use_qt
='wxUSE_QT="0"'
4977 LINE
=`grep "wxUSE_QT" ${OSTYPE}.system.cache`
4978 if test "x$LINE" != x
; then
4979 eval "DEFAULT_$LINE"
4981 ac_cv_use_qt
='wxUSE_QT='$DEFAULT_wxUSE_QT
4985 eval "$ac_cv_use_qt"
4986 echo $ac_cv_use_qt >> ${OSTYPE}.system.cache.tmp
4987 if test "$wxUSE_QT" = 1; then
4988 echo "$ac_t""yes" 1>&6
4990 echo "$ac_t""no" 1>&6
4995 echo $ac_n "checking "for motif
"""... $ac_c" 1>&6
4996 echo "configure:4997: checking "for motif
"" >&5
4997 # Check whether --with-motif or --without-motif was given.
4998 if test "${with_motif+set}" = set; then
4999 withval
="$with_motif"
5000 if test "x$with_motif" = xyes
; then
5001 ac_cv_use_motif
='wxUSE_MOTIF="1"'
5003 ac_cv_use_motif
='wxUSE_MOTIF="0"'
5007 LINE
=`grep "wxUSE_MOTIF" ${OSTYPE}.system.cache`
5008 if test "x$LINE" != x
; then
5009 eval "DEFAULT_$LINE"
5011 ac_cv_use_motif
='wxUSE_MOTIF='$DEFAULT_wxUSE_MOTIF
5015 eval "$ac_cv_use_motif"
5016 echo $ac_cv_use_motif >> ${OSTYPE}.system.cache.tmp
5017 if test "$wxUSE_MOTIF" = 1; then
5018 echo "$ac_t""yes" 1>&6
5020 echo "$ac_t""no" 1>&6
5026 echo $ac_n "checking "for shared
"""... $ac_c" 1>&6
5027 echo "configure:5028: checking "for shared
"" >&5
5028 # Check whether --with-shared or --without-shared was given.
5029 if test "${with_shared+set}" = set; then
5030 withval
="$with_shared"
5031 if test "x$with_shared" = xyes
; then
5032 ac_cv_use_shared
='wxUSE_SHARED="1"'
5034 ac_cv_use_shared
='wxUSE_SHARED="0"'
5038 LINE
=`grep "wxUSE_SHARED" ${OSTYPE}.system.cache`
5039 if test "x$LINE" != x
; then
5040 eval "DEFAULT_$LINE"
5042 ac_cv_use_shared
='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
5046 eval "$ac_cv_use_shared"
5047 echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp
5048 if test "$wxUSE_SHARED" = 1; then
5049 echo "$ac_t""yes" 1>&6
5051 echo "$ac_t""no" 1>&6
5056 echo $ac_n "checking "for optimise
"""... $ac_c" 1>&6
5057 echo "configure:5058: checking "for optimise
"" >&5
5058 # Check whether --with-optimise or --without-optimise was given.
5059 if test "${with_optimise+set}" = set; then
5060 withval
="$with_optimise"
5061 if test "x$with_optimise" = xyes
; then
5062 ac_cv_use_optimise
='wxUSE_OPTIMISE="1"'
5064 ac_cv_use_optimise
='wxUSE_OPTIMISE="0"'
5068 LINE
=`grep "wxUSE_OPTIMISE" ${OSTYPE}.system.cache`
5069 if test "x$LINE" != x
; then
5070 eval "DEFAULT_$LINE"
5072 ac_cv_use_optimise
='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
5076 eval "$ac_cv_use_optimise"
5077 echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp
5078 if test "$wxUSE_OPTIMISE" = 1; then
5079 echo "$ac_t""yes" 1>&6
5081 echo "$ac_t""no" 1>&6
5086 echo $ac_n "checking "for debug_flag
"""... $ac_c" 1>&6
5087 echo "configure:5088: checking "for debug_flag
"" >&5
5088 # Check whether --with-debug_flag or --without-debug_flag was given.
5089 if test "${with_debug_flag+set}" = set; then
5090 withval
="$with_debug_flag"
5091 if test "x$with_debug_flag" = xyes
; then
5092 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="1"'
5094 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="0"'
5098 LINE
=`grep "wxUSE_DEBUG_FLAG" ${OSTYPE}.system.cache`
5099 if test "x$LINE" != x
; then
5100 eval "DEFAULT_$LINE"
5102 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
5106 eval "$ac_cv_use_debug_flag"
5107 echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp
5108 if test "$wxUSE_DEBUG_FLAG" = 1; then
5109 echo "$ac_t""yes" 1>&6
5111 echo "$ac_t""no" 1>&6
5116 echo $ac_n "checking "for debug_info
"""... $ac_c" 1>&6
5117 echo "configure:5118: checking "for debug_info
"" >&5
5118 # Check whether --with-debug_info or --without-debug_info was given.
5119 if test "${with_debug_info+set}" = set; then
5120 withval
="$with_debug_info"
5121 if test "x$with_debug_info" = xyes
; then
5122 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="1"'
5124 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="0"'
5128 LINE
=`grep "wxUSE_DEBUG_INFO" ${OSTYPE}.system.cache`
5129 if test "x$LINE" != x
; then
5130 eval "DEFAULT_$LINE"
5132 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
5136 eval "$ac_cv_use_debug_info"
5137 echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp
5138 if test "$wxUSE_DEBUG_INFO" = 1; then
5139 echo "$ac_t""yes" 1>&6
5141 echo "$ac_t""no" 1>&6
5146 echo $ac_n "checking "for debug_gdb
"""... $ac_c" 1>&6
5147 echo "configure:5148: checking "for debug_gdb
"" >&5
5148 # Check whether --with-debug_gdb or --without-debug_gdb was given.
5149 if test "${with_debug_gdb+set}" = set; then
5150 withval
="$with_debug_gdb"
5151 if test "x$with_debug_gdb" = xyes
; then
5152 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="1"'
5154 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="0"'
5158 LINE
=`grep "wxUSE_DEBUG_GDB" ${OSTYPE}.system.cache`
5159 if test "x$LINE" != x
; then
5160 eval "DEFAULT_$LINE"
5162 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
5166 eval "$ac_cv_use_debug_gdb"
5167 echo $ac_cv_use_debug_gdb >> ${OSTYPE}.system.cache.tmp
5168 if test "$wxUSE_DEBUG_GDB" = 1; then
5169 echo "$ac_t""yes" 1>&6
5171 echo "$ac_t""no" 1>&6
5176 echo $ac_n "checking "for mem_tracing
"""... $ac_c" 1>&6
5177 echo "configure:5178: checking "for mem_tracing
"" >&5
5178 # Check whether --with-mem_tracing or --without-mem_tracing was given.
5179 if test "${with_mem_tracing+set}" = set; then
5180 withval
="$with_mem_tracing"
5181 if test "x$with_mem_tracing" = xyes
; then
5182 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="1"'
5184 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="0"'
5188 LINE
=`grep "wxUSE_MEM_TRACING" ${OSTYPE}.system.cache`
5189 if test "x$LINE" != x
; then
5190 eval "DEFAULT_$LINE"
5192 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
5196 eval "$ac_cv_use_mem_tracing"
5197 echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp
5198 if test "$wxUSE_MEM_TRACING" = 1; then
5199 echo "$ac_t""yes" 1>&6
5201 echo "$ac_t""no" 1>&6
5206 echo $ac_n "checking "for dmalloc
"""... $ac_c" 1>&6
5207 echo "configure:5208: checking "for dmalloc
"" >&5
5208 # Check whether --with-dmalloc or --without-dmalloc was given.
5209 if test "${with_dmalloc+set}" = set; then
5210 withval
="$with_dmalloc"
5211 if test "x$with_dmalloc" = xyes
; then
5212 ac_cv_use_dmalloc
='wxUSE_DMALLOC="1"'
5214 ac_cv_use_dmalloc
='wxUSE_DMALLOC="0"'
5218 LINE
=`grep "wxUSE_DMALLOC" ${OSTYPE}.system.cache`
5219 if test "x$LINE" != x
; then
5220 eval "DEFAULT_$LINE"
5222 ac_cv_use_dmalloc
='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
5226 eval "$ac_cv_use_dmalloc"
5227 echo $ac_cv_use_dmalloc >> ${OSTYPE}.system.cache.tmp
5228 if test "$wxUSE_DMALLOC" = 1; then
5229 echo "$ac_t""yes" 1>&6
5231 echo "$ac_t""no" 1>&6
5236 echo $ac_n "checking "for profile
"""... $ac_c" 1>&6
5237 echo "configure:5238: checking "for profile
"" >&5
5238 # Check whether --with-profile or --without-profile was given.
5239 if test "${with_profile+set}" = set; then
5240 withval
="$with_profile"
5241 if test "x$with_profile" = xyes
; then
5242 ac_cv_use_profile
='wxUSE_PROFILE="1"'
5244 ac_cv_use_profile
='wxUSE_PROFILE="0"'
5248 LINE
=`grep "wxUSE_PROFILE" ${OSTYPE}.system.cache`
5249 if test "x$LINE" != x
; then
5250 eval "DEFAULT_$LINE"
5252 ac_cv_use_profile
='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
5256 eval "$ac_cv_use_profile"
5257 echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp
5258 if test "$wxUSE_PROFILE" = 1; then
5259 echo "$ac_t""yes" 1>&6
5261 echo "$ac_t""no" 1>&6
5266 echo $ac_n "checking "for apple_ieee
"""... $ac_c" 1>&6
5267 echo "configure:5268: checking "for apple_ieee
"" >&5
5268 # Check whether --with-apple_ieee or --without-apple_ieee was given.
5269 if test "${with_apple_ieee+set}" = set; then
5270 withval
="$with_apple_ieee"
5271 if test "x$with_apple_ieee" = xyes
; then
5272 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="1"'
5274 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="0"'
5278 LINE
=`grep "wxUSE_APPLE_IEEE" ${OSTYPE}.system.cache`
5279 if test "x$LINE" != x
; then
5280 eval "DEFAULT_$LINE"
5282 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5286 eval "$ac_cv_use_apple_ieee"
5287 echo $ac_cv_use_apple_ieee >> ${OSTYPE}.system.cache.tmp
5288 if test "$wxUSE_APPLE_IEEE" = 1; then
5289 echo "$ac_t""yes" 1>&6
5291 echo "$ac_t""no" 1>&6
5296 echo $ac_n "checking "for threads
"""... $ac_c" 1>&6
5297 echo "configure:5298: checking "for threads
"" >&5
5298 # Check whether --with-threads or --without-threads was given.
5299 if test "${with_threads+set}" = set; then
5300 withval
="$with_threads"
5301 if test "x$with_threads" = xyes
; then
5302 ac_cv_use_threads
='wxUSE_THREADS="1"'
5304 ac_cv_use_threads
='wxUSE_THREADS="0"'
5308 LINE
=`grep "wxUSE_THREADS" ${OSTYPE}.system.cache`
5309 if test "x$LINE" != x
; then
5310 eval "DEFAULT_$LINE"
5312 ac_cv_use_threads
='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5316 eval "$ac_cv_use_threads"
5317 echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp
5318 if test "$wxUSE_THREADS" = 1; then
5319 echo "$ac_t""yes" 1>&6
5321 echo "$ac_t""no" 1>&6
5327 echo $ac_n "checking "for zlib
"""... $ac_c" 1>&6
5328 echo "configure:5329: checking "for zlib
"" >&5
5329 # Check whether --with-zlib or --without-zlib was given.
5330 if test "${with_zlib+set}" = set; then
5331 withval
="$with_zlib"
5332 if test "x$with_zlib" = xyes
; then
5333 ac_cv_use_zlib
='wxUSE_ZLIB="1"'
5335 ac_cv_use_zlib
='wxUSE_ZLIB="0"'
5339 LINE
=`grep "wxUSE_ZLIB" ${OSTYPE}.system.cache`
5340 if test "x$LINE" != x
; then
5341 eval "DEFAULT_$LINE"
5343 ac_cv_use_zlib
='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
5347 eval "$ac_cv_use_zlib"
5348 echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp
5349 if test "$wxUSE_ZLIB" = 1; then
5350 echo "$ac_t""yes" 1>&6
5352 echo "$ac_t""no" 1>&6
5357 echo $ac_n "checking "for libpng
"""... $ac_c" 1>&6
5358 echo "configure:5359: checking "for libpng
"" >&5
5359 # Check whether --with-libpng or --without-libpng was given.
5360 if test "${with_libpng+set}" = set; then
5361 withval
="$with_libpng"
5362 if test "x$with_libpng" = xyes
; then
5363 ac_cv_use_libpng
='wxUSE_LIBPNG="1"'
5365 ac_cv_use_libpng
='wxUSE_LIBPNG="0"'
5369 LINE
=`grep "wxUSE_LIBPNG" ${OSTYPE}.system.cache`
5370 if test "x$LINE" != x
; then
5371 eval "DEFAULT_$LINE"
5373 ac_cv_use_libpng
='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
5377 eval "$ac_cv_use_libpng"
5378 echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp
5379 if test "$wxUSE_LIBPNG" = 1; then
5380 echo "$ac_t""yes" 1>&6
5382 echo "$ac_t""no" 1>&6
5387 echo $ac_n "checking "for libjpeg
"""... $ac_c" 1>&6
5388 echo "configure:5389: checking "for libjpeg
"" >&5
5389 # Check whether --with-libjpeg or --without-libjpeg was given.
5390 if test "${with_libjpeg+set}" = set; then
5391 withval
="$with_libjpeg"
5392 if test "x$with_libjpeg" = xyes
; then
5393 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="1"'
5395 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="0"'
5399 LINE
=`grep "wxUSE_LIBJPEG" ${OSTYPE}.system.cache`
5400 if test "x$LINE" != x
; then
5401 eval "DEFAULT_$LINE"
5403 ac_cv_use_libjpeg
='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
5407 eval "$ac_cv_use_libjpeg"
5408 echo $ac_cv_use_libjpeg >> ${OSTYPE}.system.cache.tmp
5409 if test "$wxUSE_LIBJPEG" = 1; then
5410 echo "$ac_t""yes" 1>&6
5412 echo "$ac_t""no" 1>&6
5417 echo $ac_n "checking "for odbc
"""... $ac_c" 1>&6
5418 echo "configure:5419: checking "for odbc
"" >&5
5419 # Check whether --with-odbc or --without-odbc was given.
5420 if test "${with_odbc+set}" = set; then
5421 withval
="$with_odbc"
5422 if test "x$with_odbc" = xyes
; then
5423 ac_cv_use_odbc
='wxUSE_ODBC="1"'
5425 ac_cv_use_odbc
='wxUSE_ODBC="0"'
5429 LINE
=`grep "wxUSE_ODBC" ${OSTYPE}.system.cache`
5430 if test "x$LINE" != x
; then
5431 eval "DEFAULT_$LINE"
5433 ac_cv_use_odbc
='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
5437 eval "$ac_cv_use_odbc"
5438 echo $ac_cv_use_odbc >> ${OSTYPE}.system.cache.tmp
5439 if test "$wxUSE_ODBC" = 1; then
5440 echo "$ac_t""yes" 1>&6
5442 echo "$ac_t""no" 1>&6
5448 echo $ac_n "checking "for timedate
"""... $ac_c" 1>&6
5449 echo "configure:5450: checking "for timedate
"" >&5
5450 # Check whether --with-timedate or --without-timedate was given.
5451 if test "${with_timedate+set}" = set; then
5452 withval
="$with_timedate"
5453 if test "x$with_timedate" = xyes
; then
5454 ac_cv_use_timedate
='wxUSE_TIMEDATE="1"'
5456 ac_cv_use_timedate
='wxUSE_TIMEDATE="0"'
5460 LINE
=`grep "wxUSE_TIMEDATE" ${OSTYPE}.system.cache`
5461 if test "x$LINE" != x
; then
5462 eval "DEFAULT_$LINE"
5464 ac_cv_use_timedate
='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
5468 eval "$ac_cv_use_timedate"
5469 echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp
5470 if test "$wxUSE_TIMEDATE" = 1; then
5471 echo "$ac_t""yes" 1>&6
5473 echo "$ac_t""no" 1>&6
5478 echo $ac_n "checking "for intl
"""... $ac_c" 1>&6
5479 echo "configure:5480: checking "for intl
"" >&5
5480 # Check whether --with-intl or --without-intl was given.
5481 if test "${with_intl+set}" = set; then
5482 withval
="$with_intl"
5483 if test "x$with_intl" = xyes
; then
5484 ac_cv_use_intl
='wxUSE_INTL="1"'
5486 ac_cv_use_intl
='wxUSE_INTL="0"'
5490 LINE
=`grep "wxUSE_INTL" ${OSTYPE}.system.cache`
5491 if test "x$LINE" != x
; then
5492 eval "DEFAULT_$LINE"
5494 ac_cv_use_intl
='wxUSE_INTL='$DEFAULT_wxUSE_INTL
5498 eval "$ac_cv_use_intl"
5499 echo $ac_cv_use_intl >> ${OSTYPE}.system.cache.tmp
5500 if test "$wxUSE_INTL" = 1; then
5501 echo "$ac_t""yes" 1>&6
5503 echo "$ac_t""no" 1>&6
5508 echo $ac_n "checking "for config
"""... $ac_c" 1>&6
5509 echo "configure:5510: checking "for config
"" >&5
5510 # Check whether --with-config or --without-config was given.
5511 if test "${with_config+set}" = set; then
5512 withval
="$with_config"
5513 if test "x$with_config" = xyes
; then
5514 ac_cv_use_config
='wxUSE_CONFIG="1"'
5516 ac_cv_use_config
='wxUSE_CONFIG="0"'
5520 LINE
=`grep "wxUSE_CONFIG" ${OSTYPE}.system.cache`
5521 if test "x$LINE" != x
; then
5522 eval "DEFAULT_$LINE"
5524 ac_cv_use_config
='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
5528 eval "$ac_cv_use_config"
5529 echo $ac_cv_use_config >> ${OSTYPE}.system.cache.tmp
5530 if test "$wxUSE_CONFIG" = 1; then
5531 echo "$ac_t""yes" 1>&6
5533 echo "$ac_t""no" 1>&6
5538 echo $ac_n "checking "for streams
"""... $ac_c" 1>&6
5539 echo "configure:5540: checking "for streams
"" >&5
5540 # Check whether --with-streams or --without-streams was given.
5541 if test "${with_streams+set}" = set; then
5542 withval
="$with_streams"
5543 if test "x$with_streams" = xyes
; then
5544 ac_cv_use_streams
='wxUSE_STREAMS="1"'
5546 ac_cv_use_streams
='wxUSE_STREAMS="0"'
5550 LINE
=`grep "wxUSE_STREAMS" ${OSTYPE}.system.cache`
5551 if test "x$LINE" != x
; then
5552 eval "DEFAULT_$LINE"
5554 ac_cv_use_streams
='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5558 eval "$ac_cv_use_streams"
5559 echo $ac_cv_use_streams >> ${OSTYPE}.system.cache.tmp
5560 if test "$wxUSE_STREAMS" = 1; then
5561 echo "$ac_t""yes" 1>&6
5563 echo "$ac_t""no" 1>&6
5568 echo $ac_n "checking "for serial
"""... $ac_c" 1>&6
5569 echo "configure:5570: checking "for serial
"" >&5
5570 # Check whether --with-serial or --without-serial was given.
5571 if test "${with_serial+set}" = set; then
5572 withval
="$with_serial"
5573 if test "x$with_serial" = xyes
; then
5574 ac_cv_use_serial
='wxUSE_SERIAL="1"'
5576 ac_cv_use_serial
='wxUSE_SERIAL="0"'
5580 LINE
=`grep "wxUSE_SERIAL" ${OSTYPE}.system.cache`
5581 if test "x$LINE" != x
; then
5582 eval "DEFAULT_$LINE"
5584 ac_cv_use_serial
='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
5588 eval "$ac_cv_use_serial"
5589 echo $ac_cv_use_serial >> ${OSTYPE}.system.cache.tmp
5590 if test "$wxUSE_SERIAL" = 1; then
5591 echo "$ac_t""yes" 1>&6
5593 echo "$ac_t""no" 1>&6
5599 echo $ac_n "checking "for afmfonts
"""... $ac_c" 1>&6
5600 echo "configure:5601: checking "for afmfonts
"" >&5
5601 # Check whether --with-afmfonts or --without-afmfonts was given.
5602 if test "${with_afmfonts+set}" = set; then
5603 withval
="$with_afmfonts"
5604 if test "x$with_afmfonts" = xyes
; then
5605 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="1"'
5607 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="0"'
5611 LINE
=`grep "wxUSE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache`
5612 if test "x$LINE" != x
; then
5613 eval "DEFAULT_$LINE"
5615 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT='$DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
5619 eval "$ac_cv_use_afmfonts"
5620 echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp
5621 if test "$wxUSE_AFM_FOR_POSTSCRIPT" = 1; then
5622 echo "$ac_t""yes" 1>&6
5624 echo "$ac_t""no" 1>&6
5629 echo $ac_n "checking "for normalized
"""... $ac_c" 1>&6
5630 echo "configure:5631: checking "for normalized
"" >&5
5631 # Check whether --with-normalized or --without-normalized was given.
5632 if test "${with_normalized+set}" = set; then
5633 withval
="$with_normalized"
5634 if test "x$with_normalized" = xyes
; then
5635 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="1"'
5637 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="0"'
5641 LINE
=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache`
5642 if test "x$LINE" != x
; then
5643 eval "DEFAULT_$LINE"
5645 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS
5649 eval "$ac_cv_use_normalized"
5650 echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp
5651 if test "$WX_NORMALIZED_PS_FONTS" = 1; then
5652 echo "$ac_t""yes" 1>&6
5654 echo "$ac_t""no" 1>&6
5659 echo $ac_n "checking "for postscript
"""... $ac_c" 1>&6
5660 echo "configure:5661: checking "for postscript
"" >&5
5661 # Check whether --with-postscript or --without-postscript was given.
5662 if test "${with_postscript+set}" = set; then
5663 withval
="$with_postscript"
5664 if test "x$with_postscript" = xyes
; then
5665 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="1"'
5667 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="0"'
5671 LINE
=`grep "wxUSE_POSTSCRIPT" ${OSTYPE}.system.cache`
5672 if test "x$LINE" != x
; then
5673 eval "DEFAULT_$LINE"
5675 ac_cv_use_postscript
='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5679 eval "$ac_cv_use_postscript"
5680 echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp
5681 if test "$wxUSE_POSTSCRIPT" = 1; then
5682 echo "$ac_t""yes" 1>&6
5684 echo "$ac_t""no" 1>&6
5690 echo $ac_n "checking "for unicode
"""... $ac_c" 1>&6
5691 echo "configure:5692: checking "for unicode
"" >&5
5692 # Check whether --with-unicode or --without-unicode was given.
5693 if test "${with_unicode+set}" = set; then
5694 withval
="$with_unicode"
5695 if test "x$with_unicode" = xyes
; then
5696 ac_cv_use_unicode
='wxUSE_UNICODE="1"'
5698 ac_cv_use_unicode
='wxUSE_UNICODE="0"'
5702 LINE
=`grep "wxUSE_UNICODE" ${OSTYPE}.system.cache`
5703 if test "x$LINE" != x
; then
5704 eval "DEFAULT_$LINE"
5706 ac_cv_use_unicode
='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5710 eval "$ac_cv_use_unicode"
5711 echo $ac_cv_use_unicode >> ${OSTYPE}.system.cache.tmp
5712 if test "$wxUSE_UNICODE" = 1; then
5713 echo "$ac_t""yes" 1>&6
5715 echo "$ac_t""no" 1>&6
5720 echo $ac_n "checking "for wcsrtombs
"""... $ac_c" 1>&6
5721 echo "configure:5722: checking "for wcsrtombs
"" >&5
5722 # Check whether --with-wcsrtombs or --without-wcsrtombs was given.
5723 if test "${with_wcsrtombs+set}" = set; then
5724 withval
="$with_wcsrtombs"
5725 if test "x$with_wcsrtombs" = xyes
; then
5726 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="1"'
5728 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="0"'
5732 LINE
=`grep "wxUSE_WCSRTOMBS" ${OSTYPE}.system.cache`
5733 if test "x$LINE" != x
; then
5734 eval "DEFAULT_$LINE"
5736 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
5740 eval "$ac_cv_use_wcsrtombs"
5741 echo $ac_cv_use_wcsrtombs >> ${OSTYPE}.system.cache.tmp
5742 if test "$wxUSE_WCSRTOMBS" = 1; then
5743 echo "$ac_t""yes" 1>&6
5745 echo "$ac_t""no" 1>&6
5751 echo $ac_n "checking "for wxresources
"""... $ac_c" 1>&6
5752 echo "configure:5753: checking "for wxresources
"" >&5
5753 # Check whether --with-wxresources or --without-wxresources was given.
5754 if test "${with_wxresources+set}" = set; then
5755 withval
="$with_wxresources"
5756 if test "x$with_wxresources" = xyes
; then
5757 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="1"'
5759 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="0"'
5763 LINE
=`grep "wxUSE_WX_RESOURCES" ${OSTYPE}.system.cache`
5764 if test "x$LINE" != x
; then
5765 eval "DEFAULT_$LINE"
5767 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES='$DEFAULT_wxUSE_WX_RESOURCES
5771 eval "$ac_cv_use_wxresources"
5772 echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp
5773 if test "$wxUSE_WX_RESOURCES" = 1; then
5774 echo "$ac_t""yes" 1>&6
5776 echo "$ac_t""no" 1>&6
5781 echo $ac_n "checking "for prologio
"""... $ac_c" 1>&6
5782 echo "configure:5783: checking "for prologio
"" >&5
5783 # Check whether --with-prologio or --without-prologio was given.
5784 if test "${with_prologio+set}" = set; then
5785 withval
="$with_prologio"
5786 if test "x$with_prologio" = xyes
; then
5787 ac_cv_use_prologio
='wxUSE_PROLOGIO="1"'
5789 ac_cv_use_prologio
='wxUSE_PROLOGIO="0"'
5793 LINE
=`grep "wxUSE_PROLOGIO" ${OSTYPE}.system.cache`
5794 if test "x$LINE" != x
; then
5795 eval "DEFAULT_$LINE"
5797 ac_cv_use_prologio
='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5801 eval "$ac_cv_use_prologio"
5802 echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp
5803 if test "$wxUSE_PROLOGIO" = 1; then
5804 echo "$ac_t""yes" 1>&6
5806 echo "$ac_t""no" 1>&6
5811 echo $ac_n "checking "for RPC
"""... $ac_c" 1>&6
5812 echo "configure:5813: checking "for RPC
"" >&5
5813 # Check whether --with-rpc or --without-rpc was given.
5814 if test "${with_rpc+set}" = set; then
5816 if test "x$with_rpc" = xyes
; then
5817 ac_cv_use_rpc
='wxUSE_RPC="1"'
5819 ac_cv_use_rpc
='wxUSE_RPC="0"'
5823 LINE
=`grep "wxUSE_RPC" ${OSTYPE}.system.cache`
5824 if test "x$LINE" != x
; then
5825 eval "DEFAULT_$LINE"
5827 ac_cv_use_rpc
='wxUSE_RPC='$DEFAULT_wxUSE_RPC
5831 eval "$ac_cv_use_rpc"
5832 echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp
5833 if test "$wxUSE_RPC" = 1; then
5834 echo "$ac_t""yes" 1>&6
5836 echo "$ac_t""no" 1>&6
5842 echo $ac_n "checking "for IPC
"""... $ac_c" 1>&6
5843 echo "configure:5844: checking "for IPC
"" >&5
5844 # Check whether --with-ipc or --without-ipc was given.
5845 if test "${with_ipc+set}" = set; then
5847 if test "x$with_ipc" = xyes
; then
5848 ac_cv_use_ipc
='wxUSE_IPC="1"'
5850 ac_cv_use_ipc
='wxUSE_IPC="0"'
5854 LINE
=`grep "wxUSE_IPC" ${OSTYPE}.system.cache`
5855 if test "x$LINE" != x
; then
5856 eval "DEFAULT_$LINE"
5858 ac_cv_use_ipc
='wxUSE_IPC='$DEFAULT_wxUSE_IPC
5862 eval "$ac_cv_use_ipc"
5863 echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp
5864 if test "$wxUSE_IPC" = 1; then
5865 echo "$ac_t""yes" 1>&6
5867 echo "$ac_t""no" 1>&6
5872 echo $ac_n "checking "for resources
"""... $ac_c" 1>&6
5873 echo "configure:5874: checking "for resources
"" >&5
5874 # Check whether --with-resources or --without-resources was given.
5875 if test "${with_resources+set}" = set; then
5876 withval
="$with_resources"
5877 if test "x$with_resources" = xyes
; then
5878 ac_cv_use_resources
='wxUSE_RESOURCES="1"'
5880 ac_cv_use_resources
='wxUSE_RESOURCES="0"'
5884 LINE
=`grep "wxUSE_RESOURCES" ${OSTYPE}.system.cache`
5885 if test "x$LINE" != x
; then
5886 eval "DEFAULT_$LINE"
5888 ac_cv_use_resources
='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5892 eval "$ac_cv_use_resources"
5893 echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp
5894 if test "$wxUSE_RESOURCES" = 1; then
5895 echo "$ac_t""yes" 1>&6
5897 echo "$ac_t""no" 1>&6
5902 echo $ac_n "checking "for clipboard
"""... $ac_c" 1>&6
5903 echo "configure:5904: checking "for clipboard
"" >&5
5904 # Check whether --with-clipboard or --without-clipboard was given.
5905 if test "${with_clipboard+set}" = set; then
5906 withval
="$with_clipboard"
5907 if test "x$with_clipboard" = xyes
; then
5908 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="1"'
5910 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="0"'
5914 LINE
=`grep "wxUSE_CLIPBOARD" ${OSTYPE}.system.cache`
5915 if test "x$LINE" != x
; then
5916 eval "DEFAULT_$LINE"
5918 ac_cv_use_clipboard
='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5922 eval "$ac_cv_use_clipboard"
5923 echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp
5924 if test "$wxUSE_CLIPBOARD" = 1; then
5925 echo "$ac_t""yes" 1>&6
5927 echo "$ac_t""no" 1>&6
5932 echo $ac_n "checking "for tooltips
"""... $ac_c" 1>&6
5933 echo "configure:5934: checking "for tooltips
"" >&5
5934 # Check whether --with-tooltips or --without-tooltips was given.
5935 if test "${with_tooltips+set}" = set; then
5936 withval
="$with_tooltips"
5937 if test "x$with_tooltips" = xyes
; then
5938 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="1"'
5940 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="0"'
5944 LINE
=`grep "wxUSE_TOOLTIPS" ${OSTYPE}.system.cache`
5945 if test "x$LINE" != x
; then
5946 eval "DEFAULT_$LINE"
5948 ac_cv_use_tooltips
='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
5952 eval "$ac_cv_use_tooltips"
5953 echo $ac_cv_use_tooltips >> ${OSTYPE}.system.cache.tmp
5954 if test "$wxUSE_TOOLTIPS" = 1; then
5955 echo "$ac_t""yes" 1>&6
5957 echo "$ac_t""no" 1>&6
5962 echo $ac_n "checking "for dnd
"""... $ac_c" 1>&6
5963 echo "configure:5964: checking "for dnd
"" >&5
5964 # Check whether --with-dnd or --without-dnd was given.
5965 if test "${with_dnd+set}" = set; then
5967 if test "x$with_dnd" = xyes
; then
5968 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="1"'
5970 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="0"'
5974 LINE
=`grep "wxUSE_DRAG_AND_DROP" ${OSTYPE}.system.cache`
5975 if test "x$LINE" != x
; then
5976 eval "DEFAULT_$LINE"
5978 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5982 eval "$ac_cv_use_dnd"
5983 echo $ac_cv_use_dnd >> ${OSTYPE}.system.cache.tmp
5984 if test "$wxUSE_DRAG_AND_DROP" = 1; then
5985 echo "$ac_t""yes" 1>&6
5987 echo "$ac_t""no" 1>&6
5993 echo $ac_n "checking "for mdi
"""... $ac_c" 1>&6
5994 echo "configure:5995: checking "for mdi
"" >&5
5995 # Check whether --with-mdi or --without-mdi was given.
5996 if test "${with_mdi+set}" = set; then
5998 if test "x$with_mdi" = xyes
; then
5999 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="1"'
6001 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="0"'
6005 LINE
=`grep "wxUSE_MDI_ARCHITECTURE" ${OSTYPE}.system.cache`
6006 if test "x$LINE" != x
; then
6007 eval "DEFAULT_$LINE"
6009 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6013 eval "$ac_cv_use_mdi"
6014 echo $ac_cv_use_mdi >> ${OSTYPE}.system.cache.tmp
6015 if test "$wxUSE_MDI_ARCHITECTURE" = 1; then
6016 echo "$ac_t""yes" 1>&6
6018 echo "$ac_t""no" 1>&6
6023 echo $ac_n "checking "for docview
"""... $ac_c" 1>&6
6024 echo "configure:6025: checking "for docview
"" >&5
6025 # Check whether --with-docview or --without-docview was given.
6026 if test "${with_docview+set}" = set; then
6027 withval
="$with_docview"
6028 if test "x$with_docview" = xyes
; then
6029 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="1"'
6031 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="0"'
6035 LINE
=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache`
6036 if test "x$LINE" != x
; then
6037 eval "DEFAULT_$LINE"
6039 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6043 eval "$ac_cv_use_docview"
6044 echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp
6045 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1; then
6046 echo "$ac_t""yes" 1>&6
6048 echo "$ac_t""no" 1>&6
6053 echo $ac_n "checking "for printarch
"""... $ac_c" 1>&6
6054 echo "configure:6055: checking "for printarch
"" >&5
6055 # Check whether --with-printarch or --without-printarch was given.
6056 if test "${with_printarch+set}" = set; then
6057 withval
="$with_printarch"
6058 if test "x$with_printarch" = xyes
; then
6059 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="1"'
6061 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="0"'
6065 LINE
=`grep "wxUSE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache`
6066 if test "x$LINE" != x
; then
6067 eval "DEFAULT_$LINE"
6069 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6073 eval "$ac_cv_use_printarch"
6074 echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp
6075 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1; then
6076 echo "$ac_t""yes" 1>&6
6078 echo "$ac_t""no" 1>&6
6083 echo $ac_n "checking "for help"""... $ac_c" 1>&6
6084 echo "configure:6085: checking "for help"" >&5
6085 # Check whether --with-help or --without-help was given.
6086 if test "${with_help+set}" = set; then
6087 withval
="$with_help"
6088 if test "x$with_help" = xyes
; then
6089 ac_cv_use_help
='wxUSE_HELP="1"'
6091 ac_cv_use_help
='wxUSE_HELP="0"'
6095 LINE
=`grep "wxUSE_HELP" ${OSTYPE}.system.cache`
6096 if test "x$LINE" != x
; then
6097 eval "DEFAULT_$LINE"
6099 ac_cv_use_help
='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6103 eval "$ac_cv_use_help"
6104 echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp
6105 if test "$wxUSE_HELP" = 1; then
6106 echo "$ac_t""yes" 1>&6
6108 echo "$ac_t""no" 1>&6
6113 if test "$wxUSE_UNIX" = 1 ; then
6114 cat >> confdefs.h
<<\EOF
6120 if test "$USE_LINUX" = 1; then
6121 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
6122 echo "configure:6123: checking for gettext in -lc" >&5
6123 ac_lib_var
=`echo c'_'gettext | sed 'y%./+-%__p_%'`
6124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6125 echo $ac_n "(cached) $ac_c" 1>&6
6127 ac_save_LIBS
="$LIBS"
6129 cat > conftest.
$ac_ext <<EOF
6130 #line 6131 "configure"
6131 #include "confdefs.h"
6132 /* Override any gcc2 internal prototype to avoid an error. */
6133 /* We use char because int might match the return type of a gcc2
6134 builtin and then its argument prototype would still apply. */
6141 if { (eval echo configure
:6142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6143 eval "ac_cv_lib_$ac_lib_var=yes"
6145 echo "configure: failed program was:" >&5
6146 cat conftest.
$ac_ext >&5
6148 eval "ac_cv_lib_$ac_lib_var=no"
6151 LIBS
="$ac_save_LIBS"
6154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6155 echo "$ac_t""yes" 1>&6
6156 cat >> confdefs.h
<<\EOF
6157 #define wxHAVE_GLIBC2 1
6161 echo "$ac_t""no" 1>&6
6178 if test "$wxUSE_GTK" = 1; then
6179 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6180 if test "${with_gtk_prefix+set}" = set; then
6181 withval
="$with_gtk_prefix"
6182 gtk_config_prefix
="$withval"
6184 gtk_config_prefix
=""
6187 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
6188 if test "${with_gtk_exec_prefix+set}" = set; then
6189 withval
="$with_gtk_exec_prefix"
6190 gtk_config_exec_prefix
="$withval"
6192 gtk_config_exec_prefix
=""
6196 if test x
$gtk_config_exec_prefix != x
; then
6197 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6198 if test x
${GTK_CONFIG+set} != xset
; then
6199 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
6202 if test x
$gtk_config_prefix != x
; then
6203 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
6204 if test x
${GTK_CONFIG+set} != xset
; then
6205 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
6209 # Extract the first word of "gtk-config", so it can be a program name with args.
6210 set dummy gtk
-config; ac_word
=$2
6211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6212 echo "configure:6213: checking for $ac_word" >&5
6213 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6214 echo $ac_n "(cached) $ac_c" 1>&6
6216 case "$GTK_CONFIG" in
6218 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
6221 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
6222 for ac_dir
in $PATH; do
6223 test -z "$ac_dir" && ac_dir
=.
6224 if test -f $ac_dir/$ac_word; then
6225 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
6230 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
6234 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
6235 if test -n "$GTK_CONFIG"; then
6236 echo "$ac_t""$GTK_CONFIG" 1>&6
6238 echo "$ac_t""no" 1>&6
6241 min_gtk_version
=1.0.4
6242 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6243 echo "configure:6244: checking for GTK - version >= $min_gtk_version" >&5
6245 if test "$GTK_CONFIG" != "no" ; then
6246 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
6247 GTK_LIBS
=`$GTK_CONFIG --libs`
6248 ac_save_CFLAGS
="$CFLAGS"
6249 ac_save_LIBS
="$LIBS"
6250 CFLAGS
="$CFLAGS $GTK_CFLAGS"
6251 LIBS
="$LIBS $GTK_LIBS"
6252 if test "$cross_compiling" = yes; then
6253 echo $ac_n "cross compiling; assumed OK... $ac_c"
6255 cat > conftest.
$ac_ext <<EOF
6256 #line 6257 "configure"
6257 #include "confdefs.h"
6259 #include <gtk/gtk.h>
6265 int major, minor, micro;
6267 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
6268 printf("%s, bad version string\n", "$min_gtk_version");
6272 if (gtk_minor_version > 0) return FALSE;
6274 return !((gtk_major_version > major) ||
6275 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6276 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6280 if { (eval echo configure
:6281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
&& (.
/conftest
; exit) 2>/dev
/null
6284 echo "configure: failed program was:" >&5
6285 cat conftest.
$ac_ext >&5
6292 CFLAGS
="$ac_save_CFLAGS"
6293 LIBS
="$ac_save_LIBS"
6297 if test "x$no_gtk" = x
; then
6298 echo "$ac_t""yes" 1>&6
6300 GUI_TK_INCLUDE
="$GTK_CFLAGS"
6301 GUI_TK_LIBRARY
="$GTK_LIBS"
6304 echo "$ac_t""no" 1>&6
6307 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.0.4 up-to 1.0.6?" 1>&2; exit 1; }
6313 TOOLKIT_DEF
=__WXGTK__
6315 MAKEINCLUDE
=..
/gtk.inc
6318 if test "$wxUSE_QT" = 1; then
6319 echo $ac_n "checking for Qt includes""... $ac_c" 1>&6
6320 echo "configure:6321: checking for Qt includes" >&5
6323 for ac_dir
in $SEARCH_INCLUDE;
6325 if test -f "$ac_dir/qapp.h"; then
6326 ac_find_includes
=$ac_dir
6331 if test "$ac_find_includes" != "" ; then
6332 echo "$ac_t""found $ac_find_includes" 1>&6
6333 echo $ac_n "checking for Qt library""... $ac_c" 1>&6
6334 echo "configure:6335: checking for Qt library" >&5
6337 for ac_dir
in $SEARCH_LIB;
6339 for ac_extension
in a so sl
; do
6340 if test -f "$ac_dir/libqt.$ac_extension"; then
6341 ac_find_libraries
=$ac_dir
6347 if test "$ac_find_libraries" != "" ; then
6349 ac_path_to_include
=$ac_find_includes
6350 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
6352 if test $result = 0; then
6353 ac_path_to_include
=""
6355 ac_path_to_include
="-I$ac_find_includes"
6359 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6361 if test $result = 0; then
6364 ac_path_to_link
="-L$ac_find_libraries"
6367 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
6368 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
6369 echo "$ac_t""found Qt at $ac_find_libraries" 1>&6
6371 { echo "configure: error: no" 1>&2; exit 1; }
6374 { echo "configure: error: no" 1>&2; exit 1; }
6376 GUI_TK_LINK
="-lX11 -lqt -lm"
6378 TOOLKIT_DEF
=__WXQT__
6380 MAKEINCLUDE
=..
/qt.inc
6383 if test "$wxUSE_MOTIF" = 1; then
6384 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
6385 echo "configure:6386: checking for Motif/Lesstif includes" >&5
6388 for ac_dir
in $SEARCH_INCLUDE;
6390 if test -f "$ac_dir/Xm/Xm.h"; then
6391 ac_find_includes
=$ac_dir
6396 if test "$ac_find_includes" != "" ; then
6397 echo "$ac_t""found $ac_find_includes" 1>&6
6398 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
6399 echo "configure:6400: checking for Motif/Lesstif library" >&5
6402 for ac_dir
in $SEARCH_LIB;
6404 for ac_extension
in a so sl
; do
6405 if test -f "$ac_dir/libXm.$ac_extension"; then
6406 ac_find_libraries
=$ac_dir
6412 if test "$ac_find_libraries" != "" ; then
6414 ac_path_to_include
=$ac_find_includes
6415 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
6417 if test $result = 0; then
6418 ac_path_to_include
=""
6420 ac_path_to_include
="-I$ac_find_includes"
6424 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6426 if test $result = 0; then
6429 ac_path_to_link
="-L$ac_find_libraries"
6432 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
6433 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
6434 echo "$ac_t""found at $ac_find_libraries" 1>&6
6435 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
6436 echo "configure:6437: checking for Xt library" >&5
6439 for ac_dir
in $SEARCH_LIB;
6441 for ac_extension
in a so sl
; do
6442 if test -f "$ac_dir/libXt.$ac_extension"; then
6443 ac_find_libraries
=$ac_dir
6449 if test "$ac_find_libraries" != "" ; then
6451 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6453 if test $result = 0; then
6456 ac_path_to_link
="-L$ac_find_libraries"
6459 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
6460 echo "$ac_t""found at $ac_find_libraries" 1>&6
6461 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
6462 echo "configure:6463: checking for Xpm library" >&5
6465 for ac_dir
in $SEARCH_LIB;
6467 for ac_extension
in a so sl
; do
6468 if test -f "$ac_dir/libXpm.$ac_extension"; then
6469 ac_find_libraries
=$ac_dir
6475 if test "$ac_find_libraries" != "" ; then
6477 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
6479 if test $result = 0; then
6482 ac_path_to_link
="-L$ac_find_libraries"
6485 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
6486 echo "$ac_t""found at $ac_find_libraries" 1>&6
6488 { echo "configure: error: no" 1>&2; exit 1; }
6491 { echo "configure: error: no" 1>&2; exit 1; }
6494 { echo "configure: error: no" 1>&2; exit 1; }
6497 { echo "configure: error: no" 1>&2; exit 1; }
6500 GUI_TK_LINK
="-lXm -lXpm -lXmu -lXt -lX11 -lm"
6501 GUI_TK_LIBRARY
="$CHECK_LIB $GUI_TK_LINK"
6503 TOOLKIT_DEF
="__WXMOTIF__ -D__LINUX__ -D__UNIX__"
6505 MAKEINCLUDE
=..
/motif.inc
6508 if test "$TOOLKIT" = ""; then
6509 { echo "configure: error: You must specify a toolkit: --with-gtk --with-qt --with-motif" 1>&2; exit 1; }
6527 if test "$wxUSE_DEBUG_GDB" = 1 ; then
6532 if test "$wxUSE_DEBUG_INFO" = 1 ; then
6536 EXTRA_LINK
="-s $EXTRA_LINK"
6541 if test "$wxUSE_DEBUG_FLAG" = 1 ; then
6542 cat >> confdefs.h
<<EOF
6543 #define WXDEBUG $wxUSE_DEBUG_FLAG
6546 WXDEBUG_DEFINE
="-D__WXDEBUG__"
6549 WXDEBUG_DEFINE
="-DGTK_NO_CHECK_CASTS"
6553 if test "$wxUSE_MEM_TRACING" = 1 ; then
6554 cat >> confdefs.h
<<EOF
6555 #define wxUSE_MEMORY_TRACING $wxUSE_MEM_TRACING
6558 cat >> confdefs.h
<<EOF
6559 #define wxUSE_GLOBAL_MEMORY_OPERATORS $wxUSE_MEM_TRACING
6564 if test "$wxUSE_DMALLOC" = 1 ; then
6565 EXTRA_LINK
="$EXTRA_LINK -ldmalloc"
6570 if test "$wxUSE_PROFILE" = 1 ; then
6575 CXXFLAGS
=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
6576 CFLAGS
=`echo "${CFLAGS}" | sed "s/\-O.//g" `
6577 if test "$wxUSE_OPTIMISE" = 0 ; then
6580 if test "$GCC" = yes ; then
6582 case "${canonical}" in
6584 OPTIMISE
="${OPTIMISE} "
6594 if test "$wxUSE_APPLE_IEEE" = 1 ; then
6595 APPLE_IEEE
="APPLE_IEEE"
6596 cat >> confdefs.h
<<EOF
6597 #define wxUSE_APPLE_IEEE $wxUSE_APPLE_IEEE
6602 wxUSE_IOSTREAMH
=$DEFAULT_wxUSE_IOSTREAMH
6603 cat >> confdefs.h
<<EOF
6604 #define wxUSE_IOSTREAMH $wxUSE_IOSTREAMH
6609 if test "$wxUSE_ZLIB" = 1 ; then
6610 cat >> confdefs.h
<<EOF
6611 #define wxUSE_ZLIB $wxUSE_ZLIB
6614 Z_C_SRC
="\$(Z_C_SRC)"
6618 if test "$wxUSE_LIBPNG" = 1 ; then
6619 cat >> confdefs.h
<<EOF
6620 #define wxUSE_LIBPNG $wxUSE_LIBPNG
6623 PNG_C_SRC
="\$(PNG_C_SRC)"
6628 if test "$wxUSE_LIBJPEG" = 1 ; then
6629 cat >> confdefs.h
<<EOF
6630 #define wxUSE_LIBJPEG $wxUSE_LIBJPEG
6633 echo $ac_n "checking for in -ljpeg""... $ac_c" 1>&6
6634 echo "configure:6635: checking for in -ljpeg" >&5
6635 ac_lib_var
=`echo jpeg'_' | sed 'y%./+-%__p_%'`
6636 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6637 echo $ac_n "(cached) $ac_c" 1>&6
6639 ac_save_LIBS
="$LIBS"
6641 cat > conftest.
$ac_ext <<EOF
6642 #line 6643 "configure"
6643 #include "confdefs.h"
6644 /* Override any gcc2 internal prototype to avoid an error. */
6645 /* We use char because int might match the return type of a gcc2
6646 builtin and then its argument prototype would still apply. */
6653 if { (eval echo configure
:6654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6655 eval "ac_cv_lib_$ac_lib_var=yes"
6657 echo "configure: failed program was:" >&5
6658 cat conftest.
$ac_ext >&5
6660 eval "ac_cv_lib_$ac_lib_var=no"
6663 LIBS
="$ac_save_LIBS"
6666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6667 echo "$ac_t""yes" 1>&6
6668 ac_tr_lib
=HAVE_LIB
`echo jpeg | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6669 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6670 cat >> confdefs.h
<<EOF
6671 #define $ac_tr_lib 1
6677 echo "$ac_t""no" 1>&6
6685 if test "$wxUSE_ODBC" = 1 ; then
6686 cat >> confdefs.h
<<EOF
6687 #define wxUSE_ODBC $wxUSE_ODBC
6690 IODBC_C_SRC
="\$(IODBC_C_SRC)"
6695 if test "$wxUSE_CONFIG" = 1 ; then
6696 cat >> confdefs.h
<<EOF
6697 #define wxUSE_CONFIG $wxUSE_CONFIG
6702 if test "$wxUSE_TIMEDATE" = 1 ; then
6703 cat >> confdefs.h
<<EOF
6704 #define wxUSE_TIMEDATE $wxUSE_TIMEDATE
6709 if test "$wxUSE_INTL" = 1 ; then
6710 cat >> confdefs.h
<<EOF
6711 #define wxUSE_INTL $wxUSE_INTL
6716 if test "$wxUSE_STREAMS" = 1 ; then
6717 cat >> confdefs.h
<<EOF
6718 #define wxUSE_STREAMS $wxUSE_STREAMS
6723 if test "$wxUSE_SERIAL" = 1 ; then
6724 cat >> confdefs.h
<<EOF
6725 #define wxUSE_SERIAL $wxUSE_SERIAL
6731 if test "$wxUSE_RPC" = 1 ; then
6732 cat >> confdefs.h
<<EOF
6733 #define wxUSE_RPC $wxUSE_RPC
6738 if test "$wxUSE_WX_RESOURCES" = 1 ; then
6739 cat >> confdefs.h
<<EOF
6740 #define wxUSE_WX_RESOURCES $wxUSE_WX_RESOURCES
6745 if test "$wxUSE_PROLOGIO" = 1 ; then
6746 cat >> confdefs.h
<<EOF
6747 #define wxUSE_PROLOGIO 1
6753 if test "$wxUSE_POSTSCRIPT" = 1 ; then
6754 cat >> confdefs.h
<<EOF
6755 #define wxUSE_POSTSCRIPT 1
6760 cat >> confdefs.h
<<EOF
6761 #define wxUSE_AFM_FOR_POSTSCRIPT $wxUSE_AFM_FOR_POSTSCRIPT
6765 cat >> confdefs.h
<<EOF
6766 #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS
6771 if test "$wxUSE_MDI_ARCHITECTURE" = 1 ; then
6772 cat >> confdefs.h
<<EOF
6773 #define wxUSE_MDI_ARCHITECTURE $wxUSE_MDI_ARCHITECTURE
6778 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1 ; then
6779 cat >> confdefs.h
<<EOF
6780 #define wxUSE_DOC_VIEW_ARCHITECTURE $wxUSE_DOC_VIEW_ARCHITECTURE
6785 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1 ; then
6786 cat >> confdefs.h
<<EOF
6787 #define wxUSE_PRINTING_ARCHITECTURE $wxUSE_PRINTING_ARCHITECTURE
6793 if test "$wxUSE_UNICODE" = 1 ; then
6794 cat >> confdefs.h
<<EOF
6795 #define wxUSE_UNICODE 1
6800 if test "$wxUSE_WCSRTOMBS" = 1 ; then
6801 cat >> confdefs.h
<<EOF
6802 #define wxUSE_WCSRTOMBS 1
6808 if test "$wxUSE_IPC" = 1 ; then
6809 cat >> confdefs.h
<<EOF
6815 if test "$wxUSE_RESOURCES" = 1 ; then
6816 cat >> confdefs.h
<<EOF
6817 #define wxUSE_RESOURCES $wxUSE_RESOURCES
6822 if test "$wxUSE_CLIPBOARD" = 1 ; then
6823 cat >> confdefs.h
<<EOF
6824 #define wxUSE_CLIPBOARD $wxUSE_CLIPBOARD
6829 if test "$wxUSE_TOOLTIPS" = 1 ; then
6830 cat >> confdefs.h
<<EOF
6831 #define wxUSE_TOOLTIPS $wxUSE_TOOLTIPS
6836 if test "$wxUSE_DRAG_AND_DROP" = 1 ; then
6837 cat >> confdefs.h
<<EOF
6838 #define wxUSE_DRAG_AND_DROP $wxUSE_DRAG_AND_DROP
6845 if test "$wxUSE_HELP" = 1 ; then
6847 cat >> confdefs.h
<<EOF
6848 #define wxUSE_HELP $wxUSE_HELP
6858 if test "$wxUSE_THREADS" = "1"; then
6861 echo $ac_n "checking for pthread_create in -lpthread-0.7""... $ac_c" 1>&6
6862 echo "configure:6863: checking for pthread_create in -lpthread-0.7" >&5
6863 ac_lib_var
=`echo pthread-0.7'_'pthread_create | sed 'y%./+-%__p_%'`
6864 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6865 echo $ac_n "(cached) $ac_c" 1>&6
6867 ac_save_LIBS
="$LIBS"
6868 LIBS
="-lpthread-0.7 $LIBS"
6869 cat > conftest.
$ac_ext <<EOF
6870 #line 6871 "configure"
6871 #include "confdefs.h"
6872 /* Override any gcc2 internal prototype to avoid an error. */
6873 /* We use char because int might match the return type of a gcc2
6874 builtin and then its argument prototype would still apply. */
6875 char pthread_create();
6881 if { (eval echo configure
:6882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6883 eval "ac_cv_lib_$ac_lib_var=yes"
6885 echo "configure: failed program was:" >&5
6886 cat conftest.
$ac_ext >&5
6888 eval "ac_cv_lib_$ac_lib_var=no"
6891 LIBS
="$ac_save_LIBS"
6894 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6895 echo "$ac_t""yes" 1>&6
6897 UNIX_THREAD
="gtk/threadpsx.cpp"
6898 THREADS_LINK
="-lpthread-0.7"
6901 echo "$ac_t""no" 1>&6
6903 ac_safe
=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
6904 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
6905 echo "configure:6906: checking for sys/prctl.h" >&5
6906 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6907 echo $ac_n "(cached) $ac_c" 1>&6
6909 cat > conftest.
$ac_ext <<EOF
6910 #line 6911 "configure"
6911 #include "confdefs.h"
6912 #include <sys/prctl.h>
6914 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6915 { (eval echo configure
:6916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6916 ac_err
=`grep -v '^ *+' conftest.out`
6917 if test -z "$ac_err"; then
6919 eval "ac_cv_header_$ac_safe=yes"
6922 echo "configure: failed program was:" >&5
6923 cat conftest.
$ac_ext >&5
6925 eval "ac_cv_header_$ac_safe=no"
6929 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6930 echo "$ac_t""yes" 1>&6
6932 UNIX_THREAD
="gtk/threadsgi.cpp"
6935 echo "$ac_t""no" 1>&6
6940 echo $ac_n "checking for pthread_setcanceltype in -lpthread""... $ac_c" 1>&6
6941 echo "configure:6942: checking for pthread_setcanceltype in -lpthread" >&5
6942 ac_lib_var
=`echo pthread'_'pthread_setcanceltype | sed 'y%./+-%__p_%'`
6943 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6944 echo $ac_n "(cached) $ac_c" 1>&6
6946 ac_save_LIBS
="$LIBS"
6947 LIBS
="-lpthread $LIBS"
6948 cat > conftest.
$ac_ext <<EOF
6949 #line 6950 "configure"
6950 #include "confdefs.h"
6951 /* Override any gcc2 internal prototype to avoid an error. */
6952 /* We use char because int might match the return type of a gcc2
6953 builtin and then its argument prototype would still apply. */
6954 char pthread_setcanceltype();
6957 pthread_setcanceltype()
6960 if { (eval echo configure
:6961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
6962 eval "ac_cv_lib_$ac_lib_var=yes"
6964 echo "configure: failed program was:" >&5
6965 cat conftest.
$ac_ext >&5
6967 eval "ac_cv_lib_$ac_lib_var=no"
6970 LIBS
="$ac_save_LIBS"
6973 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6974 echo "$ac_t""yes" 1>&6
6976 UNIX_THREAD
="gtk/threadpsx.cpp"
6977 THREADS_LINK
="-lpthread"
6980 echo "$ac_t""no" 1>&6
6987 if test "$THREADS_LINK" != ""; then
6988 cat >> confdefs.h
<<\EOF
6989 #define wxUSE_THREADS 1
6995 echo $ac_n "checking for printf in -lposix4""... $ac_c" 1>&6
6996 echo "configure:6997: checking for printf in -lposix4" >&5
6997 ac_lib_var
=`echo posix4'_'printf | sed 'y%./+-%__p_%'`
6998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6999 echo $ac_n "(cached) $ac_c" 1>&6
7001 ac_save_LIBS
="$LIBS"
7002 LIBS
="-lposix4 $LIBS"
7003 cat > conftest.
$ac_ext <<EOF
7004 #line 7005 "configure"
7005 #include "confdefs.h"
7006 /* Override any gcc2 internal prototype to avoid an error. */
7007 /* We use char because int might match the return type of a gcc2
7008 builtin and then its argument prototype would still apply. */
7015 if { (eval echo configure
:7016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
7017 eval "ac_cv_lib_$ac_lib_var=yes"
7019 echo "configure: failed program was:" >&5
7020 cat conftest.
$ac_ext >&5
7022 eval "ac_cv_lib_$ac_lib_var=no"
7025 LIBS
="$ac_save_LIBS"
7028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7029 echo "$ac_t""yes" 1>&6
7031 THREADS_LINK
="$THREADS_LINK -lposix4"
7034 echo "$ac_t""no" 1>&6
7040 if test "$wxUSE_MOTIF" = "1"; then
7041 UNIX_THREAD
="motif/thread.cpp"
7044 if test -z "$UNIX_THREAD"; then
7055 case "${canonical}" in
7058 if test "$GCC" != "yes" ; then
7059 CXXFLAGS
="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
7060 CFLAGS
="${CFLAGS} -z -D_HPUX_SOURCE"
7066 CREATE_SHARED
=sharedHpux
7071 CREATE_SHARED
=sharedLinux
7074 *-*-irix5* | *-*-irix6* )
7075 # PICFLAGS can remain empty, as pic is the default
7077 CREATE_SHARED
=sharedIrix
7078 cat >> confdefs.h
<<\EOF
7085 if test "$GCC" != "yes" ; then
7090 CREATE_SHARED
=sharedSolaris2
7091 cat >> confdefs.h
<<\EOF
7098 if test "$GCC" != "yes" ; then
7104 CREATE_SHARED
=sharedSunos4
7105 cat >> confdefs.h
<<\EOF
7111 *-*-freebsd* | *-*-netbsd*)
7113 CREATE_SHARED
=sharedBsd
7114 cat >> confdefs.h
<<\EOF
7122 CREATE_SHARED
=sharedOSF
7126 if test "$GCC" != "yes" ; then
7131 CREATE_SHARED
=sharedDgux
7132 cat >> confdefs.h
<<\EOF
7139 if test "$GCC" != "yes" ; then
7144 CREATE_SHARED
=sharedSysV
7145 cat >> confdefs.h
<<\EOF
7152 if test "$GCC" != "yes" ; then
7157 CREATE_SHARED
=sharedAIX
7158 cat >> confdefs.h
<<\EOF
7169 if test "x$GCC" = xyes
; then
7170 CFLAGS
="${CFLAGS} -Wall -Wno-unused -Wno-uninitialized -D_REENTRANT -DLEX_SCANNER -DHAVE_LIBDL"
7173 if test "x$GXX" = xyes
; then
7174 if test "$wxUSE_MOTIF" = 1; then
7175 CXXFLAGS
="${CXXFLAGS} -Wall -Wno-unused -D_REENTRANT"
7177 CXXFLAGS
="${CXXFLAGS} -Wall -D_REENTRANT"
7181 if test "$wxUSE_SHARED" != 1; then
7191 echo $OS >> system.list
7195 cat > confcache
<<\EOF
7196 # This file is a shell script that caches the results of configure
7197 # tests run on this system so they can be shared between configure
7198 # scripts and configure runs. It is not useful on other systems.
7199 # If it contains results you don't want to keep, you may remove or edit it.
7201 # By default, configure uses ./config.cache as the cache file,
7202 # creating it if it does not exist already. You can give configure
7203 # the --cache-file=FILE option to use a different cache file; that is
7204 # what configure does when it calls configure scripts in
7205 # subdirectories, so they share the cache.
7206 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7207 # config.status only pays attention to the cache file if you give it the
7208 # --recheck option to rerun configure.
7211 # The following way of writing the cache mishandles newlines in values,
7212 # but we know of no workaround that is simple, portable, and efficient.
7213 # So, don't put newlines in cache variables' values.
7214 # Ultrix sh set writes to stderr and can't be redirected directly,
7215 # and sets the high bit in the cache file unless we assign to the vars.
7217 case `(ac_space=' '; set) 2>&1` in
7219 # `set' does not quote correctly, so add quotes (double-quote substitution
7220 # turns \\\\ into \\, and sed turns \\ into \).
7222 -e "s/'/'\\\\''/g" \
7223 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7226 # `set' quotes correctly as required by POSIX, so do not add quotes.
7227 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7230 if cmp -s $cache_file confcache
; then
7233 if test -w $cache_file; then
7234 echo "updating cache $cache_file"
7235 cat confcache
> $cache_file
7237 echo "not updating unwritable cache $cache_file"
7242 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7244 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7245 # Let make expand exec_prefix.
7246 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7248 # Any assignment to VPATH causes Sun make to only execute
7249 # the first set of double-colon rules, so remove it if not needed.
7250 # If there is a colon in the path, we need to keep it.
7251 if test "x$srcdir" = x.
; then
7252 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
7255 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7257 DEFS
=-DHAVE_CONFIG_H
7259 # Without the "./", some shells look in PATH for config.status.
7260 : ${CONFIG_STATUS=./config.status}
7262 echo creating
$CONFIG_STATUS
7263 rm -f $CONFIG_STATUS
7264 cat > $CONFIG_STATUS <<EOF
7266 # Generated automatically by configure.
7267 # Run this file to recreate the current configuration.
7268 # This directory was configured as follows,
7269 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7271 # $0 $ac_configure_args
7273 # Compiler output produced by configure, useful for debugging
7274 # configure, is in ./config.log if it exists.
7276 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
7279 case "\$ac_option" in
7280 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7281 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
7282 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
7283 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
7284 echo "$CONFIG_STATUS generated by autoconf version 2.12"
7286 -help | --help | --hel | --he | --h)
7287 echo "\$ac_cs_usage"; exit 0 ;;
7288 *) echo "\$ac_cs_usage"; exit 1 ;;
7292 ac_given_srcdir=$srcdir
7293 ac_given_INSTALL="$INSTALL"
7295 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
7297 cat >> $CONFIG_STATUS <<EOF
7299 # Protect against being on the right side of a sed subst in config.status.
7300 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
7301 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
7304 s%@CFLAGS@%$CFLAGS%g
7305 s%@CPPFLAGS@%$CPPFLAGS%g
7306 s%@CXXFLAGS@%$CXXFLAGS%g
7308 s%@LDFLAGS@%$LDFLAGS%g
7310 s%@exec_prefix@%$exec_prefix%g
7311 s%@prefix@%$prefix%g
7312 s%@program_transform_name@%$program_transform_name%g
7313 s%@bindir@%$bindir%g
7314 s%@sbindir@%$sbindir%g
7315 s%@libexecdir@%$libexecdir%g
7316 s%@datadir@%$datadir%g
7317 s%@sysconfdir@%$sysconfdir%g
7318 s%@sharedstatedir@%$sharedstatedir%g
7319 s%@localstatedir@%$localstatedir%g
7320 s%@libdir@%$libdir%g
7321 s%@includedir@%$includedir%g
7322 s%@oldincludedir@%$oldincludedir%g
7323 s%@infodir@%$infodir%g
7324 s%@mandir@%$mandir%g
7325 s%@WXBASEDIR@%$WXBASEDIR%g
7329 s%@CXXCPP@%$CXXCPP%g
7330 s%@RANLIB@%$RANLIB%g
7332 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
7333 s%@INSTALL_DATA@%$INSTALL_DATA%g
7336 s%@X_CFLAGS@%$X_CFLAGS%g
7337 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
7338 s%@X_LIBS@%$X_LIBS%g
7339 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
7340 s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g
7341 s%@LIBOBJS@%$LIBOBJS%g
7344 s%@LEXLIB@%$LEXLIB%g
7345 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
7346 s%@DL_LIBRARY@%$DL_LIBRARY%g
7348 s%@host_alias@%$host_alias%g
7349 s%@host_cpu@%$host_cpu%g
7350 s%@host_vendor@%$host_vendor%g
7351 s%@host_os@%$host_os%g
7352 s%@GTK_CONFIG@%$GTK_CONFIG%g
7353 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
7354 s%@GTK_LIBS@%$GTK_LIBS%g
7355 s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g
7356 s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
7357 s%@GUI_TK_LINK@%$GUI_TK_LINK%g
7358 s%@WX_LINK@%$WX_LINK%g
7359 s%@TOOLKIT@%$TOOLKIT%g
7360 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
7361 s%@MAKEINCLUDE@%$MAKEINCLUDE%g
7362 s%@WXDEBUG@%$WXDEBUG%g
7363 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
7364 s%@EXTRA_LINK@%$EXTRA_LINK%g
7365 s%@PROFILE@%$PROFILE%g
7366 s%@OPTIMISE@%$OPTIMISE%g
7367 s%@Z_C_SRC@%$Z_C_SRC%g
7368 s%@PNG_C_SRC@%$PNG_C_SRC%g
7369 s%@JPEG_LINK@%$JPEG_LINK%g
7370 s%@IODBC_C_SRC@%$IODBC_C_SRC%g
7372 s%@UNIX_THREAD@%$UNIX_THREAD%g
7373 s%@THREADS_LINK@%$THREADS_LINK%g
7375 s%@PICFLAGS@%$PICFLAGS%g
7376 s%@CREATE_SHARED@%$CREATE_SHARED%g
7381 cat >> $CONFIG_STATUS <<\EOF
7383 # Split the substitutions into bite-sized pieces for seds with
7384 # small command number limits, like on Digital OSF/1 and HP-UX.
7385 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
7386 ac_file
=1 # Number of current file.
7387 ac_beg
=1 # First line for current file.
7388 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
7391 while $ac_more_lines; do
7392 if test $ac_beg -gt 1; then
7393 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
7395 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
7397 if test ! -s conftest.s
$ac_file; then
7399 rm -f conftest.s
$ac_file
7401 if test -z "$ac_sed_cmds"; then
7402 ac_sed_cmds
="sed -f conftest.s$ac_file"
7404 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
7406 ac_file
=`expr $ac_file + 1`
7408 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
7411 if test -z "$ac_sed_cmds"; then
7416 cat >> $CONFIG_STATUS <<EOF
7418 CONFIG_FILES=\${CONFIG_FILES-"./setup/substit ./wx-config:./wx-config.in"}
7420 cat >> $CONFIG_STATUS <<\EOF
7421 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
7422 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7424 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7425 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7426 *) ac_file_in
="${ac_file}.in" ;;
7429 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
7431 # Remove last slash and all that follows it. Not all systems have dirname.
7432 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7433 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
7434 # The file is in a subdirectory.
7435 test ! -d "$ac_dir" && mkdir "$ac_dir"
7436 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
7437 # A "../" for each directory in $ac_dir_suffix.
7438 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
7440 ac_dir_suffix
= ac_dots
=
7443 case "$ac_given_srcdir" in
7445 if test -z "$ac_dots"; then top_srcdir
=.
7446 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
7447 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
7449 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
7450 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
7453 case "$ac_given_INSTALL" in
7454 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
7455 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
7458 echo creating
"$ac_file"
7460 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
7462 *Makefile
*) ac_comsub
="1i\\
7463 # $configure_input" ;;
7467 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7469 s%@configure_input@%$configure_input%g
7470 s%@srcdir@%$srcdir%g
7471 s%@top_srcdir@%$top_srcdir%g
7472 s%@INSTALL@%$INSTALL%g
7473 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
7477 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7478 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7480 # ac_d sets the value in "#define NAME VALUE" lines.
7481 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7482 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
7485 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7486 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7487 ac_uB
='\([ ]\)%\1#\2define\3'
7490 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7491 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7492 ac_eB
='$%\1#\2define\3'
7496 if test "${CONFIG_HEADERS+set}" != set; then
7498 cat >> $CONFIG_STATUS <<EOF
7499 CONFIG_HEADERS="./include/wx/gtk/setup.h:./setup/setup.hin"
7501 cat >> $CONFIG_STATUS <<\EOF
7503 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
7504 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7506 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
7507 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
7508 *) ac_file_in
="${ac_file}.in" ;;
7511 echo creating
$ac_file
7513 rm -f conftest.frag conftest.
in conftest.out
7514 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
7515 cat $ac_file_inputs > conftest.
in
7519 # Transform confdefs.h into a sed script conftest.vals that substitutes
7520 # the proper values into config.h.in to produce config.h. And first:
7521 # Protect against being on the right side of a sed subst in config.status.
7522 # Protect against being in an unquoted here document in config.status.
7524 cat > conftest.hdr
<<\EOF
7527 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
7531 sed -n -f conftest.hdr confdefs.h > conftest.vals
7534 # This sed command replaces #undef with comments. This is necessary, for
7535 # example, in the case of _POSIX_SOURCE, which is predefined and required
7536 # on some systems where configure will not decide to define it.
7537 cat >> conftest.vals <<\EOF
7538 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
7541 # Break up conftest.vals because some shells have a limit on
7542 # the size of here documents, and old seds have small limits too.
7547 ac_lines=`grep -c . conftest.vals
`
7548 # grep -c gives empty output for an empty file on some AIX systems.
7549 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
7550 # Write a limited-size here document to conftest.frag.
7551 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
7552 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
7554 sed -f conftest.frag conftest.in > conftest.out
7556 mv conftest.out conftest.in
7558 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7560 mv conftest.tail conftest.vals
7564 cat >> $CONFIG_STATUS <<\EOF
7565 rm -f conftest.frag conftest.h
7566 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
7567 cat conftest.in >> conftest.h
7569 if cmp -s $ac_file conftest.h 2>/dev/null; then
7570 echo "$ac_file is unchanged"
7573 # Remove last slash and all that follows it. Not all systems have dirname.
7574 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
7575 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7576 # The file is in a subdirectory.
7577 test ! -d "$ac_dir" && mkdir "$ac_dir"
7580 mv conftest.h $ac_file
7585 cat >> $CONFIG_STATUS <<EOF
7588 cat >> $CONFIG_STATUS <<\EOF
7589 ./setup/general/createall
7592 chmod +x $CONFIG_STATUS
7593 rm -fr confdefs* $ac_clean_files
7594 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
7598 mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache